ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure.ac
(Generate patch)

Comparing:
ircd-hybrid-7.2/configure.ac (file contents), Revision 977 by michael, Sat Aug 8 07:33:08 2009 UTC vs.
ircd-hybrid/trunk/configure.ac (file contents), Revision 6125 by michael, Thu Jun 11 14:32:01 2015 UTC

# Line 1 | Line 1
1 < # Inspired by work Copyright (C) 2006 Luca Filipozzi
2 < # vim: set fdm=marker ts=2 sw=2 et:
1 > dnl Process this file with autoconf to produce a configure script.
2  
3   AC_REVISION([$Id$])
4  
5 < AC_PREREQ(2.63)
6 < AC_INIT([ircd-hybrid], [7.2.4])
7 < AM_INIT_AUTOMAKE(1.11)
5 > AC_PREREQ(2.69)
6 > AC_INIT([ircd-hybrid], [TRUNK], [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
13   # Checks for programs.
14 < AC_PROG_CC
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 <
22 < #ltdl stuff
21 > # Initializing libtool.
22 > LT_CONFIG_LTDL_DIR([libltdl])
23   LT_INIT([dlopen disable-static])
24 < LTDL_INIT
24 > LTDL_INIT([recursive convenience])
25   LIBTOOL="$LIBTOOL --silent"
26  
26
27   # Checks for libraries.
28 < AX_CHECK_LIB_IPV4
29 < AX_CHECK_LIB_IPV6
28 > GCC_STACK_PROTECT_CC
29 > GCC_STACK_PROTECT_LIB
30  
31 + AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing])
32 + AX_LIBRARY_NET
33  
34   # Checks for typedefs, structures, and compiler characteristics.
33 AC_C_CONST
34 AC_C_INLINE
35   AC_C_BIGENDIAN
36  
37 AC_CHECK_SIZEOF(int64_t)
38 AC_CHECK_SIZEOF(long long)
39
40 if test "$ac_cv_sizeof_int64_t" = 8; then
41  AC_CHECK_TYPE(uint64_t)
42  AC_CHECK_TYPE(int64_t)
43 elif test "$ac_cv_sizeof_long_long" = 8; then
44  AC_CHECK_TYPE(uint64_t, unsigned long long)
45  AC_CHECK_TYPE(int64_t, long long)
46 else
47  AC_MSG_ERROR([Your system doesn't appear to have 64 bit integers.  Aborting.])
48 fi
49
50
37   # Checks for library functions.
38 < AC_CHECK_FUNCS_ONCE(snprintf  \
39 <                    vsnprintf \
40 <                    lrand48   \
41 <                    srand48   \
56 <                    mmap      \
57 <                    strtok_r  \
58 <                    usleep    \
59 <                    strlcat   \
60 <                    strlcpy   \
61 <                    basename)
38 > AC_CHECK_FUNCS_ONCE(strtok_r \
39 >                    usleep   \
40 >                    strlcat  \
41 >                    strlcpy)
42  
43   # Checks for header files.
44   AC_CHECK_HEADERS_ONCE(crypt.h        \
65                      inttypes.h     \
66                      stdint.h       \
45                        sys/resource.h \
46                        sys/param.h    \
69                      errno.h        \
70                      sys/syslog.h   \
71                      stddef.h       \
72                      libgen.h       \
47                        types.h        \
48                        socket.h       \
49                        sys/wait.h     \
50 <                      wait.h         \
77 <                      link.h)
78 <
79 < dnl check for /dev/null so we can use it to hold evil fd's
80 < AC_MSG_CHECKING([for /dev/null])
81 < if test -c /dev/null ; then
82 <  AC_DEFINE(PATH_DEVNULL, "/dev/null", [Path to /dev/null])
83 <  AC_MSG_RESULT(yes)
84 < else
85 <  AC_DEFINE(PATH_DEVNULL, "devnull.log", [Path to /dev/null])
86 <  AC_MSG_RESULT(no - using devnull.log)
87 < fi
88 <
50 >                      wait.h)
51  
52   AC_SEARCH_LIBS(crypt, crypt)
53  
54 <
55 < AC_ARG_WITH(zlib-path,
94 < AS_HELP_STRING([--with-zlib-path=DIR], [Path to libz.so for ziplinks support.]),
95 < [LDFLAGS="-L$withval $LDFLAGS"],)
96 <
97 < AC_ARG_ENABLE(zlib, AS_HELP_STRING([--disable-zlib],[Disable ziplinks support]),
98 < [zlib=$enableval],[zlib=yes])
99 <
100 < if test "$zlib" = yes; then
101 <  AC_CHECK_HEADER(zlib.h, [AC_CHECK_LIB(z, zlibVersion,
102 <    [
103 <      LIBS="-lz $LIBS"
104 <      AC_DEFINE(HAVE_LIBZ, 1, [Define to 1 if zlib (-lz) is available.])
105 <    ], zlib=no)
106 <  ], zlib=no)
107 < fi
108 <
109 <
110 < dnl Openssl checks
111 < AC_ARG_ENABLE(openssl,
112 < [  --enable-openssl[=DIR]       Enable OpenSSL support (DIR optional).
113 <  --disable-openssl            Disable OpenSSL support. ],
114 < [ cf_enable_openssl=$enableval ],
115 < [ cf_enable_openssl="auto" ])
116 < AC_MSG_CHECKING(for OpenSSL)
117 < if test "$cf_enable_openssl" != "no"; then
118 <  cf_openssl_basedir=""
119 <  if test "$cf_enable_openssl" != "auto" &&
120 <     test "$cf_enable_openssl" != "yes"; then
121 <     dnl Support for --enable-openssl=/some/place
122 <     cf_openssl_basedir="${cf_enable_openssl}"
123 <  else
124 <    dnl Do the auto-probe here.  Check some common directory paths.
125 <    for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
126 <                /opt /opt/openssl /usr/local/openssl; do
127 <      if test -f "${dirs}/include/openssl/opensslv.h"; then
128 <        cf_openssl_basedir="${dirs}"
129 <        break
130 <      fi
131 <    done
132 <    unset dirs
133 <  fi
134 <
135 <  dnl Now check cf_openssl_found to see if we found anything.
136 <  if test ! -z "$cf_openssl_basedir"; then
137 <    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
138 <      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
139 <      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
140 <    else
141 <      dnl OpenSSL wasn't found in the directory specified.  Naughty
142 <      dnl administrator...
143 <      cf_openssl_basedir=""
144 <    fi
145 <  else
146 <    dnl Check for stock FreeBSD 4.x and 5.x systems, since their files
147 <    dnl are in /usr/include and /usr/lib.  In this case, we don't want to
148 <    dnl change INCLUDES or LIBS, but still want to enable OpenSSL.
149 <    dnl We can't do this check above, because some people want two versions
150 <    dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl)
151 <    dnl and they want /usr/local/ssl to have preference.
152 <    if test -f "/usr/include/openssl/opensslv.h"; then
153 <      cf_openssl_basedir="/usr"
154 <    fi
155 <  fi
156 <
157 <  dnl If we have a basedir defined, then everything is okay.  Otherwise,
158 <  dnl we have a problem.
159 <  if test ! -z "$cf_openssl_basedir"; then
160 <    LIBS="-lcrypto -lssl $LIBS"
161 <    AC_MSG_RESULT($cf_openssl_basedir)
162 <    cf_enable_openssl="yes"
163 <    AC_DEFINE(HAVE_LIBCRYPTO, 1, [If we support ssl])
164 <  else
165 <    AC_MSG_RESULT(not found.  Please check your path.)
166 <    cf_enable_openssl="no"
167 <  fi
168 <  unset cf_openssl_basedir
169 < else
170 <  dnl If --disable-openssl was specified
171 <  AC_MSG_RESULT(disabled)
172 < fi
173 < AM_CONDITIONAL(ENABLE_SSL, [test "$cf_enable_openssl" = yes])
174 <
175 <
176 < AC_ARG_ENABLE(assert, AS_HELP_STRING([--enable-assert],
177 <                                     [Enable assert() statements]),
178 <  [assert=$enableval], [assert=no])
179 < if test "$assert" = no; then
180 <  AC_DEFINE(NDEBUG, 1, [Define to disable assert() statements.])
181 < fi
182 <
183 <
184 < AC_ARG_ENABLE(small-net, AS_HELP_STRING([--enable-small-net],
185 <                                        [Enable small network support.]),
186 < [small_net=$enableval], [small_net=no])
187 <
188 < if test "$small_net" = yes; then
189 <  AC_DEFINE([NICKNAMEHISTORYLENGTH], 1500, [Size of the WHOWAS array.])
190 <  AC_DEFINE([CHANNEL_HEAP_SIZE], 256, [Size of the channel heap.])
191 <  AC_DEFINE([BAN_HEAP_SIZE], 128, [Size of the ban heap.])
192 <  AC_DEFINE([CLIENT_HEAP_SIZE], 256, [Size of the client heap.])
193 <  AC_DEFINE([LCLIENT_HEAP_SIZE], 128, [Size of the local client heap.])
194 <  AC_DEFINE([DNODE_HEAP_SIZE], 256, [Size of the dlink_node heap.])
195 <  AC_DEFINE([TOPIC_HEAP_SIZE], 256, [Size of the topic heap.])
196 <  AC_DEFINE([DBUF_HEAP_SIZE], 64, [Size of the dbuf heap.])
197 < else
198 <  AC_DEFINE([NICKNAMEHISTORYLENGTH], 15000, [Size of the WHOWAS array.])
199 <  AC_DEFINE([CHANNEL_HEAP_SIZE], 1024, [Size of the channel heap.])
200 <  AC_DEFINE([BAN_HEAP_SIZE], 1024, [Size of the ban heap.])
201 <  AC_DEFINE([CLIENT_HEAP_SIZE], 1024, [Size of the client heap.])
202 <  AC_DEFINE([LCLIENT_HEAP_SIZE], 512, [Size of the local client heap.])
203 <  AC_DEFINE([DNODE_HEAP_SIZE], 1024, [Size of the dlink_node heap.])
204 <  AC_DEFINE([TOPIC_HEAP_SIZE], 1024, [Size of the topic heap.])
205 <  AC_DEFINE([DBUF_HEAP_SIZE], 512, [Size of the dbuf heap.])
206 < fi
207 <
54 > # Define various chunk sizes for the pooling allocator
55 > AX_MEMPOOL_CHUNKSIZES
56  
57   # Argument processing.
58 < AX_ARG_ENABLE_IOLOOP_MECHANISM
59 < AX_ARG_WITH_NICKLEN
212 < AX_ARG_WITH_TOPICLEN
213 < AX_ARG_WITH_SYSLOG
214 < AX_ARG_ENABLE_EFNET
215 < AX_ARG_ENABLE_HALFOPS
58 > AX_ARG_IOLOOP_MECHANISM
59 > AX_ARG_ENABLE_ASSERT
60   AX_ARG_ENABLE_DEBUGGING
61   AX_ARG_ENABLE_WARNINGS
62 < AX_ARG_ENABLE_SYSLOG
62 > AX_ARG_OPENSSL
63 > AX_ARG_LIBGEOIP
64  
65   AC_DEFINE_DIR([PREFIX],[prefix],[Set to prefix.])
66   AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Set to sysconfdir.])
# Line 225 | Line 70 | AC_DEFINE_DIR([LOCALSTATEDIR],[localstat
70  
71   AC_CONFIG_FILES(              \
72         Makefile               \
228       etc/Makefile           \
229       etc/example.conf       \
230       etc/example.conf.quick \
231       etc/example.efnet.conf \
232       servlink/Makefile      \
233       contrib/Makefile       \
234       contrib/help/Makefile  \
73         src/Makefile           \
74 <       messages/Makefile      \
74 >       libltdl/Makefile       \
75         modules/Makefile       \
76 <                         modules/core/Makefile  \
76 >       modules/core/Makefile  \
77 >       modules/extra/Makefile \
78         doc/Makefile           \
79         help/Makefile          \
80 <                         help/opers/Makefile            \
242 <                         help/users/Makefile    \
243 <       lib/Makefile           \
244 <       lib/pcre/Makefile      \
245 <       tools/Makefile
246 < )
80 >       tools/Makefile)
81  
82   AC_OUTPUT
83 +
84 + echo "###############################################################################"
85 + echo "Configuration complete.  Type make (or gmake on some *BSD machines) to compile."
86 + echo
87 + echo "ircd-hybrid will be installed in ${prefix}.  To change this, run:"
88 + echo "   ./configure --prefix=DIRECTORY"
89 + echo "###############################################################################"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)