build: format the header check for netinet/ip.h more nicely
authorTimur <timur@FreeBSD.org>
Tue, 17 Mar 2009 21:45:28 +0000 (22:45 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 19 Mar 2009 17:04:01 +0000 (18:04 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit e8aa7169a6672bd32af6c5580f6e8ec7e99511bc)

source/lib/replace/libreplace_network.m4

index 9b921a064fa96f057a821f6e3429c7fdba032f25..2032dfd3fffc4cb919c5ba87d83e89528c11720d 100644 (file)
@@ -8,12 +8,14 @@ LIBREPLACE_NETWORK_LIBS=""
 
 AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h arpa/inet.h)
 AC_CHECK_HEADERS(netinet/in_systm.h)
-AC_CHECK_HEADERS([netinet/ip.h], [], [], [#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_NETINET_IN_SYSTM_H
-#include <netinet/in_systm.h>
-#endif])
+AC_CHECK_HEADERS([netinet/ip.h], [], [],[
+       #ifdef HAVE_NETINET_IN_H
+       #include <netinet/in.h>
+       #endif
+       #ifdef HAVE_NETINET_IN_SYSTM_H
+       #include <netinet/in_systm.h>
+       #endif
+])
 AC_CHECK_HEADERS(netinet/tcp.h netinet/in_ip.h)
 AC_CHECK_HEADERS(sys/sockio.h sys/un.h)