diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-01-13 09:48:45 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-22 14:28:51 (GMT) |
commit | 0b85260bd2d6b2fd62588c71daf44bc1156a632f (patch) | |
tree | 80f6265c063e7aa08354d3fafbbdf4f2d2f141bb /configure.ac | |
parent | 82a634f7bfa433b78560be45ae6b52e1d101a26a (diff) | |
download | monitoring-plugins-0b85260bd2d6b2fd62588c71daf44bc1156a632f.tar.gz |
added autoconf stuff for curl plugin, created empty plugin
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index bf12995..04ec5bd 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -385,6 +385,20 @@ if test "$ac_cv_header_wtsapi32_h" = "yes"; then | |||
385 | AC_SUBST(WTSAPI32LIBS) | 385 | AC_SUBST(WTSAPI32LIBS) |
386 | fi | 386 | fi |
387 | 387 | ||
388 | dnl Check for cURL library | ||
389 | LIBCURL_CHECK_CONFIG(yes, 7.15.2, [ | ||
390 | EXTRAS="$EXTRAS check_curl\$(EXEEXT)" | ||
391 | LIBCURLINCLUDE="$LIBCURL_CPPFLAGS" | ||
392 | LIBCURLLIBS="$LIBCURL" | ||
393 | LIBCURLCFLAGS="$LIBCURL_CPPFLAGS" | ||
394 | AC_SUBST(LIBCURLINCLUDE) | ||
395 | AC_SUBST(LIBCURLLIBS) | ||
396 | AC_SUBST(LIBCURLCFLAGS) | ||
397 | ], [ | ||
398 | AC_MSG_WARN([Skipping curl plugin]) | ||
399 | AC_MSG_WARN([install libcurl libs to compile this plugin (see REQUIREMENTS).]) | ||
400 | ]) | ||
401 | |||
388 | dnl Fallback to who(1) if the system doesn't provide an utmpx(5) interface | 402 | dnl Fallback to who(1) if the system doesn't provide an utmpx(5) interface |
389 | if test "$ac_cv_header_utmpx_h" = "no" -a "$ac_cv_header_wtsapi32_h" = "no" | 403 | if test "$ac_cv_header_utmpx_h" = "no" -a "$ac_cv_header_wtsapi32_h" = "no" |
390 | then | 404 | then |
@@ -1882,4 +1896,5 @@ ACX_FEATURE([enable],[perl-modules]) | |||
1882 | ACX_FEATURE([with],[cgiurl]) | 1896 | ACX_FEATURE([with],[cgiurl]) |
1883 | ACX_FEATURE([with],[trusted-path]) | 1897 | ACX_FEATURE([with],[trusted-path]) |
1884 | ACX_FEATURE([enable],[libtap]) | 1898 | ACX_FEATURE([enable],[libtap]) |
1899 | ACX_FEATURE([with],[libcurl]) | ||
1885 | 1900 | ||