better resolv.h detection, hopefully should detect properly on Mac OS X
authorNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 22 Oct 2002 16:23:43 +0000 (16:23 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 22 Oct 2002 16:23:43 +0000 (16:23 +0000)
citadel/configure.ac

index d4c14cb2a079d447621229069e0f167018cba051..f8dd6eb387a135f8d3f58fe874f7382eec78f68c 100644 (file)
@@ -413,7 +413,7 @@ dnl
 dnl TODO: for the DB header checks, we should check whether the headers
 dnl define db_env_create, somehow
 dnl
-AC_CHECK_HEADERS(curses.h dl.h fcntl.h limits.h malloc.h termios.h sys/ioctl.h sys/select.h sys/time.h syslog.h unistd.h utmp.h utmpx.h paths.h db.h db3/db.h db4/db.h pthread.h netinet/in.h)
+AC_CHECK_HEADERS(curses.h dl.h fcntl.h limits.h malloc.h termios.h sys/ioctl.h sys/select.h sys/time.h syslog.h unistd.h utmp.h utmpx.h paths.h db.h db3/db.h db4/db.h pthread.h netinet/in.h arpa/nameser.h)
 
 dnl
 dnl need to check if this is actually compilable, sometimes there are
@@ -429,6 +429,9 @@ AC_CHECK_HEADER(resolv.h, [SMTP=modules/libsmtp.la; DOMAIN=domain.c],,
 #endif
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_NAMESER_H
+#include <arpa/nameser.h>
 #endif])
 
 AC_SUBST(SMTP)