📄 configure
字号:
'extern "C" void exit (int);' \ 'void exit (int);'do cat >conftest.$ac_ext <<_ACEOF#line 1713 "configure"#include "confdefs.h"#include <stdlib.h>$ac_declarationintmain (){exit (42); ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:1726: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1729: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:1732: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1735: \$? = $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 1745 "configure"#include "confdefs.h"$ac_declarationintmain (){exit (42); ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:1757: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1760: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:1763: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1766: \$? = $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_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_gnuecho "$as_me:1798: checking how to run the C preprocessor" >&5echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then CPP=fiif test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=falsefor ac_c_preproc_warn_flag in '' yesdo # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF#line 1819 "configure"#include "confdefs.h"#include <assert.h> Syntax error_ACEOFif { (eval echo "$as_me:1824: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:1830: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; then :else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 # Broken: fails on valid input.continuefirm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF#line 1853 "configure"#include "confdefs.h"#include <ac_nonexistent.h>_ACEOFif { (eval echo "$as_me:1857: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:1863: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; then # Broken: success on invalid input.continueelse echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 # Passes both tests.ac_preproc_ok=:breakfirm -f conftest.err conftest.$ac_extdone# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.rm -f conftest.err conftest.$ac_extif $ac_preproc_ok; then breakfi done ac_cv_prog_CPP=$CPPfi CPP=$ac_cv_prog_CPPelse ac_cv_prog_CPP=$CPPfiecho "$as_me:1900: result: $CPP" >&5echo "${ECHO_T}$CPP" >&6ac_preproc_ok=falsefor ac_c_preproc_warn_flag in '' yesdo # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF#line 1910 "configure"#include "confdefs.h"#include <assert.h> Syntax error_ACEOFif { (eval echo "$as_me:1915: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:1921: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; then :else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 # Broken: fails on valid input.continuefirm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF#line 1944 "configure"#include "confdefs.h"#include <ac_nonexistent.h>_ACEOFif { (eval echo "$as_me:1948: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:1954: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; then # Broken: success on invalid input.continueelse echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 # Passes both tests.ac_preproc_ok=:breakfirm -f conftest.err conftest.$ac_extdone# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.rm -f conftest.err conftest.$ac_extif $ac_preproc_ok; then :else { { echo "$as_me:1982: error: C preprocessor \"$CPP\" fails sanity check" >&5echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} { (exit 1); exit 1; }; }fiac_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_gnuCFLAGS="$CFLAGS -I\$(srcdir)"echo "$as_me:1995: checking for getaddrinfo/getnameinfo library" >&5echo $ECHO_N "checking for getaddrinfo/getnameinfo library... $ECHO_C" >&6cat >conftest.$ac_ext <<_ACEOF#line 1999 "configure"#include "confdefs.h"#include <netinet/in.h>#ifdef __KAME__ yes#endif_ACEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "yes" >/dev/null 2>&1; then result=kamefirm -f conftest*echo "$as_me:2012: result: $result" >&5echo "${ECHO_T}$result" >&6case $result inkame) cat >>confdefs.h <<\EOF#define INET6 1EOF o_LIBS="$LIBS" LIBS="$LIBS -L/usr/local/v6/lib"echo "$as_me:2022: checking for getaddrinfo in -linet6" >&5echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else ac_check_lib_save_LIBS=$LIBSLIBS="-linet6 $LIBS"cat >conftest.$ac_ext <<_ACEOF#line 2030 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. */#ifdef __cplusplusextern "C"#endif/* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char getaddrinfo ();intmain (){getaddrinfo (); ; return 0;}_ACEOFrm -f conftest.$ac_objext conftest$ac_exeextif { (eval echo "$as_me:2049: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2052: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:2055: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:2058: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_inet6_getaddrinfo=yeselse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5ac_cv_lib_inet6_getaddrinfo=nofirm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_extLIBS=$ac_check_lib_save_LIBSfiecho "$as_me:2069: result: $ac_cv_lib_inet6_getaddrinfo" >&5echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6if test $ac_cv_lib_inet6_getaddrinfo = yes; then cat >>confdefs.h <<EOF#define HAVE_LIBINET6 1EOF LIBS="-linet6 $LIBS"else LIBS="$o_LIBS"fi ;;*) ;;esacfor ac_func in getaddrinfodoas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`echo "$as_me:2089: checking for $ac_func" >&5echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 2095 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. */#ifdef __cplusplusextern "C"#endif/* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char $ac_func ();char (*f) ();intmain (){/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#elsef = $ac_func;#endif ; return 0;}_ACEOFrm -f conftest.$ac_objext conftest$ac_exeextif { (eval echo "$as_me:2126: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:2129: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:2132: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:2135: \$? = $ac_st
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -