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

Contents of /ircd-hybrid/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 641 - (show annotations)
Wed Jun 7 10:51:31 2006 UTC (15 years, 6 months ago) by michael
File size: 32334 byte(s)
- Renamed basename() to libio_basename() and use it everywhere instead
  of glibc's basename
- Updated configure.ac accordingly

1 dnl $Id$
2 dnl Process this file with autoconf to produce a configure script.
3
4 dnl TODO: clean up all the OpenSSL and shared module checking stuff;
5 dnl the most major changes have already been made and it looks like
6 dnl said functions need to be just about as complex as they already are.
7
8 AC_PREREQ(2.59)
9
10 dnl Sneaky way to get an Id tag into the configure script
11 AC_COPYRIGHT([$Id$])
12
13 AC_INIT([ircd-hybrid],[7.3])
14
15 AC_CONFIG_HEADER(include/setup.h)
16
17 AC_PREFIX_DEFAULT(/usr/local/ircd)
18
19 AC_GNU_SOURCE
20
21 OLD_CFLAGS="$CFLAGS"
22 dnl Checks for programs.
23 AC_PROG_CC
24 AC_LANG(C)
25
26 dnl Make sure autoconf doesn't interfere with cflags -jmallett
27 CFLAGS="$OLD_CFLAGS"
28
29 dnl Check for various compilers. -jmallett
30 dnl But if $CC turns out to be gcc, sure as hell it's, well, gcc. -joshk
31
32 if test "$ac_cv_c_compiler_gnu" != yes; then
33
34 SGS=no
35 AC_MSG_CHECKING($CC -version for TenDRA or MIPSpro)
36 case `$CC -version 2>&1` in
37 *TenDRA*)
38 AC_MSG_RESULT([yes, TenDRA])
39 IRC_CFLAGS=""
40 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem"
41 SGS=yes
42 TenDRA=yes
43 ;;
44 *MIPSpro*)
45 AC_MSG_RESULT([yes, MIPSpro])
46 MIPSpro=yes
47 SGS=yes
48 ;;
49 *)
50 AC_MSG_RESULT(no)
51 TenDRA=no
52 MIPSpro=no
53 ;;
54 esac
55
56 AC_MSG_CHECKING([$CC -V for Sun Workshop, Forte, HPUX or Tru64 cc])
57 case `$CC -V 2>&1` in
58 *Sun*WorkShop* | *Forte*Developer* | *Sun*C*)
59 AC_MSG_RESULT(Sun Workshop/Forte)
60 IRC_CFLAGS="-xO3 -xdepend -xinline=_MyMalloc,_MyRealloc,_MyFree,_DupString"
61 SunWorkShop=yes
62 SGS=yes
63 ;;
64 *Tru64*)
65 AC_MSG_RESULT(Tru64 cc)
66 IRC_CFLAGS=""
67 CPPFLAGS="-I/usr/local/include"
68 Tru=yes
69 ;;
70 *HP*ANSI*)
71 AC_MSG_RESULT(HPUX cc)
72 HPUX=yes
73 IRC_CFLAGS="+e"
74 ;;
75 *)
76 AC_MSG_RESULT(no)
77 ;;
78 esac
79
80 fi
81
82 AC_MSG_CHECKING([uname -s for Cygwin, Solaris or HPUX])
83 case `uname -s` in
84 HP-UX*)
85 dnl only do this if we haven't already detected the newer one
86 dnl and we're not already using gcc
87
88 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
89 AC_MSG_RESULT(assuming old HPUX with its own cc)
90 IRC_CFLAGS="$IRC_CFLAGS +e"
91 HPUX=yes
92 else
93 AC_MSG_RESULT(already using newer HPUX)
94 fi
95 ;;
96 CYGWIN*)
97 AC_MSG_RESULT(Cygwin)
98 CYGWIN=yes
99 ;;
100 SunOS*)
101 AC_MSG_RESULT(SunOS or Solaris)
102 AC_DEFINE(__EXTENSIONS__, 1, [This is needed to use strtok_r on Solaris.])
103 ;;
104 *)
105 AC_MSG_RESULT(no)
106 ;;
107 esac
108
109 if test "$ac_cv_c_compiler_gnu" = yes; then
110 AC_MSG_CHECKING(if $CC is Apple GCC)
111
112 if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then
113 AppleGCC=yes
114 else
115 AppleGCC=no
116 fi
117
118 AC_MSG_RESULT($AppleGCC)
119
120 IRC_CFLAGS="$IRC_CFLAGS -Wall -O0"
121 fi
122
123 dnl If we support -g, use it!
124 if test "$ac_cv_prog_cc_g" = yes; then
125 dnl Tru64 needs -g3 for -O2
126 if test "$Tru" = yes; then
127 IRC_CFLAGS="$IRC_CFLAGS -g3"
128 else
129 IRC_CFLAGS="$IRC_CFLAGS -g"
130 fi
131 fi
132
133 dnl SVR4 SGS based on what we know about the compiler -jmallett
134 AC_MSG_CHECKING(if $CC supports the SVR4 SGS interfaces)
135 if test "$SGS" = "yes"; then
136 AC_MSG_RESULT(yes)
137 else
138 AC_MSG_RESULT(no)
139 fi
140
141 dnl We prefer gcc -MM because it's a lot less bloated
142 AC_PATH_PROG(MKDEP, mkdep)
143 AC_PATH_PROG(MAKEDEPEND, makedepend)
144
145 AC_MSG_CHECKING(how to generate dependency info)
146
147 STDOUT="> .depend"
148
149 if test "$ac_cv_c_compiler_gnu" = yes; then
150 AC_MSG_RESULT(gcc -MM)
151 MKDEP="$CC -MM"
152 elif test ! -z "$MKDEP"; then
153 AC_MSG_RESULT(mkdep)
154
155 dnl Tru64's mkdep is very loud
156 if test -z "$Tru"; then
157 STDOUT=""
158 else
159 STDOUT=" 2> /dev/null"
160 fi
161 elif test "$SunWorkShop" = yes; then
162 AC_MSG_RESULT($CC -xM)
163 MKDEP="$CC -xM"
164 STDOUT="> .depend 2> /dev/null"
165 elif test ! -z "$MAKEDEPEND"; then
166 AC_MSG_RESULT(makedepend)
167 MKDEP="$MAKEDEPEND -f-"
168 else
169 AC_MSG_RESULT([nothing suitable.. forget it!])
170 MKDEP=":"
171 fi
172
173 AC_SUBST(MKDEP)
174 AC_SUBST(STDOUT)
175
176 dnl check for /dev/null so we can use it to hold evil fd's
177 AC_MSG_CHECKING([for /dev/null])
178 if test -c /dev/null ; then
179 AC_DEFINE(PATH_DEVNULL, "/dev/null", [Path to /dev/null])
180 AC_MSG_RESULT(yes)
181 else
182 AC_DEFINE(PATH_DEVNULL, "devnull.log", [Path to /dev/null])
183 AC_MSG_RESULT(no - using devnull.log)
184 fi
185
186 dnl jdc -- If CFLAGS is defined, best use it everywhere...
187 dnl NOTE: jv says it must be added to the *END*, because things like
188 dnl "gcc -O9 -O2" will result in -O2 getting preference. How stupid.
189 if test ! -z "$CFLAGS"; then
190 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
191 fi
192
193 AC_ISC_POSIX
194 AC_C_INLINE
195 AC_PROG_GCC_TRADITIONAL
196 AC_PROG_MAKE_SET
197 AC_PROG_INSTALL
198 AC_PATH_PROG(RM, rm)
199 AC_PATH_PROG(CP, cp)
200 AC_PATH_PROG(MV, mv)
201 AC_PATH_PROG(LN, ln)
202 AC_PATH_PROG(SED, sed)
203 AC_PATH_PROG(AR, ar)
204 AC_PATH_PROG(LD, ld)
205 AC_PATH_PROG(TEST, [test], [test])
206
207 dnl use directory structure of cached as default (hack)
208 if test "$libexecdir" = '${exec_prefix}/libexec' &&
209 test "$localstatedir" = '${prefix}/var'; then
210 libexecdir='${bindir}'
211 localstatedir='${prefix}'
212 fi
213
214 dnl Checks for header files.
215 AC_HEADER_STDC
216
217 AC_CHECK_HEADERS([crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h])
218
219 dnl Networking Functions
220 dnl ====================
221
222 AC_SEARCH_LIBS(socket, socket, , [AC_MSG_ERROR([You have no socket()! Aborting.])])
223
224 dnl Don't use them if they're available natively... else, they're available in inet_misc
225 AC_SEARCH_LIBS(inet_aton, resolv, , [inet_misc=1; AC_DEFINE(NO_INET_ATON, 1, [Define if you have no native inet_aton() function.])])
226 AC_SEARCH_LIBS(inet_pton, resolv nsl, , [inet_misc=1; AC_DEFINE(NO_INET_PTON, 1, [Define if you have no native inet_pton() function.])])
227 AC_SEARCH_LIBS(inet_ntop, resolv nsl, , [inet_misc=1; AC_DEFINE(NO_INET_NTOP, 1, [Define if you have no native inet_ntop() function.])])
228
229 if test "$inet_misc" = 1; then
230 AC_SUBST(INET_MISC, inet_misc.c)
231 fi
232
233 AC_CHECK_TYPES([struct sockaddr_storage], , ,
234 [[#include <sys/types.h>
235 #include <sys/socket.h>
236 ]])
237
238 if test "$ac_cv_type_struct_sockaddr_storage" = no; then
239 AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
240 [AC_DEFINE(SOCKADDR_IN_HAS_LEN, 1, [Define to 1 if sockaddr_in has a 'sin_len' member.])])
241 fi
242
243 AC_CHECK_TYPES([struct addrinfo], , , [[#include <netdb.h>]])
244
245 AC_CHECK_TYPE(socklen_t, ,
246 [AC_DEFINE([socklen_t], [unsigned int],
247 [If we don't have a real socklen_t, unsigned int is good enough.])],
248 [#include <sys/types.h>
249 #include <sys/socket.h>])
250
251 dnl Tru64 accepts *both*
252 if test -z "$Tru"; then
253
254 AC_MSG_CHECKING(for broken glibc with __ss_family)
255 AC_COMPILE_IFELSE(
256 [AC_LANG_PROGRAM(
257 [#include <sys/types.h>
258 #include <sys/socket.h>],
259 [struct sockaddr_storage s; s.__ss_family = AF_INET;])],
260 [
261 AC_MSG_RESULT(yes)
262 AC_DEFINE(ss_family, __ss_family, [Broken glibc implementations use __ss_family instead of ss_family. Define to __ss_family if true.])
263 ],
264 [AC_MSG_RESULT(no)])
265
266 fi
267
268 AC_MSG_CHECKING([for core IPv6 support])
269
270 AC_COMPILE_IFELSE(
271 [AC_LANG_PROGRAM(
272 [[#define IN_AUTOCONF
273 #include "include/stdinc.h"]],
274 [[struct sockaddr_in6 s;
275 struct sockaddr_storage t;
276 s.sin6_family = 0;]]
277 )],
278 [
279 if test "$CYGWIN" = "yes"; then
280 AC_MSG_RESULT([no, Cygwin's IPv6 is incomplete])
281 have_v6=no
282 else
283 have_v6=yes
284 AC_DEFINE(IPV6, 1, [Define if IPv6 support is present and available.])
285 AC_MSG_RESULT(yes)
286 AC_MSG_CHECKING([for struct in6addr_any])
287 AC_COMPILE_IFELSE(
288 [AC_LANG_PROGRAM(
289 [[#define IN_AUTOCONF
290 #include "include/stdinc.h"]],
291 [[struct in6_addr a = in6addr_any;]]
292 )],
293 [AC_MSG_RESULT(yes)],
294 [
295 AC_MSG_RESULT(no)
296 AC_DEFINE(NO_IN6ADDR_ANY, 1, [Define to 1 if your system has no in6addr_any.])
297 inet_misc=1
298 ]
299 )
300 fi
301 ],
302 [AC_MSG_RESULT(no)
303 have_v6="no"])
304
305 AC_SEARCH_LIBS(crypt, [crypt descrypt],,)
306
307 CRYPT_LIB=$ac_cv_search_crypt
308
309 if test "$CRYPT_LIB" = "none required"; then
310 unset CRYPT_LIB
311 elif test "$CRYPT_LIB" = no; then
312 CRYPT_C=crypt.c
313 unset CRYPT_LIB
314 fi
315
316 AC_SUBST(CRYPT_C)
317 AC_SUBST(CRYPT_LIB)
318
319 dnl See whether we can include both string.h and strings.h.
320 AC_CACHE_CHECK([whether string.h and strings.h may both be included],
321 gcc_cv_header_string,
322 [
323 AC_COMPILE_IFELSE(
324 [#include <string.h>
325 #include <strings.h>],
326 [gcc_cv_header_string=yes],
327 [gcc_cv_header_string=no])
328 ])
329
330 if test "$gcc_cv_header_string" = "yes"; then
331 AC_DEFINE(STRING_WITH_STRINGS, 1, [Define to 1 if string.h may be included along with strings.h])
332 fi
333
334 AC_C_BIGENDIAN
335
336 dnl Check for stdarg.h - if we can't find it, halt configure
337 AC_CHECK_HEADER(stdarg.h, , [AC_MSG_ERROR([** stdarg.h could not be found - ircd-hybrid will not compile without it **])])
338
339 dnl Checks for the existence of strlcat, strlcpy, basename...
340 dnl This more reliable test only works with gcc though.
341
342 if test "$ac_cv_c_compiler_gnu" = yes; then
343
344 AC_MSG_CHECKING(for strlcpy)
345 save_CFLAGS=$CFLAGS
346 CFLAGS="$CFLAGS -Wimplicit -Werror"
347
348 AC_LINK_IFELSE(
349 [AC_LANG_PROGRAM(
350 [[#include <string.h>
351 #include <stdlib.h>]],
352 [[char *a = malloc(6), *b = strdup("hello");
353 strlcpy(a, b, 6);]]
354 )],
355 [AC_MSG_RESULT(yes)
356 AC_DEFINE(HAVE_STRLCPY, 1, [Define if strlcpy is available (most BSDs.)])],
357 [AC_MSG_RESULT(no)]
358 )
359
360 AC_MSG_CHECKING(for strlcat)
361 AC_LINK_IFELSE(
362 [AC_LANG_PROGRAM(
363 [[#include <string.h>
364 #include <stdlib.h>]],
365 [[char *a = malloc(6), *b = strdup("hello");
366 strlcat(a, b, 6);]]
367 )],
368 [AC_MSG_RESULT(yes)
369 AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcat is available (most BSDs.)])],
370 [AC_MSG_RESULT(no)]
371 )
372
373 CFLAGS=$save_CFLAGS
374
375 else
376
377 dnl Better than nothing. The more complicated test above probably fixes powerpc,
378 dnl so who cares.
379
380 AC_CHECK_FUNCS([strlcat strlcpy])
381
382 fi
383
384 AC_CHECK_SIZEOF(int64_t)
385 AC_CHECK_SIZEOF(long long)
386
387 if test "$ac_cv_sizeof_int64_t" = 8; then
388 AC_CHECK_TYPE(uint64_t)
389 AC_CHECK_TYPE(int64_t)
390 elif test "$ac_cv_sizeof_long_long" = 8; then
391 AC_CHECK_TYPE(uint64_t, unsigned long long)
392 AC_CHECK_TYPE(int64_t, long long)
393 else
394 AC_MSG_ERROR([Your system doesn't appear to have 64 bit integers. Aborting.])
395 fi
396
397 AC_CHECK_TYPE([u_int32_t], [],
398 [
399 AC_CHECK_TYPE([uint32_t],
400 [
401 AC_DEFINE(u_int32_t, [uint32_t], [If system does not define u_int32_t, define a reasonable substitute.])
402 ],
403 [
404 AC_MSG_WARN([system has no u_int32_t or uint32_t, default to unsigned long int])
405 AC_DEFINE(u_int32_t, [unsigned long int], [If system does not define u_int32_t, define to unsigned long int here.])
406 ])
407 ])
408
409 AC_CHECK_TYPE([u_int16_t], [],
410 [
411 AC_CHECK_TYPE([uint16_t],
412 [
413 AC_DEFINE(u_int16_t, [uint16_t], [If system does not define u_int16_t, define a usable substitute])
414 ],
415 [
416 AC_MSG_WARN([system has no u_int16_t or uint16_t, default to unsigned short int])
417 AC_DEFINE(u_int16_t, [unsigned short int], [If system does not define u_int16_t, define a usable substitute.])
418 ])
419 ])
420
421 AC_CHECK_TYPE([in_port_t], [],
422 [AC_DEFINE(in_port_t, [u_int16_t], [If system does not define in_port_t, define it to what it should be.])],
423 [[#include <sys/types.h>
424 #include <netinet/in.h>]])
425
426 AC_CHECK_TYPE([sa_family_t], [],
427 [AC_DEFINE(sa_family_t, [u_int16_t], [If system does not define sa_family_t, define it here.])],
428 [[#include <sys/types.h>
429 #include <sys/socket.h>]])
430
431 dnl check for various functions...
432 AC_CHECK_FUNCS([socketpair mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep])
433
434 if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then
435 SNPRINTF_C="snprintf.c"
436 fi
437
438 AC_SUBST(SNPRINTF_C)
439
440 dnl Specialized functions checks
441 dnl ============================
442
443 dnl OpenSSL support
444 AC_MSG_CHECKING(for OpenSSL)
445 AC_ARG_ENABLE(openssl,
446 [AC_HELP_STRING([--enable-openssl[=DIR]],[Enable OpenSSL support (DIR optional).])
447 AC_HELP_STRING([--disable-openssl],[Disable OpenSSL support.])],
448 [cf_enable_openssl=$enableval],
449 [cf_enable_openssl="auto"])
450
451 if test "$cf_enable_openssl" != "no" ; then
452 cf_openssl_basedir=""
453 if test "$cf_enable_openssl" != "auto" &&
454 test "$cf_enable_openssl" != "yes" ; then
455 dnl Support for --enable-openssl=/some/place
456 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
457 else
458 dnl Do the auto-probe here. Check some common directory paths.
459 for dirs in /usr/local/ssl /usr/pkg /usr/local \
460 /usr/local/openssl /usr/sfw; do
461 if test -f "${dirs}/include/openssl/opensslv.h" ; then
462 cf_openssl_basedir="${dirs}"
463 break
464 fi
465 done
466 unset dirs
467 fi
468 dnl Now check cf_openssl_found to see if we found anything.
469 if test ! -z "$cf_openssl_basedir"; then
470 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
471 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
472 SSL_LIBS="-L${cf_openssl_basedir}/lib"
473 else
474 dnl OpenSSL wasn't found in the directory specified. Naughty
475 dnl administrator...
476 cf_openssl_basedir=""
477 fi
478 else
479 dnl Check for stock FreeBSD 4.x and 5.x systems, since their files
480 dnl are in /usr/include and /usr/lib. In this case, we don't want to
481 dnl change INCLUDES or LIBS, but still want to enable OpenSSL.
482 dnl We can't do this check above, because some people want two versions
483 dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl)
484 dnl and they want /usr/local/ssl to have preference.
485 if test -f "/usr/include/openssl/opensslv.h" ; then
486 cf_openssl_basedir="/usr"
487 fi
488 fi
489
490 dnl If we have a basedir defined, then everything is okay. Otherwise,
491 dnl we have a problem.
492 if test ! -z "$cf_openssl_basedir"; then
493 AC_MSG_RESULT($cf_openssl_basedir)
494 cf_enable_openssl="yes"
495 else
496 AC_MSG_RESULT([not found. Specify a correct path?])
497 cf_enable_openssl="no"
498 fi
499 unset cf_openssl_basedir
500 else
501 dnl If --disable-openssl was specified
502 AC_MSG_RESULT(disabled)
503 fi
504
505 save_CPPFLAGS="$CPPFLAGS"
506 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
507 save_LIBS="$LIBS"
508 LIBS="$LIBS $SSL_LIBS"
509 if test "$cf_enable_openssl" != no; then
510 dnl Check OpenSSL version (must be 0.9.6 or above!)
511 AC_MSG_CHECKING(for OpenSSL 0.9.6 or above)
512 AC_RUN_IFELSE(
513 AC_LANG_PROGRAM(
514 [#include <openssl/opensslv.h>
515 #include <stdlib.h>],
516 [[if (OPENSSL_VERSION_NUMBER >= 0x00906000)
517 exit(0); else exit(1);]]),
518 cf_openssl_version_ok=yes,
519 cf_openssl_version_ok=no,
520 cf_openssl_version_ok=no)
521
522 if test "$cf_openssl_version_ok" = yes; then
523 AC_MSG_RESULT(found)
524
525 dnl Work around pmake/gmake conditional incompatibilities
526 AC_SUBST(ENCSPEED, encspeed)
527
528 dnl Do all the HAVE_LIBCRYPTO magic -- and check for ciphers
529 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
530 AC_CHECK_LIB(crypto, RSA_free)
531 if test "$ac_cv_lib_crypto_RSA_free" = yes; then
532 LIBS="$LIBS -lcrypto"
533 cf_openssl_ciphers=''
534 AC_CHECK_FUNCS(EVP_bf_cfb,
535 cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 ")
536 AC_CHECK_FUNCS(EVP_cast5_cfb,
537 cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 ")
538 AC_CHECK_FUNCS(EVP_idea_cfb,
539 cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 ")
540 AC_CHECK_FUNCS(EVP_rc5_32_12_16_cfb,
541 cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 ")
542 AC_CHECK_FUNCS(EVP_des_ede3_cfb,
543 cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 ")
544 AC_CHECK_FUNCS(EVP_des_cfb,
545 cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 ")
546 fi
547 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
548 SSL_SRCS_ENABLE='$(SSL_SRCS)'
549 else
550 AC_MSG_RESULT(no - OpenSSL support disabled)
551 fi
552 fi
553
554 CPPFLAGS="$save_CPPFLAGS"
555 LIBS="$save_LIBS"
556
557 dnl End OpenSSL detection
558
559 dnl Specialized functions and libraries
560 dnl ===================================
561
562 AC_ARG_WITH(zlib-path,
563 AC_HELP_STRING([--with-zlib-path=DIR],[Path to libz.so for ziplinks support.]),
564 [LIBS="$LIBS -L$withval"],)
565
566 AC_ARG_ENABLE(zlib,
567 AC_HELP_STRING([--disable-zlib],[Disable ziplinks support]),
568 [zlib=$enableval],[zlib=yes])
569
570 if test "$zlib" = yes; then
571
572 AC_CHECK_HEADER(zlib.h, [
573 AC_CHECK_LIB(z, zlibVersion,
574 [
575 AC_SUBST(ZLIB_LD, -lz)
576 AC_DEFINE(HAVE_LIBZ, 1, [Define to 1 if zlib (-lz) is available.])
577 ], zlib=no)
578 ], zlib=no)
579
580 fi
581
582 dnl IO Loop Selection
583 dnl =================
584
585 AC_ARG_ENABLE(poll,
586 AC_HELP_STRING([--enable-poll],[Force poll() usage.]),
587 [SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled"],)
588
589 AC_ARG_ENABLE(select,
590 AC_HELP_STRING([--enable-select],[Force select() usage.]),
591 [SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled"],)
592
593 AC_ARG_ENABLE(kqueue,
594 AC_HELP_STRING([--enable-kqueue],[Force kqueue() usage.]),
595 [SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled"],)
596
597 AC_ARG_ENABLE(devpoll,
598 AC_HELP_STRING([--enable-devpoll],[Force usage of /dev/poll.]),
599 [SELECT_TYPE_EXPLICIT="devpoll"
600 echo "Forcing /dev/poll to be enabled"
601 dnl These need to be defined or not defined
602 AC_CHECK_HEADERS([sys/devpoll.h devpoll.h])],)
603
604 AC_ARG_ENABLE(rtsigio,
605 AC_HELP_STRING([--enable-rtsigio],[Enable SIGIO with RT Signals (Linux only)]),
606 [SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled"],)
607
608 AC_ARG_ENABLE(epoll,
609 AC_HELP_STRING([--enable-epoll], [Enable Linux epoll support.]),
610 [SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled"],)
611
612 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
613 SELECT_TYPE="$SELECT_TYPE_EXPLICIT"
614 else
615
616 AC_CHECK_FUNC([kevent],
617 [
618 SELECT_TYPE="kqueue"
619 ],
620 [
621 AC_CHECK_HEADER(sys/epoll.h, [HAS_EPOLL=1], [HAS_EPOLL=0])
622 if test $HAS_EPOLL -eq 1; then
623 AC_MSG_CHECKING(for epoll support in kernel)
624 AC_TRY_RUN(
625 #include <sys/epoll.h>
626 #include <sys/syscall.h>
627 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
628 #if !defined(__NR_epoll_create)
629 #if defined(__ia64__)
630 #define __NR_epoll_create 1243
631 #elif defined(__x86_64__)
632 #define __NR_epoll_create 214
633 #elif defined(__sparc64__) || defined(__sparc__)
634 #define __NR_epoll_create 193
635 #elif defined(__s390__) || defined(__m68k__)
636 #define __NR_epoll_create 249
637 #elif defined(__ppc64__) || defined(__ppc__)
638 #define __NR_epoll_create 236
639 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
640 #define __NR_epoll_create 224
641 #elif defined(__alpha__)
642 #define __NR_epoll_create 407
643 #elif defined(__sh64__)
644 #define __NR_epoll_create 282
645 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
646 #define __NR_epoll_create 254
647 #else
648 #error No system call numbers defined for epoll family.
649 #endif
650 #endif
651 _syscall1(int, epoll_create, int, size)
652 #endif
653 main() { return epoll_create(256) == -1 ? 1 : 0; },
654 [AC_MSG_RESULT(yes)
655 SELECT_TYPE="epoll"],
656 [AC_MSG_RESULT(no)
657 HAS_EPOLL=0],
658 [AC_MSG_RESULT(no)
659 HAS_EPOLL=0])
660 fi
661 if test $HAS_EPOLL -eq 0; then
662 AC_MSG_CHECKING(for /dev/poll)
663 if test -c "/dev/poll"; then
664 AC_MSG_RESULT(yes)
665 AC_CHECK_HEADERS([devpoll.h sys/devpoll.h])
666 SELECT_TYPE="devpoll"
667 else
668 AC_MSG_RESULT(no)
669 AC_MSG_CHECKING(for RT Signal IO)
670
671 dnl check for rtsig readiness notification under Linux
672 dnl (but don't use it unless kernel 2.4 or higher)
673 AC_EGREP_CPP(YUP_HAVE_F_SETSIG,
674 [#define _GNU_SOURCE
675 #include <fcntl.h>
676 #ifdef F_SETSIG
677 YUP_HAVE_F_SETSIG
678 #endif
679 ],
680 [
681 SELECT_TYPE="sigio"
682 AC_MSG_RESULT(yes)
683 ],
684 [
685 AC_MSG_RESULT(no)
686 AC_CHECK_FUNC(poll, [SELECT_TYPE="poll"],
687 [
688 AC_CHECK_FUNC(select, [SELECT_TYPE="select"],
689 [AC_MSG_ERROR([Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?])
690 ])
691 ])
692 ])
693 fi
694 fi
695 ])
696
697 fi
698
699 echo "Using $SELECT_TYPE for select loop."
700
701 AC_DEFINE_UNQUOTED(SELECT_TYPE, "$SELECT_TYPE", [This is the type of IO loop we are using])
702 AC_SUBST(SELECT_TYPE)
703
704
705 dnl Debug-related options
706 dnl =====================
707
708 AC_ARG_ENABLE(clobber,
709 AC_HELP_STRING([--enable-clobber], [Don't preserve old binaries on make install]),
710 [clobber=$enableval], [clobber=no])
711
712 if test "$clobber" = yes; then
713 AC_SUBST(CLOBBER, yes)
714 fi
715
716 dnl enabled for testing and beta releases
717 dnl AC_ARG_ENABLE(assert,
718 dnl AC_HELP_STRING([--enable-assert],[Enable assert().]),
719 dnl [assert=$enableval], [assert=no])
720
721 dnl if test "$assert" = no; then
722 dnl AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
723 dnl fi
724
725 AC_MSG_CHECKING(if you want to do a profile build)
726 AC_ARG_ENABLE(profile,
727 AC_HELP_STRING([--enable-profile],[Enable profiling]),
728 [profile=$enableval], [profile=no])
729
730 if test "$profile" = yes; then
731 if test "$ac_cv_c_compiler_gnu" = yes; then
732 IRC_CFLAGS="$IRC_CFLAGS -pg -static"
733 AC_MSG_RESULT="yes, adding -pg -static"
734 else
735 AC_MSG_RESULT([no, profile builds only work with gcc])
736 fi
737 else
738 AC_MSG_RESULT(no)
739 fi
740
741 dnl Check if we want to use efence
742 AC_MSG_CHECKING(if you want ElectricFence)
743 AC_ARG_ENABLE(efence,
744 AC_HELP_STRING([--enable-efence],[Enable ElectricFence (memory debugger).]),
745 [
746 if test "$enableval" != no; then
747 if test ! -z "$enableval" -a "$enableval" != yes; then
748 LIBS="$LIBS -L$enableval"
749 fi
750
751 AC_CHECK_LIB(efence, malloc,
752 [
753 LIBS="$LIBS -lefence"
754 AC_MSG_RESULT(yes)
755 ],
756 [AC_MSG_RESULT(not found, disabling)])
757 else
758 AC_MSG_RESULT(no)
759 fi
760 ],[AC_MSG_RESULT(no)])
761
762 dnl Check if we want to enable the block allocator
763 AC_MSG_CHECKING(if you want the block allocator)
764 AC_ARG_ENABLE(block-alloc,
765 AC_HELP_STRING([--disable-block-alloc],[Disable the block allocator (Only useful with ElectricFence)]),
766 [balloc=$enableval], [balloc=yes])
767
768 if test "$balloc" = no; then
769 AC_SUBST(BALLOC_C, [])
770 AC_DEFINE(NOBALLOC, 1, [Disable the block allocator.])
771 else
772 AC_SUBST(BALLOC_C, balloc.c)
773 fi
774
775 AC_MSG_RESULT($balloc)
776
777 AC_ARG_ENABLE(warnings,
778 AC_HELP_STRING([--enable-warnings],[Enable all sorts of warnings for debugging.]),
779 [IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused"],[])
780
781 dnl Server Tweaks
782 dnl =============
783
784 AC_ARG_ENABLE(small-net,
785 AC_HELP_STRING([--enable-small-net],[Enable small network support.]),
786 [small_net=$enableval], [small_net=no])
787
788 if test "$small_net" = yes; then
789 AC_DEFINE([NICKNAMEHISTORYLENGTH], 1500, [Size of the WHOWAS array.])
790 AC_DEFINE([CHANNEL_HEAP_SIZE], 256, [Size of the channel heap.])
791 AC_DEFINE([BAN_HEAP_SIZE], 128, [Size of the ban heap.])
792 AC_DEFINE([CLIENT_HEAP_SIZE], 256, [Size of the client heap.])
793 AC_DEFINE([LCLIENT_HEAP_SIZE], 128, [Size of the local client heap.])
794 AC_DEFINE([DNODE_HEAP_SIZE], 256, [Size of the dlink_node heap.])
795 AC_DEFINE([TOPIC_HEAP_SIZE], 256, [Size of the topic heap.])
796 AC_DEFINE([DBUF_HEAP_SIZE], 64, [Size of the dbuf heap.])
797 else
798 AC_DEFINE([NICKNAMEHISTORYLENGTH], 15000, [Size of the WHOWAS array.])
799 AC_DEFINE([CHANNEL_HEAP_SIZE], 1024, [Size of the channel heap.])
800 AC_DEFINE([BAN_HEAP_SIZE], 1024, [Size of the ban heap.])
801 AC_DEFINE([CLIENT_HEAP_SIZE], 1024, [Size of the client heap.])
802 AC_DEFINE([LCLIENT_HEAP_SIZE], 512, [Size of the local client heap.])
803 AC_DEFINE([DNODE_HEAP_SIZE], 2048, [Size of the dlink_node heap.])
804 AC_DEFINE([TOPIC_HEAP_SIZE], 1024, [Size of the topic heap.])
805 AC_DEFINE([DBUF_HEAP_SIZE], 512, [Size of the dbuf heap.])
806 fi
807
808 AC_ARG_WITH(nicklen,
809 AC_HELP_STRING([--with-nicklen=LENGTH],[Set the nick length to LENGTH (default 15)]),
810 NICKLEN="$withval", NICKLEN="15")
811
812 AC_ARG_ENABLE(efnet,
813 AC_HELP_STRING([--enable-efnet],[For IRCDs running on EFnet.]),
814 [efnet=$enableval], [efnet=no])
815
816 if test "$efnet" = yes; then
817 AC_DEFINE(EFNET, 1, [Define if this ircd will be an EFnet server.])
818 AC_DEFINE(TS5_ONLY, 1, [If enabled, server links to your network must have a minimum of TS5.])
819 echo "Building ircd for use with EFnet"
820 EXAMPLE_CONF=example.efnet.conf
821 NICKLEN=9
822 else
823 EXAMPLE_CONF=example.conf
824 fi
825
826 AC_ARG_ENABLE(gline-voting,
827 AC_HELP_STRING([--disable-gline-voting],[Disable G-line voting.]),
828 [gline_voting=$enableval], [gline_voting=yes])
829
830 if test "$gline_voting" = yes; then
831 AC_DEFINE(GLINE_VOTING, 1, [Define this if you want to enable gline voting.])
832 echo "Building ircd with G-Line voting support"
833 fi
834
835 AC_ARG_ENABLE(halfops,
836 AC_HELP_STRING([--enable-halfops],[Enable halfops support.]),
837 [halfops=$enableval], [halfops=no])
838
839 if test "$halfops" = yes; then
840 AC_DEFINE(HALFOPS, 1, [Define if you want halfops support.])
841 fi
842
843 AC_SUBST(EXAMPLE_CONF)
844
845 AC_MSG_CHECKING(for syslog options)
846
847 AC_ARG_ENABLE(syslog,
848 AC_HELP_STRING([--enable-syslog="EVENTS"], [Enable syslog for events: kill, squit, connect, users, oper, space separated in quotes (default: disabled)]),
849 [
850 dnl Hopelessly swiped from the mozilla source (kind of)
851
852 dnl We must have these headers for it to work..
853 if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then
854
855 if test "$enableval" != no; then
856 syslogstuff=core
857
858 for option in $enableval; do
859 case "$option" in
860 kill)
861 syslogstuff="$syslogstuff kill"
862 AC_DEFINE(SYSLOG_KILL, 1, [Send oper kills to syslog])
863 ;;
864 squit)
865 syslogstuff="$syslogstuff squit"
866 AC_DEFINE(SYSLOG_SQUIT, 1, [Send remote squits for all servers to syslog])
867 ;;
868 connect)
869 syslogstuff="$syslogstuff connect"
870 AC_DEFINE(SYSLOG_CONNECT, 1, [Send connect notices for other servers to syslog])
871 ;;
872 users)
873 syslogstuff="$syslogstuff users"
874 AC_DEFINE(SYSLOG_USERS, 1, [Send user log stuff to syslog])
875 ;;
876 oper)
877 syslogstuff="$syslogstuff oper"
878 AC_DEFINE(SYSLOG_OPER, 1, [Send /OPER successes to syslog])
879 ;;
880 dnl yes is okay, shut up you
881 yes)
882 ;;
883 *)
884 AC_MSG_WARN(unknown event $option)
885 ;;
886 esac
887 done
888
889 if test ! -z "$syslogstuff" -o "$enableval" = yes; then
890 AC_DEFINE(USE_SYSLOG, 1, [Send vital ircd messages to syslog])
891 fi
892 else dnl $enableval is no
893 syslogstuff=none
894 fi
895
896 else dnl checking for syslog.h's
897 AC_MSG_WARN([both syslog.h and sys/syslog.h unavailable, not enabling syslog])
898 syslogstuff=none
899 fi
900 ],[syslogstuff=none])
901
902 AC_MSG_RESULT($syslogstuff)
903
904 AC_ARG_WITH(syslog-facility,
905 AC_HELP_STRING([--with-syslog-facility=LOG], [Define the log facility to use with ircd's syslog output (default LOG_LOCAL4)]),
906 [facility=$withval],[facility="LOG_LOCAL4"])
907
908 if test "$syslogstuff" != none; then
909 AC_DEFINE_UNQUOTED(LOG_FACILITY, $facility, [Log facility to use for syslog()])
910 fi
911
912 AC_ARG_WITH(topiclen,
913 AC_HELP_STRING([--with-topiclen=NUMBER],[Set the max topic length to NUMBER (default 160, max 390)]),
914 [
915 if test $withval -ge 390; then
916 TOPICLEN=390
917 AC_MSG_WARN([TOPICLEN has a hard limit of 390. Setting TOPICLEN=390])
918 else
919 TOPICLEN=$withval
920 fi
921 ], [TOPICLEN=160])
922
923 AC_DEFINE_UNQUOTED(TOPICLEN, ${TOPICLEN}, [Maximum topic length (<=390)])
924 AC_DEFINE_UNQUOTED(NICKLEN, (${NICKLEN}+1), [Nickname length])
925 AC_DEFINE_UNQUOTED(USERLEN, 10, [Length of username/ident])
926 AC_DEFINE_UNQUOTED(HOSTLEN, 63, [Length of hostname. Updated to comply with RFC1123])
927
928 AC_ARG_ENABLE(shared-modules,
929 AC_HELP_STRING([--disable-shared-modules],[ Disable shared modules.]),
930 [shared_modules=$enableval], [shared_modules="yes"])
931
932 dnl Some first-stage sanity checks.
933 if test "$shared_modules" = yes; then
934
935 if test "$profile" = "no"; then
936 shared_modules="yes"
937 else
938 AC_MSG_WARN([disabling shared modules; cannot coexist with profile builds])
939 shared_modules="no"
940 fi
941
942 if test "$CYGWIN" = yes; then
943 AC_MSG_WARN([disabling shared modules; Cygwin is at present unable to build them.])
944 shared_modules="no"
945 fi
946
947 dnl TenDRA's cc is called tcc too.
948 if test "$CC" = tcc -a "$TenDRA" = "no"; then
949 AC_MSG_WARN([disabling shared modules: Tiny C Compiler can't create PIC])
950 shared_modules="no"
951 fi
952 fi
953
954 dnl Second stage: check for functions and headers.
955 if test "$shared_modules" = yes; then
956 DYNLINK_C=dynlink.c
957 AC_CHECK_HEADERS(dlfcn.h)
958 AC_SEARCH_LIBS(shl_load, dld,
959 [
960 AC_DEFINE(HAVE_SHL_LOAD, 1, [Define if the shl_load function is available.])
961 SUFFIX=".sl"
962 MOD_TARGET=hpux_shared
963 SEDOBJ="s/\.o/.sl/g"
964 ],
965 dnl !shl_load:
966 [
967 dnl standard dlopen
968 AC_SEARCH_LIBS(dlopen, [dl c_r],
969 [
970 AC_DEFINE(HAVE_DLOPEN, 1, [Define if the dlopen function is available.])
971 SUFFIX=".so"
972 MOD_TARGET=shared_modules
973 SEDOBJ="s/\.o/.so/g"
974 if test "$AppleGCC" = yes; then
975 AC_CHECK_HEADERS([mach-o/dyld.h])
976 fi
977 AC_CHECK_FUNC(dlsym, ,
978 [
979 AC_MSG_WARN([dlsym is not available, shared modules disabled])
980 shared_modules=no
981 ])
982 AC_CHECK_FUNCS(dlfunc dlinfo)
983 ],
984 [
985 shared_modules=no
986 ])
987 ])
988 fi
989
990 AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "$SUFFIX", [Suffix for shared libraries on this platform.])
991
992 dnl Third stage - wrangling the linker.
993 if test "$shared_modules" = yes; then
994 # The GNU linker requires the -export-dynamic option to make
995 # all symbols visible in the dynamic symbol table.
996 hold_ldflags=$LDFLAGS
997 AC_MSG_CHECKING(for the ld -export-dynamic flag)
998 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
999 AC_LINK_IFELSE(AC_LANG_PROGRAM([],[int i;]), found=yes, found=no)
1000 LDFLAGS=$hold_ldflags
1001
1002 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
1003 found="no, IRIX ld uses -B,dynamic"
1004 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
1005 fi
1006
1007 AC_MSG_RESULT($found)
1008
1009 if test "$found" = yes; then
1010 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
1011 fi
1012
1013 AC_MSG_CHECKING(for compiler option to produce PIC)
1014 dnl The order should be here to check for groups of compilers,
1015 dnl then for odd compilers, then if no PICFLAGS were set up,
1016 dnl check for GCC and set defaults, or else error. -jmallett
1017 if test "$SGS" = "yes"; then
1018 AC_MSG_RESULT([SVR4 SGS interfaces: -KPIC -DPIC -G])
1019 PICFLAGS="-KPIC -DPIC -G"
1020 fi
1021
1022 if test "$AppleGCC" = "yes"; then
1023 AC_MSG_RESULT([Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress])
1024 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
1025 fi
1026 dnl Please note, that on HPUX two different stages of module compilation occurs, since
1027 dnl while compiling modules, the compiler does not allow you to give arguments
1028 dnl to the linker. (I did not design this)
1029 dnl So we need -c in the first stage of module compilation.
1030 dnl In the second stage, we link the modules via ld -b.
1031 dnl Additionally, HPUX does not like -export-dynamic, it likes -E instead.
1032 dnl -TimeMr14C
1033 if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then
1034 AC_MSG_RESULT(HP-UX cc: +z -r -q -n)
1035 PICFLAGS="+z -r -q -n -c"
1036 AC_MSG_CHECKING([if +ESfic is required on this platform])
1037
1038 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
1039 AC_MSG_RESULT(no)
1040 else
1041 AC_MSG_RESULT(yes)
1042 PICFLAGS="$PICFLAGS +ESfic"
1043 fi
1044
1045 LDFLAGS="${LDFLAGS} -Wl,-E"
1046 fi
1047 if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then
1048 AC_MSG_RESULT([Tru64: -shared -expect_unresolved '*'])
1049 PICFLAGS="-shared -expect_unresolved '*' "
1050 LDFLAGS="-call_shared"
1051 fi
1052 if test -z "$PICFLAGS"; then
1053 if test "$ac_cv_c_compiler_gnu" = "yes"; then
1054 AC_MSG_RESULT(gcc: -fPIC -DPIC -shared)
1055 PICFLAGS="-fPIC -DPIC -shared"
1056 else
1057 AC_MSG_RESULT(no)
1058 shared_modules=no
1059 fi
1060 fi
1061 fi
1062
1063 if test "$shared_modules" = no; then
1064 DYNLINK_C=""
1065 MOD_TARGET="libmodules.a"
1066 MODULES_LIBS="../modules/libmodules.a"
1067 SEDOBJ=""
1068 AC_DEFINE(STATIC_MODULES, 1, [Define to 1 if dynamic modules can't be used.])
1069 AC_MSG_WARN([shared module support has been disabled!])
1070 fi
1071
1072 AC_SUBST(MODULES_LIBS)
1073 AC_SUBST(MOD_TARGET)
1074
1075 AC_SUBST(SSL_SRCS_ENABLE)
1076 AC_SUBST(SSL_INCLUDES)
1077 AC_SUBST(SSL_LIBS)
1078
1079 AC_SUBST(PICFLAGS)
1080 AC_SUBST(IRC_CFLAGS)
1081 AC_SUBST(SEDOBJ)
1082
1083 AC_SUBST(DYNLINK_C)
1084
1085 if test "$prefix" = "NONE"; then
1086 AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$ac_default_prefix", [Prefix where the ircd is installed.])
1087
1088 else
1089
1090 dnl Don't get bitten by Cygwin's stupidity if the user specified
1091 dnl a custom prefix with a trailing slash
1092
1093 prefix=`echo $prefix | sed 's/\/$//'`
1094 AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$prefix", [Prefix where the ircd is installed.])
1095
1096 fi
1097
1098 AC_CONFIG_FILES( \
1099 Makefile \
1100 etc/Makefile \
1101 servlink/Makefile \
1102 contrib/Makefile \
1103 contrib/help/Makefile \
1104 src/Makefile \
1105 messages/Makefile \
1106 modules/Makefile \
1107 tools/Makefile \
1108 doc/Makefile \
1109 help/Makefile \
1110 libio/Makefile \
1111 libio/comm/Makefile \
1112 libio/mem/Makefile \
1113 libio/misc/Makefile \
1114 libio/net/Makefile \
1115 libio/string/Makefile
1116 )
1117
1118 AC_OUTPUT
1119
1120 dnl Configure options probably changed
1121 rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend
1122
1123 dnl Make it look sexay!
1124
1125 echo
1126 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
1127 echo
1128
1129 echo "Installing into: $prefix"
1130
1131 echo "Ziplinks ................ $zlib"
1132
1133 if test ! -z "$cf_openssl_ciphers"; then
1134 tmpresult="yes - ${cf_openssl_ciphers}"
1135 else
1136 tmpresult=no
1137 fi
1138
1139 echo "OpenSSL ................. $tmpresult"
1140
1141 if test "$shared_modules" = yes; then
1142 tmpresult=shared
1143 else
1144 tmpresult=static
1145 fi
1146
1147 echo "Modules ................. $tmpresult"
1148 echo "IPv6 support ............ $have_v6"
1149 echo "Net I/O implementation .. $SELECT_TYPE"
1150
1151 if test "$efnet" = "yes"; then
1152 tmpresult="yes (use example.efnet.conf)"
1153 else
1154 tmpresult="no (use example.conf)"
1155 fi
1156
1157 echo "EFnet server ............ $tmpresult"
1158 echo "Halfops support ......... $halfops"
1159 echo "Small network ........... $small_net"
1160 echo "G-Line voting ........... $gline_voting"
1161 echo
1162 echo "Configured limits:"
1163 echo "NICKLEN ................. $NICKLEN"
1164 echo "TOPICLEN ................ $TOPICLEN"
1165 echo

Properties

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

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