summaryrefslogtreecommitdiff
path: root/config/ac-macros/ha_federated.m4
blob: 5c991f316669db61c27a4753979a92dbe4cc0c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
dnl ---------------------------------------------------------------------------
dnl Macro: MYSQL_CHECK_FEDERATED
dnl Sets HAVE_FEDERATED if --with-federated-storage-engine is used
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_CHECK_FEDERATED], [
  AC_ARG_WITH([federated-storage-engine],
              [
  --with-federated-storage-engine
                        Enable the MySQL Federated Storage Engine],
              [federateddb="$withval"],
              [federateddb=no])
  AC_MSG_CHECKING([for MySQL federated storage engine])

  case "$federateddb" in
    yes )
      AC_DEFINE([HAVE_FEDERATED_DB], [1], [Define to enable Federated Handler])
      AC_MSG_RESULT([yes])
      [federateddb=yes]
      ;;
    * )
      AC_MSG_RESULT([no])
      [federateddb=no]
      ;;
  esac

])
dnl ---------------------------------------------------------------------------
dnl END OF MYSQL_CHECK_FEDERATED SECTION
dnl ---------------------------------------------------------------------------