aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-05-24 12:48:07 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-05-24 12:48:07 +0000
commit3e3f4b233d59b403a4b4e56de3054692f2d39657 (patch)
treef902992d9d5cbf0c66b6ae1a9fd2f94718fbda81
parent49f15b6bbfa6d1be2f4d24a77086e2cde6db2a91 (diff)
downloadmonitoring-plugins-3e3f4b233d59b403a4b4e56de3054692f2d39657.tar.gz
Fix for mysql 3.x (Jeremy Reed, Michael Tiernan - 1491936)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1401 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--THANKS.in2
-rw-r--r--configure.in4
2 files changed, 6 insertions, 0 deletions
diff --git a/THANKS.in b/THANKS.in
index 71d272f9..0a5a34fb 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -181,3 +181,5 @@ Sakari Lehtonen
John Rouillard
Sebastian Wiesinger
Jason Kau
+Michael Tiernan
+Jeremy Reed
diff --git a/configure.in b/configure.in
index 0aee3bc5..5988b332 100644
--- a/configure.in
+++ b/configure.in
@@ -273,6 +273,10 @@ if test $with_mysql != "no" ; then
with_mysql=$MYSQLCONFIG
EXTRAS="$EXTRAS check_mysql check_mysql_query"
MYSQLINCLUDE=`$MYSQLCONFIG --include`
+ # Mysql 3 does not support --include. --cflags should be sufficient
+ if test $? -ne 0 ; then
+ MYSQLINCLUDE=""
+ fi
MYSQLLIBS=`$MYSQLCONFIG --libs`
MYSQLCFLAGS=`$MYSQLCONFIG --cflags`
AC_SUBST(MYSQLINCLUDE)