[PATCH] Search for gethostbyname in libnsl.
Mark Kettenis
kettenis@chello.nl
Sat Aug 30 00:06:00 GMT 2003
Solaris has gethostbyname in libnsl. Right now this is taken care of
by some XM_CLIBS hackery in the host-dependent makefile fragment, but
we want to get rid of that. This should help.
Checked in as obvious.
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* configure.in: Search for gethostbyname in libnsl.
* configure: Regenerated.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.130
diff -u -p -r1.130 configure.in
--- configure.in 29 Aug 2003 19:18:07 -0000 1.130
+++ configure.in 30 Aug 2003 00:02:36 -0000
@@ -264,6 +264,9 @@ AC_CHECK_LIB(m, main)
AC_CHECK_FUNC(wctype, [],
[AC_CHECK_LIB(w, wctype)])
+# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
+AC_SEARCH_LIBS(gethostbyname, nsl)
+
# Some systems (e.g. Solaris) have `socketpair' in libsocket.
AC_SEARCH_LIBS(socketpair, socket)
More information about the Gdb-patches
mailing list