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

Contents of /lbbs/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.48 - (show annotations)
Fri Nov 7 07:27:36 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.47: +1 -1 lines
Content type: application/pkix-attr-cert
Update version and documentation

1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.69])
5 AC_INIT([lbbs],[1.5.3])
6 AC_CONFIG_SRCDIR([src/])
7 AC_CONFIG_MACRO_DIRS([m4])
8 AM_INIT_AUTOMAKE([foreign])
9 AM_SILENT_RULES(yes)
10
11 AC_USE_SYSTEM_EXTENSIONS
12 # Checks for programs.
13 LT_INIT
14 AC_PROG_CXX
15 AC_PROG_CC
16 AC_PROG_CPP
17 AC_PROG_INSTALL
18 AC_PROG_LN_S
19 AC_PROG_MAKE_SET
20
21 AC_SUBST([PKG_CONFIG_PATH])
22 PKG_PROG_PKG_CONFIG
23 PKG_CHECK_MODULES([LIBSSH], [libssh])
24 PKG_CHECK_MODULES([MYSQLCLIENT], [mysqlclient])
25 PKG_CHECK_MODULES([SYSTEMD], [libsystemd])
26 PKG_CHECK_MODULES([LIBPCRE2], [libpcre2-8])
27
28 # Checks for libraries.
29 AC_CHECK_LIB([mysqlclient], [mysql_connect])
30 AC_CHECK_LIB([z], [unzip])
31 AC_CHECK_LIB([ssh], [ssh_init])
32
33 AC_HEADER_STAT
34 AC_PROG_EGREP
35
36 AC_HEADER_RESOLV
37 AC_HEADER_SYS_WAIT
38 AC_CHECK_HEADERS([arpa/inet.h dflcn.h fcntl.h iconv.h libssh/libssh.h libssh/server.h memory.h mysql/mysql.h net/if.h netdb.h netinet/in.h \
39 pty.h signal.h stdint.h stdlib.h string.h sys/epoll.h sys/ioctl.h sys/ipc.h sys/mman.h sys/param.h sys/socket.h \
40 sys/time.h sys/types.h sys/sem.h sys/shm.h sys/stat.h sys/syscall.h sys/wait.h systemd/sd-daemon.h \
41 unistd.h utmp.h])
42
43 # Checks for typedefs, structures, and compiler characteristics.
44 AC_C_CONST
45 AC_TYPE_SIZE_T
46 AC_CHECK_HEADERS_ONCE([sys/time.h])
47
48 AC_STRUCT_TM
49
50 # Checks for library functions.
51 AC_FUNC_FORK
52 AC_FUNC_MALLOC
53 AC_FUNC_SELECT_ARGTYPES
54 AC_FUNC_MMAP
55 AC_FUNC_MKTIME
56
57 AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
58 (`int' or `void').])
59
60 AC_FUNC_STRFTIME
61 AC_FUNC_VPRINTF
62 AC_CHECK_FUNCS([dup2 gethostbyname inet_ntoa memset mkdir rmdir regcomp select socket strstr])
63
64 AC_CONFIG_FILES([Makefile
65 src/Makefile
66 utils/Makefile
67 utils/game/Makefile])
68
69 AC_ARG_ENABLE([debug],
70 [AS_HELP_STRING([--enable-debug], [Enable debug log])],
71 [AS_IF([test "x$enable_debug" = xyes],
72 [AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled])])])
73
74 AC_OUTPUT

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