]> git.ipfire.org Git - thirdparty/sarg.git/blame - configure.ac
Indent the configure script for more readability.
[thirdparty/sarg.git] / configure.ac
CommitLineData
11cb1341 1dnl Process this file with autoconf or autoreconf to produce a configure script.
2fd0415d 2AC_INIT([sarg],[2.4.0-pre2])
0743911c 3AC_CONFIG_SRCDIR([log.c])
25697a35
GS
4AC_CONFIG_AUX_DIR(cfgaux)
5
25697a35
GS
6AC_CANONICAL_HOST
7
8AC_ARG_WITH(gcc,
2020ec6f 9AS_HELP_STRING([--without-gcc],[use CC to compile]))
25697a35
GS
10
11test -n "$CC" && cc_specified=yes
12case ${with_gcc} in
13 yes ) CC=gcc ;;
14dnl yes ) CC=g++ ;;
15 no ) CC=cc ;;
16 * ) AC_PROG_CC;;
17dnl * ) AC_PROG_CXX ;;
18esac
19
ff0eb6c5
FM
20dnl The purpose of the following condition is unknown but it is obsolete as it is.
21dnl The -Aa option produces an error claiming that some argument are missing.
22dnl if test "${CC}" = "cc" ; then
23dnl CFLAGS="${CFLAGS} -g -O2 -Aa"
24dnl fi
25
2b17869b
FM
26dnl C99 support is required to define LLONG_MAX (at least on CentOS 5.7)
27AC_PROG_CC_C99
28
ff0eb6c5 29# Report more warnings to improve code quality.
dfbbe8fa 30CFLAGS="${CFLAGS} -Wall"
05b90947 31
f6614448 32dnl Check for supported compiler options
4782357f 33
f6614448
FM
34AC_MSG_CHECKING([for extra warnings flag in $CC])
35saved_CFLAGS="${CFLAGS}"
7c9980f1 36CFLAGS="${CFLAGS} -Wextra -Wno-unused-parameter"
f6614448
FM
37AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_extra_warnings="yes"],[have_extra_warnings="no"])
38AC_MSG_RESULT($have_extra_warnings)
e9e69ce7 39AS_IF([test "$have_extra_warnings" = "no"],[CFLAGS="${saved_CFLAGS}"])
f6614448 40
dfbbe8fa
FM
41# Don't compare signs as it is a mess
42CFLAGS="${CFLAGS} -Wno-sign-compare"
43
f6614448 44AC_MSG_CHECKING([for implicit-function-declaration error flag in $CC])
4782357f
FM
45saved_CFLAGS="${CFLAGS}"
46CFLAGS="${CFLAGS} -Werror=implicit-function-declaration"
47AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_implicit_function_declaration="yes"],[have_implicit_function_declaration="no"])
48AC_MSG_RESULT($have_implicit_function_declaration)
e9e69ce7 49AS_IF([test "$have_implicit_function_declaration" = "no"],[CFLAGS="${saved_CFLAGS}"])
4782357f 50
f6614448 51AC_MSG_CHECKING([for format error flag in $CC])
4782357f
FM
52saved_CFLAGS="${CFLAGS}"
53CFLAGS="${CFLAGS} -Werror=format"
54AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_error_format="yes"],[have_error_format="no"])
55AC_MSG_RESULT($have_error_format)
e9e69ce7 56AS_IF([test "$have_error_format" = "no"],[CFLAGS="${saved_CFLAGS}"])
25697a35
GS
57
58case "$host" in
59 *-solaris*)
60 LDFLAGS="${LDFLAGS} -lsocket -lnsl"
61 CFLAGS="-DSOLARIS ${CFLAGS}"
62 ;;
63esac
64
65#dnl Checks for programs.
66#AC_PROG_CC
67
68dnl Check for headers
69AC_HEADER_DIRENT
70AC_HEADER_STDC
71
d6e703cc 72
25697a35 73AC_CHECK_HEADERS(stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \
a50c6319 74 dirent.h sys/types.h sys/socket.h netdb.h arpa/inet.h netinet/in.h sys/stat.h \
1c72006e 75 ctype.h errno.h sys/resource.h sys/wait.h stdarg.h inttypes.h limits.h locale.h \
58dfd425
FM
76 execinfo.h math.h libintl.h libgen.h stdbool.h getopt.h fcntl.h fnmatch.h \
77 winsock.h)
9b179eb0 78
e9e69ce7 79AS_IF([test $ac_cv_header_getopt_h = "no"],[AC_MSG_ERROR("getopt.h is required to compile sarg")])
25697a35 80
1c72006e
FM
81# Build with gd
82AC_ARG_WITH([gd],
82aba1f7
FM
83 AS_HELP_STRING([--with-gd],[Compile with support for the graphical gd library]),
84 [],[with_gd=check])
e9e69ce7
FM
85AS_IF([test "x$with_gd" != "xno"],
86[
1c72006e 87 AC_CHECK_HEADERS(gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h)
e9e69ce7
FM
88 AS_IF([test "x$ac_cv_header_gd_h" = "xyes"],
89 [
8ddc656a 90 AC_CHECK_LIB(gd, gdImagePng,LIBS="-lgd ${LIBS}"; HAVE_GD_LIB="yes", HAVE_GD_LIB="")
e9e69ce7
FM
91 AS_IF([test "x$HAVE_GD_LIB" != "xyes"],
92 [
a11f0112 93 AC_MSG_ERROR([libgd is required to compile sarg with gd])
e9e69ce7
FM
94 ])
95 ],[
8ddc656a 96 gd_status="not found"
e9e69ce7
FM
97 ])
98],[
8ddc656a 99 gd_status="disabled"
e9e69ce7 100])
1c72006e
FM
101
102# Build with LDAP
103AC_ARG_WITH([ldap],
82aba1f7
FM
104 AS_HELP_STRING([--with-ldap],[Compile with LDAP support]),
105 [],[with_ldap=check])
e9e69ce7
FM
106AS_IF([test "x$with_ldap" != "xno"],
107[
62f36072 108 AC_CHECK_HEADERS([ldap_cdefs.h] [ldap_features.h] [ldap.h],,break)
e9e69ce7
FM
109 AS_IF([test "x$ac_cv_header_ldap_h" = "xyes"],
110 [
62f36072 111 AC_CHECK_LIB(ldap, ldap_init,LIBS="-lldap ${LIBS}"; HAVE_LDAP="yes", HAVE_LDAP="")
e9e69ce7 112 ],[
e9d09e79 113 ldap_status="not found"
e9e69ce7
FM
114 ])
115],[
e9d09e79 116 ldap_status="disabled"
e9e69ce7 117])
1c72006e
FM
118
119# Build with iconv
120AC_ARG_WITH([iconv],
82aba1f7
FM
121 AS_HELP_STRING([--with-iconv],[Compile with support for iconv]),
122 [],[with_iconv=check])
e9e69ce7
FM
123AS_IF([test "x$with_iconv" != "xno"],
124[
1c72006e
FM
125 dnl Check for iconv
126 AM_ICONV
e9e69ce7 127 AS_IF([test -n "$LIBICONV"],[LIBS="$LIBS $LIBICONV"])
1c72006e 128 AC_CHECK_HEADERS(iconv.h)
e9e69ce7 129],[
1c72006e 130 AC_MSG_NOTICE([Not building with iconv as requested on the configuration command line])
e9e69ce7 131])
25697a35 132
6e24f222
FM
133# Build with pcre
134AC_ARG_WITH([pcre],
82aba1f7
FM
135 AS_HELP_STRING([--with-pcre],[Compile with support for the Perl Compatible Regular Expressions library]),
136 [],[with_pcre=check])
e9e69ce7
FM
137AS_IF([test "x$with_pcre" != "xno"],
138[
6e24f222 139 AC_CHECK_HEADERS(pcre.h)
e9e69ce7
FM
140 AS_IF([test "x$ac_cv_header_pcre_h" = "xyes"],
141 [
f6185ca7 142 LIBS="$LIBS $(pcre-config --libs)"
6e24f222 143 CFLAGS="$CFLAGS $(pcre-config --cflags)"
e9e69ce7 144 ],[
6e24f222 145 pcre_status="not found"
e9e69ce7
FM
146 ])
147],[
6e24f222 148 pcre_status="disabled"
e9e69ce7 149])
25697a35 150
2b41f02c
FM
151# Build with file globbing
152AC_ARG_WITH([glob],
82aba1f7
FM
153 AS_HELP_STRING([--without-glob],[Ignore wildcards in file names]),
154 [],[with_glob=yes])
e9e69ce7
FM
155AS_IF([test "x$with_glob" != "xno"],
156[
f101e208
FM
157 AC_CHECK_HEADERS([glob.h],[],
158 [
159 AS_IF([test "x$with_glob" != "xcheck"],
160 [
161 AC_MSG_FAILURE([glob.h not found (use --without-glob to compile without file globbing)])
162 ])
163 ])
e9e69ce7 164],[
2b41f02c 165 glob_status="disabled"
e9e69ce7 166])
2b41f02c 167
800eafb8
FM
168# Build with zlib
169AC_ARG_WITH([zlib],
82aba1f7
FM
170 AS_HELP_STRING([--with-zlib],[Compile with support to decompress gz files]),
171 [],[with_zlib=check])
e9e69ce7
FM
172AS_IF([test "x$with_zlib" != "xno" ],
173[
800eafb8 174 AC_CHECK_HEADERS(zlib.h)
e9e69ce7
FM
175 AS_IF([test "x$ac_cv_header_zlib_h" = "xyes"],
176 [
800eafb8 177 AC_CHECK_LIB(z, gzopen,LIBS="-lz ${LIBS}"; HAVE_ZLIB_LIB="yes", HAVE_ZLIB_LIB="")
e9e69ce7
FM
178 AS_IF([test "x$HAVE_ZLIB_LIB" != "xyes"],[AC_MSG_ERROR([zlib was not found])])
179 ],[
800eafb8 180 zlib_status="not found"
e9e69ce7
FM
181 ])
182],[
800eafb8 183 zlib_status="disabled"
e9e69ce7 184])
800eafb8 185
25697a35
GS
186dnl Checks for typedefs, structures, and compiler characteristics.
187AC_C_CONST
188AC_STRUCT_TM
189
5963cdcd
FM
190# Change the gettext version according to the available version on your system.
191# It should not be necessary to change it unless you run autoreconf -fi.
c8aad602 192AM_GNU_GETTEXT_VERSION([0.18])
095bc6be
FM
193AM_GNU_GETTEXT([external])
194
32e71fa4 195AC_SYS_LARGEFILE
d6e703cc 196
25697a35
GS
197# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
198# needs to be defined for it
199AC_MSG_CHECKING([for fopen64])
200AC_CACHE_VAL(bu_cv_have_fopen64,
a61fe05c
FM
201[noerror_CFLAGS=$CFLAGS
202 CFLAGS="$CFLAGS -Werror"
203 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[FILE *f = fopen64 ("/tmp/foo","r");fclose(f);]])],[bu_cv_have_fopen64=yes],
204 [CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
205 AC_TRY_LINK([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");fclose(f);],
25697a35 206bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE",
a61fe05c
FM
207 CFLAGS=$noerror_CFLAGS
208 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[FILE *f = fopen64 ("/tmp/foo","r");fclose(f);]])],[bu_cv_have_fopen64="yes without -Werror"
209 werror_status="fail"],
210 [CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
211 AC_TRY_LINK([#include <stdio.h>], [FILE *f = fopen64 ("/tmp/foo","r");fclose(f);],
212bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE and no -Werror"
213werror_status="fail",
214bu_cv_have_fopen64=no)]))
215 ])
216 CFLAGS=$noerror_CFLAGS])
25697a35 217AC_MSG_RESULT($bu_cv_have_fopen64)
e9e69ce7
FM
218AS_IF([test "$bu_cv_have_fopen64" != no],
219[
220 AC_DEFINE([HAVE_FOPEN64],1,[Is fopen64 available?])
221 AS_IF([test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"],
222 [
223 AC_DEFINE([_LARGEFILE64_SOURCE],1,[Enable LFS])
224 ])
225])
25697a35 226
40d681bc 227dnl check for functions
e6414a9d 228AC_CHECK_FUNCS(backtrace)
b5f13803 229AC_CHECK_FUNCS(symlink)
d9c45e9c 230AC_CHECK_FUNCS(lstat)
72c27633 231AC_CHECK_FUNCS(getnameinfo)
4afbb7a5 232AC_CHECK_FUNCS(getaddrinfo)
d7cb0aec 233AC_CHECK_FUNCS(mkstemp)
6068ae56 234AC_CHECK_FUNCS(fnmatch)
32e71fa4 235
a50c6319
FM
236dnl check for structure members
237AC_CHECK_MEMBER([struct sockaddr_storage.ss_len],[AC_DEFINE([HAVE_SOCKADDR_SA_LEN],1,[ss_len in sockaddr_storage])])
238
cda22ffb 239dnl windows require this library
e9e69ce7
FM
240AS_IF([test $ac_cv_header_winsock_h = "yes"],
241[
cda22ffb 242# AC_CHECK_LIBS([ws2_32],[WSAGetLastError]) fails because of the __stdcall in the function prototype
e9e69ce7
FM
243 LIBS="$LIBS -lws2_32"
244])
cda22ffb 245
32e71fa4
FM
246dnl check for the rlim_t size
247AC_CHECK_SIZEOF(rlim_t,1,[#if HAVE_SYS_RESOURCE_H
248#include <sys/resource.h>
249#endif
250])
e9e69ce7
FM
251AS_IF([test $ac_cv_sizeof_rlim_t = "4"],
252[
253 AC_DEFINE(RLIM_STRING, "%d", [Rlim string])
254],[test $ac_cv_sizeof_rlim_t = "8"],
255[
256 AC_DEFINE(RLIM_STRING, "%lli", [Rlim string])
257],[
258 AC_MSG_WARN([can not detect the size of your system rlim_t type])
259])
32e71fa4 260
2b17869b
FM
261dnl check for the long long int max constant
262AC_CHECK_DECL(LLONG_MAX,HAVE_LLONG_MAX="yes",HAVE_LLONG_MAX="no",[[#include <limits.h>]])
e9e69ce7
FM
263AS_IF([test "x$ac_cv_have_decl_LLONG_MAX" != "xyes"],
264[
2b17869b 265 AC_MSG_ERROR([LLONG_MAX is not defined on your system.])
e9e69ce7 266])
2b17869b 267
7bbc1de4
FM
268dnl Select sarg-php directory
269AC_ARG_ENABLE(sargphp,
82aba1f7
FM
270 AS_HELP_STRING([--enable-sargphp=sargphpdir],
271 [Select sargphpdir as the directory to install sarg-php into]),
272 [
273 AS_IF([test "$enableval" -a "x$enableval" != "xno"],[SARGPHPDIR=$enableval])
274 ],[SARGPHPDIR="/var/www/html"])
e9e69ce7
FM
275AS_IF([test "$SARGPHPDIR"],
276[
277 AC_MSG_NOTICE([using $SARGPHPDIR as the directory to install sarg-php])
278 AC_SUBST(SARGPHPDIR)
279])
25697a35 280
b3695c67
FM
281dnl Select fonts dir
282AC_ARG_ENABLE(fontdir,
82aba1f7
FM
283 AS_HELP_STRING([--enable-fontdir=fontdir],
284 [Select fontdir as the directory with the fonts to use in the reports]),
285 [
286 AS_IF([test "$enableval" -a "x$enableval" != "xno"],[FONTDIR=$enableval])
287 ],[FONTDIR="${datarootdir}/sarg/fonts"])
e9e69ce7
FM
288AS_IF([test "$FONTDIR"],
289[
290 AS_IF([test "x$prefix" = "xNONE"],
291 [
292 tempfullpath=`prefix=$ac_default_prefix ; eval "echo $FONTDIR"`
293 ],[
294 tempfullpath=`eval "echo $FONTDIR"`
295 ])
296 AC_MSG_NOTICE([using $tempfullpath as the directory of the fonts])
297 AC_SUBST(FONTDIR)
298])
b3695c67
FM
299
300dnl Select images dir
301AC_ARG_ENABLE(imagedir,
82aba1f7
FM
302 AS_HELP_STRING([--enable-imagedir=imagedir],
303 [Select imagedir as the directory with the images to use in the reports]),
304 [
305 AS_IF([test "$enableval"],[IMAGEDIR=$enableval])
306 ],[IMAGEDIR="${datarootdir}/sarg/images"])
e9e69ce7
FM
307AS_IF([test "x$prefix" = "xNONE"],
308[
309 tempfullpath=`prefix=$ac_default_prefix ; eval "echo $IMAGEDIR"`
310],[
311 tempfullpath=`eval "echo $IMAGEDIR"`
312])
d2eb201c 313AC_MSG_NOTICE([using $tempfullpath as the directory of the images])
b3695c67
FM
314AC_SUBST(IMAGEDIR)
315
05b90947
FM
316dnl Enable extra compile and run time protection
317AC_ARG_ENABLE(extraprotection,
82aba1f7
FM
318 AS_HELP_STRING([--enable-extraprotection],
319 [Enable compile and runtime extra protections]),
05b90947 320[
e9e69ce7
FM
321 AS_IF([test "$enableval"],
322 [
323 # _FORTIFY_SOURCE may have been defined by the system. It must be undefined before it is changed to the value we want.
324 CFLAGS="${CFLAGS} -fstack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
325 AS_IF([test "x$werror_status" != "xfail"],[CFLAGS="${CFLAGS} -Werror"])
326
327 AC_MSG_CHECKING([for format security flag in $CC])
328 saved_CFLAGS="${CFLAGS}"
329 CFLAGS="${CFLAGS} -Wformat -Werror=format-security"
330 AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_format_security="yes"],[have_format_security="no"])
331 AC_MSG_RESULT($have_format_security)
332 AS_IF([test "$have_format_security" = "no"],[CFLAGS="${saved_CFLAGS}"])
333
334 AC_MSG_CHECKING([for empty body flag in $CC])
335 saved_CFLAGS="${CFLAGS}"
336 CFLAGS="${CFLAGS} -Wempty-body"
337 AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_empty_body="yes"],[have_empty_body="no"])
338 AC_MSG_RESULT($have_empty_body)
339 AS_IF([test "$have_empty_body" = "no"],[CFLAGS="${saved_CFLAGS}"])
340 ])
feba7d37 341])
05b90947 342
65b4ec2c
FM
343dnl Enable double check of the data written in the reports
344AC_ARG_ENABLE(doublecheck,
82aba1f7
FM
345 AS_HELP_STRING([--enable-doublecheck],
346 [Make sarg double check the data it manipulates and output a warning if an error is found]),
65b4ec2c 347[
e9e69ce7
FM
348 AS_IF([test "$enableval"],
349 [
350 AC_DEFINE(ENABLE_DOUBLE_CHECK_DATA)
351 ])
65b4ec2c
FM
352])
353
a640023b
FM
354dnl Get the xsl stylesheet to produce the manpage
355AC_ARG_ENABLE(xsl-man,
82aba1f7
FM
356 AS_HELP_STRING([--enable-xsl-man=man-xsl-style-sheet],
357 [Select the directory containing the the XSL stylesheets to convert DocBook into man page]),
a640023b 358[
e9e69ce7
FM
359 AS_IF([test "$enableval"],
360 [
a640023b
FM
361 XSL_MAN_STYLESHEET=$enableval
362 AC_SUBST(XSL_MAN_STYLESHEET)
e9e69ce7 363 ])
a640023b
FM
364],
365AC_CHECK_FILES([/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl],
366[
367 # debian
368 XSL_MAN_STYLESHEET="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl"
369 AC_SUBST(XSL_MAN_STYLESHEET)
82aba1f7
FM
370],[
371 AC_CHECK_FILES([/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl],
372 [
373 # gentoo
374 XSL_MAN_STYLESHEET="/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl"
375 AC_SUBST(XSL_MAN_STYLESHEET)
376 ])
a640023b
FM
377]))
378
379dnl Get the xsl stylesheet to produce the html page
380AC_ARG_ENABLE(xsl-html,
82aba1f7
FM
381 AS_HELP_STRING([--enable-xsl-html=html-xsl-style-sheet],
382 [Select the directory containing the the XSL stylesheets to convert DocBook into html page]),
a640023b 383[
e9e69ce7
FM
384 AS_IF([test "$enableval"],
385 [
a640023b
FM
386 XSL_HTML_STYLESHEET=$enableval
387 AC_SUBST(XSL_HTML_STYLESHEET)
e9e69ce7 388 ])
a640023b
FM
389],
390AC_CHECK_FILES([/usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/html/onechunk.xsl],
391[
392 # debian
393 XSL_HTML_STYLESHEET="/usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/html/onechunk.xsl"
394 AC_SUBST(XSL_HTML_STYLESHEET)
395],
396[
397AC_CHECK_FILES([/usr/share/sgml/docbook/xsl-stylesheets/html/onechunk.xsl],
398[
399 # gentoo
400 XSL_HTML_STYLESHEET="/usr/share/sgml/docbook/xsl-stylesheets/html/onechunk.xsl"
401 AC_SUBST(XSL_HTML_STYLESHEET)
d89f1394 402])
a640023b
FM
403]))
404
b6b2e9a9
FM
405AC_SUBST(PACKAGE,"$PACKAGE_NAME")
406AC_SUBST(VERSION,"$PACKAGE_VERSION")
407
095bc6be 408AC_CONFIG_FILES([Makefile po/Makefile.in])
0743911c 409AC_OUTPUT
8ddc656a 410
e9e69ce7 411AS_IF([test "x$gd_status" = "xdisabled"],[
8ddc656a 412 AC_MSG_NOTICE([Not building with gd as requested on the configuration command line])
e9e69ce7 413],[test "x$gd_status" = "xnot found"],[
8ddc656a 414 AC_MSG_NOTICE([gd.h was not found so the graphs won't be available in the report])
e9e69ce7 415])
6e24f222 416
e9e69ce7 417AS_IF([test "x$pcre_status" = "xdisabled"],[
6e24f222 418 AC_MSG_NOTICE([Not building with pcre as requested on the configuration command line])
e9e69ce7 419],[test "x$pcre_status" = "xnot found"],[
ea9c71bf 420 AC_MSG_NOTICE([pcre.h was not found so the regexp won't be available in hostalias])
e9e69ce7 421])
e9d09e79 422
e9e69ce7 423AS_IF([test "x$ldap_status" = "xdisabled"],[
e9d09e79 424 AC_MSG_NOTICE([Not building with LDAP support as requested on the configuration command line])
e9e69ce7 425],[test "x$ldap_status" = "xnot found"],[
e9d09e79 426 AC_MSG_NOTICE([ldap header files not found so LDAP is not available to resolve user's names])
e9e69ce7 427])
2b41f02c 428
e9e69ce7 429AS_IF([test "x$glob_status" = "xdisabled"],[
2b41f02c 430 AC_MSG_NOTICE([Not building with file globbing as requested on the configuration command line])
e9e69ce7 431])
800eafb8 432
e9e69ce7 433AS_IF([test "x$zlib_status" = "xdisabled"],[
800eafb8 434 AC_MSG_NOTICE([Not building with zlib as requested on the configuration command line])
e9e69ce7 435],[test "x$zlib_status" = "xnot found"],[
800eafb8 436 AC_MSG_NOTICE([zlib.h was not found so it won't be possible to process gzipped files])
e9e69ce7 437])