]> arthur.barton.de Git - ngircd-alex.git/blob - configure.in
92434ec7d044945f9a25914804cd0df289acade1
[ngircd-alex.git] / configure.in
1 #
2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001-2011 Alexander Barton (alex@barton.de) and Contributors
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 # Please read the file COPYING, README and AUTHORS for more information.
10 #
11
12 define(VERSION_ID,esyscmd(git describe|sed -e 's/rel-//g'|sed -e 's/-/~/'|tr -d \\n))
13
14 # -- Initialisation --
15
16 AC_PREREQ(2.50)
17 AC_INIT(ngircd, VERSION_ID)
18 AC_CONFIG_SRCDIR(src/ngircd/ngircd.c)
19 AC_CANONICAL_TARGET
20 AM_INIT_AUTOMAKE(1.6)
21 AM_CONFIG_HEADER(src/config.h)
22
23 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
24
25 # -- Templates for config.h --
26
27 AH_TEMPLATE([DEBUG], [Define if debug-mode should be enabled])
28 AH_TEMPLATE([HAVE_socklen_t], [Define if socklen_t exists])
29 AH_TEMPLATE([SNIFFER], [Define if IRC sniffer should be enabled])
30 AH_TEMPLATE([STRICT_RFC], [Define if ngIRCd should behave strict RFC compliant])
31 AH_TEMPLATE([SYSLOG], [Define if syslog should be used for logging])
32 AH_TEMPLATE([ZLIB], [Define if zlib compression should be enabled])
33 AH_TEMPLATE([TCPWRAP], [Define if TCP wrappers should be used])
34 AH_TEMPLATE([IRCPLUS], [Define if IRC+ protocol should be used])
35 AH_TEMPLATE([WANT_IPV6], [Define if IPV6 protocol should be enabled])
36 AH_TEMPLATE([IDENTAUTH], [Define if the server should do IDENT requests])
37 AH_TEMPLATE([PAM], [Define if PAM should be used])
38 AH_TEMPLATE([HAVE_sockaddr_in_len], [Define if sockaddr_in.sin_len exists])
39
40 AH_TEMPLATE([TARGET_OS], [Target operating system name])
41 AH_TEMPLATE([TARGET_VENDOR], [Target system vendor])
42 AH_TEMPLATE([TARGET_CPU], [Target CPU name])
43
44 # -- C Compiler --
45
46 AC_PROG_CC
47 AC_PROG_CC_STDC
48 AC_C_PROTOTYPES
49
50 # -- Helper programs --
51
52 AC_PROG_AWK
53 AC_PROG_INSTALL
54 AC_PROG_LN_S
55 AC_PROG_MAKE_SET
56 AC_PROG_RANLIB
57
58 # -- Compiler Features --
59
60 AM_C_PROTOTYPES
61 AC_C_CONST
62 AC_C_INLINE
63
64 # -- Hard coded system and compiler dependencies/features/options ... --
65
66 AC_DEFUN([GCC_STACK_PROTECT_CC],[
67   ssp_cc=yes
68   # we use -fstack-protector-all for the test to enfoce the use of the guard variable 
69   AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector])
70   ssp_old_cflags="$CFLAGS"
71   CFLAGS="$CFLAGS -fstack-protector-all"
72   AC_TRY_LINK(,,, ssp_cc=no)
73   echo $ssp_cc
74   CFLAGS="$ssp_old_cflags"
75   if test "X$ssp_cc" = "Xyes"; then
76       CFLAGS="$CFLAGS -fstack-protector"
77       AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.])
78   fi
79 ])
80
81 if test "$GCC" = "yes"; then
82         # We are using the GNU C compiler. Good!
83         CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
84
85         GCC_STACK_PROTECT_CC
86 fi
87
88 case "$target_os" in
89         hpux*)
90                 # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
91                 # (tested with HP/UX 11.11)
92                 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
93                 ;;
94 esac
95
96 # Add additional CFLAGS, eventually specified on the command line:
97 test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
98
99 CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
100
101 # -- Headers --
102
103 AC_HEADER_STDC
104 AC_HEADER_TIME
105 AC_HEADER_SYS_WAIT
106
107 AC_CHECK_HEADERS([ \
108         ctype.h errno.h fcntl.h netdb.h netinet/in.h netinet/in_systm.h \
109         stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h \
110         ],,AC_MSG_ERROR([required C header missing!]))
111
112 AC_CHECK_HEADERS([ \
113         arpa/inet.h ctype.h malloc.h netinet/ip.h stdbool.h stddef.h varargs.h \
114         ],[],[],[[
115         #ifdef HAVE_SYS_TYPES_H
116                 #include <sys/types.h>
117         #endif
118         #ifdef HAVE_SYS_SOCKET_H
119                 #include <sys/socket.h>
120         #endif
121         #ifdef HAVE_NETINET_IN_H
122                 #include <netinet/in.h>
123         #endif
124         ]]
125 )
126
127 # -- Datatypes --
128
129 AC_MSG_CHECKING(whether socklen_t exists)
130 AC_TRY_COMPILE([
131 #include <sys/types.h>
132 #include <sys/socket.h>
133         ],[
134         socklen_t a, b;
135         a = 2; b = 4; a += b;
136         ],[
137         AC_DEFINE(HAVE_socklen_t) AC_MSG_RESULT(yes)
138         ],[
139         AC_MSG_RESULT(no)
140 ])
141
142 AC_TYPE_SIGNAL
143 AC_TYPE_SIZE_T
144
145 AC_CHECK_MEMBER([struct sockaddr_in.sin_len], AC_DEFINE(HAVE_sockaddr_in_len),,
146  [#include <arpa/inet.h>])
147
148 # -- Libraries --
149
150 # A/UX needs this.
151 AC_CHECK_LIB(UTIL,memmove)
152 # needed on solaris. GNU libc also has a libnsl, but we do not need it.
153 AC_SEARCH_LIBS(gethostbyname,nsl)
154 AC_CHECK_LIB(socket,bind)
155
156 # -- Functions --
157
158 AC_FUNC_FORK
159 AC_FUNC_STRFTIME
160
161 AC_CHECK_FUNCS([ \
162         bind gethostbyaddr gethostbyname gethostname inet_ntoa \
163         setsid setsockopt socket strcasecmp waitpid],,
164         AC_MSG_ERROR([required function missing!]))
165
166 AC_CHECK_FUNCS([ \
167         gai_strerror getaddrinfo getnameinfo inet_aton sigaction \
168         sigprocmask snprintf vsnprintf strdup strlcpy strlcat strtok_r])
169
170 # -- Configuration options --
171
172 # use syslog?
173
174 x_syslog_on=no
175 AC_ARG_WITH(syslog,
176         [  --without-syslog        disable syslog (autodetected by default)],
177         [       if test "$withval" != "no"; then
178                         if test "$withval" != "yes"; then
179                                 CFLAGS="-I$withval/include $CFLAGS"
180                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
181                                 LDFLAGS="-L$withval/lib $LDFLAGS"
182                         fi
183                         AC_CHECK_LIB(be, syslog)
184                         AC_CHECK_FUNCS(syslog, x_syslog_on=yes,
185                                 AC_MSG_ERROR([Can't enable syslog!])
186                         )
187                 fi
188         ],
189         [
190                 AC_CHECK_LIB(be, syslog)
191                 AC_CHECK_FUNCS(syslog, x_syslog_on=yes)
192         ]
193 )
194 if test "$x_syslog_on" = "yes"; then
195         AC_DEFINE(SYSLOG, 1)
196         AC_CHECK_HEADERS(syslog.h,,AC_MSG_ERROR([required C header missing!]))
197 fi
198
199 # use zlib compression?
200
201 x_zlib_on=no
202 AC_ARG_WITH(zlib,
203         [  --without-zlib          disable zlib compression (autodetected by default)],
204         [       if test "$withval" != "no"; then
205                         if test "$withval" != "yes"; then
206                                 CFLAGS="-I$withval/include $CFLAGS"
207                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
208                                 LDFLAGS="-L$withval/lib $LDFLAGS"
209                         fi
210                         AC_CHECK_LIB(z, deflate)
211                         AC_CHECK_FUNCS(deflate, x_zlib_on=yes,
212                                 AC_MSG_ERROR([Can't enable zlib!])
213                         )
214                 fi
215         ],
216         [       AC_CHECK_LIB(z, deflate)
217                 AC_CHECK_FUNCS(deflate, x_zlib_on=yes)
218         ]
219 )
220 if test "$x_zlib_on" = "yes"; then
221         AC_DEFINE(ZLIB, 1)
222         AC_CHECK_HEADERS(zlib.h,,AC_MSG_ERROR([required C header missing!]))
223 fi
224
225 # detect which IO API to use:
226
227 x_io_backend=none
228
229 AC_ARG_WITH(select,
230         [  --without-select        disable select IO support (autodetected by default)],
231         [       if test "$withval" != "no"; then
232                         if test "$withval" != "yes"; then
233                                 CFLAGS="-I$withval/include $CFLAGS"
234                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
235                                 LDFLAGS="-L$withval/lib $LDFLAGS"
236                         fi
237                         AC_CHECK_FUNCS(select, x_io_select=yes,
238                                 AC_MSG_ERROR([Can't enable select IO support!])
239                         )
240                 fi
241         ],
242         [
243                 AC_CHECK_FUNCS(select, x_io_select=yes)
244         ]
245 )
246
247 AC_ARG_WITH(poll,
248         [  --without-poll          disable poll support (autodetected by default)],
249         [       if test "$withval" != "no"; then
250                         if test "$withval" != "yes"; then
251                                 CFLAGS="-I$withval/include $CFLAGS"
252                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
253                                 LDFLAGS="-L$withval/lib $LDFLAGS"
254                         fi
255                         AC_CHECK_FUNCS(poll, x_io_backend=poll\(\),
256                                 AC_MSG_ERROR([Can't enable poll IO support!])
257                         )
258                 fi
259         ],
260         [
261                 AC_CHECK_FUNCS(poll, x_io_backend=poll\(\))
262         ]
263 )
264
265 AC_ARG_WITH(devpoll,
266         [  --without-devpoll       disable /dev/poll IO support (autodetected by default)],
267         [       if test "$withval" != "no"; then
268                         if test "$withval" != "yes"; then
269                                 CFLAGS="-I$withval/include $CFLAGS"
270                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
271                                 LDFLAGS="-L$withval/lib $LDFLAGS"
272                         fi
273
274                                 AC_CHECK_HEADERS(sys/devpoll.h,,AC_MSG_ERROR([required C header missing!]))
275                 fi
276         ],
277         [
278                 AC_CHECK_HEADERS(sys/devpoll.h, x_io_backend=/dev/poll)
279         ]
280 )
281
282 AC_ARG_WITH(epoll,
283         [  --without-epoll         disable epoll IO support (autodetected by default)],
284         [       if test "$withval" != "no"; then
285                         if test "$withval" != "yes"; then
286                                 CFLAGS="-I$withval/include $CFLAGS"
287                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
288                                 LDFLAGS="-L$withval/lib $LDFLAGS"
289                         fi
290                         AC_CHECK_FUNCS(epoll_create, x_io_epoll=yes,
291                                 AC_MSG_ERROR([Can't enable epoll IO support!])
292                         )
293                 fi
294         ],
295         [
296                 AC_CHECK_FUNCS(epoll_create, x_io_epoll=yes)
297         ]
298 )
299
300 AC_ARG_WITH(kqueue,
301         [  --without-kqueue        disable kqueue IO support (autodetected by default)],
302         [       if test "$withval" != "no"; then
303                         if test "$withval" != "yes"; then
304                                 CFLAGS="-I$withval/include $CFLAGS"
305                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
306                                 LDFLAGS="-L$withval/lib $LDFLAGS"
307                         fi
308                         AC_CHECK_FUNCS(kqueue, x_io_backend=kqueue\(\),
309                                 AC_MSG_ERROR([Can't enable kqueue IO support!])
310                         )
311                 fi
312         ],
313         [
314                 AC_CHECK_FUNCS(kqueue, x_io_backend=kqueue\(\))
315         ]
316 )
317
318 if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
319         # when epoll() and select() are available, we'll use both!
320         x_io_backend="epoll(), select()"
321 else
322         if test "$x_io_epoll" = "yes"; then
323                 # we prefere epoll() if it is available
324                 x_io_backend="epoll()"
325         else
326                 if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
327                         # we'll use select, when available and no "better"
328                         # interface has been detected ...
329                         x_io_backend="select()"
330                 fi
331         fi
332 fi
333
334 if test "$x_io_backend" = "none"; then
335         AC_MSG_ERROR([No useabe IO API activated/found!?])
336 fi
337
338 # use SSL?
339
340 AC_ARG_WITH(openssl,
341         [  --with-openssl          enable SSL support using OpenSSL],
342         [       if test "$withval" != "no"; then
343                         if test "$withval" != "yes"; then
344                                 CFLAGS="-I$withval/include $CFLAGS"
345                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
346                                 LDFLAGS="-L$withval/lib $LDFLAGS"
347                         fi
348                         AC_CHECK_LIB(crypto, BIO_s_mem)
349                         AC_CHECK_LIB(ssl, SSL_library_init)
350                         AC_CHECK_FUNCS(SSL_library_init, x_ssl_openssl=yes,
351                                 AC_MSG_ERROR([Can't enable openssl])
352                         )
353                 fi
354         ]
355 )
356
357 AC_ARG_WITH(gnutls,
358         [  --with-gnutls           enable SSL support using gnutls],
359         [       if test "$withval" != "no"; then
360                         if test "$withval" != "yes"; then
361                                 CFLAGS="-I$withval/include $CFLAGS"
362                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
363                                 LDFLAGS="-L$withval/lib $LDFLAGS"
364                         fi
365                         AC_CHECK_LIB(gnutls, gnutls_global_init)
366                         AC_CHECK_FUNCS(gnutls_global_init, x_ssl_gnutls=yes,
367                                 AC_MSG_ERROR([Can't enable gnutls])
368                         )
369                 fi
370         ]
371 )
372
373 x_ssl_lib="no"
374 if test "$x_ssl_gnutls" = "yes"; then
375         if test "$x_ssl_openssl" = "yes";then
376                 AC_MSG_ERROR([Cannot enable both gnutls and openssl])
377         fi
378         x_ssl_lib=gnutls
379 fi
380 if test "$x_ssl_openssl" = "yes"; then
381         x_ssl_lib=openssl
382 fi
383
384 # use TCP wrappers?
385
386 x_tcpwrap_on=no
387 AC_ARG_WITH(tcp-wrappers,
388         [  --with-tcp-wrappers     enable TCP wrappers support],
389         [       if test "$withval" != "no"; then
390                         if test "$withval" != "yes"; then
391                                 CFLAGS="-I$withval/include $CFLAGS"
392                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
393                                 LDFLAGS="-L$withval/lib $LDFLAGS"
394                         fi
395                         AC_MSG_CHECKING(for hosts_access)
396                         LIBS="-lwrap $LIBS"
397                         AC_TRY_LINK([
398 #include <tcpd.h>
399 int allow_severity = 0;
400 int deny_severity = 0;
401                                 ],[
402                                 tcpd_warn("link test");
403                                 ],[
404                                 AC_MSG_RESULT(yes)
405                                 AC_DEFINE(TCPWRAP, 1)
406                                 x_tcpwrap_on=yes
407                                 ],[
408                                 AC_MSG_RESULT(no)
409                                 AC_MSG_ERROR([Can't enable TCP wrappers!])
410                         ])
411                 fi
412         ]
413 )
414
415 # do IDENT requests using libident?
416
417 x_identauth_on=no
418 AC_ARG_WITH(ident,
419         [  --with-ident            enable "IDENT" ("AUTH") protocol support],
420         [       if test "$withval" != "no"; then
421                         if test "$withval" != "yes"; then
422                                 CFLAGS="-I$withval/include $CFLAGS"
423                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
424                                 LDFLAGS="-L$withval/lib $LDFLAGS"
425                         fi
426                         AC_CHECK_LIB(ident, ident_id)
427                         AC_CHECK_FUNCS(ident_id, x_identauth_on=yes,
428                                 AC_MSG_ERROR([Can't enable IDENT support!])
429                         )
430                 fi
431         ]
432 )
433 if test "$x_identauth_on" = "yes"; then
434         AC_DEFINE(IDENTAUTH, 1)
435         AC_CHECK_HEADERS(ident.h,,AC_MSG_ERROR([required C header missing!]))
436 fi
437
438 # compile in PAM support?
439
440 x_pam_on=no
441 AC_ARG_WITH(pam,
442         [  --with-pam              enable user authentication using PAM],
443         [       if test "$withval" != "no"; then
444                         if test "$withval" != "yes"; then
445                                 CFLAGS="-I$withval/include $CFLAGS"
446                                 CPPFLAGS="-I$withval/include $CPPFLAGS"
447                                 LDFLAGS="-L$withval/lib $LDFLAGS"
448                         fi
449                         AC_CHECK_LIB(pam, pam_authenticate)
450                         AC_CHECK_FUNCS(pam_authenticate, x_pam_on=yes,
451                                 AC_MSG_ERROR([Can't enable PAM support!])
452                         )
453                 fi
454         ]
455 )
456 if test "$x_pam_on" = "yes"; then
457         AC_DEFINE(PAM, 1)
458         AC_CHECK_HEADERS(security/pam_appl.h,pam_ok=yes)
459         if test "$pam_ok" != "yes"; then
460                 AC_CHECK_HEADERS(pam/pam_appl.h,pam_ok=yes,
461                         AC_MSG_ERROR([required C header missing!]))
462         fi
463 fi
464
465 # compile in IRC+ protocol support?
466
467 x_ircplus_on=yes
468 AC_ARG_ENABLE(ircplus,
469         [  --disable-ircplus       disable IRC+ protocol],
470         if test "$enableval" = "no"; then x_ircplus_on=no; fi
471 )
472 if test "$x_ircplus_on" = "yes"; then
473         AC_DEFINE(IRCPLUS, 1)
474 fi
475
476 # enable support for IPv6?
477 x_ipv6_on=no
478 AC_ARG_ENABLE(ipv6,
479         [  --enable-ipv6           enable IPv6 protocol support],
480         if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
481 )
482 if test "$x_ipv6_on" = "yes"; then
483         # getaddrinfo() and getnameinfo() are optional when not compiling
484         # with IPv6 support, but are required for IPv6 to work!
485         AC_CHECK_FUNCS([ \
486                 getaddrinfo getnameinfo \
487                 ],,AC_MSG_ERROR([required function missing for IPv6 support!]))
488         AC_DEFINE(WANT_IPV6, 1)
489 fi
490
491 # compile in IRC "sniffer"?
492
493 x_sniffer_on=no; x_debug_on=no
494 AC_ARG_ENABLE(sniffer,
495         [  --enable-sniffer        enable IRC traffic sniffer (enables debug mode)],
496         if test "$enableval" = "yes"; then
497                 AC_DEFINE(SNIFFER, 1)
498                 x_sniffer_on=yes; x_debug_on=yes
499         fi
500 )
501
502 # enable additional debugging code?
503
504 AC_ARG_ENABLE(debug,
505         [  --enable-debug          show additional debug output],
506         if test "$enableval" = "yes"; then x_debug_on=yes; fi
507 )
508 if test "$x_debug_on" = "yes"; then
509         AC_DEFINE(DEBUG, 1)
510         test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
511         AC_CHECK_FUNCS(mtrace)
512 fi
513
514 # enable "strict RFC rules"?
515
516 x_strict_rfc_on=no
517 AC_ARG_ENABLE(strict-rfc,
518         [  --enable-strict-rfc     strict RFC conformance -- may break clients!],
519         if test "$enableval" = "yes"; then
520                 AC_DEFINE(STRICT_RFC, 1)
521                 x_strict_rfc_on=yes
522         fi
523 )
524
525 # -- Definitions --
526
527 AC_DEFINE_UNQUOTED(TARGET_CPU, "$target_cpu" )
528 AC_DEFINE_UNQUOTED(TARGET_VENDOR, "$target_vendor" )
529 AC_DEFINE_UNQUOTED(TARGET_OS, "$target_os" )
530
531 # Add additional CFLAGS, eventually specified on the command line, but after
532 # running this configure script. Useful for "-Werror" for example.
533 test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
534
535 # -- Generate files --
536
537 AC_OUTPUT([ \
538         Makefile \
539         doc/Makefile \
540         doc/src/Makefile \
541         src/Makefile \
542         src/portab/Makefile \
543         src/ipaddr/Makefile \
544         src/tool/Makefile \
545         src/ngircd/Makefile \
546         src/testsuite/Makefile \
547         man/Makefile \
548         contrib/Makefile \
549         contrib/Anope/Makefile \
550         contrib/Debian/Makefile \
551         contrib/MacOSX/Makefile \
552         contrib/MacOSX/ngIRCd.xcodeproj/Makefile \
553         contrib/MacOSX/ngIRCd.pmdoc/Makefile \
554 ])
555
556 type dpkg >/dev/null 2>&1
557 if test $? -eq 0; then
558         # Generate debian/ link if the dpkg command exists
559         # (read: if we are running on a debian compatible system)
560         echo "creating Debian-specific links ..."
561         test -f debian/rules || ln -s contrib/Debian debian
562 fi
563
564 # -- Result --
565
566 echo
567 echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
568 echo
569
570 # Someone please show me a better way :)  [borrowed by OpenSSH]
571 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
572 S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
573 C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
574 M=`eval echo ${mandir}` ; M=`eval echo ${M}`
575 D=`eval echo ${docdir}` ; D=`eval echo ${D}`
576
577 echo "             Target: ${target}"
578 test "$target" != "$host" && echo "               Host: ${host}"
579 echo "           Compiler: ${CC}"
580 test -n "$CFLAGS"       && echo "     Compiler flags: ${CFLAGS}"
581 test -n "$CPPFLAGS"     && echo " Preprocessor flags: ${CPPFLAGS}"
582 test -n "$LDFLAGS"      && echo "       Linker flags: ${LDFLAGS}"
583 test -n "$LIBS"         && echo "          Libraries: ${LIBS}"
584 echo
585 echo "    'ngircd' binary: $S"
586 echo " Configuration file: $C"
587 echo "       Manual pages: $M"
588 echo "      Documentation: $D"
589 echo
590
591 echo $ECHO_N "     Syslog support: $ECHO_C"
592 test "$x_syslog_on" = "yes" \
593         && echo $ECHO_N "yes   $ECHO_C" \
594         || echo $ECHO_N "no    $ECHO_C"
595 echo $ECHO_N "  Enable debug code: $ECHO_C"
596 test "$x_debug_on" = "yes" \
597         && echo "yes" \
598         || echo "no"
599
600 echo $ECHO_N "   zlib compression: $ECHO_C"
601 test "$x_zlib_on" = "yes" \
602         && echo $ECHO_N "yes   $ECHO_C" \
603         || echo $ECHO_N "no    $ECHO_C"
604 echo $ECHO_N "        IRC sniffer: $ECHO_C"
605 test "$x_sniffer_on" = "yes" \
606         && echo "yes" \
607         || echo "no"
608
609 echo $ECHO_N "   Use TCP Wrappers: $ECHO_C"
610 test "$x_tcpwrap_on" = "yes" \
611         && echo $ECHO_N "yes   $ECHO_C" \
612         || echo $ECHO_N "no    $ECHO_C"
613 echo $ECHO_N "    Strict RFC mode: $ECHO_C"
614 test "$x_strict_rfc_on" = "yes" \
615         && echo "yes" \
616         || echo "no"
617
618 echo $ECHO_N "      IDENT support: $ECHO_C"
619 test "$x_identauth_on" = "yes" \
620         && echo $ECHO_N "yes   $ECHO_C" \
621         || echo $ECHO_N "no    $ECHO_C"
622 echo $ECHO_N "      IRC+ protocol: $ECHO_C"
623 test "$x_ircplus_on" = "yes" \
624         && echo "yes" \
625         || echo "no"
626
627 echo $ECHO_N "      IPv6 protocol: $ECHO_C"
628 test "$x_ipv6_on" = "yes" \
629         && echo $ECHO_N "yes   $ECHO_C" \
630         || echo $ECHO_N "no    $ECHO_C"
631 echo $ECHO_N "        I/O backend: $ECHO_C"
632         echo "\"$x_io_backend\""
633
634 echo $ECHO_N "        PAM support: $ECHO_C"
635 test "$x_pam_on" = "yes" \
636         && echo $ECHO_N "yes   $ECHO_C" \
637         || echo $ECHO_N "no    $ECHO_C"
638 echo $ECHO_N "        SSL support: $ECHO_C"
639 echo "$x_ssl_lib"
640
641 echo
642
643 # -eof-