⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure

📁 LBreakout a breakout-style arcade game for Linux Requirements: X11, SDL[1.0 or better] Inst
💻
📖 第 1 页 / 共 5 页
字号:
fi# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.if test "${with_sdl_exec_prefix+set}" = set; then  withval="$with_sdl_exec_prefix"  sdl_exec_prefix="$withval"else  sdl_exec_prefix=""fi# Check whether --enable-sdltest or --disable-sdltest was given.if test "${enable_sdltest+set}" = set; then  enableval="$enable_sdltest"  :else  enable_sdltest=yesfi  if test x$sdl_exec_prefix != x ; then     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"     if test x${SDL_CONFIG+set} != xset ; then        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config     fi  fi  if test x$sdl_prefix != x ; then     sdl_args="$sdl_args --prefix=$sdl_prefix"     if test x${SDL_CONFIG+set} != xset ; then        SDL_CONFIG=$sdl_prefix/bin/sdl-config     fi  fi  # Extract the first word of "sdl-config", so it can be a program name with args.set dummy sdl-config; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1282: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  case "$SDL_CONFIG" in  /*)  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.  ;;  ?:/*)			   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.  ;;  *)  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do     test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"  ;;esacfiSDL_CONFIG="$ac_cv_path_SDL_CONFIG"if test -n "$SDL_CONFIG"; then  echo "$ac_t""$SDL_CONFIG" 1>&6else  echo "$ac_t""no" 1>&6fi  min_sdl_version=1.0.0  echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6echo "configure:1317: checking for SDL - version >= $min_sdl_version" >&5  no_sdl=""  if test "$SDL_CONFIG" = "no" ; then    no_sdl=yes  else    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`    if test "x$enable_sdltest" = "xyes" ; then      ac_save_CFLAGS="$CFLAGS"      ac_save_LIBS="$LIBS"      CFLAGS="$CFLAGS $SDL_CFLAGS"      LIBS="$LIBS $SDL_LIBS"      rm -f conf.sdltest      if test "$cross_compiling" = yes; then  echo $ac_n "cross compiling; assumed OK... $ac_c"else  cat > conftest.$ac_ext <<EOF#line 1341 "configure"#include "confdefs.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include "SDL.h"char*my_strdup (char *str){  char *new_str;    if (str)    {      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));      strcpy (new_str, str);    }  else    new_str = NULL;    return new_str;}int main (int argc, char *argv[]){  int major, minor, micro;  char *tmp_version;  /* This hangs on some systems (?)  system ("touch conf.sdltest");  */  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }  /* HP/UX 9 (%@#!) writes to sscanf strings */  tmp_version = my_strdup("$min_sdl_version");  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {     printf("%s, bad version string\n", "$min_sdl_version");     exit(1);   }   if (($sdl_major_version > major) ||      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))    {      return 0;    }  else    {      return 1;    }}EOFif { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen  :else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  no_sdl=yesfirm -fr conftest*fi       CFLAGS="$ac_save_CFLAGS"       LIBS="$ac_save_LIBS"     fi  fi  if test "x$no_sdl" = x ; then     echo "$ac_t""yes" 1>&6     :       else     echo "$ac_t""no" 1>&6     if test "$SDL_CONFIG" = "no" ; then       echo "*** The sdl-config script installed by SDL could not be found"       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"       echo "*** your path, or set the SDL_CONFIG environment variable to the"       echo "*** full path to sdl-config."     else       if test -f conf.sdltest ; then        :       else          echo "*** Could not run SDL test program, checking why..."          CFLAGS="$CFLAGS $SDL_CFLAGS"          LIBS="$LIBS $SDL_LIBS"          cat > conftest.$ac_ext <<EOF#line 1430 "configure"#include "confdefs.h"#include <stdio.h>#include "SDL.h"int main() { return 0; ; return 0; }EOFif { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*   echo "*** The test program compiled, but did not run. This usually means"          echo "*** that the run-time linker is not finding SDL or finding the wrong"          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"          echo "*** to the installed location  Also, make sure you have run ldconfig if that"          echo "*** is required on your system"	  echo "***"          echo "*** If you have an old version installed, it is best to remove it, although"          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*   echo "*** The test program failed to compile or link. See the file config.log for the"          echo "*** exact error that occured. This usually means SDL was incorrectly installed"          echo "*** or that you have moved SDL since it was installed. In the latter case, you"          echo "*** may want to edit the sdl-config script: $SDL_CONFIG" firm -f conftest*          CFLAGS="$ac_save_CFLAGS"          LIBS="$ac_save_LIBS"       fi     fi     SDL_CFLAGS=""     SDL_LIBS=""     { echo "configure: error: lib SDL is needed" 1>&2; exit 1; }  fi      rm -f conf.sdltestCFLAGS="$CFLAGS $SDL_CFLAGS"CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"LIBS="$LIBS $SDL_LIBS"# Check whether --with-sdl-prefix or --without-sdl-prefix was given.if test "${with_sdl_prefix+set}" = set; then  withval="$with_sdl_prefix"  sdl_prefix="$withval"else  sdl_prefix=""fi# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.if test "${with_sdl_exec_prefix+set}" = set; then  withval="$with_sdl_exec_prefix"  sdl_exec_prefix="$withval"else  sdl_exec_prefix=""fi# Check whether --enable-sdltest or --disable-sdltest was given.if test "${enable_sdltest+set}" = set; then  enableval="$enable_sdltest"  :else  enable_sdltest=yesfi  if test x$sdl_exec_prefix != x ; then     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"     if test x${SDL_CONFIG+set} != xset ; then        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config     fi  fi  if test x$sdl_prefix != x ; then     sdl_args="$sdl_args --prefix=$sdl_prefix"     if test x${SDL_CONFIG+set} != xset ; then        SDL_CONFIG=$sdl_prefix/bin/sdl-config     fi  fi  # Extract the first word of "sdl-config", so it can be a program name with args.set dummy sdl-config; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1517: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  case "$SDL_CONFIG" in  /*)  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.  ;;  ?:/*)			   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.  ;;  *)  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do     test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"      break    fi  done  IFS="$ac_save_ifs"  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"  ;;esacfiSDL_CONFIG="$ac_cv_path_SDL_CONFIG"if test -n "$SDL_CONFIG"; then  echo "$ac_t""$SDL_CONFIG" 1>&6else  echo "$ac_t""no" 1>&6fi  min_sdl_version=1.1.5  echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6echo "configure:1552: checking for SDL - version >= $min_sdl_version" >&5  no_sdl=""  if test "$SDL_CONFIG" = "no" ; then    no_sdl=yes  else    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`    if test "x$enable_sdltest" = "xyes" ; then      ac_save_CFLAGS="$CFLAGS"      ac_save_LIBS="$LIBS"      CFLAGS="$CFLAGS $SDL_CFLAGS"      LIBS="$LIBS $SDL_LIBS"      rm -f conf.sdltest      if test "$cross_compiling" = yes; then  echo $ac_n "cross compiling; assumed OK... $ac_c"else  cat > conftest.$ac_ext <<EOF#line 1576 "configure"#include "confdefs.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include "SDL.h"char*my_strdup (char *str){  char *new_str;    if (str)    {      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));      strcpy (new_str, str);    }  else    new_str = NULL;    return new_str;}int main (int argc, char *argv[]){  int major, minor, micro;  char *tmp_version;  /* This hangs on some systems (?)  system ("touch conf.sdltest");  */  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }  /* HP/UX 9 (%@#!) writes to sscanf strings */  tmp_version = my_strdup("$min_sdl_version");  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {     printf("%s, bad version string\n", "$min_sdl_version");     exit(1);   }   if (($sdl_major_version > major) ||      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))    {      return 0;    }  else    {      return 1;    }}EOFif { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen  :else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  no_sdl=yesfirm -fr conftest*fi       CFLAGS="$ac_save_CFLAGS"       LIBS="$ac_save_LIBS"     fi  fi  if test "x$no_sdl" = x ; then     echo "$ac_t""yes" 1>&6     sdl_flag="-DSDL_1_1_5"       else     echo "$ac_t""no" 1>&6     if test "$SDL_CONFIG" = "no" ; then       echo "*** The sdl-config script installed by SDL could not be found"       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"       echo "*** your path, or set the SDL_CONFIG environment variable to the"       echo "*** full path to sdl-config."     else       if test -f conf.sdltest ; then        :       else          echo "*** Could not run SDL test program, checking why..."

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -