📄 configure
字号:
IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedoneIFS=$as_save_IFSfifiCC=$ac_cv_prog_CCif test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5$as_echo "$CC" >&6; }else { $as_echo "$as_me:$LINENO: result: no" >&5$as_echo "no" >&6; }fifiif test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args.set dummy gcc; ac_word=$2{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5$as_echo_n "checking for $ac_word... " >&6; }if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.elseas_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedoneIFS=$as_save_IFSfifiac_ct_CC=$ac_cv_prog_ac_ct_CCif test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5$as_echo "$ac_ct_CC" >&6; }else { $as_echo "$as_me:$LINENO: result: no" >&5$as_echo "no" >&6; }fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned inyes:){ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-toolswhose name does not start with the host triplet. If you think thisconfiguration is useful to you, please write to autoconf@gnu.org." >&5$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-toolswhose name does not start with the host triplet. If you think thisconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}ac_tool_warned=yes ;;esac CC=$ac_ct_CC fielse CC="$ac_cv_prog_CC"fiif test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.set dummy ${ac_tool_prefix}cc; ac_word=$2{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5$as_echo_n "checking for $ac_word... " >&6; }if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test.elseas_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedoneIFS=$as_save_IFSfifiCC=$ac_cv_prog_CCif test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5$as_echo "$CC" >&6; }else { $as_echo "$as_me:$LINENO: result: no" >&5$as_echo "no" >&6; }fi fifiif test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args.set dummy cc; ac_word=$2{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5$as_echo_n "checking for $ac_word... " >&6; }if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test.else ac_prog_rejected=noas_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedoneIFS=$as_save_IFSif test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fifififiCC=$ac_cv_prog_CCif test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5$as_echo "$CC" >&6; }else { $as_echo "$as_me:$LINENO: result: no" >&5$as_echo "no" >&6; }fifiif test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.set dummy $ac_tool_prefix$ac_prog; ac_word=$2{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5$as_echo_n "checking for $ac_word... " >&6; }if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test.elseas_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedoneIFS=$as_save_IFSfifiCC=$ac_cv_prog_CCif test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5$as_echo "$CC" >&6; }else { $as_echo "$as_me:$LINENO: result: no" >&5$as_echo "no" >&6; }fi test -n "$CC" && break donefiif test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exedo # Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5$as_echo_n "checking for $ac_word... " >&6; }if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.elseas_save_IFS=$IFS; IFS=$PATH_SEPARATORfor as_dir in $PATHdo IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fidonedoneIFS=$as_save_IFSfifiac_ct_CC=$ac_cv_prog_ac_ct_CCif test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5$as_echo "$ac_ct_CC" >&6; }else { $as_echo "$as_me:$LINENO: result: no" >&5$as_echo "no" >&6; }fi test -n "$ac_ct_CC" && breakdone if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned inyes:){ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-toolswhose name does not start with the host triplet. If you think thisconfiguration is useful to you, please write to autoconf@gnu.org." >&5$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-toolswhose name does not start with the host triplet. If you think thisconfiguration is useful to you, please write to autoconf@gnu.org." >&2;}ac_tool_warned=yes ;;esac CC=$ac_ct_CC fififitest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATHSee \`config.log' for more details." >&5$as_echo "$as_me: error: no acceptable C compiler found in \$PATHSee \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }# Provide some information about the compiler.$as_echo "$as_me:$LINENO: checking for C compiler version" >&5set X $ac_compileac_compiler=$2{ (ac_try="$ac_compiler --version >&5"case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;;esaceval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""$as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }{ (ac_try="$ac_compiler -v >&5"case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;;esaceval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""$as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }{ (ac_try="$ac_compiler -V >&5"case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;;esaceval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""$as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }cat >conftest.$ac_ext <<_ACEOF/* confdefs.h. */_ACEOFcat confdefs.h >>conftest.$ac_extcat >>conftest.$ac_ext <<_ACEOF/* end confdefs.h. */intmain (){ ; return 0;}_ACEOFac_clean_files_save=$ac_clean_filesac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"# Try to create an executable without -o first, disregard a.out.# It will help us diagnose broken compilers, and finding out an intuition# of exeext.{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5$as_echo_n "checking for C compiler default output file name... " >&6; }ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`# The possible output files:ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"ac_rmfiles=for ac_file in $ac_filesdo case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esacdonerm -f $ac_rmfilesif { (ac_try="$ac_link_default"case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;;esaceval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""$as_echo "$ac_try_echo") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'# in a Makefile. We should not override ac_cv_exeext if it was cached,# so that the user can short-circuit this test for compilers unknown to# Autoconf.for ac_file in $ac_files ''do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esacdonetest "$ac_cv_exeext" = no && ac_cv_exeext=else ac_file=''fi{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5$as_echo "$ac_file" >&6; }if test -z "$ac_file"; then $as_echo "$as_me: failed program was:" >&5sed 's/^/| /' conftest.$ac_ext >&5{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executablesSee \`config.log' for more details." >&5$as_echo "$as_me: error: C compiler cannot create executablesSee \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }fiac_exeext=$ac_cv_exeext# Check that the compiler produces executables we can run. If not, either# the compiler is broken, or we cross compile.{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5$as_echo_n "checking whether the C compiler works... " >&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' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;;esaceval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""$as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.If you meant to cross compile, use \`--host'.See \`config.log' for more details." >&5$as_echo "$as_me: error: cannot run C compiled programs.If you meant to cross compile, use \`--host'.See \`config.log' for mor
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -