📄 configure
字号:
cat > conftest.$ac_ext <<EOF#line 1293 "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 gethostbyname();int main() {gethostbyname(); return 0; }EOFif { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lbl_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lbl_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 V_NETLIBS="-lnsl $V_NETLIBS"else echo "$ac_t""no" 1>&6# Some strange OSes (SINIX) have it in libsocket: echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6echo "configure:1324: checking for gethostbyname in -lsocket" >&5ac_lib_var=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'`if eval "test \"`echo '$''{'ac_cv_lbl_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 1332 "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 gethostbyname();int main() {gethostbyname(); return 0; }EOFif { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lbl_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lbl_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 V_NETLIBS="-lsocket $V_NETLIBS"else echo "$ac_t""no" 1>&6# Unfortunately libsocket sometimes depends on libnsl. # AC_CHECK_LIB's API is essentially broken so the # following ugliness is necessary: echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6echo "configure:1365: checking for gethostbyname in -lsocket" >&5ac_lib_var=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'`if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lsocket -lnsl $LIBS"cat > conftest.$ac_ext <<EOF#line 1373 "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 gethostbyname();int main() {gethostbyname(); return 0; }EOFif { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lbl_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lbl_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 V_NETLIBS="-lsocket -lnsl $V_NETLIBS"else echo "$ac_t""no" 1>&6echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6echo "configure:1403: checking for gethostbyname in -lresolv" >&5ac_lib_var=`echo resolv'_'gethostbyname | 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="-lresolv $LIBS"cat > conftest.$ac_ext <<EOF#line 1411 "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 gethostbyname();int main() {gethostbyname(); return 0; }EOFif { (eval echo configure:1422: \"$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 V_NETLIBS="-lresolv $V_NETLIBS"else echo "$ac_t""no" 1>&6fififififiecho $ac_n "checking for socket""... $ac_c" 1>&6echo "configure:1451: checking for socket" >&5if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1456 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char socket(); 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 socket();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_socket) || defined (__stub___socket)choke me#elsesocket();#endif; return 0; }EOFif { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_socket=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_socket=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6echo "configure:1497: 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 1505 "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:1516: \"$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 V_NETLIBS="-lsocket $V_NETLIBS"else echo "$ac_t""no" 1>&6echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6echo "configure:1535: checking for socket in -lsocket" >&5ac_lib_var=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'`if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lsocket -lnsl $LIBS"cat > conftest.$ac_ext <<EOF#line 1543 "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:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lbl_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lbl_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 V_NETLIBS="-lsocket -lnsl $V_NETLIBS"else echo "$ac_t""no" 1>&6fififiecho $ac_n "checking for main in -linet6""... $ac_c" 1>&6echo "configure:1580: checking for main in -linet6" >&5ac_lib_var=`echo inet6'_'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="-linet6 $LIBS"cat > conftest.$ac_ext <<EOF#line 1588 "configure"#include "confdefs.h"int main() {main(); return 0; }EOFif { (eval echo configure:1595: \"$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 ac_tr_lib=HAVE_LIB`echo inet6 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF LIBS="-linet6 $LIBS"else echo "$ac_t""no" 1>&6fiecho $ac_n "checking for crypt""... $ac_c" 1>&6echo "configure:1624: checking for crypt" >&5if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1629 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char crypt(); 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 crypt();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_crypt) || defined (__stub___crypt)choke me#elsecrypt();#endif; return 0; }EOFif { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_crypt=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_crypt=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6echo "configure:1670: checking for crypt in -lcrypt" >&5ac_lib_var=`echo crypt'_'crypt | 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="-lcrypt $LIBS"cat > conftest.$ac_ext <<EOF#line 1678 "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 crypt();int main() {crypt(); return 0; }EOFif { (eval echo configure:1689: \"$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 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF LIBS="-lcrypt $LIBS"else echo "$ac_t""no" 1>&6fifiecho $ac_n "checking for hstrerror""... $ac_c" 1>&6echo "configure:1719: checking for hstrerror" >&5if eval "test \"`echo '$''{'ac_cv_func_hstrerror'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -