📄 configure
字号:
cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else echo "$ac_t""no" 1>&6LIBOBJS="$LIBOBJS ${ac_func}.o"fidoneecho $ac_n "checking for strerror""... $ac_c" 1>&6echo "configure:938: checking for strerror" >&5if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 943 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char strerror(); below. */#include <assert.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 strerror();int main() {/* 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_strerror) || defined (__stub___strerror)choke me#elsestrerror();#endif; return 0; }EOFif { (eval echo configure:966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_strerror=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_strerror=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define NO_STRERROR 1EOFfiecho $ac_n "checking for getwd""... $ac_c" 1>&6echo "configure:990: checking for getwd" >&5if eval "test \"`echo '$''{'ac_cv_func_getwd'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 995 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char getwd(); below. */#include <assert.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 getwd();int main() {/* 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_getwd) || defined (__stub___getwd)choke me#elsegetwd();#endif; return 0; }EOFif { (eval echo configure:1018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_getwd=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_getwd=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'getwd`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define NO_GETWD 1EOFfiecho $ac_n "checking for wait3""... $ac_c" 1>&6echo "configure:1042: checking for wait3" >&5if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1047 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char wait3(); below. */#include <assert.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 wait3();int main() {/* 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_wait3) || defined (__stub___wait3)choke me#elsewait3();#endif; return 0; }EOFif { (eval echo configure:1070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_wait3=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_wait3=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'wait3`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define NO_WAIT3 1EOFfiecho $ac_n "checking for uname""... $ac_c" 1>&6echo "configure:1094: checking for uname" >&5if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1099 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char uname(); below. */#include <assert.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 uname();int main() {/* 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_uname) || defined (__stub___uname)choke me#elseuname();#endif; return 0; }EOFif { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_uname=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_uname=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define NO_UNAME 1EOFfi#--------------------------------------------------------------------# On a few very rare systems, all of the libm.a stuff is# already in libc.a. Set compiler flags accordingly.# Also, Linux requires the "ieee" library for math to work# right (and it must appear before "-lm").#--------------------------------------------------------------------echo $ac_n "checking for sin""... $ac_c" 1>&6echo "configure:1154: checking for sin" >&5if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1159 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char sin(); below. */#include <assert.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 sin();int main() {/* 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_sin) || defined (__stub___sin)choke me#elsesin();#endif; return 0; }EOFif { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_sin=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_sin=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then echo "$ac_t""yes" 1>&6 MATH_LIBS=""else echo "$ac_t""no" 1>&6MATH_LIBS="-lm"fiecho $ac_n "checking for main in -lieee""... $ac_c" 1>&6echo "configure:1203: checking for main in -lieee" >&5ac_lib_var=`echo ieee'_'main | 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="-lieee $LIBS"cat > conftest.$ac_ext <<EOF#line 1211 "configure"#include "confdefs.h"int main() {main(); return 0; }EOFif { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MATH_LIBS="-lieee $MATH_LIBS"else echo "$ac_t""no" 1>&6fi#--------------------------------------------------------------------# On AIX systems, libbsd.a has to be linked in to support# non-blocking file IO. This library has to be linked in after# the MATH_LIBS or it breaks the pow() function. The way to# insure proper sequencing, is to add it to the tail of MATH_LIBS.# This library also supplies gettimeofday.#--------------------------------------------------------------------libbsd=noif test "`uname -s`" = "AIX" ; then echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6echo "configure:1249: checking for gettimeofday in -lbsd" >&5ac_lib_var=`echo bsd'_'gettimeofday | 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="-lbsd $LIBS"cat > conftest.$ac_ext <<EOF#line 1257 "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 gettimeofday();int main() {gettimeofday(); return 0; }EOFif { (eval echo configure:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 libbsd=yeselse echo "$ac_t""no" 1>&6fi if test $libbsd = yes; then MATH_LIBS="$MATH_LIBS -lbsd" fifi#--------------------------------------------------------------------# Supply substitutes for missing POSIX header files. Special# notes:# - stdlib.h doesn't define strtol, strtoul, or# strtod insome versions of SunOS# - some versions of string.h don't declare procedures such# as strstr#--------------------------------------------------------------------echo $ac_n "checking dirent.h""... $ac_c" 1>&6echo "configure:1303: checking dirent.h" >&5cat > conftest.$ac_ext <<EOF#line 1305 "configure"#include "confdefs.h"#include <sys/types.h>#include <dirent.h>int main() {#ifndef _POSIX_SOURCE# ifdef __Lynx__ /* * Generate compilation error to make the test fail: Lynx headers * are only valid if really in the POSIX environment. */ missing_procedure();# endif#endifDIR *d;struct dirent *entryPtr;char *p;d = opendir("foobar");entryPtr = readdir(d);p = entryPtr->d_name;closedir(d);; return 0; }EOFif { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* tcl_ok=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tcl_ok=nofirm -f conftest*if test $tcl_ok = no; then cat >> confdefs.h <<\EOF#define NO_DIRENT_H 1EOFfiecho "$ac_t""$tcl_ok" 1>&6echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:1349: 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 1364 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out`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 1381 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -