From: Florian Forster Date: Tue, 10 Apr 2007 15:08:09 +0000 (+0200) Subject: configure.in: Improved the checks for `net/if_arp.h' and `netinet/if_ether.h'. X-Git-Tag: collectd-3.11.4~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bd4c3492dc5bc790d336ef3f794c72042e665a2d;p=collectd.git configure.in: Improved the checks for `net/if_arp.h' and `netinet/if_ether.h'. --- 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)