From be3808480b56e33331dcc2fac79bd847a3d8c77b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 17 Aug 2004 20:59:21 +0000 Subject: - Added mysql support --- acsite.m4 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'acsite.m4') 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 -- cgit v1.2.3