1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-17 03:49:02 +00:00

Call AC_SEARCH_LIBS before AC_CHECK_FUNCS

This commit is contained in:
dmiller
2019-11-14 16:37:00 +00:00
parent 71034a0b09
commit 6844a8134c
2 changed files with 13 additions and 13 deletions

24
nbase/configure vendored
View File

@@ -4519,18 +4519,6 @@ if test "$ac_res" != no; then :
fi
for ac_func in gai_strerror inet_pton inet_ntop
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if ${ac_cv_search_inet_ntop+:} false; then :
@@ -4659,6 +4647,18 @@ esac
fi
for ac_func in gai_strerror inet_pton inet_ntop
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
$as_echo_n "checking for working getaddrinfo... " >&6; }

View File

@@ -185,13 +185,13 @@ AC_ARG_ENABLE(ipv6,
AC_SEARCH_LIBS(getaddrinfo, [inet6 socket])
AC_SEARCH_LIBS(gai_strerror, [inet6 socket])
AC_SEARCH_LIBS(getnameinfo, [inet6 socket])
AC_CHECK_FUNCS([gai_strerror inet_pton inet_ntop])
AC_SEARCH_LIBS(inet_ntop, [nsl resolv network], [],
[AC_LIBOBJ(inet_ntop)
])
AC_SEARCH_LIBS(inet_pton, [nsl resolv network], [],
[AC_LIBOBJ(inet_pton)
])
AC_CHECK_FUNCS([gai_strerror inet_pton inet_ntop])
APR_CHECK_WORKING_GETADDRINFO
# The inet_addr function is used by APR_CHECK_WORKING_GETNAMEINFO.
AC_SEARCH_LIBS(inet_addr, [nsl])