summaryrefslogtreecommitdiff
path: root/acsite.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acsite.m4')
-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