X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=0b9a8c0ee010474e5642064fab830fd4439de75a;hb=fc73960f67a0676956439e6504086439af59a948;hp=ab94506a81364bb4d785a06df05a1073c665ae15;hpb=6995e2cfd517af456904db26b7781b4953feeacc;p=liboping.git diff --git a/configure.ac b/configure.ac index ab94506..0b9a8c0 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT(liboping, 0.1.0) +AC_INIT(liboping, 0.2.2) AC_CONFIG_SRCDIR(src/liboping.c) AC_CONFIG_HEADERS(src/config.h) AM_INIT_AUTOMAKE(dist-bzip2) @@ -46,11 +46,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 @@ -59,6 +65,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 @@ -70,6 +79,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 @@ -84,6 +96,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 @@ -101,6 +116,9 @@ AC_CHECK_HEADERS(netinet/ip6.h, [], [], #if HAVE_SYS_TYPES_H # include #endif +#if HAVE_SYS_TYPES_H +# include +#endif #if HAVE_NETINET_IN_SYSTM_H # include #endif @@ -140,4 +158,13 @@ AC_CHECK_FUNCS(nanosleep, [], AC_MSG_ERROR(cannot find nanosleep))) AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes") +AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [Enable extensive debugging output.])], +[ + if test "x$enable_debug" = "xyes" + then + AC_DEFINE(WITH_DEBUG, 1, [Define to 1 if you want to get debugging output.]) + fi +], []) +AM_CONDITIONAL(BUILD_WITH_DEBUG, test "x$enable_debug" = "xyes") + AC_OUTPUT(Makefile src/Makefile src/mans/Makefile)