From e8aa7169a6672bd32af6c5580f6e8ec7e99511bc Mon Sep 17 00:00:00 2001 From: Timur Date: Tue, 17 Mar 2009 22:45:28 +0100 Subject: build: format the header check for netinet/ip.h more nicely Signed-off-by: Michael Adam --- lib/replace/libreplace_network.m4 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'lib/replace') diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4 index 9223d94b75..a87320f841 100644 --- a/lib/replace/libreplace_network.m4 +++ b/lib/replace/libreplace_network.m4 @@ -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 -#endif -#ifdef HAVE_NETINET_IN_SYSTM_H -#include -#endif]) +AC_CHECK_HEADERS([netinet/ip.h], [], [],[ + #ifdef HAVE_NETINET_IN_H + #include + #endif + #ifdef HAVE_NETINET_IN_SYSTM_H + #include + #endif +]) AC_CHECK_HEADERS(netinet/tcp.h netinet/in_ip.h) AC_CHECK_HEADERS(sys/sockio.h sys/un.h) AC_CHECK_HEADERS(sys/uio.h) -- cgit