Skip to content
Newer
Older
100644 1200 lines (1015 sloc) 31.6 KB
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
1 dnl -*- mode: m4-mode -*-
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
2 dnl Process this file with autoconf to produce a configure script.
3
4 AC_COPYRIGHT([
9393e55 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@597 5dc97367-97…
alobbs authored Jan 10, 2007
5 Copyright (C) 2001-2007 Alvaro Lopez Ortega
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of version 2 of the GNU General Public
9 License as published by the Free Software Foundation.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19 USA
20 ])
21
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
22 dnl require autoconf 2.56
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
23 AC_PREREQ(2.56)
24
25 dnl Version
26 m4_define([cherokee_major_version], [0])
a5dd2dd @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@247 5dc97367-97…
alobbs authored Apr 1, 2006
27 m4_define([cherokee_minor_version], [6])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
28 m4_define([cherokee_micro_version], [0])
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
29 m4_define([cherokee_version], m4_format('%s.%s.%s', cherokee_major_version, cherokee_minor_version, cherokee_micro_version))
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
30
31 dnl Init autoconf and automake
e8c75f5 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@438 5dc97367-97…
alobbs authored Oct 28, 2006
32 AC_INIT([cherokee], [cherokee_version], [http://bugs.cherokee-project.com], [cherokee])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
33 AC_CONFIG_SRCDIR([cherokee/server.c])
34 AM_INIT_AUTOMAKE([no-define])
35
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
36 dnl Define version
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
37 AC_DEFINE(PACKAGE_MAJOR_VERSION, "cherokee_major_version", [Version string])
38 AC_DEFINE(PACKAGE_MINOR_VERSION, "cherokee_minor_version", [Version string])
39 AC_DEFINE(PACKAGE_MICRO_VERSION, "cherokee_micro_version", [Version string])
40
41 PACKAGE_MAJOR_VERSION="cherokee_major_version"
42 PACKAGE_MINOR_VERSION="cherokee_minor_version"
43 PACKAGE_MICRO_VERSION="cherokee_micro_version"
44 AC_SUBST(PACKAGE_MAJOR_VERSION)
45 AC_SUBST(PACKAGE_MINOR_VERSION)
46 AC_SUBST(PACKAGE_MICRO_VERSION)
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
47
b86167c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@873 5dc97367-97…
alobbs authored Aug 1, 2007
48 dnl Define library soname
49 CHEROKEE_AGE=0
50 CHEROKEE_CURRENT=0
51 CHEROKEE_REVISION=1
52 AC_SUBST(CHEROKEE_AGE)
53 AC_SUBST(CHEROKEE_CURRENT)
54 AC_SUBST(CHEROKEE_REVISION)
500a566 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@478 5dc97367-97…
alobbs authored Nov 30, 2006
55
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
56 dnl Check the SVN revision
57 AC_ARG_ENABLE(beta, AC_HELP_STRING([--enable-beta], [Enable beta development]),
58 is_beta="$enableval", is_beta="no")
59
60 if test x"$is_beta" == "xyes"; then
61 if test -d ".svn"; then
86dcbbb @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@471 5dc97367-97…
alobbs authored Nov 22, 2006
62 svn_rev="`svn info -R | grep Revision | sort | tail -1 | sed 's/Revision: //'`";
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
63 fi
64
86dcbbb @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@471 5dc97367-97…
alobbs authored Nov 22, 2006
65 PACKAGE_PATCH_VERSION="b$svn_rev"
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
66
67 dnl Redefine versions
68 PACKAGE_VERSION="$PACKAGE_MAJOR_VERSION.$PACKAGE_MINOR_VERSION.$PACKAGE_MICRO_VERSION$PACKAGE_PATCH_VERSION"
d66e3cd @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@472 5dc97367-97…
alobbs authored Nov 22, 2006
69 AC_DEFINE_UNQUOTED(PACKAGE_VERSION, "${PACKAGE_VERSION}", [Package version])
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
70
71 VERSION="$PACKAGE_MAJOR_VERSION.$PACKAGE_MINOR_VERSION.$PACKAGE_MICRO_VERSION$PACKAGE_PATCH_VERSION"
72 AC_DEFINE(VERSION, $VERSION, [Software version])
500a566 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@478 5dc97367-97…
alobbs authored Nov 30, 2006
73 else
74
75 PACKAGE_PATCH_VERSION=""
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
76 fi
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
77
500a566 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@478 5dc97367-97…
alobbs authored Nov 30, 2006
78 dnl Path version
79 AC_SUBST(PACKAGE_PATCH_VERSION)
80 AC_DEFINE_UNQUOTED(PACKAGE_PATCH_VERSION, "${PACKAGE_PATCH_VERSION}", [Version string])
81
4b33faa @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@522 5dc97367-97…
alobbs authored Dec 15, 2006
82 dnl Initial CFLAGS
83 AC_MSG_CHECKING(initial CFLAGS)
84 AC_MSG_RESULT($CFLAGS)
500a566 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@478 5dc97367-97…
alobbs authored Nov 30, 2006
85
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
86 dnl Check for CPU / vendor / OS
94d0935 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@470 5dc97367-97…
alobbs authored Nov 22, 2006
87 AC_CANONICAL_HOST
88
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
89 os_string="UNIX"
90 so_suffix=so
3509796 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@282 5dc97367-97…
alobbs authored May 9, 2006
91 mod_suffix=$so_suffix
92
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
93 AC_MSG_CHECKING([host platform characteristics])
94 case "$host" in
95 *-*-mingw*|*-*-cygwin*)
96 so_suffix=DLL
3509796 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@282 5dc97367-97…
alobbs authored May 9, 2006
97 mod_suffix=$so_suffix
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
98 os_string="Win32"
99 libdl=
100 ;;
101 *-*-linux*)
102 libdl="-ldl"
103 ;;
104 *-*-solaris*)
105 AC_DEFINE(SOLARIS, 1, [It is Solaris])
106 setenv_is_threadsafe="yes"
107 libdl="-ldl"
108 ;;
14c9e3c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@666 5dc97367-97…
alobbs authored Mar 13, 2007
109 *-*-hpux*)
110 libdl="-ldl"
111 ;;
112 *-*-*freebsd*|*-*-*openbsd*|*-*-*netbsd*|*-*-*dragonfly*)
113 libdl=
114 ;;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
115 *-*-darwin*)
116 so_suffix=dylib
3509796 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@282 5dc97367-97…
alobbs authored May 9, 2006
117 mod_suffix=so
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
118 libdl="-ldl"
119 ;;
120 *)
121 AC_MSG_WARN([*** Please add $host to configure.in checks!])
122 libdl="-ldl"
123 ;;
124 esac
125 AC_MSG_RESULT(ok)
126
127 dnl
128 dnl OS string
129 dnl
130 AC_ARG_ENABLE(os_string, AC_HELP_STRING([--enable-os-string=STR], [Set a customized OS type string]), [os_string="$enableval"])
131 AC_DEFINE_UNQUOTED(OS_TYPE, "${os_string}", [OS type])
132
f2506d2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@913 5dc97367-97…
alobbs authored Sep 11, 2007
133 AM_CONDITIONAL(PLATFORM_WIN32, test x"$os_string" = "xWin32")
134
135 dnl
136 dnl Tracing
137 dnl
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
138 AC_ARG_ENABLE(trace, AC_HELP_STRING([--enable-trace], [Enable trace facility]),
139 [enable_trace="$enableval"
140 AC_DEFINE(TRACE_ENABLED, 1, [Trace facility])
141 ], [enable_trace="no"])
142
f2506d2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@913 5dc97367-97…
alobbs authored Sep 11, 2007
143
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
144 dnl
145 dnl Dynamic library loading library
146 dnl
147 LIBS="$LIBS $libdl"
148 AC_DEFINE_UNQUOTED(SO_SUFFIX, "${so_suffix}", [Dynamic loading libraries extension])
3509796 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@282 5dc97367-97…
alobbs authored May 9, 2006
149 AC_DEFINE_UNQUOTED(MOD_SUFFIX, "${mod_suffix}", [Dynamic modules extension])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
150
151 dnl
152 dnl Libtool options
153 dnl
154 if test "$os_string" != "Win32"; then
155 # libtool option to control which symbols are exported
156 # right now, symbols starting with _ are not exported
157 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
158 else
159 LIBTOOL_EXPORT_OPTIONS=
160 fi
161
162 AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
163
164
165
166 AM_INIT_AUTOMAKE(cherokee, $VERSION)
167 AM_MAINTAINER_MODE
168
169 AM_CONFIG_HEADER(config.h)
170 AC_SUBST(VERSION)
171
172 AC_PATH_PROG(cherokeepath, cherokee)
173
174 AC_PROG_CC
175 AC_PROG_INSTALL
176 AC_PROG_MAKE_SET
177
178 AC_LIBTOOL_DLOPEN
179 AC_LIBTOOL_WIN32_DLL
180 AM_PROG_LIBTOOL
181
182 AC_FUNC_CLOSEDIR_VOID
183 AC_FUNC_MALLOC
184 AC_FUNC_REALLOC
185 AC_FUNC_VPRINTF
186
187 AC_C_CONST
188 AC_C_BIGENDIAN
189 AC_C_INLINE
190 if test "$ac_cv_c_inline" != no; then
191 AC_DEFINE(HAVE_INLINE, 1, [Compile supports inline])
192 fi
193
194 dnl
195 dnl Check for headers
196 dnl
197 AC_HEADER_STDC
198 AC_HEADER_DIRENT
199 AC_HEADER_TIME
200 AC_HEADER_SYS_WAIT
201
202 AC_CHECK_HEADERS(endian.h machine/endian.h sys/endian.h sys/isa_defs.h sys/utsname.h sys/poll.h poll.h )
203 AC_CHECK_HEADERS(sys/socket.h sys/un.h netinet/in.h arpa/inet.h netinet/tcp.h sys/ioctl.h fcntl.h sys/time.h)
204 AC_CHECK_HEADERS(sys/resource.h resource.h unistd.h syslog.h stdint.h inttypes.h error.h pwd.h sys/uio.h)
205 AC_CHECK_HEADERS(pthread.h netdb.h stdarg.h sys/filio.h sys/varargs.h sys/select.h sys/mman.h grp.h winsock.h)
206 AC_CHECK_HEADERS(winsock.h winsock2.h)
207
208 AC_SYS_LARGEFILE
209
210 AC_SIZE_T
211 AC_TYPE_SIGNAL
212 AC_TYPE_UID_T
213 AC_TYPE_MODE_T
214 AC_TYPE_OFF_T
215 AC_TYPE_SIZE_T
216 AC_TYPE_PID_T
217 AC_STRUCT_ST_RDEV
9521853 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@528 5dc97367-97…
alobbs authored Dec 20, 2006
218 AC_CHECK_TYPE(ino_t, unsigned)
219 AC_CHECK_TYPE(loff_t, off_t)
220 AC_CHECK_TYPE(offset_t, loff_t)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
221 AC_CHECK_TYPE(ssize_t, int)
222 AC_CHECK_TYPE(wchar_t, unsigned short)
223
9521853 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@528 5dc97367-97…
alobbs authored Dec 20, 2006
224 AC_CHECK_SIZEOF(int)
225 AC_CHECK_SIZEOF(unsigned int)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
226 AC_CHECK_SIZEOF(unsigned long)
227 AC_CHECK_SIZEOF(unsigned long long)
228 AC_CHECK_SIZEOF(unsigned int)
229 AC_CHECK_SIZEOF(off_t)
9521853 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@528 5dc97367-97…
alobbs authored Dec 20, 2006
230 AC_CHECK_SIZEOF(size_t)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
231
232 AC_CACHE_CHECK([for long long],samba_cv_have_longlong,[
233 AC_TRY_RUN([#include <stdio.h>
234 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }],
235 samba_cv_have_longlong=yes,samba_cv_have_longlong=no,samba_cv_have_longlong=cross)])
236 if test x"$samba_cv_have_longlong" = x"yes"; then
237 AC_DEFINE(HAVE_LONGLONG,1,[Whether the host supports long long's])
238 fi
239
240 AC_FUNC_MEMCMP
241 AC_FUNC_MMAP
242
83fd835 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@333 5dc97367-97…
alobbs authored Aug 5, 2006
243 AC_CHECK_FUNCS(gmtime gmtime_r localtime localtime_r getrlimit getdtablesize readdir readdir_r flockfile funlockfile)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
244
c5205f7 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@379 5dc97367-97…
alobbs authored Aug 31, 2006
245 FW_CHECK_PWD
246 FW_CHECK_GRP
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
247
9527966 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@443 5dc97367-97…
alobbs authored Nov 2, 2006
248 AC_CHECK_MEMBER(struct tm.tm_gmtoff,
249 AC_DEFINE([HAVE_STRUCT_TM_GMTOFF],[1],[gmtoff in struct tm]),,[#include <time.h>])
250
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
251 AH_BOTTOM([
252 /* Give us an unsigned 32-bit data type. */
253 #if SIZEOF_UNSIGNED_LONG==4
254 #define UWORD32 unsigned long
255 #elif SIZEOF_UNSIGNED_INT==4
256 #define UWORD32 unsigned int
257 #else
258 #error I do not know what to use for a UWORD32.
259 #endif
260 ])
261
262
263 dnl Find socket()
264 dnl Likely combinations:
265 dnl -lsocket [ -lnsl_s | -lnsl ]
266 dnl -linet
267 AC_CHECK_LIB(ws2_32, main)
268 AC_CHECK_LIB(wsock32, main)
269
270 AC_CHECK_FUNC(socket, :, [
271 AC_CHECK_LIB(socket, main)
272 AC_CHECK_LIB(net, main)
273 AC_CHECK_LIB(nsl_s, main)
274 AC_CHECK_LIB(nsl, main)
275 AC_CHECK_LIB(inet, socket)
276 AC_CHECK_LIB(gen, main)
277 ])
278
279 AC_SEARCH_LIBS(accept, socket)
280 AC_SEARCH_LIBS(bind, socket)
281 AC_SEARCH_LIBS(listen, socket)
282 AC_SEARCH_LIBS(setsockopt, socket)
283
284 dnl
285 dnl Check for fd events inspect functions
286 dnl
287 AC_CHECK_FUNC(poll, have_poll=yes)
288 AC_CHECK_FUNC(kqueue, have_kqueue=yes)
289 AC_CHECK_FUNC(select, have_select=yes)
290
291 if test "x-$have_select" != "x-yes" -a "x-$ac_cv_header_winsock2_h" = "x-yes"; then
292 AC_MSG_CHECKING([for select in ws2_32])
293 AC_TRY_LINK([#include <winsock2.h>],
294 [select(0,0,0,0,0)],
295 [AC_MSG_RESULT(yes)
296 have_win32_select=yes],
297 [AC_MSG_RESULT(no)])
298 fi
299
300 dnl
301 dnl Epoll
302 dnl
303 AC_CHECK_HEADER(sys/epoll.h, have_epoll_include=yes, have_epoll_include=no)
304
853c10e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@453 5dc97367-97…
alobbs authored Nov 8, 2006
305 AC_ARG_ENABLE(epoll, AC_HELP_STRING([--disable-epoll],[Disable epoll() support]),
306 wants_epoll="$enableval", wants_epoll="yes")
307
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
308 have_epoll=no
853c10e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@453 5dc97367-97…
alobbs authored Nov 8, 2006
309 if test "x$have_epoll_include" = "xyes" && test "x$wants_epoll" == "xyes"; then
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
310 AC_MSG_CHECKING(for epoll system call)
311
853c10e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@453 5dc97367-97…
alobbs authored Nov 8, 2006
312 AC_RUN_IFELSE([
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
313 #include <stdint.h>
314 #include <sys/param.h>
315 #include <sys/types.h>
316 #include <sys/syscall.h>
317 #include <sys/epoll.h>
318 #include <unistd.h>
319
320 int epoll_create (int size) {
321 return (syscall(__NR_epoll_create, size));
322 }
323
324 int main (int argc, char **argv) {
325 int epfd;
326 epfd = epoll_create(256);
327 exit (epfd == -1 ? 1 : 0);
328 }
853c10e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@453 5dc97367-97…
alobbs authored Nov 8, 2006
329 ],
330 have_epoll=yes,
331 have_epoll=no,
332 have_epoll=yes)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
333 AC_MSG_RESULT($have_epoll)
334 fi
335
336 dnl
337 dnl Solaris 10: Event ports
338 dnl
339 AC_CHECK_HEADER(port.h, have_port_include=yes, have_port_include=no)
340
341 have_port=no
342 if test "x$have_port_include" = "xyes"; then
343 AC_MSG_CHECKING(for event ports support)
344
853c10e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@453 5dc97367-97…
alobbs authored Nov 8, 2006
345 AC_RUN_IFELSE([
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
346 #include <stdint.h>
347 #include <unistd.h>
348 #include <port.h>
349
350 int main (int argc, char **argv) {
351 int port;
352 port = port_create();
353 exit (port < 0 ? 1 : 0);
354 }
853c10e @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@453 5dc97367-97…
alobbs authored Nov 8, 2006
355 ],
356 have_port=yes,
357 have_port=no,
358 have_port=cross)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
359 AC_MSG_RESULT($have_port)
360 fi
361
362
363
364 if test "$have_epoll" = yes; then
365 AC_DEFINE(HAVE_EPOLL, 1, [Have epoll])
366 fi
367 AM_CONDITIONAL(COMPILE_EPOLL, test x"$have_epoll" = "xyes")
368
369 if test "$have_kqueue" = yes; then
370 AC_DEFINE(HAVE_KQUEUE, 1, [Have kqueue])
371 fi
372 AM_CONDITIONAL(COMPILE_KQUEUE, test x"$have_kqueue" = "xyes")
373
374 if test "$have_port" = yes; then
375 AC_DEFINE(HAVE_PORT, 1, [Have event ports])
376 fi
377 AM_CONDITIONAL(COMPILE_PORT, test x"$have_port" = "xyes")
378
379 if test "$have_poll" = yes; then
380 AC_DEFINE(HAVE_POLL, 1, [Have poll])
381 fi
382 AM_CONDITIONAL(COMPILE_POLL, test x"$have_poll" = "xyes")
383
384 if test "$have_win32_select" = yes; then
385 AC_DEFINE(HAVE_WIN32_SELECT, 1, [Have Win32 select])
386 fi
387 AM_CONDITIONAL(COMPILE_WIN32_SELECT, test x"$have_win32_select" = "xyes")
388
389 if test "$have_select" = yes; then
390 AC_DEFINE(HAVE_SELECT, 1, [Have select])
391 fi
392 AM_CONDITIONAL(COMPILE_SELECT, test x"$have_select" = "xyes" -a x"$have_win32_select" != "xyes")
393
394
395 dnl
396 dnl Check for inet_pton. We have our own, but on Solaris the version in
397 dnl libresolv is more lenient in ways that Solaris's internal DNS resolution
398 dnl code requires, so if we use our own *and* link with libresolv (which may
399 dnl be forced by Perl) DNS resolution fails.
400 dnl
401 AC_SEARCH_LIBS(inet_pton, [socket nsl resolv])
402 AC_CHECK_FUNCS(inet_pton inet_ntop inet_addr)
403
404 AC_SEARCH_LIBS(gethostbyname, [socket nsl resolv])
405 AC_CHECK_FUNCS(gethostbyname gethostbyname_r)
406
407 dnl
408 dnl Check for inet_addr
409 dnl
410 AC_SEARCH_LIBS(inet_addr, xnet)
411 AC_CHECK_FUNCS(inet_addr)
412
413 dnl
414 dnl TCP_CORK
415 dnl
416 HYDRA_TCP_CORK
417
418
419 dnl
420 dnl Check for GNU getopt_long()
421 dnl
422 #AC_SEARCH_LIBS(getopt_long, [iberty gnugetopt])
423 AC_CHECK_HEADERS(getopt.h)
424 AC_CHECK_FUNC(getopt_long, have_getopt_long="yes")
425 AM_CONDITIONAL(HAVE_GETOPT_LONG, test x"$have_getopt_long" = "xyes")
426
427
428 dnl
429 dnl Pthread
430 dnl
431 with_pthread="yes"
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored Mar 15, 2007
432 have_pthread="no"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
433 AC_ARG_ENABLE(pthread, AC_HELP_STRING([--disable-pthread],[Disable threading support]),
434 with_pthread="$enableval", with_pthread="yes")
435
436 AM_CONDITIONAL(USE_PTHREAD, test "x$with_pthread" = "xyes")
437 if test "x$with_pthread" = "xyes"
438 then
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
439 dnl
440 dnl Basic checkings (c&p'ed from squid)
441 dnl
442 AC_MSG_CHECKING([for special a pthread case])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
443
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
444 oldcflags="$CFLAGS"
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
445 CFLAGS="$CFLAGS -D_REENTRANT"
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
446 PTHREAD_CFLAGS="-D_REENTRANT"
447
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
448 case "$host" in
449 i386-unknown-freebsd*)
450 if test "$GCC" = "yes" ; then
451 if test -z "$PRESET_LDFLAGS"; then
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
452 PTHREAD_LDFLAGS="-pthread"
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored Mar 15, 2007
453 have_pthread="yes"
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
454 fi
455 fi
456 AC_MSG_RESULT([-pthread])
457 ;;
458 *-solaris2.*)
459 if test "$GCC" = "yes" ; then
460 CFLAGS="$CFLAGS -pthreads"
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
461 PTHREAD_CFLAGS="-pthreads"
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
462 AC_MSG_RESULT([-pthreads])
463 else
464 CFLAGS="$CFLAGS -mt"
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
465 PTHREAD_CFLAGS="-mt"
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
466 AC_MSG_RESULT([-mt])
467 fi
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored Mar 15, 2007
468 have_pthread="yes"
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
469 ;;
470 *)
471 AC_MSG_RESULT([no])
472 ;;
473 esac
474
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored Mar 15, 2007
475 if test "$have_pthread" != "yes"; then
476 AC_CHECK_LIB(pthread, main, have_pthread=yes, have_pthread=no)
3391221 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@682 5dc97367-97…
alobbs authored Mar 16, 2007
477 if test "$have_pthread" = "yes"; then
478 PTHREAD_LIBS="-lpthread"
479 fi
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored Mar 15, 2007
480 fi
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
481
482 dnl
483 dnl More detailed checks on the pthread support
484 dnl
485 AC_MSG_CHECKING([for pthread_rwlock_t support])
486
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
487 have_pthread_rwlock_t=yes
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
488 AC_TRY_COMPILE([#include <pthread.h>],
73b651d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@683 5dc97367-97…
alobbs authored Mar 16, 2007
489 [pthread_rwlock_t rwlock; pthread_rwlock_init( &rwlock, NULL);],
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
490 compiled=yes, compiled=no)
491
492 if test "$compiled" = "yes"; then
493 AC_MSG_RESULT([ok])
494 else
495 dnl Didn't find rwlock_t.
496 dnl Try defining _XOPEN_SOURCE=500
497 dnl
498 oldcflags2="$CFLAGS"
499 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
500
501 AC_TRY_COMPILE([#include <pthread.h>],
73b651d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@683 5dc97367-97…
alobbs authored Mar 16, 2007
502 [pthread_rwlock_t rwlock; pthread_rwlock_init( &rwlock, NULL);],
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
503 compiled=yes, compiled=no)
504
505 if test "$compiled" = "yes"; then
506 AC_MSG_RESULT([-D_XOPEN_SOURCE=500])
507 PTHREAD_CFLAGS="-D_XOPEN_SOURCE=500"
508 else
509 have_pthread_rwlock_t=no
510 AC_MSG_RESULT([no])
511 fi
512
513 CFLAGS="$oldcflags2"
514 fi
515
516 if test "$have_pthread_rwlock_t" = "yes"; then
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
517 AC_DEFINE(HAVE_PTHREAD_RWLOCK_T, 1, [Define if your pthread library includes pthread_rwlock_t])
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
518 else
519 AC_MSG_ERROR([pthread_rwlock_t support missing])
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
520 fi
14c9e3c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@666 5dc97367-97…
alobbs authored Mar 13, 2007
521
30cba34 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@670 5dc97367-97…
alobbs authored Mar 15, 2007
522 AC_CHECK_FUNC(pthread_attr_setschedpolicy, have_pthread_attr_setschedpolicy=yes)
523 if test x"$have_pthread_attr_setschedpolicy" = "xyes"; then
524 AC_DEFINE(HAVE_PTHREAD_SETSCHEDPOLICY, 1, [Pthread support pthread_attr_setschedpolicy])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
525 fi
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
526
527 CFLAGS="$oldcflags"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
528 fi
529
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored Mar 15, 2007
530 if test "$have_pthread" = "yes"; then
531 AC_DEFINE(HAVE_PTHREAD, 1, [Have pthread support])
c2dc9b2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@681 5dc97367-97…
alobbs authored Mar 16, 2007
532 AC_SUBST(PTHREAD_CFLAGS)
533 AC_SUBST(PTHREAD_LIBS)
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored Mar 15, 2007
534 fi
535
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
536 dnl
537 dnl Is setenv() threadsafe?
538 dnl
539 if test "$setenv_is_threadsafe" = "yes"; then
540 AC_DEFINE(SETENV_IS_THREADSAFE, 1, [setenv function is thread safe])
541 fi
542
543 dnl
544 dnl Check for vsyslog
545 dnl
546 AC_CHECK_FUNCS(syslog vsyslog strsep strcasestr memmove strerror bcopy strlcat)
547
423d6fa @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@370 5dc97367-97…
alobbs authored Aug 28, 2006
548 dnl
549 dnl Check for Glib (usually Linux)
550 dnl
551 AC_PREPROC_IFELSE([
552 #include <features.h>
553 #ifndef __GLIBC__
554 chokeme
555 #endif
556 ], [
557 AC_DEFINE([HAVE_GLIBC], [1], [Define to 1 if you have glibc.])
558 AC_DEFINE([_GNU_SOURCE], [1], [Define to 1 if you have glibc.])
559 ])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
560
561 dnl
562 dnl Does this platform require array notation to assign to a va_list?
563 dnl If cross-compiling, we assume va_list is "normal". If this breaks
564 dnl you, set ac_cv_valistisarray=true and maybe define HAVE_VA_LIST_AS_ARRAY
565 dnl also just to be sure.
566 dnl
567 AC_MSG_CHECKING(whether va_list assignments need array notation)
568 AC_CACHE_VAL(ac_cv_valistisarray,
569 [AC_TRY_RUN([#include <stdlib.h>
570 #include <stdarg.h>
571 void foo(int i, ...) {
572 va_list ap1, ap2;
573 va_start(ap1, i);
574 ap2 = ap1;
575 if (va_arg(ap2, int) != 123 || va_arg(ap1, int) != 123) { exit(1); }
576 va_end(ap1); va_end(ap2);
577 }
578 int main()
579 { foo(0, 123); return(0); }],
580 [ac_cv_valistisarray=false],
581 [ac_cv_valistisarray=true],
582 [ac_cv_valistisarray=false])])
583
584 if test "$ac_cv_valistisarray" = true ; then
585 AC_DEFINE(HAVE_VA_LIST_AS_ARRAY,,[va_list works copying an array])
586 AC_MSG_RESULT(yes)
587 else
588 AC_MSG_RESULT(no)
589 fi
590
591
592 dnl
593 dnl Check if the global variable `timezone' exists. If so, define
594 dnl HAVE_INT_TIMEZONE.
595 dnl
596 AC_STRUCT_TIMEZONE
597
598 AC_MSG_CHECKING(for global timezone)
599 AC_TRY_LINK([#include <time.h>],
600 [int res; res = timezone / 60;],
601 [AC_MSG_RESULT(yes)
602 AC_DEFINE(HAVE_INT_TIMEZONE,, [Set to 1 if you have the global variable timezone])],
603 AC_MSG_RESULT(no))
604
605
606 dnl
607 dnl Check for RTDL constants (from Haskell code)
608 dnl
609 dnl ** check for libdl & RTLD_NEXT
610 dnl ** sometimes RTLD_NEXT is hidden in #ifdefs we really don't wan to set
611 AC_MSG_CHECKING(for RTLD_NEXT from dlfcn.h)
612 AC_EGREP_CPP(yes,
613 [
614 #include <dlfcn.h>
615 #ifdef RTLD_NEXT
616 yes
617 #endif
618 ], [
619 AC_MSG_RESULT(yes)
620 AC_DEFINE(HAVE_RTLDNEXT,,[Have RTDL_NEXT])
621 HaveRtldNext=YES
622 ], [
623 AC_MSG_RESULT(no)
624 HaveRtldNext=NO
625 ])
626 AC_SUBST(HaveRtldNext)
627
628 dnl ** RTLD_LOCAL isn't available on cygwin or openbsd
629 AC_MSG_CHECKING(for RTLD_LOCAL from dlfcn.h)
630 AC_EGREP_CPP(yes,
631 [
632 #include <dlfcn.h>
633 #ifdef RTLD_LOCAL
634 yes
635 #endif
636 ], [
637 AC_MSG_RESULT(yes)
638 AC_DEFINE(HAVE_RTLDLOCAL,,[Have RTDL_LOCAL])
639 HaveRtldLocal=YES
640 ], [
641 AC_MSG_RESULT(no)
642 HaveRtldLocal=NO
643 ])
644 AC_SUBST(HaveRtldLocal)
645
646 dnl ** RTLD_GLOBAL isn't available on openbsd
647 AC_MSG_CHECKING(for RTLD_GLOBAL from dlfcn.h)
648 AC_EGREP_CPP(yes,
649 [
650 #include <dlfcn.h>
651 #ifdef RTLD_GLOBAL
652 yes
653 #endif
654 ], [
655 AC_MSG_RESULT(yes)
656 AC_DEFINE(HAVE_RTLDGLOBAL,,[Have RTDL_GLOBAL])
657 HaveRtldGlobal=YES
658 ], [
659 AC_MSG_RESULT(no)
660 HaveRtldGlobal=NO
661 ])
662 AC_SUBST(HaveRtldGlobal)
663
664 dnl ** RTLD_NOW isn't available on openbsd
665 AC_MSG_CHECKING(for RTLD_NOW from dlfcn.h)
666 AC_EGREP_CPP(yes,
667 [
668 #include <dlfcn.h>
669 #ifdef RTLD_NOW
670 yes
671 #endif
672 ], [
673 AC_MSG_RESULT(yes)
674 AC_DEFINE(HAVE_RTLDNOW,,[Have RTDL_NOW])
675 HaveRtldNow=YES
676 ], [
677 AC_MSG_RESULT(no)
678 HaveRtldNow=NO
679 ])
680 AC_SUBST(HaveRtldNow)
681
682
683 dnl
684 dnl Check of off64_t
685 dnl
686 AC_CACHE_CHECK([for off64_t],samba_cv_HAVE_OFF64_T,[
687 AC_TRY_RUN([
688 #if defined(HAVE_UNISTD_H)
689 #include <unistd.h>
690 #endif
691 #include <stdio.h>
692 #include <sys/stat.h>
693 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }],
694 samba_cv_HAVE_OFF64_T=yes,samba_cv_HAVE_OFF64_T=no,samba_cv_HAVE_OFF64_T=cross)])
695 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
696 AC_DEFINE(HAVE_OFF64_T,1,[Whether off64_t is available])
697 fi
698
699
700 # From etr_socket_nsl.m4
701 ETR_SOCKET_NSL
702
703 # From sendfile_samba.m4
704 SENDFILE_CHECK
705
706 # readdir_r()
cdf14c2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@324 5dc97367-97…
alobbs authored Jul 5, 2006
707 LIBWWW_READDIR_R_TYPE
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
708
709
710 dnl
711 dnl IPv6 Support
712 dnl I got this mostly from Apache's tests
713 dnl
714
715 AC_ARG_ENABLE(ipv6,
716 AC_HELP_STRING([--disable-ipv6], [Disable IPv6 support]),
717 [ if test "$enableval" = "no"; then
718 disabled_ipv6=1
719 fi ],
720 [ disabled_ipv6=0 ] )
721
722 AC_SEARCH_LIBS(getaddrinfo, socket inet6)
723 AC_SEARCH_LIBS(getnameinfo, socket inet6)
724 AC_SEARCH_LIBS(gai_strerror, socket inet6)
725 AC_CHECK_FUNC(gai_strerror)
726
727 APR_CHECK_WORKING_GETADDRINFO
728 APR_CHECK_WORKING_GETNAMEINFO
729
730 AC_ACME_SOCKADDR_UN
731 AC_ACME_SOCKADDR_IN6
732 AC_ACME_SOCKADDR_STORAGE
733
734 AC_MSG_CHECKING(if the system supports IPv6)
735 have_ipv6="no"
736
737 if test "$disabled_ipv6" = 1; then
738 AC_MSG_RESULT([no -- disabled by user])
739 else
740 if test "x$ac_cv_acme_sockaddr_in6" = "xyes"; then
741 if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
742 if test "x$ac_cv_working_getnameinfo" = "xyes"; then
743 have_ipv6="yes"
744 AC_MSG_RESULT([yes])
745 AC_DEFINE(HAVE_IPV6, 1, [Define if you have IPv6 support.])
746 else
747 AC_MSG_RESULT([no -- no getnameinfo])
748 fi
749 else
750 AC_MSG_RESULT([no -- no working getaddrinfo])
751 fi
752 else
753 AC_MSG_RESULT([no -- no sockaddr_in6])
754 fi
755 fi
756
757 dnl
758 dnl Test whether SO_RCVTIMEO is broken
759 dnl
760 AC_CACHE_CHECK([whether setsockopt(SO_RCVTIMEO) is broken],
761 ac_cv_so_rcvtimeo_broken, [dnl
762 AC_RUN_IFELSE([AC_LANG_SOURCE([[
763 #if defined(HAVE_SYS_TYPES_H)
764 #include <sys/types.h>
765 #endif
766
767 #if defined(HAVE_SYS_SOCKET_H)
768 #include <sys/socket.h>
769 #endif
770
771 #if defined(HAVE_SYS_TIME_H)
772 #include <sys/time.h>
773 #endif
774
775 int main(void) {
776 int fd;
777 int ret;
778 struct timeval new_tv;
779
780 /* Open the socket (INET/TCP).*/
781 fd = socket(AF_INET, SOCK_STREAM, 0);
782
783 /* set the timeout for the incoming queue */
784 /* 1 second for example */
785 new_tv.tv_sec = 1;
786 new_tv.tv_usec = 0;
787
788 ret = setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &new_tv, sizeof(new_tv));
789 return ret;
790 }
791 ]])],[ac_cv_so_rcvtimeo_broken=no],[ac_cv_so_rcvtimeo_broken=yes],[ac_cv_so_rcvtimeo_broken=cross])])
792 if test x"$ac_cv_so_rcvtimeo_broken" = x"yes"; then
793 AC_DEFINE(HAVE_BROKEN_SO_RCVTIMEO, 1, [Define if setsockopt(SO_RCVTIMEO) is broken])
794 fi
795
796 dnl
797 dnl Check of __func__ and co..
798 dnl
799 AC_MSG_CHECKING([whether our compiler supports __func__])
800 AC_TRY_COMPILE([],
801 [const char *cp = __func__;],
802 AC_MSG_RESULT([yes]),
803 AC_MSG_RESULT([no])
804 AC_MSG_CHECKING([whether our compiler supports __FUNCTION__])
805 AC_TRY_COMPILE([],
806 [const char *cp = __FUNCTION__;],
807 AC_MSG_RESULT([yes])
808 AC_DEFINE(__func__, __FUNCTION__,
809 [Define to appropriate substitue if compiler doesnt have __func__]),
810 AC_MSG_RESULT([no])
811 AC_DEFINE(__func__, __FILE__,
812 [Define to appropriate substitue if compiler doesnt have __func__])))
813
814 dnl
815 dnl Check for pcre library
816 dnl
36f561a @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@903 5dc97367-97…
alobbs authored Sep 3, 2007
817 have_pcre="built-in"
818
819 AC_ARG_ENABLE(internal_pcre,
820 AC_HELP_STRING([--enable-internal-pcre],[Enable internal PCRE]),
821 use_internal_pcre="$enableval", use_internal_pcre="no")
822
823 if test "x$use_internal_pcre" != "xyes"; then
824 AC_CHECK_LIB(pcre, pcre_compile, have_pcre_lib=yes, have_pcre_lib=no)
825 AC_CHECK_HEADER(pcre.h, have_pcre_include=yes, have_pcre_include=no)
826 if test "$have_pcre_lib $have_pcre_include" = "yes yes"; then
827 have_pcre="yes"
828 fi
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
829 fi
830
36f561a @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@903 5dc97367-97…
alobbs authored Sep 3, 2007
831 AM_CONDITIONAL(USE_INTERNAL_PCRE, test $have_pcre = "built-in")
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
832
833 dnl
834 dnl PAM
835 dnl
836 have_pam="disabled"
837 AC_ARG_ENABLE(pam, AC_HELP_STRING([--disable-pam],[Disable PAM support]), use_pam="$enableval", use_pam="yes")
838 if test "x$use_pam" = "xyes"; then
7a4a352 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@934 5dc97367-97…
alobbs authored Oct 13, 2007
839 AC_CHECK_LIB(pam, pam_start, have_pam_lib=yes, have_pam_lib=no)
dcb92f4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@535 5dc97367-97…
alobbs authored Dec 21, 2006
840 AC_CHECK_LIB(pam, _pam_dispatch, have_pam_dispatch=yes, have_pam_dispatch=no)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
841 AC_CHECK_HEADER(security/pam_modules.h, have_pam_include=yes, have_pam_include=no)
842 AC_CHECK_HEADERS(security/_pam_macros.h security/pam_appl.h)
843 fi
dcb92f4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@535 5dc97367-97…
alobbs authored Dec 21, 2006
844
7a4a352 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@934 5dc97367-97…
alobbs authored Oct 13, 2007
845 if test "$have_pam $have_pam_lib $have_pam_include" != "yes yes yes"; then
846 have_pam="no"
847 fi
848 AM_CONDITIONAL(HAVE_PAM, test "x$have_pam" = "xyes")
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
849
dcb92f4 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@535 5dc97367-97…
alobbs authored Dec 21, 2006
850 if test "$have_pam_dispatch" = "yes"; then
851 AC_DEFINE(HAVE_PAM_DISPATCH, 1, [Have _pam_dispatch function])
852 fi
853
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
854 dnl
6db0284 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@675 5dc97367-97…
alobbs authored Mar 15, 2007
855 dnl crypt()
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
856 dnl
6db0284 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@675 5dc97367-97…
alobbs authored Mar 15, 2007
857 AC_CHECK_HEADERS(crypt.h)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
858
6db0284 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@675 5dc97367-97…
alobbs authored Mar 15, 2007
859 AC_CHECK_FUNC(crypt, system_crypt="yes", system_crypt="no")
860 AC_CHECK_LIB(crypt, crypt, have_crypt_lib="yes", have_crypt_lib="no")
861 if test "x$have_crypt_lib" = "xyes"; then
862 CRYPT_LIBS="-lcrypt"
863 AC_SUBST(CRYPT_LIBS)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
864 fi
865
6db0284 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@675 5dc97367-97…
alobbs authored Mar 15, 2007
866 use_crypt="no"
867 if test "$system_crypt $have_crypt_lib" != "no no"; then
868 use_crypt="yes"
869 AC_DEFINE(HAVE_CRYPT, 1, [Have crypt function])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
870 fi
6db0284 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@675 5dc97367-97…
alobbs authored Mar 15, 2007
871 AM_CONDITIONAL(HAVE_CRYPT, test "$use_crypt" = "yes")
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
872
6db0284 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@675 5dc97367-97…
alobbs authored Mar 15, 2007
873
874 dnl
875 dnl crypt_r()
876 dnl
877 AC_CHECK_FUNC(crypt_r, system_crypt_r="yes", system_crypt_r="no")
878 AC_CHECK_LIB(crypt, crypt_r, have_crypt_r_lib="yes", have_crypt_r_lib="no")
879
880 use_crypt_r="no"
2ae848d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@676 5dc97367-97…
alobbs authored Mar 15, 2007
881 if test "$system_crypt_r $have_crypt_r_lib" != "no no"; then
6db0284 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@675 5dc97367-97…
alobbs authored Mar 15, 2007
882 use_crypt_r="yes"
883 AC_DEFINE(HAVE_CRYPT_R, 1, [Have crypt_r function])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
884 fi
885
6db0284 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@675 5dc97367-97…
alobbs authored Mar 15, 2007
886
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
887 dnl
888 dnl crypt_r and pthread
889 dnl
6db0284 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@675 5dc97367-97…
alobbs authored Mar 15, 2007
890 if test "$use_crypt_r" = "yes"; then
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
891 dnl
892 dnl struct crypt_data
893 dnl
894 oldcflags="$CFLAGS"
895 CFLAGS="$CFLAGS -D_GNU_SOURCE"
896
897 AC_MSG_CHECKING([for struct crypt_data])
898 AC_TRY_COMPILE([#include <crypt.h>],
899 [struct crypt_data data;]
900 ,
901 AC_MSG_RESULT([-D_GNU_SOURCE])
902 CRYPT_CFLAGS="-D_GNU_SOURCE"
903 AC_SUBST(CRYPT_CFLAGS)
904 ,
905 AC_MSG_ERROR([struct crypt_data is not known]))
906
907 CFLAGS="$oldcflags"
908 fi
909
910
911 dnl
912 dnl SSL and TLS
913 dnl
914 AC_ARG_ENABLE([tls],
915 [AC_HELP_STRING([--disable-tls],[Disable TLS/SSL support])
916 AC_HELP_STRING([--enable-tls=[gnutls|openssl]])],
917 enable_tls="$enableval", enable_tls="undef")
918
919 case "$enable_tls" in
920 no)
921 check_gnutls=no
922 check_openssl=no
923 ;;
924 undef|yes)
925 check_gnutls=yes
926 check_openssl=yes
927 ;;
928 gnu*)
929 check_gnutls=yes
930 check_openssl=no
931 ;;
932 open*)
933 check_gnutls=no
934 check_openssl=yes
935 ;;
936 *)
937 AC_MSG_ERROR([Incorrect TLS library])
938 ;;
939 esac
940
941 have_tls="no"
942
943 if test "$check_gnutls" = "yes" && test "$have_tls" = "no"
944 then
945 dnl
946 dnl GNUTLS
947 dnl
691a8a9 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@645 5dc97367-97…
alobbs authored Feb 16, 2007
948 PKG_CHECK_MODULES(GNUTLS, gnutls >= "1.0.4", [have_gnutls=yes], [have_gnutls=no])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
949 if test "$have_gnutls" = "yes"
950 then
691a8a9 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@645 5dc97367-97…
alobbs authored Feb 16, 2007
951 TLS_LIBS="$GNUTLS_LIBS"
952 TLS_CFLAGS="$GNUTLS_CFLAGS"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
953 AC_SUBST(TLS_LIBS)
954 AC_SUBST(TLS_CFLAGS)
955
956 AC_DEFINE(HAVE_TLS, 1, [Have TLS support])
957 AC_DEFINE(HAVE_GNUTLS, 1, [Have libgnutls])
958 have_tls="gnutls"
959 else
960 enable_tls=no
961 fi
962 fi
963
964 if test "$check_openssl" = "yes" && test "$have_tls" = "no"
965 then
966 dnl
967 dnl OpenSSL
968 dnl
2ddc0e6 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@933 5dc97367-97…
alobbs authored Oct 13, 2007
969 AC_CHECK_LIB(crypto, BN_init)
970
40aafe2 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@307 5dc97367-97…
alobbs authored Jun 13, 2006
971 AC_CHECK_HEADERS([openssl/engine.h])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
972 AC_CHECK_LIB(ssl, SSL_accept, [have_openssl=yes], [have_openssl=no])
973 if test "$have_openssl" = "yes"
974 then
975 TLS_LIBS="-lssl"
976 AC_SUBST(TLS_LIBS)
977
978 AC_DEFINE(HAVE_TLS, 1, [Have TLS support])
979 AC_DEFINE(HAVE_OPENSSL, 1, [Have OpenSSL library])
980 have_tls="openssl"
981 else
982 enable_tls=no
983 fi
984 fi
985
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97…
alobbs authored Jul 30, 2006
986 dnl
987 dnl LDAP
988 dnl
9eb4035 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@400 5dc97367-97…
alobbs authored Sep 7, 2006
989 AC_ARG_WITH([ldap],
990 AC_HELP_STRING([--with-ldap=@<:@ARG@:>@],
991 [use OpenLDAP development library @<:@default=yes@:>@, optionally specify path to dev libs]
992 ),
993 [
994 if test "$withval" = "no"; then
995 want_ldap="no"
996 elif test "$withval" = "yes"; then
997 want_ldap="yes"
998 else
999 want_ldap="yes"
1000 LDAP_CONFIG="$withval"
1001 fi
1002 ],
1003 [want_ldap="yes"]
1004 )
1005
1006 if test "$want_ldap" = "yes"; then
1007 AC_CHECK_LIB(ldap, ldap_init, have_ldap_lib=yes, have_ldap_lib=no)
1008 AC_CHECK_HEADER(ldap.h, have_ldap_include=yes, have_ldap_include=no)
314cf73 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@447 5dc97367-97…
alobbs authored Nov 2, 2006
1009
1010 AC_CHECK_LIB(ldap, ldap_start_tls_s, [
1011 AC_DEFINE(LDAP_HAVE_START_TLS_S,, Define if you have ldap_start_tls_s)
1012 ])
1013
9eb4035 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@400 5dc97367-97…
alobbs authored Sep 7, 2006
1014 if test "$have_ldap_lib $have_ldap_include" = "yes yes"; then
1015 have_ldap="yes"
1016 else
1017 have_ldap="no"
1018 fi
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97…
alobbs authored Jul 30, 2006
1019 else
9eb4035 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@400 5dc97367-97…
alobbs authored Sep 7, 2006
1020 have_ldap="no"
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97…
alobbs authored Jul 30, 2006
1021 fi
9eb4035 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@400 5dc97367-97…
alobbs authored Sep 7, 2006
1022
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97…
alobbs authored Jul 30, 2006
1023 AM_CONDITIONAL(HAVE_LDAP, test $have_ldap = "yes")
1024
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1025
1026 dnl
e4c101f @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@391 5dc97367-97…
alobbs authored Sep 5, 2006
1027 dnl Check for MySQL 4.0.0 support
1028 dnl
1029 AX_LIB_MYSQL(4.0.0)
1030
1031
1032 dnl
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1033 dnl WWW root directory
1034 dnl
1035 AC_ARG_WITH(wwwroot, AC_HELP_STRING([--with-wwwroot=DIR], [Set the WWW root directory]),
1036 WWW_ROOT="$withval", WWW_ROOT="$localstatedir/www")
1037
1038 AC_SUBST(WWW_ROOT)
1039
1040
1041 dnl
1042 dnl Options
1043 dnl
1044 use_static_module=""
1045 AC_ARG_ENABLE(static-module,
1046 AC_HELP_STRING([--enable-static-module=MODULE][]),
1047 [use_static_module="$use_static_module $enableval "],[])
1048
7c793e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@529 5dc97367-97…
alobbs authored Dec 21, 2006
1049 modules="error_redir server_info file admin dirlist fcgi fastcgi scgi redir common nn cgi phpcgi proxy mirror gzip ncsa combined w3c pam ldap mysql htpasswd plain htdigest round_robin"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1050
1051 # Remove modules that will not be compiles
1052 #
1053 if test "x$have_pam" != "xyes"; then
1054 modules=`echo $modules | sed s/pam//`
1055 fi
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97…
alobbs authored Jul 30, 2006
1056 if test "x$have_ldap" != "xyes"; then
1057 modules=`echo $modules | sed s/ldap//`
1058 fi
e4c101f @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@391 5dc97367-97…
alobbs authored Sep 5, 2006
1059 if test "x$have_mysql" != "xyes"; then
1060 modules=`echo $modules | sed s/mysql//`
1061 fi
595756c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@680 5dc97367-97…
alobbs authored Mar 16, 2007
1062 if test "$use_crypt" != "yes"; then
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1063 modules=`echo $modules | sed s/htpasswd//`
1064 fi
1065
1066 add_calls=""
1067 init_calls=""
1068 headers=""
1069 ext_defs=""
1070
1071 for mod in $modules; do
1072 AC_MSG_CHECKING([module "$mod"])
1073
1074 if echo $use_static_module | grep $mod >/dev/null || echo $use_static_module | grep all >/dev/null; then
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored Nov 30, 2006
1075 ext_defs="$ext_defs \n extern cherokee_plugin_info_t cherokee_${mod}_info;"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1076
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored Nov 30, 2006
1077 headers="$headers \n void PLUGIN_INIT_NAME($mod) (cherokee_plugin_loader_t *loader);"
1078 add_calls="$add_calls \n add_static_entry (loader, \"$mod\", PLUGIN_INFO_PTR($mod));"
1079 init_calls="$init_calls \n PLUGIN_INIT_NAME($mod)(loader);"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1080
1081 AC_MSG_RESULT([static])
1082 else
1083 AC_MSG_RESULT([dynamic])
1084 fi
1085 done
1086
1087 printf "$ext_defs\n" > ${srcdir}/cherokee/loader.autoconf.h
1088 printf "$headers \n\n $add_calls \n\n $init_calls\n" > ${srcdir}/cherokee/loader.autoconf.inc
1089
1090 dnl
1091 dnl Static/Dynamic modules
1092 dnl
1093 conf_h="${srcdir}/cherokee/loader.autoconf.h"
1094 AM_CONDITIONAL(STATIC_HANDLER_SERVER_INFO, grep server_info $conf_h >/dev/null)
1095 AM_CONDITIONAL(STATIC_HANDLER_FILE, grep file $conf_h >/dev/null)
1096 AM_CONDITIONAL(STATIC_HANDLER_ADMIN, grep admin $conf_h >/dev/null)
1097 AM_CONDITIONAL(STATIC_HANDLER_DIRLIST, grep dirlist $conf_h >/dev/null)
1098 AM_CONDITIONAL(STATIC_HANDLER_FCGI, grep fcgi $conf_h >/dev/null)
1099 AM_CONDITIONAL(STATIC_HANDLER_FASTCGI, grep fastcgi $conf_h >/dev/null)
1100 AM_CONDITIONAL(STATIC_HANDLER_SCGI, grep scgi $conf_h >/dev/null)
1101 AM_CONDITIONAL(STATIC_HANDLER_REDIR, grep redir $conf_h >/dev/null)
1102 AM_CONDITIONAL(STATIC_HANDLER_ERROR_REDIR, grep redir $conf_h >/dev/null)
1103 AM_CONDITIONAL(STATIC_HANDLER_COMMON, grep common $conf_h >/dev/null)
1104 AM_CONDITIONAL(STATIC_HANDLER_NN, grep nn $conf_h >/dev/null)
1105 AM_CONDITIONAL(STATIC_HANDLER_CGI, grep cgi $conf_h >/dev/null)
1106 AM_CONDITIONAL(STATIC_HANDLER_PHPCGI, grep phpcgi $conf_h >/dev/null)
a5dd2dd @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@247 5dc97367-97…
alobbs authored Apr 1, 2006
1107 AM_CONDITIONAL(STATIC_HANDLER_PROXY, grep proxy $conf_h >/dev/null)
7c793e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@529 5dc97367-97…
alobbs authored Dec 21, 2006
1108 AM_CONDITIONAL(STATIC_HANDLER_MIRROR, grep mirror $conf_h >/dev/null)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1109 AM_CONDITIONAL(STATIC_ENCODER_GZIP, grep gzip $conf_h >/dev/null)
1110 AM_CONDITIONAL(STATIC_LOGGER_NCSA, grep ncsa $conf_h >/dev/null)
1111 AM_CONDITIONAL(STATIC_LOGGER_COMBINED, grep combined $conf_h >/dev/null)
1112 AM_CONDITIONAL(STATIC_LOGGER_W3C, grep w3c $conf_h >/dev/null)
1113 AM_CONDITIONAL(STATIC_VALIDATOR_PAM, grep pam $conf_h >/dev/null)
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97…
alobbs authored Jul 30, 2006
1114 AM_CONDITIONAL(STATIC_VALIDATOR_LDAP, grep ldap $conf_h >/dev/null)
e4c101f @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@391 5dc97367-97…
alobbs authored Sep 5, 2006
1115 AM_CONDITIONAL(STATIC_VALIDATOR_MYSQL, grep mysql $conf_h >/dev/null)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1116 AM_CONDITIONAL(STATIC_VALIDATOR_HTPASSWD, grep htpasswd $conf_h >/dev/null)
1117 AM_CONDITIONAL(STATIC_VALIDATOR_PLAIN, grep plain $conf_h >/dev/null)
1118 AM_CONDITIONAL(STATIC_VALIDATOR_HTDIGEST, grep htdigest $conf_h >/dev/null)
c5205f7 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@379 5dc97367-97…
alobbs authored Aug 31, 2006
1119 AM_CONDITIONAL(STATIC_BALANCER_ROUND_ROBIN, grep round_robin $conf_h >/dev/null)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1120
a5ee902 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@693 5dc97367-97…
alobbs authored Apr 2, 2007
1121 AC_OUTPUT([
1122 Makefile
1123 cget/Makefile
1124 cherokee-config
1125 cherokee.pc
1126 cherokee.spec
1127 cherokee/Makefile
1128 cherokee/Makefile.MingW
1129 contrib/Makefile
1130 icons/Makefile
1131 m4/Makefile
1132 qa/Makefile
0940465 @brosner rewritten documentation system for 0.6.0
brosner authored Jul 11, 2007
1133 doc/Makefile
a5ee902 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@693 5dc97367-97…
alobbs authored Apr 2, 2007
1134 themes/Makefile
1135 windows/Makefile
1136 windows/cherokee.nsi
1137 www/Makefile
1138 ])
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1139
1140
1141 methods=""
1142 if test "$have_epoll" = yes; then methods="${methods}epoll "; fi
1143 if test "$have_kqueue" = yes; then methods="${methods}kqueue "; fi
1144 if test "$have_poll" = yes; then methods="${methods}poll "; fi
1145 if test "$have_port" = yes; then methods="${methods}port "; fi
1146 if test "$have_win32_select" = yes; then methods="${methods}win32 "; fi
1147 if test "$have_select" = yes; then methods="${methods}select"; fi
1148
595756c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@680 5dc97367-97…
alobbs authored Mar 16, 2007
1149 if test "$use_crypt_r" = "yes"; then
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1150 crypt_type="multithread"
595756c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@680 5dc97367-97…
alobbs authored Mar 16, 2007
1151 elif test "$use_crypt" = "yes"; then
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1152 crypt_type="single thread"
595756c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@680 5dc97367-97…
alobbs authored Mar 16, 2007
1153 else
1154 crypt_type="no"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1155 fi
1156
1157 echo
1158 echo ============================
1159 echo "Install prefix $prefix"
1160 echo "cflags $CFLAGS"
1161 echo "trace $enable_trace"
1162 echo "sendfile() $with_sendfile_support"
1163 echo "IPv6 support $have_ipv6"
1164 i=1
1165 for m in $methods; do
1166 echo "Polling method $i $m"
1167 i=`expr $i + 1`
1168 done
50251d8 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@673 5dc97367-97…
alobbs authored Mar 15, 2007
1169 echo "Threading support $have_pthread"
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97…
alobbs authored Jul 30, 2006
1170 echo "TLS support $have_tls"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1171 echo "PCRE library $have_pcre"
1172 echo "Compatible PAM $have_pam"
3007777 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@330 5dc97367-97…
alobbs authored Jul 30, 2006
1173 echo "LDAP $have_ldap"
e4c101f @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@391 5dc97367-97…
alobbs authored Sep 5, 2006
1174 echo "MySQL $have_mysql"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1175 echo "crypt support $crypt_type"
86dcbbb @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@471 5dc97367-97…
alobbs authored Nov 22, 2006
1176 if test x"$is_beta" == "xyes"; then
1177 echo "Beta release $svn_rev"
1178 fi
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored Apr 1, 2006
1179 echo
1180 eval eval echo "Installation dir $bindir"
1181 echo ============================
1182 echo
1183 if test "x$cherokeepath" != "x" ; then
1184 echo Warning: You have an old copy of Cherokee at $cherokeepath.
1185 echo
1186 fi
1187
1188 cat <<THEEND
1189 +--------------------------------------------------------------------+
1190 | License: |
1191 | This software is subject to the GPL License, available in this |
1192 | distribution in the file COPYING. By continuing this installation |
1193 | process, you are bound by the terms of this license agreement. |
1194 | If you do not agree with the terms of this license, you must abort |
1195 | the installation process at this point. |
1196 +--------------------------------------------------------------------+
1197
1198 Thank you for using Cherokee.
1199 THEEND
Something went wrong with that request. Please try again.