diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2020-07-29 23:11:46 +0100 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2020-07-29 23:11:46 +0100 |
commit | 8deb3660926fe8278948b898b9c1b772eed2e61e (patch) | |
tree | cc46239969468c1f4017da7aac5420664b5bbd22 /configure.ac | |
parent | 1fc41b776f712f321c1f355d391c6a5eaf79ebfa (diff) | |
download | wavemon-8deb3660926fe8278948b898b9c1b772eed2e61e.tar.gz |
New upstream version 0.9.1upstream/0.9.1upstream
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 323b96c..c70e825 100644 --- a/configure.ac +++ b/configure.ac @@ -1,19 +1,12 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.64) -AC_INIT([wavemon], [0.8.2], [https://github.com/uoaerg/wavemon], [wavemon-current], +AC_INIT([wavemon], [0.9.1], [https://github.com/uoaerg/wavemon], [wavemon-current], [https://github.com/uoaerg/wavemon]) # Variables AC_CONFIG_AUX_DIR([config]) AC_CONFIG_FILES([Makefile]) -# 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" @@ -62,7 +55,16 @@ AC_CHECK_LIB([m], [pow], [], [AC_MSG_ERROR(math library not found)] AC_CHECK_LIB([ncurses], [waddstr], [], [AC_MSG_ERROR(ncurses library not found)]) AC_CHECK_LIB([pthread], [pthread_create], [CFLAGS="$CFLAGS -pthread"], [AC_MSG_ERROR(pthread library not found)]) -AC_CHECK_LIB([cap], [cap_get_flag]) + +# libcap - allow to disable, since e.g. OpenWrt does not use it. +# https://github.com/uoaerg/wavemon/issues/54 +AC_ARG_WITH([libcap], + [AS_HELP_STRING([--without-libcap], + [disable support for libcap])], + [], + [with_libcap=yes]) + +AS_IF([test "x$with_libcap" != xno], AC_CHECK_LIB([cap], [cap_get_flag])) # Testing library functions AC_CHECK_FUNCS([gettimeofday ether_ntohost], [], |