📄 configure
字号:
if { (eval echo "$as_me:1673: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:1676: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is# not robust to junk in `.', hence go to wildcards (a.*) only as a last# resort.for ac_file in `ls a.exe conftest.exe 2>/dev/null; ls a.out conftest 2>/dev/null; ls a.* conftest.* 2>/dev/null`; do case $ac_file in *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; a.out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool --akim. export ac_cv_exeext break;; * ) break;; esacdoneelse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5{ { echo "$as_me:1699: error: C compiler cannot create executables" >&5echo "$as_me: error: C compiler cannot create executables" >&2;} { (exit 77); exit 77; }; }fiac_exeext=$ac_cv_exeextecho "$as_me:1705: result: $ac_file" >&5echo "${ECHO_T}$ac_file" >&6# Check the compiler produces executables we can run. If not, either# the compiler is broken, or we cross compile.echo "$as_me:1710: checking whether the C compiler works" >&5echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6# FIXME: These cross compiler hacks should be removed for Autoconf 3.0# If not cross compiling, check that we can run a simple program.if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (eval echo "$as_me:1716: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1719: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:1726: error: cannot run C compiled programs.If you meant to cross compile, use \`--host'." >&5echo "$as_me: error: cannot run C compiled programs.If you meant to cross compile, use \`--host'." >&2;} { (exit 1); exit 1; }; } fi fifiecho "$as_me:1734: result: yes" >&5echo "${ECHO_T}yes" >&6rm -f a.out a.exe conftest$ac_cv_exeextac_clean_files=$ac_clean_files_save# Check the compiler produces executables we can run. If not, either# the compiler is broken, or we cross compile.echo "$as_me:1741: checking whether we are cross compiling" >&5echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6echo "$as_me:1743: result: $cross_compiling" >&5echo "${ECHO_T}$cross_compiling" >&6echo "$as_me:1746: checking for executable suffix" >&5echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6if { (eval echo "$as_me:1748: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:1751: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable)# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will# work properly (i.e., refer to `conftest.exe'), while it won't with# `rm'.for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; * ) break;; esacdoneelse { { echo "$as_me:1767: error: cannot compute EXEEXT: cannot compile and link" >&5echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} { (exit 1); exit 1; }; }firm -f conftest$ac_cv_exeextecho "$as_me:1773: result: $ac_cv_exeext" >&5echo "${ECHO_T}$ac_cv_exeext" >&6rm -f conftest.$ac_extEXEEXT=$ac_cv_exeextac_exeext=$EXEEXTecho "$as_me:1779: checking for object suffix" >&5echo $ECHO_N "checking for object suffix... $ECHO_C" >&6if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 1785 "configure"#include "confdefs.h"intmain (){ ; return 0;}_ACEOFrm -f conftest.o conftest.objif { (eval echo "$as_me:1797: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1800: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esacdoneelse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5{ { echo "$as_me:1812: error: cannot compute OBJEXT: cannot compile" >&5echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} { (exit 1); exit 1; }; }firm -f conftest.$ac_cv_objext conftest.$ac_extfiecho "$as_me:1819: result: $ac_cv_objext" >&5echo "${ECHO_T}$ac_cv_objext" >&6OBJEXT=$ac_cv_objextac_objext=$OBJEXTecho "$as_me:1823: checking whether we are using the GNU C compiler" >&5echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 1829 "configure"#include "confdefs.h"intmain (){#ifndef __GNUC__ choke me#endif ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:1844: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1847: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:1850: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1853: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yeselse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5ac_compiler_gnu=nofirm -f conftest.$ac_objext conftest.$ac_extac_cv_c_compiler_gnu=$ac_compiler_gnufiecho "$as_me:1865: result: $ac_cv_c_compiler_gnu" >&5echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6GCC=`test $ac_compiler_gnu = yes && echo yes`ac_test_CFLAGS=${CFLAGS+set}ac_save_CFLAGS=$CFLAGSCFLAGS="-g"echo "$as_me:1871: checking whether $CC accepts -g" >&5echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 1877 "configure"#include "confdefs.h"intmain (){ ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:1889: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1892: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:1895: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1898: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yeselse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5ac_cv_prog_cc_g=nofirm -f conftest.$ac_objext conftest.$ac_extfiecho "$as_me:1908: result: $ac_cv_prog_cc_g" >&5echo "${ECHO_T}$ac_cv_prog_cc_g" >&6if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGSelif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fielse if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fifi# Some people use a C++ compiler to compile C. Since we use `exit',# in C++ we need to declare it. In case someone uses the same compiler# for both compiling C and C++ we need to have the C++ compiler decide# the declaration of exit, since it's the most demanding environment.cat >conftest.$ac_ext <<_ACEOF#ifndef __cplusplus choke me#endif_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:1935: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1938: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:1941: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1944: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ ''\ '#include <stdlib.h>' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);'do cat >conftest.$ac_ext <<_ACEOF#line 1956 "configure"#include "confdefs.h"#include <stdlib.h>$ac_declarationintmain (){exit (42); ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:1969: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1972: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:1975: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1978: \$? = $ac_status" >&5 (exit $ac_status); }; }; then :else echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5continuefirm -f conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF#line 1988 "configure"#include "confdefs.h"$ac_declarationintmain (){exit (42); ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:2000: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:2003: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:2006: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:2009: \$? = $ac_status" >&5 (exit $ac_status); }; }; then breakelse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5firm -f conftest.$ac_objext conftest.$ac_extdonerm -f conftest*if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.hfielse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5firm -f conftest.$ac_objext conftest.$ac_extac_ext=cac_cpp='$CPP $CPPFLAGS'ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'ac_compiler_gnu=$ac_cv_c_compiler_gnuac_config_commands="$ac_config_commands default-1"am_make=${MAKE-make}cat > confinc << 'END'doit: @echo doneEND# If we don't find an include directive, just comment out the code.echo "$as_me:2044: checking for style of include used by $am_make" >&5echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6am__include='#'am__quote=_am_result=none# First try GNU make style include.echo "include confinc" > confmf# We grep out `Entering directory' and `Leaving directory'# messages which can occur if `w' ends up in MAKEFLAGS.# In particular we don't look at `^make:' because GNU make might# be invoked under some other name (usually "gmake"), in which# case it prints its new name instead of `make'.if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNUfi# Now try BSD make style include.if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote='"' _am_result=BSD fifiecho "$as_me:2071: result: $_am_result" >&5echo "${ECHO_T}$_am_result" >&6rm -f confinc confmfdepcc="$CC" am_compiler_list=echo "$as_me:2077: checking dependency style of $depcc" >&5echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file nam
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -