Merge from built to trunk
[awesomized/libmemcached] / libtest / m4 / mysql.m4
1 AX_LIB_MYSQL([5.0])
2 AM_CONDITIONAL(HAVE_LIBMYSQL, test "x${found_mysql}" = "xyes")
3 AS_IF([test "x${found_mysql}" = "xyes"],
4 [
5 AC_DEFINE([HAVE_LIBMYSQL_BUILD], [1], [Define to 1 if MySQL libraries are available])
6 ],
7 [
8 AC_DEFINE([HAVE_LIBMYSQL_BUILD], [0], [Define to 1 if MySQL libraries are available])
9 ])
10 AX_PROG_MYSQLD
11 AS_IF([test -f "$ac_cv_path_MYSQLD"],
12 [
13 AC_DEFINE([HAVE_MYSQLD_BUILD], [1], [Define to 1 if MySQLD binary is available])
14 AC_DEFINE_UNQUOTED([MYSQLD_BINARY], "$ac_cv_path_MYSQLD", [Name of the mysqld binary used in make test])
15 ],
16 [
17 AC_DEFINE([HAVE_MYSQLD_BUILD], [0], [Define to 1 if MySQLD binary is available])
18 AC_DEFINE([MYSQLD_BINARY], [0], [Name of the mysqld binary used in make test])
19 ])
20