From 79e3401dd016e1569512f1bc7f9973aa126dbcf8 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 20 Jun 2004 12:31:18 +0000 Subject: Fix "resolv.h: present but cannot be compiled" on FreeBSD. svn path=/trunk/; revision=3913 --- configure.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 02955a7d..58ca6aaa 100644 --- a/configure.in +++ b/configure.in @@ -28,8 +28,17 @@ AC_TYPE_PID_T AC_TYPE_SIGNAL AC_CHECK_HEADERS([unistd.h termios.h termio.h sgtty.h stdarg.h \ alloca.h sys/itimer.h fcntl.h sys/fcntl.h memory.h sys/wait.h \ - sys/shm.h arpa/inet.h arpa/nameser.h resolv.h net/socket.h \ + sys/shm.h arpa/inet.h arpa/nameser.h netinet/in.h net/socket.h \ sys/select.h sys/time.h]) +AC_CHECK_HEADERS([resolv.h],,,[ +#include +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif +]) AC_C_CONST dnl getopt needs this. -- cgit v1.2.3