mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Check for -lnsl more carefully.
Published in <sxsg0d2oizo.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
f918e0ab51
commit
4f56fa7ead
@ -1,3 +1,8 @@
|
|||||||
|
2001-06-14 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
|
* configure.in: Check for both gethostbyname and inet_ntoa before
|
||||||
|
concluding that -lnsl is not needed.
|
||||||
|
|
||||||
2001-06-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
|
2001-06-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
|
||||||
|
|
||||||
* configure.in: Use `libtool' to test linking of external
|
* configure.in: Use `libtool' to test linking of external
|
||||||
|
21
configure.in
21
configure.in
@ -176,14 +176,27 @@ AC_CHECK_FUNCS(gettimeofday mktime strptime)
|
|||||||
AC_CHECK_FUNCS(strerror snprintf vsnprintf select signal symlink access isatty)
|
AC_CHECK_FUNCS(strerror snprintf vsnprintf select signal symlink access isatty)
|
||||||
AC_CHECK_FUNCS(uname gethostname)
|
AC_CHECK_FUNCS(uname gethostname)
|
||||||
|
|
||||||
AC_CHECK_FUNCS(gethostbyname, [], [
|
|
||||||
AC_CHECK_LIB(nsl, gethostbyname)
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Checks for libraries.
|
dnl Checks for libraries.
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
|
dnl On Solaris, -lnsl is needed to use gethostbyname. On "NCR MP-RAS
|
||||||
|
dnl 3.0", however, gethostbyname is in libc, but -lnsl is still needed
|
||||||
|
dnl to use -lsocket, as well as for functions such as inet_ntoa. We
|
||||||
|
dnl look for such known offenders and if one of them is not found, we
|
||||||
|
dnl check if -lnsl is needed.
|
||||||
|
|
||||||
|
wget_check_in_nsl=NONE
|
||||||
|
AC_CHECK_FUNCS(gethostbyname, [], [
|
||||||
|
wget_check_in_nsl=gethostbyname
|
||||||
|
])
|
||||||
|
AC_CHECK_FUNCS(inet_ntoa, [], [
|
||||||
|
wget_check_in_nsl=inet_ntoa
|
||||||
|
])
|
||||||
|
if test $wget_check_in_nsl != NONE; then
|
||||||
|
AC_CHECK_LIB(nsl, $wget_check_in_nsl)
|
||||||
|
fi
|
||||||
|
|
||||||
AC_CHECK_LIB(socket, socket)
|
AC_CHECK_LIB(socket, socket)
|
||||||
|
|
||||||
dnl #### This appears to be deficient with later versions of SOCKS.
|
dnl #### This appears to be deficient with later versions of SOCKS.
|
||||||
|
Loading…
Reference in New Issue
Block a user