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