X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=e8105b25fc8cd3dfb29484d3344fa2d57832e1d0;hb=ae248f74a3c30f1a5c118b3ac49b6f5360c2d66f;hp=05226e237f3d69d2869c0bfdd1aac12dd1ef49ae;hpb=7736131a7e836a92ebf334d6cf05a619b9d9625e;p=liboping.git diff --git a/configure.ac b/configure.ac index 05226e2..e8105b2 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT(liboping, 0.1.1) +AC_INIT(liboping, 0.3.2) AC_CONFIG_SRCDIR(src/liboping.c) AC_CONFIG_HEADERS(src/config.h) AM_INIT_AUTOMAKE(dist-bzip2) @@ -19,13 +19,9 @@ AM_CONDITIONAL(COMPILER_IS_GCC, test "x$GCC" = "xyes") # # configure libtool # -AC_LIBLTDL_CONVENIENCE -AC_SUBST(LTDLINCL) -AC_SUBST(LIBLTDL) AC_LIBTOOL_DLOPEN AC_PROG_LIBTOOL #AC_PROG_RANLIB -AC_CONFIG_SUBDIRS(libltdl src) # # Checks for header files. @@ -46,11 +42,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 +61,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 +75,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 +92,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 +112,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 +154,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)