mysql: use mysql_config --include for include path
authorRuben Kerkhof <ruben@tilaa.com>
Sat, 1 Aug 2015 17:03:34 +0000 (19:03 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Fri, 11 Sep 2015 20:24:16 +0000 (22:24 +0200)
According to the mysql_config manpage, --cflags shows the
compiler flags the library was compiled with. We certainly don't
want to use those.

configure.ac

index ce01b1e..41c36cb 100644 (file)
@@ -2585,7 +2585,7 @@ AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to
 ])
 if test "x$with_libmysql" = "xyes"
 then
-       with_mysql_cflags=`$with_mysql_config --cflags 2>/dev/null`
+       with_mysql_cflags=`$with_mysql_config --include 2>/dev/null`
        mysql_config_status=$?
 
        if test $mysql_config_status -ne 0