/[LeafOK_CVS]/lbbs/configure.ac
ViewVC logotype

Diff of /lbbs/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.62 by sysadm, Tue Nov 18 03:19:20 2025 UTC Revision 1.69 by sysadm, Fri Nov 21 12:19:15 2025 UTC
# Line 2  Line 2 
2  # Process this file with autoconf to produce a configure script.  # Process this file with autoconf to produce a configure script.
3    
4  AC_PREREQ([2.69])  AC_PREREQ([2.69])
5  AC_INIT([lbbs],[1.5.6])  AC_INIT([lbbs],[1.6.0])
6  AC_CONFIG_SRCDIR([src/])  AC_CONFIG_SRCDIR([src/])
7  AC_CONFIG_HEADERS([config.h])  AC_CONFIG_HEADERS([config.h])
8  AC_CONFIG_MACRO_DIRS([m4])  AC_CONFIG_MACRO_DIRS([m4])
# Line 19  AC_PROG_INSTALL Line 19  AC_PROG_INSTALL
19  AC_PROG_LN_S  AC_PROG_LN_S
20  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
21    
22    AC_ARG_WITH([sysv],
23                [AS_HELP_STRING([--with-sysv], [Use System V specific APIs])],
24                [AS_IF([test "x$with_sysv" != xno],
25                       [AC_DEFINE([HAVE_SYSTEM_V], [1], [Define if System V is available [default=yes]])])],
26                [AC_DEFINE([HAVE_SYSTEM_V], [1], [Define if System V is available])])
27    AC_ARG_ENABLE([debug],
28                  [AS_HELP_STRING([--enable-debug], [Enable debug log [default=no]])],
29                  [AS_IF([test "x$enable_debug" = xyes],
30                         [AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled])])])
31  AC_ARG_WITH([iconv],  AC_ARG_WITH([iconv],
32              [AS_HELP_STRING([--with-iconv], [Use iconv library package config])],              [AS_HELP_STRING([--with-iconv], [Use iconv library package config [default=no]])],
33              [],              [],
34              [with_iconv="no"])              [with_iconv="no"])
35  AC_ARG_WITH([mariadb],  AC_ARG_WITH([mariadb],
36              [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]])],
37              [],              [AS_IF([test "x$with_mariadb" = xyes],
38                       [AC_DEFINE([HAVE_MARIADB_CLIENT], [1], [Define if MariaDB client is used])])],
39              [with_mariadb="no"])              [with_mariadb="no"])
40  AC_ARG_ENABLE([systemd],  AC_ARG_ENABLE([systemd],
41                [AS_HELP_STRING([--enable-systemd], [Enable systemd daemon])],                [AS_HELP_STRING([--enable-systemd], [Enable systemd daemon [default=no]])],
42                [],                [],
43                [enable_systemd="no"])                [enable_systemd="no"])
44  AC_ARG_WITH([epoll],  AC_ARG_WITH([epoll],
45              [AS_HELP_STRING([--with-epoll], [Use epoll instead of poll])],              [AS_HELP_STRING([--with-epoll], [Use epoll instead of poll [default=yes]])],
46              [],              [],
47              [with_epoll="yes"])              [with_epoll="yes"])
48    
# Line 51  AS_IF([test "x$with_mariadb" = xyes], Line 61  AS_IF([test "x$with_mariadb" = xyes],
61  AS_IF([test "x$enable_systemd" = xyes],  AS_IF([test "x$enable_systemd" = xyes],
62        [PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [], [AC_MSG_ERROR([libsystemd is required.])])])        [PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [], [AC_MSG_ERROR([libsystemd is required.])])])
63    
64    AS_IF([test "x$enable_shared" = xyes],
65          [AC_DEFINE([_ENABLE_SHARED], [1], [Define if shared library is enabled])])
66    AM_CONDITIONAL([USE_SO], [test "x$enable_shared" = xyes])
67    
68  CPPFLAGS="$CPPFLAGS $LIBSSH_CFLAGS $MYSQLCLIENT_CFLAGS $SYSTEMD_CFLAGS $LIBPCRE2_CFLAGS $ICONV_CFLAGS"  CPPFLAGS="$CPPFLAGS $LIBSSH_CFLAGS $MYSQLCLIENT_CFLAGS $SYSTEMD_CFLAGS $LIBPCRE2_CFLAGS $ICONV_CFLAGS"
69    
70  # Checks for libraries.  # Checks for libraries.
# Line 59  AC_PROG_EGREP Line 73  AC_PROG_EGREP
73    
74  AC_HEADER_RESOLV  AC_HEADER_RESOLV
75  AC_HEADER_SYS_WAIT  AC_HEADER_SYS_WAIT
76  AC_CHECK_HEADERS([arpa/inet.h fcntl.h iconv.h libssh/libssh.h mysql.h netdb.h netinet/in.h pcre2.h \  AC_CHECK_HEADERS([arpa/inet.h fcntl.h iconv.h libssh/libssh.h mysql.h netdb.h netinet/in.h pcre2.h pty.h \
77                    pty.h signal.h stdint.h stdlib.h string.h sys/ioctl.h sys/ipc.h sys/mman.h sys/param.h sys/socket.h \                    semaphore.h signal.h stdint.h stdlib.h string.h sys/ioctl.h sys/mman.h sys/param.h sys/socket.h \
78                    sys/types.h sys/sem.h sys/shm.h sys/stat.h sys/wait.h time.h unistd.h utmp.h wchar.h],                    sys/types.h sys/sem.h sys/stat.h sys/wait.h time.h unistd.h utmp.h wchar.h],
79                    [],                    [],
80                    [AC_MSG_ERROR([Missing required header file])],                    [AC_MSG_ERROR([Missing required header file])],
81                    [#define PCRE2_CODE_UNIT_WIDTH 8])                    [#define PCRE2_CODE_UNIT_WIDTH 8])
# Line 101  AC_CONFIG_FILES([Makefile Line 115  AC_CONFIG_FILES([Makefile
115                   conf/lbbs.service                   conf/lbbs.service
116                   conf/lbbs.logrotate])                   conf/lbbs.logrotate])
117    
 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])])])  
   
118  AC_OUTPUT  AC_OUTPUT


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1