Code

Fix for mysql 3.x
authorTon Voon <tonvoon@users.sourceforge.net>
Tue, 21 Mar 2006 13:32:58 +0000 (13:32 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Tue, 21 Mar 2006 13:32:58 +0000 (13:32 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1336 f882894a-f735-0410-b71e-b25c423dba1c

configure.in

index 87b8e2cc18686c8a193d2a7d5a04c1695ef29e52..6ce6b0b1f1e69e7612d4dd86aeb72fb5e51796f6 100644 (file)
@@ -261,6 +261,10 @@ if test -z "$MYSQLCONFIG"; then
 else
   EXTRAS="$EXTRAS check_mysql check_mysql_query"
   MYSQLINCLUDE=`$MYSQLCONFIG --include`
+  if test $? != 0 ; then
+    # mysql_config for 3.x does not support --include
+    MYSQLINCLUDE=""
+  fi
   MYSQLLIBS=`$MYSQLCONFIG --libs`
   MYSQLCFLAGS=`$MYSQLCONFIG --cflags`
   AC_SUBST(MYSQLINCLUDE)