]> git.ipfire.org Git - people/ms/network.git/blobdiff - configure.ac
security-policies: performance: Remove CBC ciphers
[people/ms/network.git] / configure.ac
index e9384872e1366d4b0129e8bd5418b13dd00f6f1c..37c17e3e42ecbb1d87605c2b0b3ae98462859fe9 100644 (file)
@@ -21,7 +21,7 @@
 AC_PREREQ([2.64])
 
 AC_INIT([network],
-       [009],
+       [011],
        [info@ipfire.org],
        [network],
        [http://www.ipfire.org/])
@@ -50,6 +50,8 @@ AC_PROG_LN_S
 AC_PROG_MKDIR_P
 AC_PROG_SED
 
+AC_PATH_PROG([NITSI], [nitsi])
+AC_PATH_PROG([WGET], [wget])
 AC_PATH_PROG([XSLTPROC], [xsltproc])
 
 # pkg-config
@@ -96,10 +98,39 @@ AC_SUBST([OUR_LDFLAGS], $with_ldflags)
 # ------------------------------------------------------------------------------
 
 AC_CHECK_HEADERS_ONCE([
+       ctype.h
        errno.h
+       linux/netlink.h
+       net/if.h
+       stdarg.h
+       stdio.h
        stdlib.h
+       string.h
+       syslog.h
 ])
 
+AC_CHECK_FUNCS([ \
+       __secure_getenv \
+       secure_getenv \
+])
+
+# ------------------------------------------------------------------------------
+
+AC_ARG_ENABLE([debug],
+       AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
+       [], [enable_debug=no])
+AS_IF([test "x$enable_debug" = "xyes"], [
+       AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
+])
+
+# ------------------------------------------------------------------------------
+
+have_manpages=no
+AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-man-pages],
+       [do not install man pages]))
+AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
+AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
+
 # ------------------------------------------------------------------------------
 AC_ARG_WITH([systemdsystemunitdir],
        AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
@@ -115,6 +146,18 @@ AC_SUBST([udevdir], [$with_udevdir])
 AM_CONDITIONAL(HAVE_UDEV, [test -n "$with_udevdir"])
 
 # ------------------------------------------------------------------------------
+
+PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-3.0])
+
+# ------------------------------------------------------------------------------
+
+AC_CHECK_PROGS(ASCIIDOC, [asciidoc])
+if test "${have_manpages}" = "yes" && test -z "${ASCIIDOC}"; then
+       AC_MSG_ERROR([Required program 'asciidoc' not found])
+fi
+
+# ------------------------------------------------------------------------------
+
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
        Makefile
@@ -132,4 +175,6 @@ AC_MSG_RESULT([
 
        systemdsystemunitdir: $systemdsystemunitdir
        udevdir:              $udevdir
+
+       Generate man-pages:   ${have_manpages}
 ])