]> granicus.if.org Git - php/commitdiff
Improve detection of resolv.h on versions of Darwin, FreeBSD and Solaris
authorMarko Karppinen <markonen@php.net>
Fri, 25 Jan 2002 23:42:23 +0000 (23:42 +0000)
committerMarko Karppinen <markonen@php.net>
Fri, 25 Jan 2002 23:42:23 +0000 (23:42 +0000)
(this requires post-2.13 autoconf, but 2.13 ignores it gracefully)

configure.in

index 8d5ab5e55e2c4028694b1f7357bfb3fc4a5ddb41..51e6fe9cf433087becabe60a04826235481b6aba 100644 (file)
@@ -326,7 +326,15 @@ sys/wait.h \
 unistd.h \
 unix.h \
 utime.h \
-)
+,,,[
+$ac_includes_default
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#if HAVE_ARPA_NAMESER_H
+#include <arpa/nameser.h>
+#endif
+])
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_STRUCT_TM