summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--configure.in2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9dec4b82..345b4dd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-11 John (J5) Palmieri <johnp@redhat.com>
+
+ * configure.in: Check for gethostbyname first before we check for it
+ in libnsl. On gnu systems it is implemeneted
+
2006-10-13 Havoc Pennington <hp@redhat.com>
* dbus/dbus-connection.c
diff --git a/configure.in b/configure.in
index 2af29b3c..1c6ece0c 100644
--- a/configure.in
+++ b/configure.in
@@ -508,7 +508,7 @@ fi
#### Various functions
AC_CHECK_LIB(socket,socket)
-AC_CHECK_LIB(nsl,gethostbyname)
+AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf)