Fix for case where key may not be checked.
[m6w6/libmemcached] / libtest / m4 / mysql.m4
1 m4_include([libtest/m4/ax_lib_mysql.m4])
2 m4_include([libtest/m4/ax_prog_mysqld.m4])
3
4 #serial 1
5
6 AC_DEFUN([YATL_MYSQL], [
7 AC_REQUIRE([AX_PROG_MYSQLD])
8
9 AX_LIB_MYSQL([5.0])
10 AM_CONDITIONAL(HAVE_LIBMYSQL, test "x${found_mysql}" = "xyes")
11 AS_IF([test "x${found_mysql}" = "xyes"],[
12 AC_DEFINE([HAVE_LIBMYSQL_BUILD], [1], [Define to 1 if MySQL libraries are available])
13 ],[
14 AC_DEFINE([HAVE_LIBMYSQL_BUILD], [0], [Define to 1 if MySQL libraries are available])
15 ])
16
17 AS_IF([test -f "$ac_cv_path_MYSQLD"],[
18 AC_DEFINE([HAVE_MYSQLD_BUILD], [1], [Define to 1 if MySQLD binary is available])
19 AC_DEFINE_UNQUOTED([MYSQLD_BINARY], "$ac_cv_path_MYSQLD", [Name of the mysqld binary used in make test])
20 ],[
21 AC_DEFINE([HAVE_MYSQLD_BUILD], [0], [Define to 1 if MySQLD binary is available])
22 AC_DEFINE([MYSQLD_BINARY], [0], [Name of the mysqld binary used in make test])
23 ])
24 ])