diff options
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/configure.in b/configure.in index c6730189..509b6236 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3,11 +3,15 @@ include(`aclocal.m4') | |||
| 3 | include(`getloadavg.m4') | 3 | include(`getloadavg.m4') |
| 4 | AC_REVISION ($Revision$) | 4 | AC_REVISION ($Revision$) |
| 5 | AC_INIT(Helper.pm) | 5 | AC_INIT(Helper.pm) |
| 6 | PACKAGE_VERSION="1.3.0" | 6 | VER=1.3.0 |
| 7 | REL=beta2 | ||
| 8 | AC_SUBST(VER) | ||
| 9 | AC_SUBST(REL) | ||
| 10 | PACKAGE_VERSION="${VER}-${REL}" | ||
| 7 | AC_SUBST(PACKAGE_VERSION) | 11 | AC_SUBST(PACKAGE_VERSION) |
| 8 | PACKAGE_RELEASE="alpha1" | 12 | PACKAGE_RELEASE="alpha1" |
| 9 | AC_SUBST(PACKAGE_RELEASE) | 13 | AC_SUBST(PACKAGE_RELEASE) |
| 10 | AM_INIT_AUTOMAKE(nagios-plugins,${PACKAGE_VERSION}-${PACKAGE_RELEASE}) | 14 | AM_INIT_AUTOMAKE(nagios-plugins,${PACKAGE_VERSION}) |
| 11 | AM_CONFIG_HEADER(plugins/config.h plugins/common.h plugins/version.h plugins/netutils.h plugins/utils.h plugins/popen.h) | 15 | AM_CONFIG_HEADER(plugins/config.h plugins/common.h plugins/version.h plugins/netutils.h plugins/utils.h plugins/popen.h) |
| 12 | 16 | ||
| 13 | AC_PREFIX_DEFAULT(/usr/local/nagios) | 17 | AC_PREFIX_DEFAULT(/usr/local/nagios) |
| @@ -366,12 +370,15 @@ AC_TRY_COMPILE([#include <getopt.h> | |||
| 366 | DEPLIBS="$DEPLIBS libgetopt.a"]) | 370 | DEPLIBS="$DEPLIBS libgetopt.a"]) |
| 367 | 371 | ||
| 368 | AC_TRY_COMPILE([#include <sys/time.h>], | 372 | AC_TRY_COMPILE([#include <sys/time.h>], |
| 369 | [struct timeval *foo;], | 373 | [struct timeval *tv; |
| 370 | [AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure])]) | 374 | struct timezone *tz;], |
| 371 | 375 | AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure]) | |
| 372 | AC_TRY_COMPILE([#include <sys/time.h>], | 376 | AC_TRY_COMPILE([#include <sys/time.h>], |
| 373 | [gettimeofday(NULL, NULL);], | 377 | [struct timeval *tv; |
| 374 | AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found])) | 378 | struct timezone *tz; |
| 379 | gettimeofday(tv, tz);], | ||
| 380 | AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]), | ||
| 381 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))) | ||
| 375 | 382 | ||
| 376 | dnl Checks for library functions. | 383 | dnl Checks for library functions. |
| 377 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul) | 384 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul) |
