ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure.ac
Revision: 4356
Committed: Sat Aug 2 18:30:48 2014 UTC (11 years ago) by michael
Content type: application/pkix-attr-cert
File size: 3748 byte(s)
Log Message:
- configure.ac: must be excuting GCC_STACK_PROTECT_LIB aswell, otherwise we won't get
  linked against SSP lib (if there's any)

File Contents

# User Rev Content
1 stu 908 # Inspired by work Copyright (C) 2006 Luca Filipozzi
2     # vim: set fdm=marker ts=2 sw=2 et:
3 adx 30
4 michael 953 AC_REVISION([$Id$])
5    
6 michael 1373 AC_PREREQ(2.69)
7 michael 4294 AC_INIT([ircd-hybrid], [8.2.0rc1], [bugs@ircd-hybrid.org])
8 michael 2347 AM_INIT_AUTOMAKE(1.13.1 subdir-objects)
9 stu 908 AM_MAINTAINER_MODE
10 michael 2480 AC_CONFIG_MACRO_DIR([m4])
11 michael 912 AC_CONFIG_HEADER(config.h)
12     AC_CONFIG_SRCDIR(src/ircd.c)
13 adx 30
14 stu 908 # Checks for programs.
15 michael 1010 AC_PROG_CC_C99
16     AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
17 michael 1348 [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
18 michael 912 AC_PROG_YACC
19     AM_PROG_LEX
20 stu 908 AC_PROG_INSTALL
21 michael 945
22 michael 1015 # Initializing libtool.
23 michael 1084 LT_CONFIG_LTDL_DIR([libltdl])
24 michael 977 LT_INIT([dlopen disable-static])
25 michael 1092 LTDL_INIT([recursive convenience])
26 michael 1053 LIBTOOL="$LIBTOOL --silent"
27 adx 30
28 stu 908 # Checks for libraries.
29 michael 2480 GCC_STACK_PROTECT_CC
30 michael 4356 GCC_STACK_PROTECT_LIB
31 michael 2480
32 michael 2594 AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing])
33    
34 stu 908 AX_CHECK_LIB_IPV4
35     AX_CHECK_LIB_IPV6
36 adx 30
37 stu 908 # Checks for typedefs, structures, and compiler characteristics.
38 adx 30 AC_C_BIGENDIAN
39    
40 stu 908 # Checks for library functions.
41 michael 1664 AC_CHECK_FUNCS_ONCE(strtok_r \
42 michael 1010 usleep \
43     strlcat \
44 michael 1329 strlcpy)
45 adx 30
46 michael 923 # Checks for header files.
47 michael 912 AC_CHECK_HEADERS_ONCE(crypt.h \
48     sys/resource.h \
49     sys/param.h \
50 db 941 types.h \
51     socket.h \
52 michael 912 sys/wait.h \
53 michael 1348 wait.h)
54 michael 912
55 michael 977 AC_SEARCH_LIBS(crypt, crypt)
56 michael 923
57 michael 2334 AC_ARG_ENABLE(libgeoip,
58 michael 1856 [AS_HELP_STRING([--disable-libgeoip],[Disable GeoIP support])], [],
59     [AC_CHECK_HEADER(GeoIP.h,
60     [AC_SEARCH_LIBS(GeoIP_id_by_ipnum_v6_gl, GeoIP,
61     [AC_DEFINE(HAVE_LIBGEOIP, 1, [Define to 1 if libGeoIP (-lGeoIP) is available.])])])], [])
62    
63 michael 2481 AX_CHECK_OPENSSL
64 michael 912
65 michael 955 AC_ARG_ENABLE(assert, AS_HELP_STRING([--enable-assert],
66     [Enable assert() statements]),
67 michael 924 [assert=$enableval], [assert=no])
68    
69 michael 1010 AS_IF([test "$assert" = "no"],
70     [AC_DEFINE(NDEBUG, 1, [Define to disable assert() statements.])])
71 michael 924
72 michael 1908 AC_DEFINE([NICKNAMEHISTORYLENGTH], 32768, [Size of the WHOWAS array.])
73 michael 1964 AC_DEFINE([MP_CHUNK_SIZE_CHANNEL], 1024*1024, [Size of the channel mempool chunk.])
74     AC_DEFINE([MP_CHUNK_SIZE_MEMBER], 2048*1024, [Size of the channel-member mempool chunk.])
75     AC_DEFINE([MP_CHUNK_SIZE_BAN], 1024*1024, [Size of the ban mempool chunk.])
76     AC_DEFINE([MP_CHUNK_SIZE_CLIENT], 1024*1024, [Size of the client mempool chunk.])
77     AC_DEFINE([MP_CHUNK_SIZE_LCLIENT], 512*1024, [Size of the local client mempool chunk.])
78     AC_DEFINE([MP_CHUNK_SIZE_DNODE], 32*1024, [Size of the dlink_node mempool chunk.])
79 michael 1654 AC_DEFINE([MP_CHUNK_SIZE_DBUF], 512*1024, [Size of the dbuf mempool chunk.])
80 michael 1964 AC_DEFINE([MP_CHUNK_SIZE_AUTH], 128*1024, [Size of the auth mempool chunk.])
81     AC_DEFINE([MP_CHUNK_SIZE_DNS], 64*1024, [Size of the dns mempool chunk.])
82     AC_DEFINE([MP_CHUNK_SIZE_WATCH], 8*1024, [Size of the watch mempool chunk.])
83     AC_DEFINE([MP_CHUNK_SIZE_NAMEHOST], 64*1024, [Size of the namehost mempool chunk.])
84     AC_DEFINE([MP_CHUNK_SIZE_USERHOST], 128*1024, [Size of the userhost mempool chunk.])
85     AC_DEFINE([MP_CHUNK_SIZE_IP_ENTRY], 128*1024, [Size of the ip_entry mempool chunk.])
86 michael 925
87 stu 908 # Argument processing.
88     AX_ARG_ENABLE_IOLOOP_MECHANISM
89     AX_ARG_ENABLE_DEBUGGING
90     AX_ARG_ENABLE_WARNINGS
91 adx 30
92 stu 908 AC_DEFINE_DIR([PREFIX],[prefix],[Set to prefix.])
93     AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Set to sysconfdir.])
94     AC_DEFINE_DIR([LIBDIR],[libdir],[Set to libdir.])
95     AC_DEFINE_DIR([DATADIR],[datadir],[Set to datadir.])
96     AC_DEFINE_DIR([LOCALSTATEDIR],[localstatedir],[Set to localstatedir.])
97 adx 30
98 michael 922 AC_CONFIG_FILES( \
99     Makefile \
100     src/Makefile \
101 michael 1092 libltdl/Makefile \
102 michael 922 modules/Makefile \
103 michael 1053 modules/core/Makefile \
104 michael 922 doc/Makefile \
105     help/Makefile \
106 michael 1015 tools/Makefile)
107 adx 30
108     AC_OUTPUT

Properties

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