--- lbbs/configure.ac 2025/11/21 02:49:26 1.64 +++ lbbs/configure.ac 2025/11/21 07:36:41 1.65 @@ -22,27 +22,28 @@ AC_PROG_MAKE_SET AC_ARG_WITH([sysv], [AS_HELP_STRING([--with-sysv], [Use System V specific APIs])], [AS_IF([test "x$with_sysv" = xyes], - [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]])])], + [with_sysv="yes"]) AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], [Enable debug log])], [AS_IF([test "x$enable_debug" = xyes], - [AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled])])]) + [AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled [default=no]])])]) AC_ARG_WITH([iconv], - [AS_HELP_STRING([--with-iconv], [Use iconv library package config])], + [AS_HELP_STRING([--with-iconv], [Use iconv library package config [default=no]])], [], [with_iconv="no"]) AC_ARG_WITH([mariadb], - [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]])], [AS_IF([test "x$with_mariadb" = xyes], [AC_DEFINE([HAVE_MARIADB_CLIENT], [1], [Define if MariaDB client is used])])], [with_mariadb="no"]) AC_ARG_ENABLE([systemd], - [AS_HELP_STRING([--enable-systemd], [Enable systemd daemon])], + [AS_HELP_STRING([--enable-systemd], [Enable systemd daemon [default=no]])], [], [enable_systemd="no"]) AC_ARG_WITH([epoll], - [AS_HELP_STRING([--with-epoll], [Use epoll instead of poll])], + [AS_HELP_STRING([--with-epoll], [Use epoll instead of poll [default=yes]])], [], [with_epoll="yes"]) @@ -61,6 +62,10 @@ AS_IF([test "x$with_mariadb" = xyes], AS_IF([test "x$enable_systemd" = xyes], [PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [], [AC_MSG_ERROR([libsystemd is required.])])]) +AM_CONDITIONAL([LINK_USE_SO], [test "x$with_sysv" = xyes]) +AS_IF([test "x$with_sysv" = xyes], + [AC_DEFINE([LOAD_SO], [1], [Define if shared object is usable])]) + CPPFLAGS="$CPPFLAGS $LIBSSH_CFLAGS $MYSQLCLIENT_CFLAGS $SYSTEMD_CFLAGS $LIBPCRE2_CFLAGS $ICONV_CFLAGS" # Checks for libraries.