2 8cfb9104 2012-09-24 alex # ngIRCd -- The Next Generation IRC Daemon
3 bc098794 2014-01-02 alex # Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors
5 8cfb9104 2012-09-24 alex # This program is free software; you can redistribute it and/or modify
6 8cfb9104 2012-09-24 alex # it under the terms of the GNU General Public License as published by
7 8cfb9104 2012-09-24 alex # the Free Software Foundation; either version 2 of the License, or
8 8cfb9104 2012-09-24 alex # (at your option) any later version.
9 8cfb9104 2012-09-24 alex # Please read the file COPYING, README and AUTHORS for more information.
12 8cfb9104 2012-09-24 alex define(VERSION_ID,esyscmd([
13 8cfb9104 2012-09-24 alex V=`git describe 2>/dev/null | sed -e 's/rel-//g' | sed -e 's/-/~/'`;
14 8cfb9104 2012-09-24 alex [ -z "$V" -a -r configure ] \
15 8cfb9104 2012-09-24 alex && V=`grep "PACKAGE_STRING=" configure | cut -d"'" -f2 | cut -d' ' -f2`
16 8cfb9104 2012-09-24 alex ( [ -n "$V" ] && echo "$V" || echo "??" ) | tr -d '\n';
19 8cfb9104 2012-09-24 alex m4_ifdef([AM_SILENT_RULES],
20 8cfb9104 2012-09-24 alex [m4_define([ng_color_tests], [color-tests])],
21 8cfb9104 2012-09-24 alex [m4_define([ng_color_tests], [])])
23 8cfb9104 2012-09-24 alex # -- Initialisation --
25 8872653e 2014-01-04 alex AC_PREREQ([2.61])
26 bc098794 2014-01-02 alex AC_INIT([ngIRCd],[VERSION_ID],[ngircd-ml@ngircd.barton.de],[ngircd],[http://ngircd.barton.de/])
28 8cfb9104 2012-09-24 alex AC_CONFIG_SRCDIR([src/ngircd/ngircd.c])
29 8cfb9104 2012-09-24 alex AC_CONFIG_HEADER([src/config.h])
30 8cfb9104 2012-09-24 alex AC_CANONICAL_HOST
32 8cfb9104 2012-09-24 alex AM_INIT_AUTOMAKE([-Wall 1.10 ]ng_color_tests)
34 8cfb9104 2012-09-24 alex m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
36 8cfb9104 2012-09-24 alex # -- Templates for config.h --
38 8cfb9104 2012-09-24 alex AH_TEMPLATE([DEBUG], [Define if debug-mode should be enabled])
39 8cfb9104 2012-09-24 alex AH_TEMPLATE([HAVE_sockaddr_in_len], [Define if sockaddr_in.sin_len exists])
40 8cfb9104 2012-09-24 alex AH_TEMPLATE([HAVE_socklen_t], [Define if socklen_t exists])
41 46b0eef7 2012-10-06 alex AH_TEMPLATE([ICONV], [Define if libiconv can be used, e.g. for CHARCONV])
42 8cfb9104 2012-09-24 alex AH_TEMPLATE([IDENTAUTH], [Define if the server should do IDENT requests])
43 8cfb9104 2012-09-24 alex AH_TEMPLATE([IRCPLUS], [Define if IRC+ protocol should be used])
44 8cfb9104 2012-09-24 alex AH_TEMPLATE([PAM], [Define if PAM should be used])
45 8cfb9104 2012-09-24 alex AH_TEMPLATE([SNIFFER], [Define if IRC sniffer should be enabled])
46 8cfb9104 2012-09-24 alex AH_TEMPLATE([STRICT_RFC], [Define if ngIRCd should behave strict RFC compliant])
47 8cfb9104 2012-09-24 alex AH_TEMPLATE([SYSLOG], [Define if syslog should be used for logging])
48 8cfb9104 2012-09-24 alex AH_TEMPLATE([TCPWRAP], [Define if TCP wrappers should be used])
49 8cfb9104 2012-09-24 alex AH_TEMPLATE([WANT_IPV6], [Define if IPV6 protocol should be enabled])
50 8cfb9104 2012-09-24 alex AH_TEMPLATE([ZLIB], [Define if zlib compression should be enabled])
52 8cfb9104 2012-09-24 alex AH_TEMPLATE([HOST_OS], [Target operating system name])
53 8cfb9104 2012-09-24 alex AH_TEMPLATE([HOST_VENDOR], [Target system vendor])
54 8cfb9104 2012-09-24 alex AH_TEMPLATE([HOST_CPU], [Target CPU name])
56 8cfb9104 2012-09-24 alex # -- C Compiler --
59 8cfb9104 2012-09-24 alex AC_PROG_CC_STDC
61 8cfb9104 2012-09-24 alex # -- Helper programs --
63 b730b64b 2012-09-24 alex m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
66 8cfb9104 2012-09-24 alex AC_PROG_INSTALL
67 8cfb9104 2012-09-24 alex AC_PROG_LN_S
68 8cfb9104 2012-09-24 alex AC_PROG_MAKE_SET
69 90062111 2014-01-17 alex AC_PROG_MKDIR_P
70 8cfb9104 2012-09-24 alex AC_PROG_RANLIB
72 8cfb9104 2012-09-24 alex # -- Compiler Features --
76 8cfb9104 2012-09-24 alex __ng_PROTOTYPES__
78 34824abe 2013-11-11 alex # -- Function Definitions --
80 8cfb9104 2012-09-24 alex AC_DEFUN([GCC_STACK_PROTECT_CC],[
82 34824abe 2013-11-11 alex # Use -fstack-protector-all for the test to enfoce the use of the
83 34824abe 2013-11-11 alex # guard variable
84 34824abe 2013-11-11 alex AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector])
85 34824abe 2013-11-11 alex ssp_old_cflags="$CFLAGS"
86 34824abe 2013-11-11 alex CFLAGS="$CFLAGS -fstack-protector-all"
87 bc098794 2014-01-02 alex AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],[],[ssp_cc=no])
88 34824abe 2013-11-11 alex echo $ssp_cc
89 34824abe 2013-11-11 alex CFLAGS="$ssp_old_cflags"
90 34824abe 2013-11-11 alex if test "X$ssp_cc" = "Xyes"; then
91 34824abe 2013-11-11 alex CFLAGS="$CFLAGS -fstack-protector"
92 34824abe 2013-11-11 alex AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.])
96 b8433e92 2013-12-27 alex AC_DEFUN([WORKING_GETADDRINFO],[
97 b8433e92 2013-12-27 alex AC_CHECK_FUNCS([getaddrinfo],[
98 b8433e92 2013-12-27 alex AC_MSG_CHECKING([whether getaddrinfo() works])
99 bc098794 2014-01-02 alex AC_RUN_IFELSE([AC_LANG_SOURCE([[
100 b8433e92 2013-12-27 alex #include <stdio.h>
101 b8433e92 2013-12-27 alex #include <sys/types.h>
102 b8433e92 2013-12-27 alex #include <sys/socket.h>
103 b8433e92 2013-12-27 alex #include <netdb.h>
105 b8433e92 2013-12-27 alex main(int argc, char **argv)
107 b8433e92 2013-12-27 alex struct addrinfo hints, *ai;
108 b8433e92 2013-12-27 alex memset(&hints, 0, sizeof(hints));
109 b8433e92 2013-12-27 alex hints.ai_flags = AI_PASSIVE;
110 b8433e92 2013-12-27 alex hints.ai_socktype = SOCK_STREAM;
111 b8433e92 2013-12-27 alex hints.ai_family = PF_UNSPEC;
112 b8433e92 2013-12-27 alex if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
117 b8433e92 2013-12-27 alex AC_DEFINE([HAVE_WORKING_GETADDRINFO], 1, [getaddrinfo(0)])
118 b8433e92 2013-12-27 alex AC_MSG_RESULT(yes)
120 b8433e92 2013-12-27 alex AC_MSG_RESULT(no)
122 bc098794 2014-01-02 alex AC_MSG_RESULT(no)
127 34824abe 2013-11-11 alex # -- Hard coded system and compiler dependencies/features/options ... --
129 8cfb9104 2012-09-24 alex if test "$GCC" = "yes"; then
130 8cfb9104 2012-09-24 alex # We are using the GNU C compiler. Good!
131 8cfb9104 2012-09-24 alex CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
133 8cfb9104 2012-09-24 alex GCC_STACK_PROTECT_CC
136 8cfb9104 2012-09-24 alex case "$host_os" in
138 8cfb9104 2012-09-24 alex # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
139 8cfb9104 2012-09-24 alex # (tested with HP/UX 11.11)
140 8cfb9104 2012-09-24 alex CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
144 8cfb9104 2012-09-24 alex # Add additional CFLAGS, eventually specified on the command line:
145 8cfb9104 2012-09-24 alex test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
147 68cb1a8c 2013-01-02 alex CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"' -DDOCDIR='\"\$(docdir)\"'"
149 8cfb9104 2012-09-24 alex # -- Headers --
151 8cfb9104 2012-09-24 alex AC_HEADER_STDC
152 8cfb9104 2012-09-24 alex AC_HEADER_SYS_WAIT
153 8cfb9104 2012-09-24 alex AC_HEADER_TIME
155 8cfb9104 2012-09-24 alex # Required header files
156 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS([ \
159 d803ff05 2018-02-25 alex netinet/in.h \
162 d803ff05 2018-02-25 alex strings.h \
163 d803ff05 2018-02-25 alex sys/socket.h \
164 d803ff05 2018-02-25 alex sys/time.h \
165 d803ff05 2018-02-25 alex sys/types.h \
167 8cfb9104 2012-09-24 alex ],,AC_MSG_ERROR([required C header missing!]))
169 8cfb9104 2012-09-24 alex # Optional header files
170 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS_ONCE([ \
171 d803ff05 2018-02-25 alex arpa/inet.h \
172 d803ff05 2018-02-25 alex inttypes.h \
174 d803ff05 2018-02-25 alex netinet/in_systm.h \
175 d803ff05 2018-02-25 alex netinet/ip.h \
176 d803ff05 2018-02-25 alex stdbool.h \
179 d803ff05 2018-02-25 alex varargs.h \
182 8cfb9104 2012-09-24 alex # -- Datatypes --
184 8cfb9104 2012-09-24 alex AC_MSG_CHECKING(whether socklen_t exists)
185 bc098794 2014-01-02 alex AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
186 8cfb9104 2012-09-24 alex #include <sys/types.h>
187 8cfb9104 2012-09-24 alex #include <sys/socket.h>
189 8cfb9104 2012-09-24 alex socklen_t a, b;
190 8cfb9104 2012-09-24 alex a = 2; b = 4; a += b;
192 8cfb9104 2012-09-24 alex AC_DEFINE(HAVE_socklen_t) AC_MSG_RESULT(yes)
194 8cfb9104 2012-09-24 alex AC_MSG_RESULT(no)
197 8cfb9104 2012-09-24 alex AC_TYPE_PID_T
198 8cfb9104 2012-09-24 alex AC_TYPE_SIZE_T
199 8cfb9104 2012-09-24 alex AC_TYPE_SSIZE_T
200 8cfb9104 2012-09-24 alex AC_TYPE_UID_T
201 8cfb9104 2012-09-24 alex AC_TYPE_UINT16_T
202 8cfb9104 2012-09-24 alex AC_TYPE_UINT32_T
203 8cfb9104 2012-09-24 alex AC_TYPE_UINT8_T
205 8cfb9104 2012-09-24 alex AC_CHECK_MEMBER([struct sockaddr_in.sin_len], AC_DEFINE(HAVE_sockaddr_in_len),,
206 8cfb9104 2012-09-24 alex [#include <arpa/inet.h>])
208 8cfb9104 2012-09-24 alex # -- Libraries --
210 8cfb9104 2012-09-24 alex # memmove: A/UX libUTIL
211 8cfb9104 2012-09-24 alex AC_SEARCH_LIBS([memmove], [UTIL], [], [
212 8cfb9104 2012-09-24 alex AC_MSG_ERROR([unable to find the memmove() function])
214 8cfb9104 2012-09-24 alex # gethostbyname: Solaris libnsl
215 cdaaae0c 2012-10-11 alex AC_SEARCH_LIBS([gethostbyname], [bind nsl network], [], [
216 8cfb9104 2012-09-24 alex AC_MSG_ERROR([unable to find the gethostbyname() function])
218 8cfb9104 2012-09-24 alex # bind: SVR4 libsocket
219 cdaaae0c 2012-10-11 alex AC_SEARCH_LIBS([bind], [socket network], [], [
220 8cfb9104 2012-09-24 alex AC_MSG_ERROR([unable to find the bind() function])
223 8cfb9104 2012-09-24 alex # -- Functions --
225 8cfb9104 2012-09-24 alex AC_FUNC_FORK
226 8cfb9104 2012-09-24 alex AC_FUNC_STRFTIME
228 8cfb9104 2012-09-24 alex # Required functions
229 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS([ \
233 d803ff05 2018-02-25 alex gethostbyaddr \
234 d803ff05 2018-02-25 alex gethostbyname \
235 d803ff05 2018-02-25 alex gethostname \
236 d803ff05 2018-02-25 alex gettimeofday \
237 d803ff05 2018-02-25 alex inet_ntoa \
242 d803ff05 2018-02-25 alex strcasecmp \
246 d803ff05 2018-02-25 alex strncasecmp \
251 8cfb9104 2012-09-24 alex AC_MSG_ERROR([required function missing!]))
253 8cfb9104 2012-09-24 alex # Optional functions
254 b8433e92 2013-12-27 alex AC_CHECK_FUNCS_ONCE([
255 d803ff05 2018-02-25 alex arc4random \
256 d803ff05 2018-02-25 alex arc4random_stir \
257 d803ff05 2018-02-25 alex gai_strerror \
258 d803ff05 2018-02-25 alex getnameinfo \
259 d803ff05 2018-02-25 alex inet_aton \
260 d803ff05 2018-02-25 alex setgroups \
261 d803ff05 2018-02-25 alex sigaction \
262 d803ff05 2018-02-25 alex sigprocmask \
270 d803ff05 2018-02-25 alex vsnprintf \
274 b8433e92 2013-12-27 alex WORKING_GETADDRINFO
276 8cfb9104 2012-09-24 alex # -- Configuration options --
278 8cfb9104 2012-09-24 alex # use syslog?
280 8cfb9104 2012-09-24 alex x_syslog_on=no
281 8cfb9104 2012-09-24 alex AC_ARG_WITH(syslog,
282 8cfb9104 2012-09-24 alex AS_HELP_STRING([--without-syslog],
283 8cfb9104 2012-09-24 alex [disable syslog (autodetected by default)]),
284 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
285 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
286 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
287 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
288 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
290 8cfb9104 2012-09-24 alex AC_SEARCH_LIBS([syslog], [be], [x_syslog_on=yes], [
291 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable syslog!])
295 8cfb9104 2012-09-24 alex [ AC_SEARCH_LIBS([syslog], [be], [x_syslog_on=yes])
298 8cfb9104 2012-09-24 alex if test "$x_syslog_on" = "yes"; then
299 8cfb9104 2012-09-24 alex AC_DEFINE(SYSLOG, 1)
300 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS(syslog.h,,AC_MSG_ERROR([required C header missing!]))
303 8cfb9104 2012-09-24 alex # use zlib compression?
305 8cfb9104 2012-09-24 alex x_zlib_on=no
306 8cfb9104 2012-09-24 alex AC_ARG_WITH(zlib,
307 8cfb9104 2012-09-24 alex AS_HELP_STRING([--without-zlib],
308 8cfb9104 2012-09-24 alex [disable zlib compression (autodetected by default)]),
309 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
310 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
311 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
312 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
313 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
315 8cfb9104 2012-09-24 alex AC_CHECK_LIB(z, deflate)
316 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(deflate, x_zlib_on=yes,
317 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable zlib!])
321 8cfb9104 2012-09-24 alex [ AC_CHECK_LIB(z, deflate)
322 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(deflate, x_zlib_on=yes)
325 8cfb9104 2012-09-24 alex if test "$x_zlib_on" = "yes"; then
326 8cfb9104 2012-09-24 alex AC_DEFINE(ZLIB, 1)
327 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS(zlib.h,,AC_MSG_ERROR([required C header missing!]))
330 8cfb9104 2012-09-24 alex # detect which IO API to use:
332 8cfb9104 2012-09-24 alex x_io_backend=none
334 8cfb9104 2012-09-24 alex AC_ARG_WITH(select,
335 8cfb9104 2012-09-24 alex AS_HELP_STRING([--without-select],
336 8cfb9104 2012-09-24 alex [disable select IO support (autodetected by default)]),
337 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
338 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
339 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
340 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
341 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
343 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(select, x_io_select=yes,
344 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable select IO support!])
349 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(select, x_io_select=yes)
353 8cfb9104 2012-09-24 alex AC_ARG_WITH(poll,
354 8cfb9104 2012-09-24 alex AS_HELP_STRING([--without-poll],
355 8cfb9104 2012-09-24 alex [disable poll support (autodetected by default)]),
356 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
357 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
358 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
359 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
360 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
362 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(poll, [
363 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS(poll.h,
364 8cfb9104 2012-09-24 alex x_io_backend=poll\(\),
365 8cfb9104 2012-09-24 alex AC_MSG_ERROR(
366 8cfb9104 2012-09-24 alex [Can't enable poll IO support!])
369 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable poll IO support!])
374 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(poll, [
375 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\))
380 8cfb9104 2012-09-24 alex AC_ARG_WITH(devpoll,
381 8cfb9104 2012-09-24 alex AS_HELP_STRING([--without-devpoll],
382 8cfb9104 2012-09-24 alex [disable /dev/poll IO support (autodetected by default)]),
383 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
384 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
385 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
386 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
387 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
390 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS(sys/devpoll.h,,AC_MSG_ERROR([required C header missing!]))
394 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS(sys/devpoll.h, x_io_backend=/dev/poll)
398 8cfb9104 2012-09-24 alex AC_ARG_WITH(epoll,
399 8cfb9104 2012-09-24 alex AS_HELP_STRING([--without-epoll],
400 8cfb9104 2012-09-24 alex [disable epoll IO support (autodetected by default)]),
401 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
402 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
403 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
404 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
405 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
407 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(epoll_create, x_io_epoll=yes,
408 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable epoll IO support!])
413 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(epoll_create, x_io_epoll=yes)
417 8cfb9104 2012-09-24 alex AC_ARG_WITH(kqueue,
418 8cfb9104 2012-09-24 alex AS_HELP_STRING([--without-kqueue],
419 8cfb9104 2012-09-24 alex [disable kqueue IO support (autodetected by default)]),
420 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
421 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
422 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
423 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
424 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
426 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(kqueue, x_io_backend=kqueue\(\),
427 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable kqueue IO support!])
432 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(kqueue, x_io_backend=kqueue\(\))
436 8cfb9104 2012-09-24 alex if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
437 8cfb9104 2012-09-24 alex # when epoll() and select() are available, we'll use both!
438 8cfb9104 2012-09-24 alex x_io_backend="epoll(), select()"
440 8cfb9104 2012-09-24 alex if test "$x_io_epoll" = "yes"; then
441 8cfb9104 2012-09-24 alex # we prefere epoll() if it is available
442 8cfb9104 2012-09-24 alex x_io_backend="epoll()"
444 8cfb9104 2012-09-24 alex if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
445 8cfb9104 2012-09-24 alex # we'll use select, when available and no "better"
446 8cfb9104 2012-09-24 alex # interface has been detected ...
447 8cfb9104 2012-09-24 alex x_io_backend="select()"
452 8cfb9104 2012-09-24 alex if test "$x_io_backend" = "none"; then
453 8cfb9104 2012-09-24 alex AC_MSG_ERROR([No useable IO API activated/found!?])
458 8cfb9104 2012-09-24 alex AC_ARG_WITH(openssl,
459 8cfb9104 2012-09-24 alex AS_HELP_STRING([--with-openssl],
460 8cfb9104 2012-09-24 alex [enable SSL support using OpenSSL]),
461 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
462 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
463 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
464 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
465 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
467 8cfb9104 2012-09-24 alex AC_CHECK_LIB(crypto, BIO_s_mem)
468 daa88b76 2016-12-05 alex AC_CHECK_LIB(ssl, SSL_new)
469 daa88b76 2016-12-05 alex AC_CHECK_FUNCS(SSL_new, x_ssl_openssl=yes,
470 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable openssl])
476 8cfb9104 2012-09-24 alex AC_ARG_WITH(gnutls,
477 8cfb9104 2012-09-24 alex AS_HELP_STRING([--with-gnutls],
478 8cfb9104 2012-09-24 alex [enable SSL support using gnutls]),
479 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
480 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
481 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
482 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
483 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
485 8cfb9104 2012-09-24 alex AC_CHECK_LIB(gnutls, gnutls_global_init)
486 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(gnutls_global_init, x_ssl_gnutls=yes,
487 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable gnutls])
493 8cfb9104 2012-09-24 alex x_ssl_lib="no"
494 8cfb9104 2012-09-24 alex if test "$x_ssl_gnutls" = "yes"; then
495 8cfb9104 2012-09-24 alex if test "$x_ssl_openssl" = "yes";then
496 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Cannot enable both gnutls and openssl])
498 8cfb9104 2012-09-24 alex x_ssl_lib=gnutls
500 8cfb9104 2012-09-24 alex if test "$x_ssl_openssl" = "yes"; then
501 8cfb9104 2012-09-24 alex x_ssl_lib=openssl
504 8cfb9104 2012-09-24 alex # use TCP wrappers?
506 8cfb9104 2012-09-24 alex x_tcpwrap_on=no
507 8cfb9104 2012-09-24 alex AC_ARG_WITH(tcp-wrappers,
508 8cfb9104 2012-09-24 alex AS_HELP_STRING([--with-tcp-wrappers],
509 8cfb9104 2012-09-24 alex [enable TCP wrappers support]),
510 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
511 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
512 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
513 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
514 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
516 8cfb9104 2012-09-24 alex AC_MSG_CHECKING(for hosts_access)
517 0f85c4c6 2014-01-17 alex saved_LIBS="$LIBS"
518 8cfb9104 2012-09-24 alex LIBS="-lwrap $LIBS"
519 0f85c4c6 2014-01-17 alex LIBS_END="-lwrap $LIBS_END"
520 bc098794 2014-01-02 alex AC_LINK_IFELSE([AC_LANG_PROGRAM([[
521 e747fe92 2014-01-17 alex #include <sys/types.h>
522 e747fe92 2014-01-17 alex #include <sys/socket.h>
523 8cfb9104 2012-09-24 alex #include <tcpd.h>
524 8cfb9104 2012-09-24 alex int allow_severity = 0;
525 8cfb9104 2012-09-24 alex int deny_severity = 0;
527 8cfb9104 2012-09-24 alex tcpd_warn("link test");
529 8cfb9104 2012-09-24 alex AC_MSG_RESULT(yes)
530 8cfb9104 2012-09-24 alex AC_DEFINE(TCPWRAP, 1)
531 8cfb9104 2012-09-24 alex x_tcpwrap_on=yes
533 8cfb9104 2012-09-24 alex AC_MSG_RESULT(no)
534 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable TCP wrappers!])
536 0f85c4c6 2014-01-17 alex LIBS="$saved_LIBS"
541 8cfb9104 2012-09-24 alex # do IDENT requests using libident?
543 8cfb9104 2012-09-24 alex x_identauth_on=no
544 8cfb9104 2012-09-24 alex AC_ARG_WITH(ident,
545 8cfb9104 2012-09-24 alex AS_HELP_STRING([--with-ident],
546 8cfb9104 2012-09-24 alex [enable "IDENT" ("AUTH") protocol support]),
547 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
548 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
549 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
550 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
551 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
553 8cfb9104 2012-09-24 alex AC_CHECK_LIB(ident, ident_id)
554 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(ident_id, x_identauth_on=yes,
555 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable IDENT support!])
560 8cfb9104 2012-09-24 alex if test "$x_identauth_on" = "yes"; then
561 8cfb9104 2012-09-24 alex AC_DEFINE(IDENTAUTH, 1)
562 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS(ident.h,,AC_MSG_ERROR([required C header missing!]))
565 8cfb9104 2012-09-24 alex # compile in PAM support?
567 8cfb9104 2012-09-24 alex x_pam_on=no
568 8cfb9104 2012-09-24 alex AC_ARG_WITH(pam,
569 8cfb9104 2012-09-24 alex AS_HELP_STRING([--with-pam],
570 8cfb9104 2012-09-24 alex [enable user authentication using PAM]),
571 8cfb9104 2012-09-24 alex [ if test "$withval" != "no"; then
572 8cfb9104 2012-09-24 alex if test "$withval" != "yes"; then
573 8cfb9104 2012-09-24 alex CFLAGS="-I$withval/include $CFLAGS"
574 8cfb9104 2012-09-24 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
575 8cfb9104 2012-09-24 alex LDFLAGS="-L$withval/lib $LDFLAGS"
577 8cfb9104 2012-09-24 alex AC_CHECK_LIB(pam, pam_authenticate)
578 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(pam_authenticate, x_pam_on=yes,
579 8cfb9104 2012-09-24 alex AC_MSG_ERROR([Can't enable PAM support!])
584 8cfb9104 2012-09-24 alex if test "$x_pam_on" = "yes"; then
585 8cfb9104 2012-09-24 alex AC_DEFINE(PAM, 1)
586 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS(security/pam_appl.h,pam_ok=yes)
587 8cfb9104 2012-09-24 alex if test "$pam_ok" != "yes"; then
588 8cfb9104 2012-09-24 alex AC_CHECK_HEADERS(pam/pam_appl.h,pam_ok=yes,
589 8cfb9104 2012-09-24 alex AC_MSG_ERROR([required C header missing!]))
593 8cfb9104 2012-09-24 alex # compile in IRC+ protocol support?
595 8cfb9104 2012-09-24 alex x_ircplus_on=yes
596 8cfb9104 2012-09-24 alex AC_ARG_ENABLE(ircplus,
597 8cfb9104 2012-09-24 alex AS_HELP_STRING([--disable-ircplus],
598 8cfb9104 2012-09-24 alex [disable IRC+ protocol]),
599 8cfb9104 2012-09-24 alex if test "$enableval" = "no"; then x_ircplus_on=no; fi
601 8cfb9104 2012-09-24 alex if test "$x_ircplus_on" = "yes"; then
602 8cfb9104 2012-09-24 alex AC_DEFINE(IRCPLUS, 1)
604 46b0eef7 2012-10-06 alex # Compile in iconv support?
605 46b0eef7 2012-10-06 alex # We only check for it when IRC+ is enabled, because the IRC+ command
606 46b0eef7 2012-10-06 alex # CHARCONV is the only function depending on it.
607 46b0eef7 2012-10-06 alex x_iconv_on=no
608 46b0eef7 2012-10-06 alex AC_ARG_WITH(iconv,
609 b4966aa1 2013-01-06 alex AS_HELP_STRING([--with-iconv],
610 d5763937 2013-02-15 alex [enable character conversion using libiconv]),
611 46b0eef7 2012-10-06 alex [ if test "$withval" != "no"; then
612 46b0eef7 2012-10-06 alex if test "$withval" != "yes"; then
613 46b0eef7 2012-10-06 alex CFLAGS="-I$withval/include $CFLAGS"
614 46b0eef7 2012-10-06 alex CPPFLAGS="-I$withval/include $CPPFLAGS"
615 46b0eef7 2012-10-06 alex LDFLAGS="-L$withval/lib $LDFLAGS"
617 46b0eef7 2012-10-06 alex AC_CHECK_LIB(iconv, iconv_open)
618 a14eb495 2013-03-24 alex AC_CHECK_FUNCS(iconv_open, x_iconv_on=yes)
619 a14eb495 2013-03-24 alex if test "$x_iconv_on" != "yes"; then
620 2c969664 2013-02-15 alex AC_CHECK_LIB(iconv, libiconv_open)
621 a14eb495 2013-03-24 alex AC_CHECK_FUNCS(libiconv_open, x_iconv_on=yes)
623 a14eb495 2013-03-24 alex if test "$x_iconv_on" != "yes"; then
624 a14eb495 2013-03-24 alex AC_MSG_ERROR([Can't enable libiconv support!])
628 46b0eef7 2012-10-06 alex if test "$x_iconv_on" = "yes"; then
629 46b0eef7 2012-10-06 alex AC_DEFINE(ICONV, 1)
633 8cfb9104 2012-09-24 alex # enable support for IPv6?
634 8cfb9104 2012-09-24 alex x_ipv6_on=no
635 8cfb9104 2012-09-24 alex AC_ARG_ENABLE(ipv6,
636 8cfb9104 2012-09-24 alex AS_HELP_STRING([--enable-ipv6],
637 8cfb9104 2012-09-24 alex [enable IPv6 protocol support]),
638 8cfb9104 2012-09-24 alex if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
640 8cfb9104 2012-09-24 alex if test "$x_ipv6_on" = "yes"; then
641 8cfb9104 2012-09-24 alex # getaddrinfo() and getnameinfo() are optional when not compiling
642 8cfb9104 2012-09-24 alex # with IPv6 support, but are required for IPv6 to work!
643 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS([ \
644 8cfb9104 2012-09-24 alex getaddrinfo getnameinfo \
645 8cfb9104 2012-09-24 alex ],,AC_MSG_ERROR([required function missing for IPv6 support!]))
646 8cfb9104 2012-09-24 alex AC_DEFINE(WANT_IPV6, 1)
649 8cfb9104 2012-09-24 alex # compile in IRC "sniffer"?
651 8cfb9104 2012-09-24 alex x_sniffer_on=no; x_debug_on=no
652 8cfb9104 2012-09-24 alex AC_ARG_ENABLE(sniffer,
653 8cfb9104 2012-09-24 alex AS_HELP_STRING([--enable-sniffer],
654 8cfb9104 2012-09-24 alex [enable IRC traffic sniffer (enables debug mode)]),
655 8cfb9104 2012-09-24 alex if test "$enableval" = "yes"; then
656 8cfb9104 2012-09-24 alex AC_DEFINE(SNIFFER, 1)
657 8cfb9104 2012-09-24 alex x_sniffer_on=yes; x_debug_on=yes
661 8cfb9104 2012-09-24 alex # enable additional debugging code?
663 8cfb9104 2012-09-24 alex AC_ARG_ENABLE(debug,
664 8cfb9104 2012-09-24 alex AS_HELP_STRING([--enable-debug],
665 8cfb9104 2012-09-24 alex [show additional debug output]),
666 8cfb9104 2012-09-24 alex if test "$enableval" = "yes"; then x_debug_on=yes; fi
668 8cfb9104 2012-09-24 alex if test "$x_debug_on" = "yes"; then
669 8cfb9104 2012-09-24 alex AC_DEFINE(DEBUG, 1)
670 8cfb9104 2012-09-24 alex test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
671 8cfb9104 2012-09-24 alex AC_CHECK_FUNCS(mtrace)
674 8cfb9104 2012-09-24 alex # enable "strict RFC rules"?
676 8cfb9104 2012-09-24 alex x_strict_rfc_on=no
677 8cfb9104 2012-09-24 alex AC_ARG_ENABLE(strict-rfc,
678 8cfb9104 2012-09-24 alex AS_HELP_STRING([--enable-strict-rfc],
679 8cfb9104 2012-09-24 alex [strict RFC conformance -- may break clients!]),
680 8cfb9104 2012-09-24 alex if test "$enableval" = "yes"; then
681 8cfb9104 2012-09-24 alex AC_DEFINE(STRICT_RFC, 1)
682 8cfb9104 2012-09-24 alex x_strict_rfc_on=yes
686 8cfb9104 2012-09-24 alex # -- Definitions --
688 8cfb9104 2012-09-24 alex AC_DEFINE_UNQUOTED(HOST_CPU, "$host_cpu" )
689 8cfb9104 2012-09-24 alex AC_DEFINE_UNQUOTED(HOST_VENDOR, "$host_vendor" )
690 8cfb9104 2012-09-24 alex AC_DEFINE_UNQUOTED(HOST_OS, "$host_os" )
692 0f85c4c6 2014-01-17 alex # Add additional CFLAGS, LDFLAGS and LIBS which were specified on the command
693 0f85c4c6 2014-01-17 alex # line or by some tests from above, but after running this script. Useful for
694 0f85c4c6 2014-01-17 alex # adding "-Werror", for example:
695 8cfb9104 2012-09-24 alex test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
696 0f85c4c6 2014-01-17 alex test -n "$LDFLAGS_END" && LDFLAGS="$LDFLAGS $LDFLAGS_END"
697 0f85c4c6 2014-01-17 alex test -n "$LIBS_END" && LIBS="$LIBS $LIBS_END"
699 8cfb9104 2012-09-24 alex # -- Generate files --
701 8cfb9104 2012-09-24 alex AC_CONFIG_FILES([ \
703 8cfb9104 2012-09-24 alex contrib/Debian/Makefile \
704 8cfb9104 2012-09-24 alex contrib/MacOSX/Makefile \
705 8cfb9104 2012-09-24 alex contrib/MacOSX/ngIRCd.pmdoc/Makefile \
706 8cfb9104 2012-09-24 alex contrib/MacOSX/ngIRCd.xcodeproj/Makefile \
707 8cfb9104 2012-09-24 alex contrib/Makefile \
708 8cfb9104 2012-09-24 alex doc/Makefile \
709 8cfb9104 2012-09-24 alex doc/src/Makefile \
710 8cfb9104 2012-09-24 alex man/Makefile \
711 8cfb9104 2012-09-24 alex src/ipaddr/Makefile \
712 8cfb9104 2012-09-24 alex src/Makefile \
713 8cfb9104 2012-09-24 alex src/ngircd/Makefile \
714 8cfb9104 2012-09-24 alex src/portab/Makefile \
715 8cfb9104 2012-09-24 alex src/testsuite/Makefile \
716 8cfb9104 2012-09-24 alex src/tool/Makefile \
721 8cfb9104 2012-09-24 alex type dpkg >/dev/null 2>&1
722 8cfb9104 2012-09-24 alex if test $? -eq 0; then
723 8cfb9104 2012-09-24 alex # Generate debian/ link if the dpkg command exists
724 8cfb9104 2012-09-24 alex # (read: if we are running on a debian compatible system)
725 8cfb9104 2012-09-24 alex echo "creating Debian-specific links ..."
726 14a84dfc 2014-01-26 alex if test ! -f debian/rules -a -f contrib/Debian/rules; then
727 14a84dfc 2014-01-26 alex ln -s contrib/Debian debian
731 8cfb9104 2012-09-24 alex # -- Result --
734 8cfb9104 2012-09-24 alex echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
737 8cfb9104 2012-09-24 alex # Someone please show me a better way :) [borrowed by OpenSSH]
738 8cfb9104 2012-09-24 alex B=`eval echo ${bindir}` ; B=`eval echo ${B}`
739 8cfb9104 2012-09-24 alex S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
740 8cfb9104 2012-09-24 alex C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
741 8cfb9104 2012-09-24 alex M=`eval echo ${mandir}` ; M=`eval echo ${M}`
742 8cfb9104 2012-09-24 alex D=`eval echo ${docdir}` ; D=`eval echo ${D}`
744 8cfb9104 2012-09-24 alex echo " Host: ${host}"
745 8cfb9104 2012-09-24 alex echo " Compiler: ${CC}"
746 8cfb9104 2012-09-24 alex test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
747 8cfb9104 2012-09-24 alex test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
748 8cfb9104 2012-09-24 alex test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
749 8cfb9104 2012-09-24 alex test -n "$LIBS" && echo " Libraries: ${LIBS}"
751 8cfb9104 2012-09-24 alex echo " 'ngircd' binary: $S"
752 8cfb9104 2012-09-24 alex echo " Configuration file: $C"
753 8cfb9104 2012-09-24 alex echo " Manual pages: $M"
754 8cfb9104 2012-09-24 alex echo " Documentation: $D"
757 8cfb9104 2012-09-24 alex echo $ECHO_N " Syslog support: $ECHO_C"
758 8cfb9104 2012-09-24 alex test "$x_syslog_on" = "yes" \
759 8cfb9104 2012-09-24 alex && echo $ECHO_N "yes $ECHO_C" \
760 8cfb9104 2012-09-24 alex || echo $ECHO_N "no $ECHO_C"
761 8cfb9104 2012-09-24 alex echo $ECHO_N " Enable debug code: $ECHO_C"
762 8cfb9104 2012-09-24 alex test "$x_debug_on" = "yes" \
763 8cfb9104 2012-09-24 alex && echo "yes" \
764 8cfb9104 2012-09-24 alex || echo "no"
766 8cfb9104 2012-09-24 alex echo $ECHO_N " zlib compression: $ECHO_C"
767 8cfb9104 2012-09-24 alex test "$x_zlib_on" = "yes" \
768 8cfb9104 2012-09-24 alex && echo $ECHO_N "yes $ECHO_C" \
769 8cfb9104 2012-09-24 alex || echo $ECHO_N "no $ECHO_C"
770 8cfb9104 2012-09-24 alex echo $ECHO_N " IRC sniffer: $ECHO_C"
771 8cfb9104 2012-09-24 alex test "$x_sniffer_on" = "yes" \
772 8cfb9104 2012-09-24 alex && echo "yes" \
773 8cfb9104 2012-09-24 alex || echo "no"
775 8cfb9104 2012-09-24 alex echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
776 8cfb9104 2012-09-24 alex test "$x_tcpwrap_on" = "yes" \
777 8cfb9104 2012-09-24 alex && echo $ECHO_N "yes $ECHO_C" \
778 8cfb9104 2012-09-24 alex || echo $ECHO_N "no $ECHO_C"
779 8cfb9104 2012-09-24 alex echo $ECHO_N " Strict RFC mode: $ECHO_C"
780 8cfb9104 2012-09-24 alex test "$x_strict_rfc_on" = "yes" \
781 8cfb9104 2012-09-24 alex && echo "yes" \
782 8cfb9104 2012-09-24 alex || echo "no"
784 8cfb9104 2012-09-24 alex echo $ECHO_N " IDENT support: $ECHO_C"
785 8cfb9104 2012-09-24 alex test "$x_identauth_on" = "yes" \
786 8cfb9104 2012-09-24 alex && echo $ECHO_N "yes $ECHO_C" \
787 8cfb9104 2012-09-24 alex || echo $ECHO_N "no $ECHO_C"
788 8cfb9104 2012-09-24 alex echo $ECHO_N " IRC+ protocol: $ECHO_C"
789 8cfb9104 2012-09-24 alex test "$x_ircplus_on" = "yes" \
790 8cfb9104 2012-09-24 alex && echo "yes" \
791 8cfb9104 2012-09-24 alex || echo "no"
793 8cfb9104 2012-09-24 alex echo $ECHO_N " IPv6 protocol: $ECHO_C"
794 8cfb9104 2012-09-24 alex test "$x_ipv6_on" = "yes" \
795 8cfb9104 2012-09-24 alex && echo $ECHO_N "yes $ECHO_C" \
796 8cfb9104 2012-09-24 alex || echo $ECHO_N "no $ECHO_C"
797 8cfb9104 2012-09-24 alex echo $ECHO_N " I/O backend: $ECHO_C"
798 aeebde46 2013-08-11 alex echo "$x_io_backend"
800 8cfb9104 2012-09-24 alex echo $ECHO_N " PAM support: $ECHO_C"
801 8cfb9104 2012-09-24 alex test "$x_pam_on" = "yes" \
802 8cfb9104 2012-09-24 alex && echo $ECHO_N "yes $ECHO_C" \
803 8cfb9104 2012-09-24 alex || echo $ECHO_N "no $ECHO_C"
804 8cfb9104 2012-09-24 alex echo $ECHO_N " SSL support: $ECHO_C"
805 8cfb9104 2012-09-24 alex echo "$x_ssl_lib"
807 46b0eef7 2012-10-06 alex echo $ECHO_N " libiconv support: $ECHO_C"
808 46b0eef7 2012-10-06 alex echo "$x_iconv_on"
812 0703fcd7 2013-01-05 alex define(_automake_regex_,[[^AUTOMAKE_OPTIONS = [a-z .\-]*/portab/ansi2knr]])
813 0703fcd7 2013-01-05 alex if ! grep "_automake_regex_" src/ngircd/Makefile.am >/dev/null 2>&1; then
814 8cfb9104 2012-09-24 alex echo "WARNING:"
815 8cfb9104 2012-09-24 alex echo "This GNU automake generated build system does not support \"de-ANSI-fication\","
816 8cfb9104 2012-09-24 alex echo "therefore don't use it to generate \"official\" distribution archives!"
817 8cfb9104 2012-09-24 alex echo "(Most probably you want to use GNU automake 1.11.x for this purpose ...)"