build system: Use the libs provided by `mysql_config' to check for the lib itself.
authorFlorian Forster <octo@huhu.verplant.org>
Fri, 24 Aug 2007 11:57:19 +0000 (13:57 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Fri, 24 Aug 2007 11:57:19 +0000 (13:57 +0200)
configure.in

index 14595b3..cbf9190 100644 (file)
@@ -1057,7 +1057,11 @@ then
        [
                AC_DEFINE(HAVE_LIBMYSQLCLIENT, 1,
                          [Define to 1 if you have the mysqlclient library (-lmysqlclient).])
-       ], [with_libmysql="no (libmysql not found)"])
+       ],
+       [
+               with_libmysql="no (libmysql not found)"
+       ],
+       [$with_mysql_libs])
 fi
 if test "x$with_libmysql" = "xyes"
 then