📄 configure
字号:
fiecho "$ac_t""$pac_cv_prog_make_found_clock_skew" 1>&6if test "$pac_cv_prog_make_found_clock_skew" = "yes" ; then echo "configure: warning: Clock skew found by make. The configure and build may fail.Consider building in a local instead of NFS filesystem." 1>&2fiecho $ac_n "checking whether make echos directory changes""... $ac_c" 1>&6echo "configure:1020: checking whether make echos directory changes" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_echos_dir'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else /bin/rm -f conftestcat > conftest <<.SHELL=/bin/shALL: @(dir="`pwd`" ; cd .. ; \$(MAKE) -f "\$\$dir/conftest" SUB)SUB: @echo "success".str="`$MAKE -f conftest 2>&1`"if test "$str" != "success" ; then str="`$MAKE --no-print-directory -f conftest 2>&1`" if test "$str" = "success" ; then pac_cv_prog_make_echos_dir="yes using --no-print-directory" else pac_cv_prog_make_echos_dir="no" echo "Unexpected output from make with program" >>config.log cat conftest >>config.log echo "str" >> config.log fielse pac_cv_prog_make_echos_dir="no"fi/bin/rm -f confteststr=""fiecho "$ac_t""$pac_cv_prog_make_echos_dir" 1>&6if test "$pac_cv_prog_make_echos_dir" = "yes using --no-print-directory" ; then MAKE="$MAKE --no-print-directory"fiecho $ac_n "checking whether make supports include""... $ac_c" 1>&6echo "configure:1060: checking whether make supports include" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_include'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else /bin/rm -f conftestcat > conftest <<.ALL: @echo "success".cat > conftest1 <<.include conftest.pac_str=`$MAKE -f conftest1 2>&1`/bin/rm -f conftest conftest1if test "$pac_str" != "success" ; then pac_cv_prog_make_include="no"else pac_cv_prog_make_include="yes"fifiecho "$ac_t""$pac_cv_prog_make_include" 1>&6if test "$pac_cv_prog_make_include" = "no" ; then :else :fiecho $ac_n "checking whether make allows comments in actions""... $ac_c" 1>&6echo "configure:1093: checking whether make allows comments in actions" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_allows_comments'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else /bin/rm -f conftestcat > conftest <<.SHELL=/bin/shALL: @# This is a valid comment! @echo "success".pac_str=`$MAKE -f conftest 2>&1`/bin/rm -f conftest if test "$pac_str" != "success" ; then pac_cv_prog_make_allows_comments="no"else pac_cv_prog_make_allows_comments="yes"fifiecho "$ac_t""$pac_cv_prog_make_allows_comments" 1>&6if test "$pac_cv_prog_make_allows_comments" = "no" ; then echo "configure: warning: Your make does not allow comments in target code.Using this make may cause problems when building programs.You should consider using gnumake instead." 1>&2 fiecho $ac_n "checking for virtual path format""... $ac_c" 1>&6echo "configure:1127: checking for virtual path format" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_vpath'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else rm -rf conftest*mkdir conftestdircat >conftestdir/a.c <<EOFA sample fileEOFcat > conftest <<EOFall: a.oVPATH=.:conftestdir.c.o: @echo \$<EOFac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'`if test -n "$ac_out" ; then pac_cv_prog_make_vpath="VPATH"else rm -f conftest cat > conftest <<EOFall: a.o.PATH: . conftestdir.c.o: @echo \$<EOF ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'` if test -n "$ac_out" ; then pac_cv_prog_make_vpath=".PATH" else pac_cv_prog_make_vpath="neither VPATH nor .PATH works" fifirm -rf conftest*fiecho "$ac_t""$pac_cv_prog_make_vpath" 1>&6if test "$pac_cv_prog_make_vpath" = "VPATH" ; then VPATH='VPATH=.:${srcdir}'elif test "$pac_cv_prog_make_vpath" = ".PATH" ; then VPATH='.PATH: . ${srcdir}'fiecho $ac_n "checking whether make sets CFLAGS""... $ac_c" 1>&6echo "configure:1176: checking whether make sets CFLAGS" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_set_cflags'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else /bin/rm -f conftestcat > conftest <<EOFSHELL=/bin/shALL: @echo X\${CFLAGS}XEOFpac_str=`$MAKE -f conftest 2>&1`/bin/rm -f conftest if test "$pac_str" = "XX" ; then pac_cv_prog_make_set_cflags="no"else pac_cv_prog_make_set_cflags="yes"fifiecho "$ac_t""$pac_cv_prog_make_set_cflags" 1>&6if test "$pac_cv_prog_make_set_cflags" = "no" ; then :else SET_CFLAGS='CFLAGS='fiif test "$pac_cv_prog_make_echos_dir" = "no" ; then echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6echo "configure:1207: checking whether ${MAKE-make} sets \${MAKE}" >&5set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftestmake <<\EOFall: @echo 'ac_maketemp="${MAKE}"'EOF# GNU make sometimes prints "make[1]: Entering...", which would confuse us.eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yeselse eval ac_cv_prog_make_${ac_make}_set=nofirm -f conftestmakefiif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$ac_t""yes" 1>&6 SET_MAKE=else echo "$ac_t""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}"fielse SET_MAKE="MAKE=${MAKE-make}"fiecho $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:1238: checking for working const" >&5if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1243 "configure"#include "confdefs.h"int main() {/* Ultrix mips cc rejects this. */typedef int charset[2]; const charset x;/* SunOS 4.1.1 cc rejects this. */char const *const *ccp;char **p;/* NEC SVR4.0.2 mips cc rejects this. */struct point {int x, y;};static struct point const zero = {0,0};/* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */const char *g = "string";ccp = &g + (g ? g-g : 0);/* HPUX 7.0 cc rejects these. */++ccp;p = (char**) ccp;ccp = (char const *const *) p;{ /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0;}{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo;}{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p;}{ /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5;}{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10;}; return 0; }EOFif { (eval echo configure:1292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_c_const=nofirm -f conftest*fiecho "$ac_t""$ac_cv_c_const" 1>&6if test $ac_cv_c_const = no; then cat >> confdefs.h <<\EOF#define const EOFfiecho $ac_n "checking for volatile""... $ac_c" 1>&6echo "configure:1314: checking for volatile" >&5if eval "test \"`echo '$''{'pac_cv_c_volatile'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1320 "configure"#include "confdefs.h"int main() {volatile int a;; return 0; }EOFif { (eval echo configure:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* pac_cv_c_volatile="yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* pac_cv_c_volatile="no"firm -f conftest*fiecho "$ac_t""$pac_cv_c_volatile" 1>&6if test "$pac_cv_c_volatile" = "no" ; then cat >> confdefs.h <<\EOF#define volatile EOFfiecho $ac_n "checking for restrict""... $ac_c" 1>&6echo "configure:1349: checking for restrict" >&5if eval "test \"`echo '$''{'pac_cv_c_restrict'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1355 "configure"#include "confdefs.h"int main() {int * restrict a;; return 0; }EOFif { (eval echo configure:1362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* pac_cv_c_restrict="restrict"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* pac_cv_c_restrict="no"firm -f conftest*if test "$pac_cv_c_restrict" = "no" ; then cat > conftest.$ac_ext <<EOF#line 1374 "configure"#include "confdefs.h"int main() {int * _Restrict a;; return 0; }EOFif { (eval echo configure:1381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* pac_cv_c_restrict="_Restrict"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* pac_cv_c_restrict="no"firm -f conftest*fiif test "$pac_cv_c_restrict" = "no" ; then cat > conftest.$ac_ext <<EOF#line 1394 "configure"#include "confdefs.h"int main() {int * __restrict a;; return 0; }EOFif { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* pac_cv_c_restrict="__restrict"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* pac_cv_c_restrict="no"firm -f conftest*fifiecho "$ac_t""$pac_cv_c_restrict" 1>&6if test "$pac_cv_c_restrict" = "no" ; then restrict_val=""elif test "$pac_cv_c_restrict" != "restrict" ; then restrict_val=$pac_cv_c_restrictfiif test "$restrict_val" != "restrict" ; then cat >> confdefs.h <<EOF#define restrict $restrict_valEOFfiecho $ac_n "checking for inline""... $ac_c" 1>&6echo "configure:1429: checking for inline" >&5if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_cv_c_inline=nofor ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <<EOF#line 1436 "configure"#include "confdefs.h"int main() {} $ac_kw foo() {; return 0; }EOFif { (eval echo configure:1443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; breakelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*donefiecho "$ac_t""$ac_cv_c_inline" 1>&6case "$ac_cv_c_inline" in inline | yes) ;; no) cat >> confdefs.h <<\EOF#define inline EOF ;; *) cat >> confdefs.h <<EOF#define inline $ac_cv_c_inlineEOF ;;esacecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:1469: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then CPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF#line 1484 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF#line 1501 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -