[libgda] Correction for bug #622899
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Correction for bug #622899
- Date: Sun, 25 Sep 2011 20:20:30 +0000 (UTC)
commit a2263c5a462db94fca2cdedd50f2ba031f20fc39
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Sep 25 21:23:02 2011 +0200
Correction for bug #622899
m4/mysql.m4 | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/m4/mysql.m4 b/m4/mysql.m4
index 0b8e017..c3a1631 100644
--- a/m4/mysql.m4
+++ b/m4/mysql.m4
@@ -167,6 +167,31 @@ int main() {
fi
done
fi
+ else
+ AC_MSG_CHECKING([checking for Mysql headers])
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $MYSQL_CFLAGS"
+ save_LIBS="$LIBS"
+ LIBS="$LIBS $MYSQL_LIBS"
+
+ AC_LINK_IFELSE([AC_LANG_SOURCE([
+#include <mysql.h>
+int main() {
+ printf("%p", mysql_real_connect);
+ return 0;
+}
+])],
+ mysql_found=yes)
+ CFLAGS="$save_CFLAGS"
+ LIBS="$save_LIBS"
+ if test "x$mysql_found" = xyes
+ then
+ AC_MSG_RESULT([found])
+ else
+ MYSQL_LIBS=""
+ MYSQL_CFLAGS=""
+ AC_MSG_RESULT([not found])
+ fi
fi
if test "x$MYSQL_LIBS" = x
then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]