summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-08-17 20:59:21 +0000
committerStef Walter <stef@memberwebs.com>2004-08-17 20:59:21 +0000
commitbe3808480b56e33331dcc2fac79bd847a3d8c77b (patch)
tree20d8b94d80bfa1b19efe0b22f7d0b18f501debc7
parentd92564c87818157b09ddfbf3314406b765ca390a (diff)
- Added mysql support
-rw-r--r--acsite.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/acsite.m4 b/acsite.m4
index e8cdb22..98318d3 100644
--- a/acsite.m4
+++ b/acsite.m4
@@ -198,3 +198,18 @@ fi
AC_LANG_RESTORE
])dnl ACX_PTHREAD
+
+AC_DEFUN([AC_CHECK_MYSQL],[
+AC_PATH_PROG(mysqlconfig,mysql_config)
+if test [ -z "$mysqlconfig" ]
+then
+ AC_MSG_ERROR([mysql_config executable not found (part of mysql dev packages)])
+else
+ AC_MSG_CHECKING(MYSQL includes)
+ MYSQL_CFLAGS=`${mysqlconfig} --cflags`
+ AC_MSG_RESULT($MYSQL_CFLAGS)
+ AC_MSG_CHECKING(MYSQL libraries)
+ MYSQL_LIBS=`${mysqlconfig} --libs`
+ AC_MSG_RESULT($MYSQL_LIBS)
+fi
+])dnl AC_CHECK_MYSQL