aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configure.ac19
1 files changed, 16 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index e50c986..7132dea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,14 +1,19 @@
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.64)
-AC_INIT([wavemon], [0.7.6], [gerrit@erg.abdn.ac.uk], [wavemon-current],
- [http://www.erg.abdn.ac.uk/ergcms/wavemon/])
+AC_INIT([wavemon], [0.8.0], [gerrit@erg.abdn.ac.uk], [wavemon-current],
+ [https://github.com/uoaerg/wavemon])
# Variables
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_FILES([Makefile])
-AC_DEFINE_UNQUOTED([BUILD_DATE], ["`/bin/date`"],
+# allow BUILD_DATE to be externally set for build reproducibility
+if test "$BUILD_DATE"; then
+ AC_DEFINE_UNQUOTED(BUILD_DATE, ["$BUILD_DATE"])
+else
+ AC_DEFINE_UNQUOTED([BUILD_DATE], ["`/bin/date`"],
[date wavemon was last configured and built])
+fi
CFLAGS="-O2 -Wall"
@@ -63,6 +68,14 @@ AC_CHECK_LIB([cap], [cap_get_flag])
AC_CHECK_FUNCS([gettimeofday ether_ntohost], [],
[AC_MSG_ERROR(function '$ac_func' not supported)])
+# libnl3 with GeNetlink support - wavemon is tracking changes to iw
+PKG_CHECK_MODULES([LIBNL3], [libnl-3.0 >= 3.2], [],
+ [CFLAGS="$CFLAGS $LIBNL3_CFLAGS"],
+ [AC_MSG_ERROR(need libnl >= 3.2)])
+PKG_CHECK_MODULES([LIBNL3_GENL], [libnl-genl-3.0 >= 3.2],
+ [LIBS="$LIBS $LIBNL3_GENL_LIBS"],
+ [AC_MSG_ERROR(need libnl-genl >= 3.2)])
+
# Checks for typedefs, structures, and compiler characteristics.
AC_PROG_GCC_TRADITIONAL
AC_C_CONST