diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2014-01-25 00:07:30 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2014-01-25 00:07:30 +0000 |
commit | d7ca0c3e555ef0b5250873ddce48ccf2326b017a (patch) | |
tree | 52fc801f0893eb7752524b2602d420afbda4ed59 /configure.ac | |
parent | 3645c236e9720deb696e7aebc33cd9a6d8cbbdc6 (diff) | |
download | wavemon-d7ca0c3e555ef0b5250873ddce48ccf2326b017a.tar.gz |
Imported Upstream version 0.7.6upstream/0.7.6
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac index 8d6cbce..e50c986 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.64) -AC_INIT([wavemon], [0.7.5], [gerrit@erg.abdn.ac.uk], [wavemon-current], - [http://eden-feed.erg.abdn.ac.uk/wavemon]) +AC_INIT([wavemon], [0.7.6], [gerrit@erg.abdn.ac.uk], [wavemon-current], + [http://www.erg.abdn.ac.uk/ergcms/wavemon/]) # Variables @@ -28,7 +28,7 @@ AC_PROG_INSTALL AC_HEADER_STDC AC_HEADER_TIME AC_CHECK_HEADERS([ncurses.h fcntl.h netdb.h sys/ioctl.h sys/time.h unistd.h\ - net/if_arp.h netinet/ether.h net/ethernet.h], + net/if_arp.h netinet/ether.h net/ethernet.h pthread.h], [], [AC_MSG_ERROR($ac_header not found)]) # linux/if.h needs 'struct sockaddr' @@ -53,18 +53,14 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM( AC_HEADER_STDBOOL # Tests involving libraries -AC_CHECK_LIB([m], [pow]) -AC_CHECK_LIB([ncurses], [waddstr]) +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]) - # Testing library functions -AC_CHECK_FUNCS([modf log10 gettimeofday \ - memmove memset strdup \ - strchr strspn strcspn \ - strcasecmp strncasecmp \ - strtol \ - ether_ntohost], [], +AC_CHECK_FUNCS([gettimeofday ether_ntohost], [], [AC_MSG_ERROR(function '$ac_func' not supported)]) # Checks for typedefs, structures, and compiler characteristics. |