[monitoring-plugins] check-curl: have some fallbacks ready if ...

Andreas Baumann git at monitoring-plugins.org
Fri Jun 1 18:40:15 CEST 2018


 Module: monitoring-plugins
 Branch: feature_check_curl
 Commit: d31df38777e2f6b2056361eee771b705370b30d5
 Author: Andreas Baumann <mail at andreasbaumann.cc>
   Date: Fri Jun  1 18:35:02 2018 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=d31df38

check-curl: have some fallbacks ready if pkg-config is missing for uriparser tests

---

 m4/uriparser.m4 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/m4/uriparser.m4 b/m4/uriparser.m4
index 7fb25d6..dc40473 100644
--- a/m4/uriparser.m4
+++ b/m4/uriparser.m4
@@ -73,6 +73,10 @@ AC_DEFUN([URIPARSER_CHECK],
         fi
 
         unset _uriparser_wanted
+     else
+        dnl no pkg-config, ok, to our best and set some defaults
+        URIPARSER_CPPFLAGS="-I/usr/include"
+        URIPARSER="-luriparser -L/usr/lib -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/i686-linux-gnu"
      fi
 
      if test $_uriparser_try_link = yes ; then



More information about the Commits mailing list