📄 configure
字号:
echo "$as_me:1761: 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 1771 "configure"#include "confdefs.h"#include <assert.h> Syntax error_ACEOFif { (eval echo "$as_me:1776: \"$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:1782: \$? = $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 1805 "configure"#include "confdefs.h"#include <ac_nonexistent.h>_ACEOFif { (eval echo "$as_me:1809: \"$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:1815: \$? = $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:1843: 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_gnuecho "$as_me:1854: checking for ANSI C header files" >&5echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 1860 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>_ACEOFif { (eval echo "$as_me:1868: \"$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:1874: \$? = $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 ac_cv_header_stdc=yeselse echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_header_stdc=nofirm -f conftest.err conftest.$ac_extif test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF#line 1896 "configure"#include "confdefs.h"#include <string.h>_ACEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then :else ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF#line 1914 "configure"#include "confdefs.h"#include <stdlib.h>_ACEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then :else ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then :else cat >conftest.$ac_ext <<_ACEOF#line 1935 "configure"#include "confdefs.h"#include <ctype.h>#if ((' ' & 0x0FF) == 0x020)# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#else# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z'))# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))#endif#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))intmain (){ int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0);}_ACEOFrm -f conftest$ac_exeextif { (eval echo "$as_me:1961: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:1964: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:1966: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1969: \$? = $ac_status" >&5 (exit $ac_status); }; }; then :else echo "$as_me: program exited with status $ac_status" >&5echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5ac_cv_header_stdc=nofirm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_extfififiecho "$as_me:1982: result: $ac_cv_header_stdc" >&5echo "${ECHO_T}$ac_cv_header_stdc" >&6if test $ac_cv_header_stdc = yes; thencat >>confdefs.h <<\EOF#define STDC_HEADERS 1EOFfi# On IRIX 5.3, sys/types and inttypes.h are conflicting.for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.hdoas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`echo "$as_me:1998: checking for $ac_header" >&5echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 2004 "configure"#include "confdefs.h"$ac_includes_default#include <$ac_header>_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:2010: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:2013: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:2016: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:2019: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes"else echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5eval "$as_ac_Header=no"firm -f conftest.$ac_objext conftest.$ac_extfiecho "$as_me:2029: result: `eval echo '${'$as_ac_Header'}'`" >&5echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<EOF#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1EOFfidoneecho "$as_me:2039: checking for $CC option to accept ANSI C" >&5echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else ac_cv_prog_cc_stdc=noac_save_CC=$CCcat >conftest.$ac_ext <<_ACEOF#line 2047 "configure"#include "confdefs.h"#include <stdarg.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */struct buf { int x; };FILE * (*rcsopen) (struct buf *, struct stat *, int);static char *e (p, i) char **p; int i;{ return p[i];}static char *f (char * (*g) (char **, int), char **p, ...){ char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s;}int test (int i, double x);struct s1 {int (*f) (int a);};struct s2 {int (*f) (double a);};int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);int argc;char **argv;intmain (){return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0;}_ACEOF# Don't try gcc -ansi; that turns off useful extensions and# breaks some systems' header files.# AIX -qlanglvl=ansi# Ultrix and OSF/1 -std1# HP-UX 10.20 and later -Ae# HP-UX older versions -Aa -D_HPUX_SOURCE# SVR4 -Xc -D__EXTENSIONS__for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objextif { (eval echo "$as_me:2096: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:2099: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:2102: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:2105: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_argbreakelse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5firm -f conftest.$ac_objextdonerm -f conftest.$ac_ext conftest.$ac_objextCC=$ac_save_CCficase "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:2122: result: none needed" >&5echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:2125: result: $ac_cv_prog_cc_stdc" >&5echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;;esac echo "$as_me:2130: checking for ssize_t" >&5echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6if test "${ac_cv_type_ssize_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 2136 "configure"#include "confdefs.h"$ac_includes_defaultintmain (){if ((ssize_t *) 0) return 0;if (sizeof (ssize_t)) return 0; ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:2151: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:2154: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:2157: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:2160: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_ssize_t=yeselse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5ac_cv_type_ssize_t=nofirm -f conftest.$ac_objext conftest.$ac_extfiecho "$as_me:2170: result: $ac_cv_type_ssize_t" >&5echo "${ECHO_T}$ac_cv_type_ssize_t" >&6if test $ac_cv_type_ssize_t = yes; then :elsecat >>confdefs.h <<EOF#define ssize_t intEOFfi echo "$as_me:2182: checking for sun_len in sys/un.h" >&5echo $ECHO_N "checking for sun_len in sys/un.h... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF#line 2185 "configure"#include "confdefs.h"#include <sys/un.h>_ACEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "sun_len" >/dev/null 2>&1; then echo "$as_me:2192: result: yes" >&5echo "${ECHO_T}yes" >&6cat >>confdefs.h <<\EOF#define HAVE_SOCKADDR_UN_SUN_LEN 1EOFelse echo "$as_me:2200: result: no
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -