| 22 |
AC_ARG_WITH([sysv], |
AC_ARG_WITH([sysv], |
| 23 |
[AS_HELP_STRING([--with-sysv], [Use System V specific APIs])], |
[AS_HELP_STRING([--with-sysv], [Use System V specific APIs])], |
| 24 |
[AS_IF([test "x$with_sysv" = xyes], |
[AS_IF([test "x$with_sysv" = xyes], |
| 25 |
[AC_DEFINE([HAVE_SYSTEM_V], [1], [Define if System V is available])])]) |
[AC_DEFINE([HAVE_SYSTEM_V], [1], [Define if System V is available [default=yes]])])], |
| 26 |
|
[with_sysv="yes"]) |
| 27 |
AC_ARG_ENABLE([debug], |
AC_ARG_ENABLE([debug], |
| 28 |
[AS_HELP_STRING([--enable-debug], [Enable debug log])], |
[AS_HELP_STRING([--enable-debug], [Enable debug log])], |
| 29 |
[AS_IF([test "x$enable_debug" = xyes], |
[AS_IF([test "x$enable_debug" = xyes], |
| 30 |
[AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled])])]) |
[AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled [default=no]])])]) |
| 31 |
|
|
| 32 |
AC_ARG_WITH([iconv], |
AC_ARG_WITH([iconv], |
| 33 |
[AS_HELP_STRING([--with-iconv], [Use iconv library package config])], |
[AS_HELP_STRING([--with-iconv], [Use iconv library package config [default=no]])], |
| 34 |
[], |
[], |
| 35 |
[with_iconv="no"]) |
[with_iconv="no"]) |
| 36 |
AC_ARG_WITH([mariadb], |
AC_ARG_WITH([mariadb], |
| 37 |
[AS_HELP_STRING([--with-mariadb], [Use MariaDB library instead of MySQL client library])], |
[AS_HELP_STRING([--with-mariadb], [Use MariaDB library instead of MySQL client library [default=no]])], |
| 38 |
[AS_IF([test "x$with_mariadb" = xyes], |
[AS_IF([test "x$with_mariadb" = xyes], |
| 39 |
[AC_DEFINE([HAVE_MARIADB_CLIENT], [1], [Define if MariaDB client is used])])], |
[AC_DEFINE([HAVE_MARIADB_CLIENT], [1], [Define if MariaDB client is used])])], |
| 40 |
[with_mariadb="no"]) |
[with_mariadb="no"]) |
| 41 |
AC_ARG_ENABLE([systemd], |
AC_ARG_ENABLE([systemd], |
| 42 |
[AS_HELP_STRING([--enable-systemd], [Enable systemd daemon])], |
[AS_HELP_STRING([--enable-systemd], [Enable systemd daemon [default=no]])], |
| 43 |
[], |
[], |
| 44 |
[enable_systemd="no"]) |
[enable_systemd="no"]) |
| 45 |
AC_ARG_WITH([epoll], |
AC_ARG_WITH([epoll], |
| 46 |
[AS_HELP_STRING([--with-epoll], [Use epoll instead of poll])], |
[AS_HELP_STRING([--with-epoll], [Use epoll instead of poll [default=yes]])], |
| 47 |
[], |
[], |
| 48 |
[with_epoll="yes"]) |
[with_epoll="yes"]) |
| 49 |
|
|
| 62 |
AS_IF([test "x$enable_systemd" = xyes], |
AS_IF([test "x$enable_systemd" = xyes], |
| 63 |
[PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [], [AC_MSG_ERROR([libsystemd is required.])])]) |
[PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [], [AC_MSG_ERROR([libsystemd is required.])])]) |
| 64 |
|
|
| 65 |
|
AM_CONDITIONAL([LINK_USE_SO], [test "x$with_sysv" = xyes]) |
| 66 |
|
AS_IF([test "x$with_sysv" = xyes], |
| 67 |
|
[AC_DEFINE([LOAD_SO], [1], [Define if shared object is usable])]) |
| 68 |
|
|
| 69 |
CPPFLAGS="$CPPFLAGS $LIBSSH_CFLAGS $MYSQLCLIENT_CFLAGS $SYSTEMD_CFLAGS $LIBPCRE2_CFLAGS $ICONV_CFLAGS" |
CPPFLAGS="$CPPFLAGS $LIBSSH_CFLAGS $MYSQLCLIENT_CFLAGS $SYSTEMD_CFLAGS $LIBPCRE2_CFLAGS $ICONV_CFLAGS" |
| 70 |
|
|
| 71 |
# Checks for libraries. |
# Checks for libraries. |