]> git.ipfire.org Git - people/ms/network.git/blobdiff - configure.ac
settings: Some code refactoring
[people/ms/network.git] / configure.ac
index 156e32a5c52dc5c8488d52e5838265c088e5df4b..08e9089afbd62ba72aed1dfbad78fc4196d82eab 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
@@ -98,6 +100,7 @@ AC_SUBST([OUR_LDFLAGS], $with_ldflags)
 AC_CHECK_HEADERS_ONCE([
        ctype.h
        errno.h
+       linux/netlink.h
        net/if.h
        stdarg.h
        stdio.h
@@ -111,6 +114,15 @@ AC_CHECK_FUNCS([ \
        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.])
+])
+
 # ------------------------------------------------------------------------------
 AC_ARG_WITH([systemdsystemunitdir],
        AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),