aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 87b8e2cc..6ce6b0b1 100644
--- a/configure.in
+++ b/configure.in
@@ -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)