summaryrefslogtreecommitdiffstats
path: root/m4/np_mysqlclient.m4
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2012-04-10 20:49:24 (GMT)
committerMatthias Eble <psychotrahe@users.sourceforge.net>2012-04-10 20:49:24 (GMT)
commit4c30935850997f513b3eee21d169f6d523d43c5d (patch)
tree09a14dfecd959e1b566b9df7b7fdb99f6bb4c5d8 /m4/np_mysqlclient.m4
parent9978b3ca744b076d8ea24441819826938211dd17 (diff)
parent8c7e2b636c601dd05a6881c84cc95136ecf9323e (diff)
downloadmonitoring-plugins-4c30935850997f513b3eee21d169f6d523d43c5d.tar.gz
Merge branch 'master' of ssh://nagiosplug.git.sourceforge.net/gitroot/nagiosplug/nagiosplug
Diffstat (limited to 'm4/np_mysqlclient.m4')
-rw-r--r--m4/np_mysqlclient.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/np_mysqlclient.m4 b/m4/np_mysqlclient.m4
index 9bbe63c..cd36c4f 100644
--- a/m4/np_mysqlclient.m4
+++ b/m4/np_mysqlclient.m4
@@ -42,6 +42,12 @@ AC_DEFUN([np_mysqlclient],
42 fi 42 fi
43 np_mysql_libs="`$np_mysql_config --libs`" 43 np_mysql_libs="`$np_mysql_config --libs`"
44 np_mysql_cflags="`$np_mysql_config --cflags`" 44 np_mysql_cflags="`$np_mysql_config --cflags`"
45 # On Solaris, cflags may contain -xstrconst, which is not acceptable to the
46 # gcc compiler. In this case, use the include flags as the cflags
47 echo $np_mysql_cflags | grep -- -xstrconst > /dev/null 2> /dev/null
48 if test $? -eq 0 -a "$CC" = "gcc" ; then
49 np_mysql_cflags="`$np_mysql_config --include`"
50 fi
45 51
46 dnl Test a mysql_init. Some systems have mysql_config, but no headers 52 dnl Test a mysql_init. Some systems have mysql_config, but no headers
47 _savedcppflags="$CPPFLAGS" 53 _savedcppflags="$CPPFLAGS"