Dont bother checking for functions we dont use
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 10:25:32 +0000 (12:25 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 10:25:32 +0000 (12:25 +0200)
- some of this stuff was used in 4.4.x but not anymore
- additionally we dont even use getdomainnname(), check for gethostname()
  instead

configure.ac
system.h

index a33a9c5..87a5b9d 100644 (file)
@@ -210,23 +210,11 @@ dnl
 
 dnl Checks for libraries.
 
-AC_CHECK_FUNC(setreuid, [], [
-    AC_CHECK_LIB(ucb, setreuid, [if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi])
-])
-
-AC_CHECK_FUNC(rand, [], [
-    AC_CHECK_LIB(rand, rand, [])
-])
-
-AC_CHECK_FUNC(getdomainname, [], [
-    AC_CHECK_LIB(nsl, getdomainname)
-])
-AC_CHECK_FUNC(socket, [], [
-    AC_CHECK_LIB(socket, socket)
+AC_CHECK_FUNC(gethostname, [], [
+    AC_CHECK_LIB(nsl, gethostname)
 ])
 
 AC_CHECK_HEADERS(error.h)
-AC_CHECK_FUNCS(error)
 
 AC_CHECK_HEADERS(poll.h)
 
@@ -565,7 +553,6 @@ dnl point, but should offer good performance improvements, check after
 dnl 4.4.2.1...
 dnl AC_FUNC_MMAP
 
-AC_CHECK_FUNCS(getaddrinfo getnameinfo inet_aton)
 AC_CHECK_FUNCS(mtrace)
 AC_CHECK_FUNCS(strndup strerror)
 
index f87d4dd..a4864d2 100644 (file)
--- a/system.h
+++ b/system.h
@@ -90,7 +90,7 @@ char * stpncpy(char * dest, const char * src, size_t n);
 extern int errno;
 #endif
 
-#if HAVE_ERROR && HAVE_ERROR_H
+#if HAVE_ERROR_H
 #include <error.h>
 #endif