diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2016-01-30 17:08:40 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2016-01-30 17:08:40 +0000 |
commit | 947da597663e60b0a214d96bfcadc0cd042a49ff (patch) | |
tree | f4d3df7b9f3e41ee4beed2e049d9b52031404b8e /configure.ac | |
parent | cec92f1a82b9f29ec16a4c03c37487c7cb019acf (diff) | |
parent | 0b0aac6ce21bcb38d7e03dc2b3ff419861476a24 (diff) | |
download | wavemon-947da597663e60b0a214d96bfcadc0cd042a49ff.tar.gz |
Merge tag 'upstream/0.8.0'
Upstream version 0.8.0
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
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 |