/[crust]/crust/libs/GraphicsFoundation/configure
ViewVC logotype

Diff of /crust/libs/GraphicsFoundation/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jrydberg, Sun Aug 26 20:46:03 2001 UTC revision 1.2 by jrydberg, Mon Aug 27 22:29:49 2001 UTC
# Line 24  ac_help="$ac_help Line 24  ac_help="$ac_help
24    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
25  ac_help="$ac_help  ac_help="$ac_help
26    --disable-libtool-lock  avoid locking (might break parallel builds)"    --disable-libtool-lock  avoid locking (might break parallel builds)"
27    ac_help="$ac_help
28      --with-freetype2-prefix=PFX   Prefix where FREETYPE2 is installed (optional)"
29    ac_help="$ac_help
30      --with-freetype2-exec-prefix=PFX Exec prefix where FREETYPE2 is installed (optional)"
31    ac_help="$ac_help
32      --disable-freetype2test       Do not try to compile and run a test FREETYPE2 program"
33    
34  # Initialize some variables set by options.  # Initialize some variables set by options.
35  # The variables have the same names as the options, with  # The variables have the same names as the options, with
# Line 565  ac_configure=$ac_aux_dir/configure # Thi Line 571  ac_configure=$ac_aux_dir/configure # Thi
571  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
572  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
573  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
574  echo "configure:569: checking for a BSD compatible install" >&5  echo "configure:575: checking for a BSD compatible install" >&5
575  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
576  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
577    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 618  test -z "$INSTALL_SCRIPT" && INSTALL_SCR Line 624  test -z "$INSTALL_SCRIPT" && INSTALL_SCR
624  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
625    
626  echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6  echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
627  echo "configure:622: checking whether build environment is sane" >&5  echo "configure:628: checking whether build environment is sane" >&5
628  # Just in case  # Just in case
629  sleep 1  sleep 1
630  echo timestamp > conftestfile  echo timestamp > conftestfile
# Line 675  test "$program_suffix" != NONE && Line 681  test "$program_suffix" != NONE &&
681  test "$program_transform_name" = "" && program_transform_name="s,x,x,"  test "$program_transform_name" = "" && program_transform_name="s,x,x,"
682    
683  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
684  echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo "configure:685: checking whether ${MAKE-make} sets \${MAKE}" >&5
685  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
686  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
687    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 721  EOF Line 727  EOF
727    
728  missing_dir=`cd $ac_aux_dir && pwd`  missing_dir=`cd $ac_aux_dir && pwd`
729  echo $ac_n "checking for working aclocal""... $ac_c" 1>&6  echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
730  echo "configure:725: checking for working aclocal" >&5  echo "configure:731: checking for working aclocal" >&5
731  # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
732  # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
733  # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
# Line 734  else Line 740  else
740  fi  fi
741    
742  echo $ac_n "checking for working autoconf""... $ac_c" 1>&6  echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
743  echo "configure:738: checking for working autoconf" >&5  echo "configure:744: checking for working autoconf" >&5
744  # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
745  # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
746  # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
# Line 747  else Line 753  else
753  fi  fi
754    
755  echo $ac_n "checking for working automake""... $ac_c" 1>&6  echo $ac_n "checking for working automake""... $ac_c" 1>&6
756  echo "configure:751: checking for working automake" >&5  echo "configure:757: checking for working automake" >&5
757  # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
758  # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
759  # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
# Line 760  else Line 766  else
766  fi  fi
767    
768  echo $ac_n "checking for working autoheader""... $ac_c" 1>&6  echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
769  echo "configure:764: checking for working autoheader" >&5  echo "configure:770: checking for working autoheader" >&5
770  # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
771  # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
772  # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
# Line 773  else Line 779  else
779  fi  fi
780    
781  echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6  echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
782  echo "configure:777: checking for working makeinfo" >&5  echo "configure:783: checking for working makeinfo" >&5
783  # Run test in a subshell; some versions of sh will print an error if  # Run test in a subshell; some versions of sh will print an error if
784  # an executable is not found, even if stderr is redirected.  # an executable is not found, even if stderr is redirected.
785  # Redirect stdin to placate older versions of autoconf.  Sigh.  # Redirect stdin to placate older versions of autoconf.  Sigh.
# Line 790  fi Line 796  fi
796  # Extract the first word of "gcc", so it can be a program name with args.  # Extract the first word of "gcc", so it can be a program name with args.
797  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
798  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
799  echo "configure:794: checking for $ac_word" >&5  echo "configure:800: checking for $ac_word" >&5
800  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
801    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
802  else  else
# Line 820  if test -z "$CC"; then Line 826  if test -z "$CC"; then
826    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
827  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
828  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829  echo "configure:824: checking for $ac_word" >&5  echo "configure:830: checking for $ac_word" >&5
830  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
832  else  else
# Line 871  fi Line 877  fi
877        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
878  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
879  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
880  echo "configure:875: checking for $ac_word" >&5  echo "configure:881: checking for $ac_word" >&5
881  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
882    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
883  else  else
# Line 903  fi Line 909  fi
909  fi  fi
910    
911  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
912  echo "configure:907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
913    
914  ac_ext=c  ac_ext=c
915  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 914  cross_compiling=$ac_cv_prog_cc_cross Line 920  cross_compiling=$ac_cv_prog_cc_cross
920    
921  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
922    
923  #line 918 "configure"  #line 924 "configure"
924  #include "confdefs.h"  #include "confdefs.h"
925    
926  main(){return(0);}  main(){return(0);}
927  EOF  EOF
928  if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
929    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
930    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
931    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 945  if test $ac_cv_prog_cc_works = no; then Line 951  if test $ac_cv_prog_cc_works = no; then
951    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
952  fi  fi
953  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
954  echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:955: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
955  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
956  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
957    
958  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
959  echo "configure:954: checking whether we are using GNU C" >&5  echo "configure:960: checking whether we are using GNU C" >&5
960  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
961    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
962  else  else
# Line 959  else Line 965  else
965    yes;    yes;
966  #endif  #endif
967  EOF  EOF
968  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
969    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
970  else  else
971    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 978  ac_test_CFLAGS="${CFLAGS+set}" Line 984  ac_test_CFLAGS="${CFLAGS+set}"
984  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
985  CFLAGS=  CFLAGS=
986  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
987  echo "configure:982: checking whether ${CC-cc} accepts -g" >&5  echo "configure:988: checking whether ${CC-cc} accepts -g" >&5
988  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
989    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
990  else  else
# Line 1011  fi Line 1017  fi
1017    
1018    
1019  echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6  echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1020  echo "configure:1015: checking whether to enable maintainer-specific portions of Makefiles" >&5  echo "configure:1021: checking whether to enable maintainer-specific portions of Makefiles" >&5
1021      # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.      # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1022  if test "${enable_maintainer_mode+set}" = set; then  if test "${enable_maintainer_mode+set}" = set; then
1023    enableval="$enable_maintainer_mode"    enableval="$enable_maintainer_mode"
# Line 1034  fi Line 1040  fi
1040        
1041    
1042  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1043  echo "configure:1038: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo "configure:1044: checking whether ${MAKE-make} sets \${MAKE}" >&5
1044  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1045  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1046    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1137  else { echo "configure: error: can not r Line 1143  else { echo "configure: error: can not r
1143  fi  fi
1144    
1145  echo $ac_n "checking host system type""... $ac_c" 1>&6  echo $ac_n "checking host system type""... $ac_c" 1>&6
1146  echo "configure:1141: checking host system type" >&5  echo "configure:1147: checking host system type" >&5
1147    
1148  host_alias=$host  host_alias=$host
1149  case "$host_alias" in  case "$host_alias" in
# Line 1158  host_os=`echo $host | sed 's/^\([^-]*\)- Line 1164  host_os=`echo $host | sed 's/^\([^-]*\)-
1164  echo "$ac_t""$host" 1>&6  echo "$ac_t""$host" 1>&6
1165    
1166  echo $ac_n "checking build system type""... $ac_c" 1>&6  echo $ac_n "checking build system type""... $ac_c" 1>&6
1167  echo "configure:1162: checking build system type" >&5  echo "configure:1168: checking build system type" >&5
1168    
1169  build_alias=$build  build_alias=$build
1170  case "$build_alias" in  case "$build_alias" in
# Line 1178  echo "$ac_t""$build" 1>&6 Line 1184  echo "$ac_t""$build" 1>&6
1184  # Extract the first word of "ranlib", so it can be a program name with args.  # Extract the first word of "ranlib", so it can be a program name with args.
1185  set dummy ranlib; ac_word=$2  set dummy ranlib; ac_word=$2
1186  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1187  echo "configure:1182: checking for $ac_word" >&5  echo "configure:1188: checking for $ac_word" >&5
1188  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1189    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1190  else  else
# Line 1217  ac_prog=ld Line 1223  ac_prog=ld
1223  if test "$ac_cv_prog_gcc" = yes; then  if test "$ac_cv_prog_gcc" = yes; then
1224    # Check if gcc -print-prog-name=ld gives a path.    # Check if gcc -print-prog-name=ld gives a path.
1225    echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6    echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1226  echo "configure:1221: checking for ld used by GCC" >&5  echo "configure:1227: checking for ld used by GCC" >&5
1227    ac_prog=`($CC -print-prog-name=ld) 2>&5`    ac_prog=`($CC -print-prog-name=ld) 2>&5`
1228    case "$ac_prog" in    case "$ac_prog" in
1229      # Accept absolute paths.      # Accept absolute paths.
# Line 1241  echo "configure:1221: checking for ld us Line 1247  echo "configure:1221: checking for ld us
1247    esac    esac
1248  elif test "$with_gnu_ld" = yes; then  elif test "$with_gnu_ld" = yes; then
1249    echo $ac_n "checking for GNU ld""... $ac_c" 1>&6    echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1250  echo "configure:1245: checking for GNU ld" >&5  echo "configure:1251: checking for GNU ld" >&5
1251  else  else
1252    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1253  echo "configure:1248: checking for non-GNU ld" >&5  echo "configure:1254: checking for non-GNU ld" >&5
1254  fi  fi
1255  if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1256    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1279  else Line 1285  else
1285  fi  fi
1286  test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }  test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1287  echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6  echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1288  echo "configure:1283: checking if the linker ($LD) is GNU ld" >&5  echo "configure:1289: checking if the linker ($LD) is GNU ld" >&5
1289  if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1290    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1291  else  else
# Line 1295  echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 Line 1301  echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1301    
1302    
1303  echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6  echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1304  echo "configure:1299: checking for BSD-compatible nm" >&5  echo "configure:1305: checking for BSD-compatible nm" >&5
1305  if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1306    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1307  else  else
# Line 1331  NM="$ac_cv_path_NM" Line 1337  NM="$ac_cv_path_NM"
1337  echo "$ac_t""$NM" 1>&6  echo "$ac_t""$NM" 1>&6
1338    
1339  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1340  echo "configure:1335: checking whether ln -s works" >&5  echo "configure:1341: checking whether ln -s works" >&5
1341  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1342    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1343  else  else
# Line 1380  test x"$silent" = xyes && libtool_flags= Line 1386  test x"$silent" = xyes && libtool_flags=
1386  case "$lt_target" in  case "$lt_target" in
1387  *-*-irix6*)  *-*-irix6*)
1388    # Find out which ABI we are using.    # Find out which ABI we are using.
1389    echo '#line 1384 "configure"' > conftest.$ac_ext    echo '#line 1390 "configure"' > conftest.$ac_ext
1390    if { (eval echo configure:1385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then    if { (eval echo configure:1391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1391      case "`/usr/bin/file conftest.o`" in      case "`/usr/bin/file conftest.o`" in
1392      *32-bit*)      *32-bit*)
1393        LD="${LD-ld} -32"        LD="${LD-ld} -32"
# Line 1402  case "$lt_target" in Line 1408  case "$lt_target" in
1408    SAVE_CFLAGS="$CFLAGS"    SAVE_CFLAGS="$CFLAGS"
1409    CFLAGS="$CFLAGS -belf"    CFLAGS="$CFLAGS -belf"
1410    echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6    echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1411  echo "configure:1406: checking whether the C compiler needs -belf" >&5  echo "configure:1412: checking whether the C compiler needs -belf" >&5
1412  if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then  if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1413    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1414  else  else
1415    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1416  #line 1411 "configure"  #line 1417 "configure"
1417  #include "confdefs.h"  #include "confdefs.h"
1418    
1419  int main() {  int main() {
1420    
1421  ; return 0; }  ; return 0; }
1422  EOF  EOF
1423  if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1424    rm -rf conftest*    rm -rf conftest*
1425    lt_cv_cc_needs_belf=yes    lt_cv_cc_needs_belf=yes
1426  else  else
# Line 1516  LIBTOOL='$(SHELL) $(top_builddir)/libtoo Line 1522  LIBTOOL='$(SHELL) $(top_builddir)/libtoo
1522  exec 5>>./config.log  exec 5>>./config.log
1523    
1524    
1525    FREETYPE_REQUIRED=2.0.1
1526    FREETYPE_LIBRARY_REQUIRED=6.1.0
1527    # Check whether --with-freetype2-prefix or --without-freetype2-prefix was given.
1528    if test "${with_freetype2_prefix+set}" = set; then
1529      withval="$with_freetype2_prefix"
1530      freetype2_prefix="$withval"
1531    else
1532      freetype2_prefix=""
1533    fi
1534    
1535    # Check whether --with-freetype2-exec-prefix or --without-freetype2-exec-prefix was given.
1536    if test "${with_freetype2_exec_prefix+set}" = set; then
1537      withval="$with_freetype2_exec_prefix"
1538      freetype2_exec_prefix="$withval"
1539    else
1540      freetype2_exec_prefix=""
1541    fi
1542    
1543    # Check whether --enable-freetype2test or --disable-freetype2test was given.
1544    if test "${enable_freetype2test+set}" = set; then
1545      enableval="$enable_freetype2test"
1546      :
1547    else
1548      enable_freetype2test=yes
1549    fi
1550    
1551    
1552      if test x$freetype2_exec_prefix != x ; then
1553         freetype2_args="$freetype2_args --exec-prefix=$freetype2_exec_prefix"
1554         if test x${FREETYPE2_CONFIG+set} != xset ; then
1555            FREETYPE2_CONFIG=$freetype2_exec_prefix/bin/freetype-config
1556         fi
1557      fi
1558      if test x$freetype2_prefix != x ; then
1559         freetype2_args="$freetype2_args --prefix=$freetype2_prefix"
1560         if test x${FREETYPE2_CONFIG+set} != xset ; then
1561            FREETYPE2_CONFIG=$freetype2_prefix/bin/freetype-config
1562         fi
1563      fi
1564    
1565      # Extract the first word of "freetype-config", so it can be a program name with args.
1566    set dummy freetype-config; ac_word=$2
1567    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1568    echo "configure:1569: checking for $ac_word" >&5
1569    if eval "test \"`echo '$''{'ac_cv_path_FREETYPE2_CONFIG'+set}'`\" = set"; then
1570      echo $ac_n "(cached) $ac_c" 1>&6
1571    else
1572      case "$FREETYPE2_CONFIG" in
1573      /*)
1574      ac_cv_path_FREETYPE2_CONFIG="$FREETYPE2_CONFIG" # Let the user override the test with a path.
1575      ;;
1576      ?:/*)                  
1577      ac_cv_path_FREETYPE2_CONFIG="$FREETYPE2_CONFIG" # Let the user override the test with a dos path.
1578      ;;
1579      *)
1580      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1581      ac_dummy="$PATH"
1582      for ac_dir in $ac_dummy; do
1583        test -z "$ac_dir" && ac_dir=.
1584        if test -f $ac_dir/$ac_word; then
1585          ac_cv_path_FREETYPE2_CONFIG="$ac_dir/$ac_word"
1586          break
1587        fi
1588      done
1589      IFS="$ac_save_ifs"
1590      test -z "$ac_cv_path_FREETYPE2_CONFIG" && ac_cv_path_FREETYPE2_CONFIG="no"
1591      ;;
1592    esac
1593    fi
1594    FREETYPE2_CONFIG="$ac_cv_path_FREETYPE2_CONFIG"
1595    if test -n "$FREETYPE2_CONFIG"; then
1596      echo "$ac_t""$FREETYPE2_CONFIG" 1>&6
1597    else
1598      echo "$ac_t""no" 1>&6
1599    fi
1600    
1601      min_freetype2_version=$FREETYPE_LIBRARY_REQUIRED
1602      echo $ac_n "checking for FREETYPE2 - version >= $min_freetype2_version""... $ac_c" 1>&6
1603    echo "configure:1604: checking for FREETYPE2 - version >= $min_freetype2_version" >&5
1604      no_freetype2=""
1605      if test "$FREETYPE2_CONFIG" = "no" ; then
1606        no_freetype2=yes
1607      else
1608        FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG $freetype2conf_args --cflags`
1609        FREETYPE2_LIBS=`$FREETYPE2_CONFIG $freetype2conf_args --libs`
1610    
1611        freetype2_major_version=`$FREETYPE2_CONFIG $freetype2_args --version | \
1612            sed 's/\([0-9]*\)[:.]\([0-9]*\)[:.]\([0-9]*\)/\1/'`
1613        freetype2_minor_version=`$FREETYPE2_CONFIG $freetype2_args --version | \
1614            sed 's/\([0-9]*\)[:.]\([0-9]*\)[:.]\([0-9]*\)/\2/'`
1615        freetype2_micro_version=`$FREETYPE2_CONFIG $freetype2_args --version | \
1616            sed 's/\([0-9]*\)[:.]\([0-9]*\)[:.]\([0-9]*\)/\3/'`
1617    
1618        if test "x$enable_freetype2test" = "xyes" ; then
1619          ac_save_CFLAGS="$CFLAGS"
1620          ac_save_LIBS="$LIBS"
1621          CFLAGS="$CFLAGS $FREETYPE2_CFLAGS"
1622          LIBS="$LIBS $FREETYPE2_LIBS"
1623          rm -f conf.freetype2test
1624          if test "$cross_compiling" = yes; then
1625      echo $ac_n "cross compiling; assumed OK... $ac_c"
1626    else
1627      cat > conftest.$ac_ext <<EOF
1628    #line 1629 "configure"
1629    #include "confdefs.h"
1630    
1631    #include <stdio.h>
1632    #include <stdlib.h>
1633    #include <string.h>
1634    #include <freetype/freetype.h>
1635    
1636    char*
1637    my_strdup (char *str)
1638    {
1639      char *new_str;
1640      
1641      if (str)
1642        {
1643          new_str = malloc ((strlen (str) + 1) * sizeof(char));
1644          strcpy (new_str, str);
1645        }
1646      else
1647        new_str = NULL;
1648      
1649      return new_str;
1650    }
1651    
1652    int main ()
1653    {
1654      int major, minor, micro;
1655      char *tmp_version;
1656    
1657      system ("touch conf.freetype2test");
1658    
1659      /* HP/UX 9 (%@#!) writes to sscanf strings */
1660      tmp_version = my_strdup("$min_freetype2_version");
1661      if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1662         printf("%s, bad version string\n", "$min_freetype2_version");
1663         exit(1);
1664       }
1665    
1666       if (($freetype2_major_version > major) ||
1667          (($freetype2_major_version == major) && ($freetype2_minor_version > minor)) ||
1668          (($freetype2_major_version == major) && ($freetype2_minor_version == minor) && ($freetype2_micro_version >= micro)))
1669        {
1670          return 0;
1671        }
1672      else
1673        {
1674          printf("\n");
1675          printf("*** \n");
1676          printf("*** 'freetype-config --version' returned %d.%d.%d, but the minimum version\n", $freetype2_major_version, $freetype2_minor_version, $freetype2_micro_version);
1677          printf("*** of FREETYPE2 required is %d.%d.%d. If freetype-config is correct, then it is\n", major, minor, micro);
1678          printf("*** best to upgrade to the required version.\n");
1679          printf("*** If freetype-config was wrong, set the environment variable FREETYPE2_CONFIG\n");
1680          printf("*** to point to the correct copy of freetype-config, and remove the file\n");
1681          printf("*** config.cache before re-running configure\n");
1682          printf("*** \n");
1683    
1684          return 1;
1685        }
1686    }
1687    
1688    
1689    EOF
1690    if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1691    then
1692      :
1693    else
1694      echo "configure: failed program was:" >&5
1695      cat conftest.$ac_ext >&5
1696      rm -fr conftest*
1697      no_freetype2=yes
1698    fi
1699    rm -fr conftest*
1700    fi
1701    
1702           CFLAGS="$ac_save_CFLAGS"
1703           LIBS="$ac_save_LIBS"
1704         fi
1705      fi
1706      if test "x$no_freetype2" = x ; then
1707         echo "$ac_t""yes" 1>&6
1708         :    
1709      else
1710         echo "$ac_t""no" 1>&6
1711         if test "$FREETYPE2_CONFIG" = "no" ; then
1712           echo "*** The freetype-config script installed by FREETYPE2 could not be found"
1713           echo "*** If FREETYPE2 was installed in PREFIX, make sure PREFIX/bin is in"
1714           echo "*** your path, or set the FREETYPE2_CONFIG environment variable to the"
1715           echo "*** full path to freetype-config."
1716         else
1717           if test -f conf.freetype2test ; then
1718            :
1719           else
1720              echo "*** Could not run FREETYPE2 test program, checking why..."
1721              CFLAGS="$CFLAGS $FREETYPE2_CFLAGS"
1722              LIBS="$LIBS $FREETYPE2_LIBS"
1723              cat > conftest.$ac_ext <<EOF
1724    #line 1725 "configure"
1725    #include "confdefs.h"
1726    
1727    #include <stdio.h>
1728    #include <freetype/freetype.h>
1729    
1730    int main() {
1731     return 0;
1732    ; return 0; }
1733    EOF
1734    if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1735      rm -rf conftest*
1736       echo "*** The test program compiled, but did not run. This usually means"
1737              echo "*** that the run-time linker is not finding FREETYPE2 or finding the wrong"
1738              echo "*** version of FREETYPE2. If it is not finding FREETYPE2, you'll need to set your"
1739              echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1740              echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1741              echo "*** is required on your system"
1742              echo "***"
1743              echo "*** If you have an old version installed, it is best to remove it, although"
1744              echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1745    else
1746      echo "configure: failed program was:" >&5
1747      cat conftest.$ac_ext >&5
1748      rm -rf conftest*
1749       echo "*** The test program failed to compile or link. See the file config.log for the"
1750              echo "*** exact error that occured. This usually means FREETYPE2 was incorrectly installed"
1751              echo "*** or that you have moved FREETYPE2 since it was installed. In the latter case, you"
1752              echo "*** may want to edit the freetype-config script: $FREETYPE2_CONFIG"
1753    fi
1754    rm -f conftest*
1755              CFLAGS="$ac_save_CFLAGS"
1756              LIBS="$ac_save_LIBS"
1757           fi
1758         fi
1759         FREETYPE2_CFLAGS=""
1760         FREETYPE2_LIBS=""
1761         { echo "configure: error:
1762    *** FreeType2 $FREETYPE_REQUIRED or better is required.
1763    *** You can obtain a version from ftp://ftp.freetype.org" 1>&2; exit 1; }
1764      fi
1765      
1766      
1767      rm -f conf.freetype2test
1768    
1769    
1770    
1771    
1772  subdirs="libart"  subdirs="libart"
1773    
1774  trap '' 1 2 15  trap '' 1 2 15
# Line 1691  s%@build_os@%$build_os%g Line 1944  s%@build_os@%$build_os%g
1944  s%@RANLIB@%$RANLIB%g  s%@RANLIB@%$RANLIB%g
1945  s%@LN_S@%$LN_S%g  s%@LN_S@%$LN_S%g
1946  s%@LIBTOOL@%$LIBTOOL%g  s%@LIBTOOL@%$LIBTOOL%g
1947    s%@FREETYPE2_CONFIG@%$FREETYPE2_CONFIG%g
1948    s%@FREETYPE2_CFLAGS@%$FREETYPE2_CFLAGS%g
1949    s%@FREETYPE2_LIBS@%$FREETYPE2_LIBS%g
1950  s%@subdirs@%$subdirs%g  s%@subdirs@%$subdirs%g
1951    
1952  CEOF  CEOF

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26