/[svn]/ircd-hybrid/branches/8.2.x/configure.ac
ViewVC logotype

Contents of /ircd-hybrid/branches/8.2.x/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8780 - (show annotations)
Sun Jan 13 11:33:04 2019 UTC (3 years, 8 months ago) by michael
File size: 2450 byte(s)
- configure.ac: don't let --enable-debugging remove -Wno-format-truncation

1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_REVISION([$Id$])
4
5 AC_PREREQ(2.69)
6 AC_INIT([ircd-hybrid], [8.2.25], [bugs@ircd-hybrid.org])
7 AM_INIT_AUTOMAKE(1.15 subdir-objects)
8 AM_MAINTAINER_MODE
9 AC_CONFIG_MACRO_DIR([m4])
10 AC_CONFIG_HEADER(config.h)
11 AC_CONFIG_SRCDIR(src/ircd.c)
12
13 # Checks for programs.
14 AC_PROG_CC_C99
15 AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
16 [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
17 AC_PROG_YACC
18 AM_PROG_LEX
19 AC_PROG_INSTALL
20
21 # Initializing libtool.
22 LT_CONFIG_LTDL_DIR([libltdl])
23 LT_INIT([dlopen disable-static])
24 LTDL_INIT([recursive convenience])
25 LIBTOOL="$LIBTOOL --silent"
26
27 # Checks for libraries.
28 AX_GCC_STACK_PROTECT_CC
29 AX_GCC_STACK_PROTECT_LIB
30 AX_LIBRARY_NET
31
32 # Checks for typedefs, structures, and compiler characteristics.
33 AC_C_BIGENDIAN
34
35 # Checks for library functions.
36 AC_CHECK_FUNCS_ONCE(accept4 \
37 strtok_r \
38 strlcat \
39 strlcpy)
40
41 # Checks for header files.
42 AC_CHECK_HEADERS_ONCE(crypt.h \
43 sys/param.h \
44 types.h \
45 socket.h \
46 sys/wait.h)
47
48 AC_SEARCH_LIBS(crypt, crypt)
49
50 # Argument processing.
51 AX_ARG_IOLOOP_MECHANISM
52 AX_ARG_ENABLE_ASSERT
53 AX_ARG_ENABLE_DEBUGGING
54 AX_ARG_ENABLE_WARNINGS
55 AX_ARG_ENABLE_EFENCE
56 AX_ARG_OPENSSL
57 AX_ARG_GNUTLS
58
59 # Disable -Wformat-truncation
60 AX_APPEND_COMPILE_FLAGS([-Wno-format-truncation])
61
62 AX_DEFINE_DIR([PREFIX],[prefix],[Set to prefix.])
63 AX_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Set to sysconfdir.])
64 AX_DEFINE_DIR([LIBDIR],[libdir],[Set to libdir.])
65 AX_DEFINE_DIR([DATADIR],[datadir],[Set to datadir.])
66 AX_DEFINE_DIR([LOCALSTATEDIR],[localstatedir],[Set to localstatedir.])
67
68 AC_CONFIG_FILES( \
69 Makefile \
70 src/Makefile \
71 libltdl/Makefile \
72 modules/Makefile \
73 modules/core/Makefile \
74 modules/extra/Makefile \
75 doc/Makefile \
76 help/Makefile \
77 tools/Makefile)
78
79 AC_OUTPUT
80
81 echo "###############################################################################"
82 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
83 echo
84 echo "ircd-hybrid will be installed in ${prefix}. To change this, run:"
85 echo " ./configure --prefix=DIRECTORY"
86 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:keywords Id

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28