From: octo Date: Thu, 1 Jun 2006 20:36:43 +0000 (+0000) Subject: Updated the configure script to work under *BSD. X-Git-Tag: collectd-3.8.6^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac491e03d03e6fae8192371a9d7afa0eb5391b27;p=collectd.git Updated the configure script to work under *BSD. There was a problem with building the `oping' library under FreeBSD. The `netinet/*.h' includes need to have `sys/types.h' included before them. Under other operating systems only `stdint.h' is neccessary. --- diff --git a/configure.in b/configure.in index 315e28d0..418a0634 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(collectd, 3.9.2) +AC_INIT(collectd, 3.9.3-alpha0) AC_CONFIG_SRCDIR(src/collectd.c) AC_CONFIG_HEADERS(src/config.h) AM_INIT_AUTOMAKE(dist-bzip2) @@ -54,11 +54,17 @@ AC_CHECK_HEADERS(netinet/in_systm.h, [], [], [#if HAVE_STDINT_H # include #endif +#if HAVE_SYS_TYPES_H +# include +#endif ]) AC_CHECK_HEADERS(netinet/in.h, [], [], [#if HAVE_STDINT_H # include #endif +#if HAVE_SYS_TYPES_H +# include +#endif #if HAVE_NETINET_IN_SYSTM_H # include #endif @@ -67,6 +73,9 @@ AC_CHECK_HEADERS(netinet/ip.h, [], [], [#if HAVE_STDINT_H # include #endif +#if HAVE_SYS_TYPES_H +# include +#endif #if HAVE_NETINET_IN_SYSTM_H # include #endif @@ -78,6 +87,9 @@ AC_CHECK_HEADERS(netinet/ip_icmp.h, [], [], [#if HAVE_STDINT_H # include #endif +#if HAVE_SYS_TYPES_H +# include +#endif #if HAVE_NETINET_IN_SYSTM_H # include #endif @@ -92,6 +104,9 @@ AC_CHECK_HEADERS(netinet/ip_var.h, [], [], [#if HAVE_STDINT_H # include #endif +#if HAVE_SYS_TYPES_H +# include +#endif #if HAVE_NETINET_IN_SYSTM_H # include #endif