]> arthur.barton.de Git - ngircd-alex.git/blobdiff - configure.in
Refactor Resolve_Read() into generic Proc_Read() function
[ngircd-alex.git] / configure.in
index f80e8a96595e5b124553e1b8442d10d66bfb36ef..57883edcc091134843acf40820829d12bc00ee11 100644 (file)
@@ -12,7 +12,7 @@
 # -- Initialisation --
 
 AC_PREREQ(2.50)
-AC_INIT(ngircd, 15)
+AC_INIT(ngircd, 16)
 AC_CONFIG_SRCDIR(src/ngircd/ngircd.c)
 AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE(1.6)
@@ -101,12 +101,24 @@ AC_HEADER_TIME
 AC_HEADER_SYS_WAIT
 
 AC_CHECK_HEADERS([ \
-       ctype.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h \
-       strings.h sys/socket.h sys/time.h unistd.h \
+       ctype.h errno.h fcntl.h netdb.h netinet/in.h netinet/in_systm.h \
+       stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h \
        ],,AC_MSG_ERROR([required C header missing!]))
 
 AC_CHECK_HEADERS([ \
-       arpa/inet.h ctype.h malloc.h netinet/ip.h stdbool.h stddef.h varargs.h])
+       arpa/inet.h ctype.h malloc.h netinet/ip.h stdbool.h stddef.h varargs.h \
+       ],[],[],[[
+       #ifdef HAVE_SYS_TYPES_H
+               #include <sys/types.h>
+       #endif
+       #ifdef HAVE_SYS_SOCKET_H
+               #include <sys/socket.h>
+       #endif
+       #ifdef HAVE_NETINET_IN_H
+               #include <netinet/in.h>
+       #endif
+       ]]
+)
 
 # -- Datatypes --