📄 configure
字号:
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:1371: 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 1377 "configure"#include "confdefs.h"int main() {volatile int a;; return 0; }EOFif { (eval echo configure:1384: \"$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:1406: 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 1412 "configure"#include "confdefs.h"int main() {int * restrict a;; return 0; }EOFif { (eval echo configure:1419: \"$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 1431 "configure"#include "confdefs.h"int main() {int * _Restrict a;; return 0; }EOFif { (eval echo configure:1438: \"$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 1451 "configure"#include "confdefs.h"int main() {int * __restrict a;; return 0; }EOFif { (eval echo configure:1458: \"$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:1486: 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 1493 "configure"#include "confdefs.h"int main() {} $ac_kw foo() {; return 0; }EOFif { (eval echo configure:1500: \"$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:1526: 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 1541 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1547: \"$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 1558 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1564: \"$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} -nologo -E" cat > conftest.$ac_ext <<EOF#line 1575 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1581: \"$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=/lib/cppfirm -f conftest*firm -f conftest*firm -f conftest* ac_cv_prog_CPP="$CPP"fi CPP="$ac_cv_prog_CPP"else ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6echo "configure:1606: checking for ANSI C header files" >&5if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1611 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1619: \"$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* ac_cv_header_stdc=yeselse echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=nofirm -f conftest*if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 1636 "configure"#include "confdefs.h"#include <string.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then :else rm -rf conftest* 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 <<EOF#line 1654 "configure"#include "confdefs.h"#include <stdlib.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then :else rm -rf conftest* 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 <<EOF#line 1675 "configure"#include "confdefs.h"#include <ctype.h>#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))int main () { int i; for (i = 0; i < 256; i++)if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);exit (0); }EOFif { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen :else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=nofirm -fr conftest*fififiecho "$ac_t""$ac_cv_header_stdc" 1>&6if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfiMPILIBNAME=mpichecho $ac_n "checking for library containing socket""... $ac_c" 1>&6echo "configure:1714: checking for library containing socket" >&5if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_func_search_save_LIBS="$LIBS"ac_cv_search_socket="no"cat > conftest.$ac_ext <<EOF#line 1721 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char socket();int main() {socket(); return 0; }EOFif { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_socket="none required"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*test "$ac_cv_search_socket" = "no" && for i in socket; doLIBS="-l$i $ac_func_search_save_LIBS"cat > conftest.$ac_ext <<EOF#line 1743 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char socket();int main() {socket(); return 0; }EOFif { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_socket="-l$i"breakelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*doneLIBS="$ac_func_search_save_LIBS"fiecho "$ac_t""$ac_cv_search_socket" 1>&6if test "$ac_cv_search_socket" != "no"; then test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" else : fiecho $ac_n "checking for mutex_init in -lthread""... $ac_c" 1>&6echo "configure:1775: checking for mutex_init in -lthread" >&5ac_lib_var=`echo thread'_'mutex_init | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lthread $LIBS"cat > conftest.$ac_ext <<EOF#line 1783 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char mutex_init();int main() {mutex_init(); return 0; }EOFif { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -