Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1002:8ad76ddbdc58
prev989:7baf5ecd8e98
next1015:ad448bedc48a
author nkeynes
date Wed Mar 25 12:00:29 2009 +0000 (10 years ago)
permissions -rw-r--r--
last change Add configure checks for libnsl and libsocket where needed (ie Solaris)
file annotate diff log raw
1.1 --- a/configure Sat Feb 28 06:26:48 2009 +0000
1.2 +++ b/configure Wed Mar 25 12:00:29 2009 +0000
1.3 @@ -7990,6 +7990,179 @@
1.4
1.5
1.6
1.7 +{ $as_echo "$as_me:$LINENO: checking for library containing listen" >&5
1.8 +$as_echo_n "checking for library containing listen... " >&6; }
1.9 +if test "${ac_cv_search_listen+set}" = set; then
1.10 + $as_echo_n "(cached) " >&6
1.11 +else
1.12 + ac_func_search_save_LIBS=$LIBS
1.13 +cat >conftest.$ac_ext <<_ACEOF
1.14 +/* confdefs.h. */
1.15 +_ACEOF
1.16 +cat confdefs.h >>conftest.$ac_ext
1.17 +cat >>conftest.$ac_ext <<_ACEOF
1.18 +/* end confdefs.h. */
1.19 +
1.20 +/* Override any GCC internal prototype to avoid an error.
1.21 + Use char because int might match the return type of a GCC
1.22 + builtin and then its argument prototype would still apply. */
1.23 +#ifdef __cplusplus
1.24 +extern "C"
1.25 +#endif
1.26 +char listen ();
1.27 +int
1.28 +main ()
1.29 +{
1.30 +return listen ();
1.31 + ;
1.32 + return 0;
1.33 +}
1.34 +_ACEOF
1.35 +for ac_lib in '' socket; do
1.36 + if test -z "$ac_lib"; then
1.37 + ac_res="none required"
1.38 + else
1.39 + ac_res=-l$ac_lib
1.40 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.41 + fi
1.42 + rm -f conftest.$ac_objext conftest$ac_exeext
1.43 +if { (ac_try="$ac_link"
1.44 +case "(($ac_try" in
1.45 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.46 + *) ac_try_echo=$ac_try;;
1.47 +esac
1.48 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1.49 +$as_echo "$ac_try_echo") >&5
1.50 + (eval "$ac_link") 2>conftest.er1
1.51 + ac_status=$?
1.52 + grep -v '^ *+' conftest.er1 >conftest.err
1.53 + rm -f conftest.er1
1.54 + cat conftest.err >&5
1.55 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.56 + (exit $ac_status); } && {
1.57 + test -z "$ac_c_werror_flag" ||
1.58 + test ! -s conftest.err
1.59 + } && test -s conftest$ac_exeext && {
1.60 + test "$cross_compiling" = yes ||
1.61 + $as_test_x conftest$ac_exeext
1.62 + }; then
1.63 + ac_cv_search_listen=$ac_res
1.64 +else
1.65 + $as_echo "$as_me: failed program was:" >&5
1.66 +sed 's/^/| /' conftest.$ac_ext >&5
1.67 +
1.68 +
1.69 +fi
1.70 +
1.71 +rm -rf conftest.dSYM
1.72 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.73 + conftest$ac_exeext
1.74 + if test "${ac_cv_search_listen+set}" = set; then
1.75 + break
1.76 +fi
1.77 +done
1.78 +if test "${ac_cv_search_listen+set}" = set; then
1.79 + :
1.80 +else
1.81 + ac_cv_search_listen=no
1.82 +fi
1.83 +rm conftest.$ac_ext
1.84 +LIBS=$ac_func_search_save_LIBS
1.85 +fi
1.86 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
1.87 +$as_echo "$ac_cv_search_listen" >&6; }
1.88 +ac_res=$ac_cv_search_listen
1.89 +if test "$ac_res" != no; then
1.90 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.91 +
1.92 +fi
1.93 +
1.94 +{ $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
1.95 +$as_echo_n "checking for library containing inet_ntoa... " >&6; }
1.96 +if test "${ac_cv_search_inet_ntoa+set}" = set; then
1.97 + $as_echo_n "(cached) " >&6
1.98 +else
1.99 + ac_func_search_save_LIBS=$LIBS
1.100 +cat >conftest.$ac_ext <<_ACEOF
1.101 +/* confdefs.h. */
1.102 +_ACEOF
1.103 +cat confdefs.h >>conftest.$ac_ext
1.104 +cat >>conftest.$ac_ext <<_ACEOF
1.105 +/* end confdefs.h. */
1.106 +
1.107 +/* Override any GCC internal prototype to avoid an error.
1.108 + Use char because int might match the return type of a GCC
1.109 + builtin and then its argument prototype would still apply. */
1.110 +#ifdef __cplusplus
1.111 +extern "C"
1.112 +#endif
1.113 +char inet_ntoa ();
1.114 +int
1.115 +main ()
1.116 +{
1.117 +return inet_ntoa ();
1.118 + ;
1.119 + return 0;
1.120 +}
1.121 +_ACEOF
1.122 +for ac_lib in '' nsl; do
1.123 + if test -z "$ac_lib"; then
1.124 + ac_res="none required"
1.125 + else
1.126 + ac_res=-l$ac_lib
1.127 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.128 + fi
1.129 + rm -f conftest.$ac_objext conftest$ac_exeext
1.130 +if { (ac_try="$ac_link"
1.131 +case "(($ac_try" in
1.132 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.133 + *) ac_try_echo=$ac_try;;
1.134 +esac
1.135 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1.136 +$as_echo "$ac_try_echo") >&5
1.137 + (eval "$ac_link") 2>conftest.er1
1.138 + ac_status=$?
1.139 + grep -v '^ *+' conftest.er1 >conftest.err
1.140 + rm -f conftest.er1
1.141 + cat conftest.err >&5
1.142 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.143 + (exit $ac_status); } && {
1.144 + test -z "$ac_c_werror_flag" ||
1.145 + test ! -s conftest.err
1.146 + } && test -s conftest$ac_exeext && {
1.147 + test "$cross_compiling" = yes ||
1.148 + $as_test_x conftest$ac_exeext
1.149 + }; then
1.150 + ac_cv_search_inet_ntoa=$ac_res
1.151 +else
1.152 + $as_echo "$as_me: failed program was:" >&5
1.153 +sed 's/^/| /' conftest.$ac_ext >&5
1.154 +
1.155 +
1.156 +fi
1.157 +
1.158 +rm -rf conftest.dSYM
1.159 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.160 + conftest$ac_exeext
1.161 + if test "${ac_cv_search_inet_ntoa+set}" = set; then
1.162 + break
1.163 +fi
1.164 +done
1.165 +if test "${ac_cv_search_inet_ntoa+set}" = set; then
1.166 + :
1.167 +else
1.168 + ac_cv_search_inet_ntoa=no
1.169 +fi
1.170 +rm conftest.$ac_ext
1.171 +LIBS=$ac_func_search_save_LIBS
1.172 +fi
1.173 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
1.174 +$as_echo "$ac_cv_search_inet_ntoa" >&6; }
1.175 +ac_res=$ac_cv_search_inet_ntoa
1.176 +if test "$ac_res" != no; then
1.177 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.178 +
1.179 +fi
1.180
1.181
1.182
.