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