📄 configure
字号:
EOFfi for ac_hdr in limits.h malloc.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:834: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 839 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:844: \"$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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else echo "$ac_t""no" 1>&6fidone echo $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:872: 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 877 "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:926: \"$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 EOFfi if test $ac_cv_c_const = no; then CC="$CC -Dconst=" fi echo $ac_n "checking for size_t""... $ac_c" 1>&6echo "configure:951: checking for size_t" >&5if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 956 "configure"#include "confdefs.h"#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#include <stddef.h>#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_size_t=yeselse rm -rf conftest* ac_cv_type_size_t=nofirm -f conftest*fiecho "$ac_t""$ac_cv_type_size_t" 1>&6if test $ac_cv_type_size_t = no; then cat >> confdefs.h <<\EOF#define size_t unsignedEOFfi echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6echo "configure:985: checking for 8-bit clean memcmp" >&5if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then ac_cv_func_memcmp_clean=noelse cat > conftest.$ac_ext <<EOF#line 993 "configure"#include "confdefs.h"main(){ char c0 = 0x40, c1 = 0x80, c2 = 0x81; exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);}EOFif { (eval echo configure:1003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_func_memcmp_clean=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_memcmp_clean=nofirm -fr conftest*fifiecho "$ac_t""$ac_cv_func_memcmp_clean" 1>&6test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"fifor fff in "$FC" f77 g77 "f77 +U77" "f77 -q -f -B108 -lU77"; do if test -z "$fff"; then continue fi FC=$fff echo $ac_n "checking whether ($FC $FFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:1030: checking whether ($FC $FFLAGS $LDFLAGS) works" >&5 cat > conftest.f << EOF character*20 argv call getarg(1,argv) write(*,'(2hxx,a)') argv endEOF (eval $FC $FFLAGS $LDFLAGS conftest.f -o conftest) 1>&5 2>&5 if test -n "`(eval ./conftest TEST | grep xxTEST) 2>&5`"; then rm -f conftest.f conftest echo "$ac_t""yes" 1>&6 break else rm -f conftest.f conftest echo "$ac_t""no" 1>&6 FC= fidoneif test -z "$FC"; then echo "configure: warning: *** No usable Fortran compiler found*** You will not be able to use some of the routines*** If you do have a working Fortran compiler called, say, myf77 -trick, do:*** $ setenv FC "myf77 -trick"*** and rerun" 1>&2fiif test -z "$CC" && test -z "$FC"; then { echo "configure: error: *** with neither working C nor Fortran compilers there wouldn't be any*** programs left you could compile" 1>&2; exit 1; }fiif test -n "$FC" && test -z "$FFLAGS"; then echo ' end' > conftest.f for fflags in -O +O; do echo $ac_n "checking whether $FC accepts $fflags""... $ac_c" 1>&6echo "configure:1070: checking whether $FC accepts $fflags" >&5 cat > conftest.f << EOF write(*,'(6hxxTEST)') endEOF (eval $FC $fflags $LDFLAGS conftest.f -o conftest) 1>&5 2>&5 if test -n "`(eval ./conftest | grep xxTEST) 2>&5`"; then rm -f conftest.f conftest echo "$ac_t""yes" 1>&6 FFLAGS=$fflags break else rm -f conftest.f conftest echo "$ac_t""no" 1>&6 fi done if test -z "$FFLAGS"; then echo "configure: warning: *** no valid optimisation flags for $FC found" 1>&2 fi rm -f conftest*fiif test -n "$FC"; then ERRUNIT="" for iu in 0 1 2 3 4 6 7 8 9; do echo $ac_n "checking whether Fortran unit $iu is stderr""... $ac_c" 1>&6echo "configure:1101: checking whether Fortran unit $iu is stderr" >&5 rm -Rf ./config_test_dir mkdir ./config_test_dir cd ./config_test_dir echo " write($iu,'(1ht)')" > test.f echo " end" >> test.f (eval $FC $FFLAGS test.f -o test.out) 1>&5 2>&5 if test -z "`./test.out 2>&1 1>/dev/null`"; then cd .. rm -Rf ./config_test_dir echo "$ac_t""no" 1>&6 else cd .. rm -Rf ./config_test_dir echo "$ac_t""yes" 1>&6 ERRUNIT=$iu break fi done if test -z $ERRUNIT; then ERRUNIT=0 echo "configure: warning: *** Couldn't determine Fortran stderr unit, assuming unit 0, fingers crossed" 1>&2 fi fi# Extract the first word of "ar", so it can be a program name with args.set dummy ar; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1132: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_AR="ar" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"fifiAR="$ac_cv_prog_AR"if test -n "$AR"; then echo "$ac_t""$AR" 1>&6else echo "$ac_t""no" 1>&6fiARFLAGS=recho $ac_n "checking whether ${AR} accepts ${ARFLAGS}""... $ac_c" 1>&6echo "configure:1161: checking whether ${AR} accepts ${ARFLAGS}" >&5if test -n "$CC"; then echo 'void f(){}' > libtest.c ${CC} -c libtest.celse echo ' end' > libtest.f ${FC} -c libtest.ffi${AR} ${ARFLAGS} libtest.a libtest.o 1>&5 2>&5if test -s libtest.a; then echo "$ac_t""yes" 1>&6else ARFLAGS=-r echo "$ac_t""no, using ${ARFLAGS} instead" 1>&6firm -f libtest.*ac_aux_dir=for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break fidoneif test -z "$ac_aux_dir"; then { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }fiac_config_guess=$ac_aux_dir/config.guessac_config_sub=$ac_aux_dir/config.subac_configure=$ac_aux_dir/configure # This should be Cygnus configure.# Find a good install program. We prefer a C program (faster),# so one script is as good as another. But avoid the broken or# incompatible versions:# SysV /etc/install, /usr/sbin/install# SunOS /usr/etc/install# IRIX /sbin/install# AIX /bin/install# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag# AFS /usr/afsws/bin/install, which mishandles nonexistent args# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"# ./install, which can be erroneously created by make from ./install.sh.echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6echo "configure:1210: checking for a BSD compatible install" >&5if test -z "$INSTALL"; thenif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -