📄 configure
字号:
EOFif { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen ac_cv_func_mmap_fixed_mapped=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_mmap_fixed_mapped=nofirm -fr conftest*fifiecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6if test $ac_cv_func_mmap_fixed_mapped = yes; then cat >> confdefs.h <<\EOF#define HAVE_MMAP 1EOFfifor ac_func in getcwd strdup strstrdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1865: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1870 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); 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 $ac_func();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_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else echo "$ac_t""no" 1>&6fidonefor ac_func in gethostname gethostbyname select socket inet_atondoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1920: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1925 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); 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 $ac_func();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_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else echo "$ac_t""no" 1>&6fidonefor ac_func in scandir alphasortdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1975: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1980 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); 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 $ac_func();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_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else echo "$ac_t""no" 1>&6fidoneac_safe_struct=`echo "tm" | sed 'y%./+-%__p_%'`ac_safe_member=`echo "tm_gmtoff" | sed 'y%./+-%__p_%'`ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}" ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`echo $ac_n "checking for tm.tm_gmtoff""... $ac_c" 1>&6echo "configure:2035: checking for tm.tm_gmtoff" >&5if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "x" = "x"; then defineit="= 0"elif test "x" = "xno"; then defineit=""else defineit=""ficat > conftest.$ac_ext <<EOF#line 2048 "configure"#include "confdefs.h"#if TIME_WITH_SYS_TIME# include <sys/time.h># include <time.h>#else# if HAVE_SYS_TIME_H# include <sys/time.h># else# include <time.h># endif#endifint main() {struct tm testit;testit.tm_gmtoff $defineit;; return 0; }EOFif { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "${ac_safe_all}=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "${ac_safe_all}=no" firm -f conftest*fiif eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<EOF#define $ac_uc_define 1EOFelse echo "$ac_t""no" 1>&6fiif test "$ac_cv_struct_tm_has_tm_gmtoff" = "yes"; then cat >> confdefs.h <<\EOF#define HAVE_TM_GMTOFF 1EOFfiac_safe_struct=`echo "tm" | sed 'y%./+-%__p_%'`ac_safe_member=`echo "tm_zone" | sed 'y%./+-%__p_%'`ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}" ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`echo $ac_n "checking for tm.tm_zone""... $ac_c" 1>&6echo "configure:2110: checking for tm.tm_zone" >&5if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "x" = "x"; then defineit="= 0"elif test "x" = "xno"; then defineit=""else defineit=""ficat > conftest.$ac_ext <<EOF#line 2123 "configure"#include "confdefs.h"#if TIME_WITH_SYS_TIME# include <sys/time.h># include <time.h>#else# if HAVE_SYS_TIME_H# include <sys/time.h># else# include <time.h># endif#endifint main() {struct tm testit;testit.tm_zone $defineit;; return 0; }EOFif { (eval echo configure:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "${ac_safe_all}=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "${ac_safe_all}=no" firm -f conftest*fiif eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<EOF#define $ac_uc_define 1EOFelse echo "$ac_t""no" 1>&6fiif test "$ac_cv_struct_tm_has_tm_zone" = "yes"; then cat >> confdefs.h <<\EOF#define HAVE_TM_ZONE 1EOFfiac_safe_struct=`echo "sockaddr_in" | sed 'y%./+-%__p_%'`ac_safe_member=`echo "sin_len" | sed 'y%./+-%__p_%'`ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}" ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`echo $ac_n "checking for sockaddr_in.sin_len""... $ac_c" 1>&6echo "configure:2186: checking for sockaddr_in.sin_len" >&5if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "x" = "x"; then defineit="= 0"elif test "x" = "xno"; then defineit=""else defineit=""ficat > conftest.$ac_ext <<EOF#line 2199 "configure"#include "confdefs.h"#include <sys/types.h>#include <netinet/in.h>int main() {struct sockaddr_in testit;testit.sin_len $defineit;; return 0; }EOFif { (eval echo configure:2214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "${ac_safe_all}=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "${ac_safe_all}=no" firm -f conftest*fiif eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<EOF#define $ac_uc_define 1EOFelse echo "$ac_t""no" 1>&6fiif test "$ac_cv_struct_sockaddr_in_has_sin_len" = "yes"; then cat >> confdefs.h <<\EOF#define HAVE_SIN_LEN 1EOFfiif test $ac_cv_func_socket = no; then # socket is not in the default libraries. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6echo "configure:2249: checking for socket in -lsocket" >&5ac_lib_var=`echo socket'_'socket | 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="-lsocket $LIBS"cat > conftest.$ac_ext <<EOF#line 2257 "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:2268: \"$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"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MYLIBS="$MYLIBS -lsocket" else echo "$ac_t""no" 1>&6fifiif test $ac_cv_func_inet_aton = no; then # inet_aton is not in the default libraries. echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6echo "configure:2293: checking for inet_aton in -lresol
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -