diff options
author | Greg Cox <gcox@fibbsbozza.local> | 2014-07-29 18:52:12 -0400 |
---|---|---|
committer | Greg Cox <gcox@fibbsbozza.local> | 2014-07-29 18:52:12 -0400 |
commit | 4273dd06ff3e52094d6b267d00e8c51dd74de364 (patch) | |
tree | 425d127da5dbec7013999ed01b469fc3f72992d9 /configure.ac | |
parent | f05e7016320f4671fbf86cc5abc277efea20f79e (diff) | |
parent | 6f3d5825b203b75aef8d68bf0d117e7a1a4c0616 (diff) | |
download | monitoring-plugins-4273dd06ff3e52094d6b267d00e8c51dd74de364.tar.gz |
Merge remote-tracking branch 'upstream/master'
Conflicts:
plugins/netutils.c
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 244df427..f6ead580 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,6 +1,6 @@ | |||
1 | dnl Process this file with autoconf to produce a configure script. | 1 | dnl Process this file with autoconf to produce a configure script. |
2 | AC_PREREQ(2.59) | 2 | AC_PREREQ(2.59) |
3 | AC_INIT(monitoring-plugins,1.5) | 3 | AC_INIT(monitoring-plugins,2.0) |
4 | AC_CONFIG_SRCDIR(NPTest.pm) | 4 | AC_CONFIG_SRCDIR(NPTest.pm) |
5 | AC_CONFIG_FILES([gl/Makefile | 5 | AC_CONFIG_FILES([gl/Makefile |
6 | monitoring-plugins.spec]) | 6 | monitoring-plugins.spec]) |
@@ -274,20 +274,27 @@ AC_ARG_WITH([radius], [AS_HELP_STRING([--without-radius], [Skips the radius plug | |||
274 | dnl Check for radius libraries | 274 | dnl Check for radius libraries |
275 | AS_IF([test "x$with_radius" != "xno"], [ | 275 | AS_IF([test "x$with_radius" != "xno"], [ |
276 | _SAVEDLIBS="$LIBS" | 276 | _SAVEDLIBS="$LIBS" |
277 | AC_CHECK_LIB(radiusclient,rc_read_config) | 277 | AC_CHECK_LIB(freeradius-client,rc_read_config) |
278 | if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then | 278 | if test "$ac_cv_lib_freeradius_client_rc_read_config" = "yes"; then |
279 | EXTRAS="$EXTRAS check_radius\$(EXEEXT)" | 279 | EXTRAS="$EXTRAS check_radius\$(EXEEXT)" |
280 | RADIUSLIBS="-lradiusclient" | 280 | RADIUSLIBS="-lfreeradius-client" |
281 | AC_SUBST(RADIUSLIBS) | 281 | AC_SUBST(RADIUSLIBS) |
282 | else | 282 | else |
283 | AC_CHECK_LIB(radiusclient-ng,rc_read_config) | 283 | AC_CHECK_LIB(radiusclient-ng,rc_read_config) |
284 | if test "$ac_cv_lib_radiusclient_ng_rc_read_config" = "yes"; then | 284 | if test "$ac_cv_lib_radiusclient_ng_rc_read_config" = "yes"; then |
285 | EXTRAS="$EXTRAS check_radius\$(EXEEXT)" | 285 | EXTRAS="$EXTRAS check_radius\$(EXEEXT)" |
286 | RADIUSLIBS="-lradiusclient-ng" | 286 | RADIUSLIBS="-lradiusclient-ng" |
287 | AC_SUBST(RADIUSLIBS) | 287 | AC_SUBST(RADIUSLIBS) |
288 | else | 288 | else |
289 | AC_MSG_WARN([Skipping radius plugin]) | 289 | AC_CHECK_LIB(radiusclient,rc_read_config) |
290 | AC_MSG_WARN([install radius libs to compile this plugin (see REQUIREMENTS).]) | 290 | if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then |
291 | EXTRAS="$EXTRAS check_radius\$(EXEEXT)" | ||
292 | RADIUSLIBS="-lradiusclient" | ||
293 | AC_SUBST(RADIUSLIBS) | ||
294 | else | ||
295 | AC_MSG_WARN([Skipping radius plugin]) | ||
296 | AC_MSG_WARN([install radius libs to compile this plugin (see REQUIREMENTS).]) | ||
297 | fi | ||
291 | fi | 298 | fi |
292 | fi | 299 | fi |
293 | LIBS="$_SAVEDLIBS" | 300 | LIBS="$_SAVEDLIBS" |
@@ -509,8 +516,6 @@ dnl check for gnutls if openssl isn't found (or is disabled) | |||
509 | if test ! "$FOUNDOPENSSL" = "yes" && test ! "$with_gnutls" = "no"; then | 516 | if test ! "$FOUNDOPENSSL" = "yes" && test ! "$with_gnutls" = "no"; then |
510 | if test ! "$with_gnutls" = ""; then | 517 | if test ! "$with_gnutls" = ""; then |
511 | CPPFLAGS="$CPPFLAGS -I${with_gnutls}/include" | 518 | CPPFLAGS="$CPPFLAGS -I${with_gnutls}/include" |
512 | elif test ! "$LIBGNUTLS_CONFIG" = ""; then | ||
513 | CPPFLAGS="$CPPFLAGS -I`$LIBGNUTLS_CONFIG --prefix`" | ||
514 | fi | 519 | fi |
515 | AC_CHECK_HEADERS([gnutls/openssl.h],FOUNDGNUTLS="yes",) | 520 | AC_CHECK_HEADERS([gnutls/openssl.h],FOUNDGNUTLS="yes",) |
516 | if test "$FOUNDGNUTLS" = "yes"; then | 521 | if test "$FOUNDGNUTLS" = "yes"; then |