diff options
author | Sven Nierlein <sven@nierlein.de> | 2018-10-24 09:17:16 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-24 09:17:16 +0200 |
commit | 7a46c98f830526a0e682d28d5a9db3d838ac9f36 (patch) | |
tree | 877c4111d911df374028cfb829a532a75cd55e4e | |
parent | 7501ba9f8a34413147281bed0b32b89da1ce2cb7 (diff) | |
download | monitoring-plugins-7a46c98.tar.gz |
check_curl: do not build check_curl if curllibs are missing
-rw-r--r-- | configure.ac | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 1fccf53d..725bf0ff 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -403,7 +403,6 @@ LIBCURL_CHECK_CONFIG(yes, 7.15.2, [ | |||
403 | 403 | ||
404 | dnl Check for uriparser library | 404 | dnl Check for uriparser library |
405 | URIPARSER_CHECK(yes, 0.7.5, [ | 405 | URIPARSER_CHECK(yes, 0.7.5, [ |
406 | _can_enable_check_curl=yes | ||
407 | URIPARSERINCLUDE="$URIPARSER_CPPFLAGS" | 406 | URIPARSERINCLUDE="$URIPARSER_CPPFLAGS" |
408 | URIPARSERLIBS="$URIPARSER" | 407 | URIPARSERLIBS="$URIPARSER" |
409 | URIPARSERCFLAGS="$URIPARSER_CPPFLAGS" | 408 | URIPARSERCFLAGS="$URIPARSER_CPPFLAGS" |
@@ -418,10 +417,10 @@ URIPARSER_CHECK(yes, 0.7.5, [ | |||
418 | 417 | ||
419 | dnl prerequisites met, enable the plugin | 418 | dnl prerequisites met, enable the plugin |
420 | if test x$_can_enable_check_curl = xyes; then | 419 | if test x$_can_enable_check_curl = xyes; then |
421 | EXTRAS="$EXTRAS check_curl\$(EXEEXT)" | 420 | EXTRAS="$EXTRAS check_curl\$(EXEEXT)" |
422 | 421 | ||
423 | dnl Enable bundled picohttpparser library (for now) | 422 | dnl Enable bundled picohttpparser library (for now) |
424 | AC_SUBST(PICOHTTPPARSER_DIR, picohttpparser) | 423 | AC_SUBST(PICOHTTPPARSER_DIR, picohttpparser) |
425 | fi | 424 | fi |
426 | AM_CONDITIONAL([WITH_CHECK_CURL], [test "$_can_enable_check_curl" = "yes"]) | 425 | AM_CONDITIONAL([WITH_CHECK_CURL], [test "$_can_enable_check_curl" = "yes"]) |
427 | AM_COND_IF([WITH_CHECK_CURL], | 426 | AM_COND_IF([WITH_CHECK_CURL], |