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

📄 configure

📁 基于SDL实现的GUI
💻
📖 第 1 页 / 共 5 页
字号:
# so one script is as good as another.  But avoid the broken or# incompatible versions:# SysV /etc/install, /usr/sbin/install# SunOS /usr/etc/install# IRIX /sbin/install# AIX /bin/install# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag# AFS /usr/afsws/bin/install, which mishandles nonexistent args# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"# ./install, which can be erroneously created by make from ./install.sh.echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6echo "configure:1240: checking for a BSD compatible install" >&5if test -z "$INSTALL"; thenif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"  for ac_dir in $PATH; do    # Account for people who put trailing slashes in PATH elements.    case "$ac_dir/" in    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;    *)      # OSF1 and SCO ODT 3.0 have their own names for install.      # Don't use installbsd from OSF since it installs stuff as root      # by default.      for ac_prog in ginstall scoinst install; do        if test -f $ac_dir/$ac_prog; then	  if test $ac_prog = install &&            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then	    # AIX install.  It has an incompatible calling convention.	    :	  else	    ac_cv_path_install="$ac_dir/$ac_prog -c"	    break 2	  fi	fi      done      ;;    esac  done  IFS="$ac_save_IFS"fi  if test "${ac_cv_path_install+set}" = set; then    INSTALL="$ac_cv_path_install"  else    # As a last resort, use the slow shell script.  We don't cache a    # path for INSTALL within a source directory, because that will    # break other packages using the cache if that directory is    # removed, or if the path is relative.    INSTALL="$ac_install_sh"  fifiecho "$ac_t""$INSTALL" 1>&6# Use test -z because SunOS4 sh mishandles braces in ${var-val}.# It thinks the first close brace ends the variable substitution.test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'echo $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:1295: checking for working const" >&5if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1300 "configure"#include "confdefs.h"int main() {/* Ultrix mips cc rejects this.  */typedef int charset[2]; const charset x;/* SunOS 4.1.1 cc rejects this.  */char const *const *ccp;char **p;/* NEC SVR4.0.2 mips cc rejects this.  */struct point {int x, y;};static struct point const zero = {0,0};/* AIX XL C 1.02.0.0 rejects this.   It does not let you subtract one const X* pointer from another in an arm   of an if-expression whose if-part is not a constant expression */const char *g = "string";ccp = &g + (g ? g-g : 0);/* HPUX 7.0 cc rejects these. */++ccp;p = (char**) ccp;ccp = (char const *const *) p;{ /* SCO 3.2v4 cc rejects this.  */  char *t;  char const *s = 0 ? (char *) 0 : (char const *) 0;  *t++ = 0;}{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */  int x[] = {25, 17};  const int *foo = &x[0];  ++foo;}{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */  typedef const int *iptr;  iptr p = 0;  ++p;}{ /* AIX XL C 1.02.0.0 rejects this saying     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */  struct s { int j; const int *ap[3]; };  struct s *b; b->j = 5;}{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */  const int foo = 10;}; return 0; }EOFif { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  ac_cv_c_const=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  ac_cv_c_const=nofirm -f conftest*fiecho "$ac_t""$ac_cv_c_const" 1>&6if test $ac_cv_c_const = no; then  cat >> confdefs.h <<\EOF#define const EOFficase "$target" in    alpha*-*-linux*)        CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"        ;;    *-*-cygwin* | *-*-mingw*)        if test "$build" != "$target"; then # cross-compiling            ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc        fi        SYS_GL_LIBS="-lopengl32 -lglu32"        ;;    *-*-linux*)        SYS_GL_LIBS="-L/usr/X11R6/lib -lGL"        ;;    *)        SYS_GL_LIBS="-lGL"        ;;esac# Use the macro SDL provides to check the installed version of the SDL# development environment.  Abort the configuration process if the# minimum version we require isn't available.SDL_VERSION=1.1.2# 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:1433: 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=$SDL_VERSION  echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6echo "configure:1468: 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 1492 "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    {      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);      printf("*** best to upgrade to the required version.\n");      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");      printf("*** to point to the correct copy of sdl-config, and remove the file\n");      printf("*** config.cache before re-running configure\n");      return 1;    }}EOFif { (eval echo configure:1553: \"$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 1587 "configure"#include "confdefs.h"#include <stdio.h>#include "SDL.h"int main() { return 0; ; return 0; }EOFif { (eval echo configure:1597: \"$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: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }  fi      rm -f conf.sdltest# Add the SDL preprocessor flags and libraries to the build processCFLAGS="$CFLAGS $SDL_CFLAGS"LIBS="$LIBS $SDL_LIBS"# Look for a working SDL_image libraryecho $ac_n "checking for IMG_Load_RW in -lSDL_image""... $ac_c" 1>&6echo "configure:1637: checking for IMG_Load_RW in -lSDL_image" >&5

⌨️ 快捷键说明

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