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

Contents of /lbbs/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.44 - (show annotations)
Mon Nov 3 08:00:29 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.43: +1 -1 lines
Content type: application/pkix-attr-cert
Update version and ChangeLog

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 # Checks for libraries.
22 AC_CHECK_LIB([mysqlclient], [mysql_connect])
23 AC_CHECK_LIB([z], [unzip])
24 AC_CHECK_LIB([ssh], [ssh_init])
25
26 AC_HEADER_STAT
27 AC_PROG_EGREP
28
29 AC_HEADER_RESOLV
30 AC_HEADER_SYS_WAIT
31 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 \
32 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 \
33 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 \
34 unistd.h utmp.h])
35
36 # Checks for typedefs, structures, and compiler characteristics.
37 AC_C_CONST
38 AC_TYPE_SIZE_T
39 AC_CHECK_HEADERS_ONCE([sys/time.h])
40
41 AC_STRUCT_TM
42
43 # Checks for library functions.
44 AC_FUNC_FORK
45 AC_FUNC_MALLOC
46 AC_FUNC_SELECT_ARGTYPES
47 AC_FUNC_MMAP
48 AC_FUNC_MKTIME
49
50 AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
51 (`int' or `void').])
52
53 AC_FUNC_STRFTIME
54 AC_FUNC_VPRINTF
55 AC_CHECK_FUNCS([dup2 gethostbyname inet_ntoa memset mkdir rmdir regcomp select socket strstr])
56
57 AC_CONFIG_FILES([Makefile
58 src/Makefile
59 utils/Makefile
60 utils/game/Makefile])
61
62 AC_ARG_ENABLE([debug],
63 [AS_HELP_STRING([--enable-debug], [Enable debug log])],
64 [AS_IF([test "x$enable_debug" = xyes],
65 [AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled])])])
66
67 AC_OUTPUT

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