From bd4c3492dc5bc790d336ef3f794c72042e665a2d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 10 Apr 2007 17:08:09 +0200 Subject: [PATCH] configure.in: Improved the checks for `net/if_arp.h' and `netinet/if_ether.h'. --- configure.in | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 4e241b49..51270d11 100644 --- a/configure.in +++ b/configure.in @@ -305,9 +305,29 @@ AC_CHECK_HEADERS(regex.h) # For the dns plugin AC_CHECK_HEADERS(arpa/nameser.h arpa/nameser_compat.h) -AC_CHECK_HEADERS(net/if_arp.h) +AC_CHECK_HEADERS(net/if_arp.h, [], [], +[#if HAVE_SYS_SOCKET_H +# include +#endif +]) AC_CHECK_HEADERS(net/if_ppp.h) -AC_CHECK_HEADERS(netinet/if_ether.h) +AC_CHECK_HEADERS(netinet/if_ether.h, [], [], +[#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_SYS_SOCKET_H +# include +#endif +#if HAVE_NET_IF_H +# include +#endif +#if HAVE_NETINET_IN_H +# include +#endif +]) dnl Checking for libraries AC_CHECK_LIB(m, ext) -- 2.11.0