2 # From configure.in Revision: 1.42 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="jcc.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
599 # Report the --help message.
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
605 \`configure' configures this package to adapt to many kinds of systems.
607 Usage: $0 [OPTION]... [VAR=VALUE]...
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
612 Defaults for the options are specified in brackets.
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
639 For better control, use the options below.
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
659 --build=BUILD configure for building on BUILD [guessed]
660 --host=HOST build programs to run on HOST [BUILD]
664 if test -n "$ac_init_help"; then
669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
671 --enable-mingw32 Use mingw32 for a Windows GUI
672 --disable-pthread Don't use POSIX threads (pthreads)
673 --disable-toggle Don't support temporary disable
674 --disable-force Don't allow single-page disable
675 --disable-fast-redirects Don't support fast redirects
676 --disable-killpopup Never block popups
677 --disable-stats Don't keep statistics
678 --disable-ie-images Don't auto-detect whether a request from MS Internet
679 Explorer is for an image or HTML.
680 --disable-image-blocking Don't try to figure out whether a request is
681 for an image or HTML - assume HTML.
682 --disable-acl-files Prevents the use of ACL files to control access to
683 the proxy by IP address.
684 --disable-trust-files Prevents the use of trust files.
685 --disable-jar-files Prevents the use of jar files to capture cookies.
686 --disable-editor Prevents the use of the web-based actions file
687 editor and web-based temporary disable setting.
688 --enable-no-gifs Use politically correct PNG format instead of GIF
689 for built-in images. May not work with all browsers.
690 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile
691 pattern matching (default)
692 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
693 matching (-> bigger binary)
694 --disable-regex-matching Don't use regex matching, compare URL
695 prefix instead (won't shrink birary)
696 --disable-dynamic-pcre Use the built-in, static pcre, even if
698 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
702 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
703 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
704 --with-docbook=yes|no|directory
705 Enable docbook documentation creation
706 (default = yes, for gnu and linux)
707 --with-db2html=<path/executable>
708 Set the location of the docbook to html converter
710 --with-debug Enable debug mode
712 Some influential environment variables:
713 CC C compiler command
714 CFLAGS C compiler flags
715 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
716 nonstandard directory <lib dir>
717 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
718 headers in a nonstandard directory <include dir>
721 Use these variables to override the choices made by `configure' or to help
722 it to find libraries and programs with nonstandard names/locations.
727 if test "$ac_init_help" = "recursive"; then
728 # If there are subdirs, report their specific --help.
730 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
732 # A "../" for each directory in /$ac_subdir.
733 ac_dots=`echo $ac_subdir |
734 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
737 .) # No --srcdir option. We are building in place.
738 ac_sub_srcdir=$srcdir ;;
739 [\\/]* | ?:[\\/]* ) # Absolute path.
740 ac_sub_srcdir=$srcdir/$ac_subdir ;;
742 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
745 # Check for guested configure; otherwise get Cygnus style configure.
746 if test -f $ac_sub_srcdir/configure.gnu; then
748 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
749 elif test -f $ac_sub_srcdir/configure; then
751 $SHELL $ac_sub_srcdir/configure --help=recursive
752 elif test -f $ac_sub_srcdir/configure.ac ||
753 test -f $ac_sub_srcdir/configure.in; then
757 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
763 test -n "$ac_init_help" && exit 0
764 if $ac_init_version; then
767 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
768 Free Software Foundation, Inc.
769 This configure script is free software; the Free Software Foundation
770 gives unlimited permission to copy, distribute and modify it.
776 This file contains any messages produced by compilers while
777 running configure, to aid debugging if configure makes a mistake.
779 It was created by $as_me, which was
780 generated by GNU Autoconf 2.52. Invocation command line was
791 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
792 uname -m = `(uname -m) 2>/dev/null || echo unknown`
793 uname -r = `(uname -r) 2>/dev/null || echo unknown`
794 uname -s = `(uname -s) 2>/dev/null || echo unknown`
795 uname -v = `(uname -v) 2>/dev/null || echo unknown`
797 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
798 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
800 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
801 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
802 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
803 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
804 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
805 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
806 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
820 # Keep a trace of the command line.
821 # Strip out --no-create and --no-recursion so they do not pile up.
822 # Also quote any args containing shell meta-characters.
828 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
829 | --no-cr | --no-c) ;;
830 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
831 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
832 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
833 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
834 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
836 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
839 # Get rid of the leading space.
842 # When interrupted or exit'd, cleanup temporary files, and complete
843 # config.log. We remove comments because anyway the quotes in there
844 # would cause problems or look ugly.
846 # Save into config.log some information that might help in debugging.
848 echo "## ----------------- ##" >&5
849 echo "## Cache variables. ##" >&5
850 echo "## ----------------- ##" >&5
852 # The following way of writing the cache mishandles newlines in values,
855 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
858 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
863 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
867 sed "/^$/d" confdefs.h >conftest.log
868 if test -s conftest.log; then
870 echo "## ------------ ##" >&5
871 echo "## confdefs.h. ##" >&5
872 echo "## ------------ ##" >&5
877 test "$ac_signal" != 0 &&
878 echo "$as_me: caught signal $ac_signal" >&5
879 echo "$as_me: exit $exit_status" >&5
880 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
883 for ac_signal in 1 2 13 15; do
884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
889 rm -rf conftest* confdefs.h
890 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
893 # Let the site file select an alternate cache file if it wants to.
894 # Prefer explicitly selected file to automatically selected ones.
895 if test -z "$CONFIG_SITE"; then
896 if test "x$prefix" != xNONE; then
897 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
899 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
902 for ac_site_file in $CONFIG_SITE; do
903 if test -r "$ac_site_file"; then
904 { echo "$as_me:904: loading site script $ac_site_file" >&5
905 echo "$as_me: loading site script $ac_site_file" >&6;}
906 cat "$ac_site_file" >&5
911 if test -r "$cache_file"; then
912 # Some versions of bash will fail to source /dev/null (special
913 # files actually), so we avoid doing that.
914 if test -f "$cache_file"; then
915 { echo "$as_me:915: loading cache $cache_file" >&5
916 echo "$as_me: loading cache $cache_file" >&6;}
918 [\\/]* | ?:[\\/]* ) . $cache_file;;
923 { echo "$as_me:923: creating cache $cache_file" >&5
924 echo "$as_me: creating cache $cache_file" >&6;}
928 # Check that the precious variables saved in the cache have kept the same
930 ac_cache_corrupted=false
931 for ac_var in `(set) 2>&1 |
932 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
933 eval ac_old_set=\$ac_cv_env_${ac_var}_set
934 eval ac_new_set=\$ac_env_${ac_var}_set
935 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
936 eval ac_new_val="\$ac_env_${ac_var}_value"
937 case $ac_old_set,$ac_new_set in
939 { echo "$as_me:939: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
940 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
941 ac_cache_corrupted=: ;;
943 { echo "$as_me:943: error: \`$ac_var' was not set in the previous run" >&5
944 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
945 ac_cache_corrupted=: ;;
948 if test "x$ac_old_val" != "x$ac_new_val"; then
949 { echo "$as_me:949: error: \`$ac_var' has changed since the previous run:" >&5
950 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
951 { echo "$as_me:951: former value: $ac_old_val" >&5
952 echo "$as_me: former value: $ac_old_val" >&2;}
953 { echo "$as_me:953: current value: $ac_new_val" >&5
954 echo "$as_me: current value: $ac_new_val" >&2;}
958 # Pass precious variables to config.status. It doesn't matter if
959 # we pass some twice (in addition to the command line arguments).
960 if test "$ac_new_set" = set; then
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args '$ac_arg'"
966 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
971 if $ac_cache_corrupted; then
972 { echo "$as_me:972: error: changes in the environment can compromise the build" >&5
973 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
974 { { echo "$as_me:974: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
975 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
976 { (exit 1); exit 1; }; }
980 ac_cpp='$CPP $CPPFLAGS'
981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
985 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
986 *c*,-n*) ECHO_N= ECHO_C='
988 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
989 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
991 echo "#! $SHELL" >conftest.sh
992 echo "exit 0" >>conftest.sh
994 if { (echo "$as_me:994: PATH=\".;.\"; conftest.sh") >&5
995 (PATH=".;."; conftest.sh) 2>&5
997 echo "$as_me:997: \$? = $ac_status" >&5
998 (exit $ac_status); }; then
999 ac_path_separator=';'
1003 PATH_SEPARATOR="$ac_path_separator"
1006 ac_config_headers="$ac_config_headers config.h"
1009 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1010 if test -f $ac_dir/install-sh; then
1012 ac_install_sh="$ac_aux_dir/install-sh -c"
1014 elif test -f $ac_dir/install.sh; then
1016 ac_install_sh="$ac_aux_dir/install.sh -c"
1018 elif test -f $ac_dir/shtool; then
1020 ac_install_sh="$ac_aux_dir/shtool install -c"
1024 if test -z "$ac_aux_dir"; then
1025 { { echo "$as_me:1025: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1026 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1027 { (exit 1); exit 1; }; }
1029 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1030 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1031 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1033 # Make sure we can run config.sub.
1034 $ac_config_sub sun4 >/dev/null 2>&1 ||
1035 { { echo "$as_me:1035: error: cannot run $ac_config_sub" >&5
1036 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1037 { (exit 1); exit 1; }; }
1039 echo "$as_me:1039: checking build system type" >&5
1040 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1041 if test "${ac_cv_build+set}" = set; then
1042 echo $ECHO_N "(cached) $ECHO_C" >&6
1044 ac_cv_build_alias=$build_alias
1045 test -z "$ac_cv_build_alias" &&
1046 ac_cv_build_alias=`$ac_config_guess`
1047 test -z "$ac_cv_build_alias" &&
1048 { { echo "$as_me:1048: error: cannot guess build type; you must specify one" >&5
1049 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1050 { (exit 1); exit 1; }; }
1051 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1052 { { echo "$as_me:1052: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1053 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1054 { (exit 1); exit 1; }; }
1057 echo "$as_me:1057: result: $ac_cv_build" >&5
1058 echo "${ECHO_T}$ac_cv_build" >&6
1060 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1061 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1062 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064 echo "$as_me:1064: checking host system type" >&5
1065 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1066 if test "${ac_cv_host+set}" = set; then
1067 echo $ECHO_N "(cached) $ECHO_C" >&6
1069 ac_cv_host_alias=$host_alias
1070 test -z "$ac_cv_host_alias" &&
1071 ac_cv_host_alias=$ac_cv_build_alias
1072 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1073 { { echo "$as_me:1073: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1074 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1075 { (exit 1); exit 1; }; }
1078 echo "$as_me:1078: result: $ac_cv_host" >&5
1079 echo "${ECHO_T}$ac_cv_host" >&6
1081 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1082 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1083 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1088 # Check whether --with-docbook or --without-docbook was given.
1089 if test "${with_docbook+set}" = set; then
1090 withval="$with_docbook"
1091 case "$with_docbook" in
1103 # Check whether --with-db2html or --without-db2html was given.
1104 if test "${with_db2html+set}" = set; then
1105 withval="$with_db2html"
1115 cat >>confdefs.h <<EOF
1116 #define VERSION_MAJOR ${VERSION_MAJOR}
1119 cat >>confdefs.h <<EOF
1120 #define VERSION_MINOR ${VERSION_MINOR}
1123 cat >>confdefs.h <<EOF
1124 #define VERSION_POINT ${VERSION_POINT}
1127 cat >>confdefs.h <<EOF
1128 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
1131 cat >>confdefs.h <<EOF
1132 #define CODE_STATUS "${CODE_STATUS}"
1136 ac_cpp='$CPP $CPPFLAGS'
1137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1143 echo "$as_me:1143: checking for $ac_word" >&5
1144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1145 if test "${ac_cv_prog_CC+set}" = set; then
1146 echo $ECHO_N "(cached) $ECHO_C" >&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1151 ac_save_IFS=$IFS; IFS=$ac_path_separator
1153 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 $as_executable_p "$ac_dir/$ac_word" || continue
1157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1165 if test -n "$CC"; then
1166 echo "$as_me:1166: result: $CC" >&5
1167 echo "${ECHO_T}$CC" >&6
1169 echo "$as_me:1169: result: no" >&5
1170 echo "${ECHO_T}no" >&6
1174 if test -z "$ac_cv_prog_CC"; then
1176 # Extract the first word of "gcc", so it can be a program name with args.
1177 set dummy gcc; ac_word=$2
1178 echo "$as_me:1178: checking for $ac_word" >&5
1179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1181 echo $ECHO_N "(cached) $ECHO_C" >&6
1183 if test -n "$ac_ct_CC"; then
1184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1186 ac_save_IFS=$IFS; IFS=$ac_path_separator
1188 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 $as_executable_p "$ac_dir/$ac_word" || continue
1192 ac_cv_prog_ac_ct_CC="gcc"
1193 echo "$as_me:1193: found $ac_dir/$ac_word" >&5
1199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1200 if test -n "$ac_ct_CC"; then
1201 echo "$as_me:1201: result: $ac_ct_CC" >&5
1202 echo "${ECHO_T}$ac_ct_CC" >&6
1204 echo "$as_me:1204: result: no" >&5
1205 echo "${ECHO_T}no" >&6
1213 if test -z "$CC"; then
1214 if test -n "$ac_tool_prefix"; then
1215 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1216 set dummy ${ac_tool_prefix}cc; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 if test -n "$CC"; then
1223 ac_cv_prog_CC="$CC" # Let the user override the test.
1225 ac_save_IFS=$IFS; IFS=$ac_path_separator
1227 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 $as_executable_p "$ac_dir/$ac_word" || continue
1231 ac_cv_prog_CC="${ac_tool_prefix}cc"
1232 echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1239 if test -n "$CC"; then
1240 echo "$as_me:1240: result: $CC" >&5
1241 echo "${ECHO_T}$CC" >&6
1243 echo "$as_me:1243: result: no" >&5
1244 echo "${ECHO_T}no" >&6
1248 if test -z "$ac_cv_prog_CC"; then
1250 # Extract the first word of "cc", so it can be a program name with args.
1251 set dummy cc; ac_word=$2
1252 echo "$as_me:1252: checking for $ac_word" >&5
1253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1257 if test -n "$ac_ct_CC"; then
1258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1260 ac_save_IFS=$IFS; IFS=$ac_path_separator
1262 for ac_dir in $ac_dummy; do
1264 test -z "$ac_dir" && ac_dir=.
1265 $as_executable_p "$ac_dir/$ac_word" || continue
1266 ac_cv_prog_ac_ct_CC="cc"
1267 echo "$as_me:1267: found $ac_dir/$ac_word" >&5
1273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1274 if test -n "$ac_ct_CC"; then
1275 echo "$as_me:1275: result: $ac_ct_CC" >&5
1276 echo "${ECHO_T}$ac_ct_CC" >&6
1278 echo "$as_me:1278: result: no" >&5
1279 echo "${ECHO_T}no" >&6
1288 if test -z "$CC"; then
1289 # Extract the first word of "cc", so it can be a program name with args.
1290 set dummy cc; ac_word=$2
1291 echo "$as_me:1291: checking for $ac_word" >&5
1292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293 if test "${ac_cv_prog_CC+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 if test -n "$CC"; then
1297 ac_cv_prog_CC="$CC" # Let the user override the test.
1300 ac_save_IFS=$IFS; IFS=$ac_path_separator
1302 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 $as_executable_p "$ac_dir/$ac_word" || continue
1306 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1307 ac_prog_rejected=yes
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1315 if test $ac_prog_rejected = yes; then
1316 # We found a bogon in the path, so make sure we never use it.
1317 set dummy $ac_cv_prog_CC
1319 if test $# != 0; then
1320 # We chose a different compiler from the bogus one.
1321 # However, it has the same basename, so the bogon will be chosen
1322 # first if we set CC to just the basename; use the full file name.
1324 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1332 if test -n "$CC"; then
1333 echo "$as_me:1333: result: $CC" >&5
1334 echo "${ECHO_T}$CC" >&6
1336 echo "$as_me:1336: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1341 if test -z "$CC"; then
1342 if test -n "$ac_tool_prefix"; then
1345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1347 echo "$as_me:1347: checking for $ac_word" >&5
1348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349 if test "${ac_cv_prog_CC+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 if test -n "$CC"; then
1353 ac_cv_prog_CC="$CC" # Let the user override the test.
1355 ac_save_IFS=$IFS; IFS=$ac_path_separator
1357 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 $as_executable_p "$ac_dir/$ac_word" || continue
1361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1362 echo "$as_me:1362: found $ac_dir/$ac_word" >&5
1369 if test -n "$CC"; then
1370 echo "$as_me:1370: result: $CC" >&5
1371 echo "${ECHO_T}$CC" >&6
1373 echo "$as_me:1373: result: no" >&5
1374 echo "${ECHO_T}no" >&6
1377 test -n "$CC" && break
1380 if test -z "$CC"; then
1384 # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:1386: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 if test -n "$ac_ct_CC"; then
1392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1394 ac_save_IFS=$IFS; IFS=$ac_path_separator
1396 for ac_dir in $ac_dummy; do
1398 test -z "$ac_dir" && ac_dir=.
1399 $as_executable_p "$ac_dir/$ac_word" || continue
1400 ac_cv_prog_ac_ct_CC="$ac_prog"
1401 echo "$as_me:1401: found $ac_dir/$ac_word" >&5
1407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1408 if test -n "$ac_ct_CC"; then
1409 echo "$as_me:1409: result: $ac_ct_CC" >&5
1410 echo "${ECHO_T}$ac_ct_CC" >&6
1412 echo "$as_me:1412: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1416 test -n "$ac_ct_CC" && break
1424 test -z "$CC" && { { echo "$as_me:1424: error: no acceptable cc found in \$PATH" >&5
1425 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1426 { (exit 1); exit 1; }; }
1428 # Provide some information about the compiler.
1429 echo "$as_me:1429:" \
1430 "checking for C compiler version" >&5
1431 ac_compiler=`set X $ac_compile; echo $2`
1432 { (eval echo "$as_me:1432: \"$ac_compiler --version </dev/null >&5\"") >&5
1433 (eval $ac_compiler --version </dev/null >&5) 2>&5
1435 echo "$as_me:1435: \$? = $ac_status" >&5
1436 (exit $ac_status); }
1437 { (eval echo "$as_me:1437: \"$ac_compiler -v </dev/null >&5\"") >&5
1438 (eval $ac_compiler -v </dev/null >&5) 2>&5
1440 echo "$as_me:1440: \$? = $ac_status" >&5
1441 (exit $ac_status); }
1442 { (eval echo "$as_me:1442: \"$ac_compiler -V </dev/null >&5\"") >&5
1443 (eval $ac_compiler -V </dev/null >&5) 2>&5
1445 echo "$as_me:1445: \$? = $ac_status" >&5
1446 (exit $ac_status); }
1448 cat >conftest.$ac_ext <<_ACEOF
1449 #line 1449 "configure"
1450 #include "confdefs.h"
1460 ac_clean_files_save=$ac_clean_files
1461 ac_clean_files="$ac_clean_files a.out a.exe"
1462 # Try to create an executable without -o first, disregard a.out.
1463 # It will help us diagnose broken compilers, and finding out an intuition
1465 echo "$as_me:1465: checking for C compiler default output" >&5
1466 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1467 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1468 if { (eval echo "$as_me:1468: \"$ac_link_default\"") >&5
1469 (eval $ac_link_default) 2>&5
1471 echo "$as_me:1471: \$? = $ac_status" >&5
1472 (exit $ac_status); }; then
1473 # Find the output, starting from the most likely. This scheme is
1474 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1476 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1477 ls a.out conftest 2>/dev/null;
1478 ls a.* conftest.* 2>/dev/null`; do
1480 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1481 a.out ) # We found the default executable, but exeext='' is most
1484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1485 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1492 echo "$as_me: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1494 { { echo "$as_me:1494: error: C compiler cannot create executables" >&5
1495 echo "$as_me: error: C compiler cannot create executables" >&2;}
1496 { (exit 77); exit 77; }; }
1499 ac_exeext=$ac_cv_exeext
1500 echo "$as_me:1500: result: $ac_file" >&5
1501 echo "${ECHO_T}$ac_file" >&6
1503 # Check the compiler produces executables we can run. If not, either
1504 # the compiler is broken, or we cross compile.
1505 echo "$as_me:1505: checking whether the C compiler works" >&5
1506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1508 # If not cross compiling, check that we can run a simple program.
1509 if test "$cross_compiling" != yes; then
1510 if { ac_try='./$ac_file'
1511 { (eval echo "$as_me:1511: \"$ac_try\"") >&5
1514 echo "$as_me:1514: \$? = $ac_status" >&5
1515 (exit $ac_status); }; }; then
1518 if test "$cross_compiling" = maybe; then
1521 { { echo "$as_me:1521: error: cannot run C compiled programs.
1522 If you meant to cross compile, use \`--host'." >&5
1523 echo "$as_me: error: cannot run C compiled programs.
1524 If you meant to cross compile, use \`--host'." >&2;}
1525 { (exit 1); exit 1; }; }
1529 echo "$as_me:1529: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1532 rm -f a.out a.exe conftest$ac_cv_exeext
1533 ac_clean_files=$ac_clean_files_save
1534 # Check the compiler produces executables we can run. If not, either
1535 # the compiler is broken, or we cross compile.
1536 echo "$as_me:1536: checking whether we are cross compiling" >&5
1537 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1538 echo "$as_me:1538: result: $cross_compiling" >&5
1539 echo "${ECHO_T}$cross_compiling" >&6
1541 echo "$as_me:1541: checking for executable suffix" >&5
1542 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1543 if { (eval echo "$as_me:1543: \"$ac_link\"") >&5
1544 (eval $ac_link) 2>&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }; then
1548 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1549 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1550 # work properly (i.e., refer to `conftest.exe'), while it won't with
1552 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1554 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1562 { { echo "$as_me:1562: error: cannot compute EXEEXT: cannot compile and link" >&5
1563 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1564 { (exit 1); exit 1; }; }
1567 rm -f conftest$ac_cv_exeext
1568 echo "$as_me:1568: result: $ac_cv_exeext" >&5
1569 echo "${ECHO_T}$ac_cv_exeext" >&6
1571 rm -f conftest.$ac_ext
1572 EXEEXT=$ac_cv_exeext
1574 echo "$as_me:1574: checking for object suffix" >&5
1575 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1576 if test "${ac_cv_objext+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 cat >conftest.$ac_ext <<_ACEOF
1580 #line 1580 "configure"
1581 #include "confdefs.h"
1591 rm -f conftest.o conftest.obj
1592 if { (eval echo "$as_me:1592: \"$ac_compile\"") >&5
1593 (eval $ac_compile) 2>&5
1595 echo "$as_me:1595: \$? = $ac_status" >&5
1596 (exit $ac_status); }; then
1597 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1605 echo "$as_me: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 { { echo "$as_me:1607: error: cannot compute OBJEXT: cannot compile" >&5
1608 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1609 { (exit 1); exit 1; }; }
1612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1614 echo "$as_me:1614: result: $ac_cv_objext" >&5
1615 echo "${ECHO_T}$ac_cv_objext" >&6
1616 OBJEXT=$ac_cv_objext
1618 echo "$as_me:1618: checking whether we are using the GNU C compiler" >&5
1619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 cat >conftest.$ac_ext <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1638 rm -f conftest.$ac_objext
1639 if { (eval echo "$as_me:1639: \"$ac_compile\"") >&5
1640 (eval $ac_compile) 2>&5
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); } &&
1644 { ac_try='test -s conftest.$ac_objext'
1645 { (eval echo "$as_me:1645: \"$ac_try\"") >&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); }; }; then
1652 echo "$as_me: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1656 rm -f conftest.$ac_objext conftest.$ac_ext
1657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1660 echo "$as_me:1660: result: $ac_cv_c_compiler_gnu" >&5
1661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1662 GCC=`test $ac_compiler_gnu = yes && echo yes`
1663 ac_test_CFLAGS=${CFLAGS+set}
1664 ac_save_CFLAGS=$CFLAGS
1666 echo "$as_me:1666: checking whether $CC accepts -g" >&5
1667 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1668 if test "${ac_cv_prog_cc_g+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 cat >conftest.$ac_ext <<_ACEOF
1672 #line 1672 "configure"
1673 #include "confdefs.h"
1683 rm -f conftest.$ac_objext
1684 if { (eval echo "$as_me:1684: \"$ac_compile\"") >&5
1685 (eval $ac_compile) 2>&5
1687 echo "$as_me:1687: \$? = $ac_status" >&5
1688 (exit $ac_status); } &&
1689 { ac_try='test -s conftest.$ac_objext'
1690 { (eval echo "$as_me:1690: \"$ac_try\"") >&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }; }; then
1697 echo "$as_me: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1701 rm -f conftest.$ac_objext conftest.$ac_ext
1703 echo "$as_me:1703: result: $ac_cv_prog_cc_g" >&5
1704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1705 if test "$ac_test_CFLAGS" = set; then
1706 CFLAGS=$ac_save_CFLAGS
1707 elif test $ac_cv_prog_cc_g = yes; then
1708 if test "$GCC" = yes; then
1714 if test "$GCC" = yes; then
1720 # Some people use a C++ compiler to compile C. Since we use `exit',
1721 # in C++ we need to declare it. In case someone uses the same compiler
1722 # for both compiling C and C++ we need to have the C++ compiler decide
1723 # the declaration of exit, since it's the most demanding environment.
1724 cat >conftest.$ac_ext <<_ACEOF
1729 rm -f conftest.$ac_objext
1730 if { (eval echo "$as_me:1730: \"$ac_compile\"") >&5
1731 (eval $ac_compile) 2>&5
1733 echo "$as_me:1733: \$? = $ac_status" >&5
1734 (exit $ac_status); } &&
1735 { ac_try='test -s conftest.$ac_objext'
1736 { (eval echo "$as_me:1736: \"$ac_try\"") >&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); }; }; then
1741 for ac_declaration in \
1743 '#include <stdlib.h>' \
1744 'extern "C" void std::exit (int) throw (); using std::exit;' \
1745 'extern "C" void std::exit (int); using std::exit;' \
1746 'extern "C" void exit (int) throw ();' \
1747 'extern "C" void exit (int);' \
1750 cat >conftest.$ac_ext <<_ACEOF
1751 #line 1751 "configure"
1752 #include "confdefs.h"
1763 rm -f conftest.$ac_objext
1764 if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5
1765 (eval $ac_compile) 2>&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); } &&
1769 { ac_try='test -s conftest.$ac_objext'
1770 { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); }; }; then
1777 echo "$as_me: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1781 rm -f conftest.$ac_objext conftest.$ac_ext
1782 cat >conftest.$ac_ext <<_ACEOF
1783 #line 1783 "configure"
1784 #include "confdefs.h"
1794 rm -f conftest.$ac_objext
1795 if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); } &&
1800 { ac_try='test -s conftest.$ac_objext'
1801 { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 rm -f conftest.$ac_objext conftest.$ac_ext
1814 if test -n "$ac_declaration"; then
1815 echo '#ifdef __cplusplus' >>confdefs.h
1816 echo $ac_declaration >>confdefs.h
1817 echo '#endif' >>confdefs.h
1821 echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1824 rm -f conftest.$ac_objext conftest.$ac_ext
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1836 echo "$as_me:1836: checking how to run the C preprocessor" >&5
1837 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1838 # On Suns, sometimes $CPP names a directory.
1839 if test -n "$CPP" && test -d "$CPP"; then
1842 if test -z "$CPP"; then
1843 if test "${ac_cv_prog_CPP+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 # Double quotes because CPP needs to be expanded
1847 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1850 for ac_c_preproc_warn_flag in '' yes
1852 # Use a header file that comes with gcc, so configuring glibc
1853 # with a fresh cross-compiler works.
1854 # On the NeXT, cc -E runs the code through the compiler's parser,
1855 # not just through cpp. "Syntax error" is here to catch this case.
1856 cat >conftest.$ac_ext <<_ACEOF
1857 #line 1857 "configure"
1858 #include "confdefs.h"
1862 if { (eval echo "$as_me:1862: \"$ac_cpp conftest.$ac_ext\"") >&5
1863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1865 egrep -v '^ *\+' conftest.er1 >conftest.err
1867 cat conftest.err >&5
1868 echo "$as_me:1868: \$? = $ac_status" >&5
1869 (exit $ac_status); } >/dev/null; then
1870 if test -s conftest.err; then
1871 ac_cpp_err=$ac_c_preproc_warn_flag
1878 if test -z "$ac_cpp_err"; then
1881 echo "$as_me: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 # Broken: fails on valid input.
1886 rm -f conftest.err conftest.$ac_ext
1888 # OK, works on sane cases. Now check whether non-existent headers
1889 # can be detected and how.
1890 cat >conftest.$ac_ext <<_ACEOF
1891 #line 1891 "configure"
1892 #include "confdefs.h"
1893 #include <ac_nonexistent.h>
1895 if { (eval echo "$as_me:1895: \"$ac_cpp conftest.$ac_ext\"") >&5
1896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1898 egrep -v '^ *\+' conftest.er1 >conftest.err
1900 cat conftest.err >&5
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); } >/dev/null; then
1903 if test -s conftest.err; then
1904 ac_cpp_err=$ac_c_preproc_warn_flag
1911 if test -z "$ac_cpp_err"; then
1912 # Broken: success on invalid input.
1915 echo "$as_me: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 # Passes both tests.
1921 rm -f conftest.err conftest.$ac_ext
1924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1925 rm -f conftest.err conftest.$ac_ext
1926 if $ac_preproc_ok; then
1938 echo "$as_me:1938: result: $CPP" >&5
1939 echo "${ECHO_T}$CPP" >&6
1941 for ac_c_preproc_warn_flag in '' yes
1943 # Use a header file that comes with gcc, so configuring glibc
1944 # with a fresh cross-compiler works.
1945 # On the NeXT, cc -E runs the code through the compiler's parser,
1946 # not just through cpp. "Syntax error" is here to catch this case.
1947 cat >conftest.$ac_ext <<_ACEOF
1948 #line 1948 "configure"
1949 #include "confdefs.h"
1953 if { (eval echo "$as_me:1953: \"$ac_cpp conftest.$ac_ext\"") >&5
1954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1956 egrep -v '^ *\+' conftest.er1 >conftest.err
1958 cat conftest.err >&5
1959 echo "$as_me:1959: \$? = $ac_status" >&5
1960 (exit $ac_status); } >/dev/null; then
1961 if test -s conftest.err; then
1962 ac_cpp_err=$ac_c_preproc_warn_flag
1969 if test -z "$ac_cpp_err"; then
1972 echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 # Broken: fails on valid input.
1977 rm -f conftest.err conftest.$ac_ext
1979 # OK, works on sane cases. Now check whether non-existent headers
1980 # can be detected and how.
1981 cat >conftest.$ac_ext <<_ACEOF
1982 #line 1982 "configure"
1983 #include "confdefs.h"
1984 #include <ac_nonexistent.h>
1986 if { (eval echo "$as_me:1986: \"$ac_cpp conftest.$ac_ext\"") >&5
1987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1989 egrep -v '^ *\+' conftest.er1 >conftest.err
1991 cat conftest.err >&5
1992 echo "$as_me:1992: \$? = $ac_status" >&5
1993 (exit $ac_status); } >/dev/null; then
1994 if test -s conftest.err; then
1995 ac_cpp_err=$ac_c_preproc_warn_flag
2002 if test -z "$ac_cpp_err"; then
2003 # Broken: success on invalid input.
2006 echo "$as_me: failed program was:" >&5
2007 cat conftest.$ac_ext >&5
2008 # Passes both tests.
2012 rm -f conftest.err conftest.$ac_ext
2015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2016 rm -f conftest.err conftest.$ac_ext
2017 if $ac_preproc_ok; then
2020 { { echo "$as_me:2020: error: C preprocessor \"$CPP\" fails sanity check" >&5
2021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2022 { (exit 1); exit 1; }; }
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031 # Extract the first word of "gdb", so it can be a program name with args.
2032 set dummy gdb; ac_word=$2
2033 echo "$as_me:2033: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_GDB+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$GDB"; then
2039 ac_cv_prog_GDB="$GDB" # Let the user override the test.
2041 ac_save_IFS=$IFS; IFS=$ac_path_separator
2043 for ac_dir in $ac_dummy; do
2045 test -z "$ac_dir" && ac_dir=.
2046 $as_executable_p "$ac_dir/$ac_word" || continue
2047 ac_cv_prog_GDB="yes"
2048 echo "$as_me:2048: found $ac_dir/$ac_word" >&5
2052 test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
2056 if test -n "$GDB"; then
2057 echo "$as_me:2057: result: $GDB" >&5
2058 echo "${ECHO_T}$GDB" >&6
2060 echo "$as_me:2060: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 # Check whether --with-debug or --without-debug was given.
2065 if test "${with_debug+set}" = set; then
2066 withval="$with_debug"
2068 if test "x$withval" != "xno" ; then
2069 if test $ac_cv_prog_cc_g = yes; then
2070 if test "$GCC" = yes; then
2071 if test "$GDB"; then
2076 CFLAGS="$CFLAGS -Wshadow -Wconversion"
2085 if test "X$CFLAGS" = "X"; then # if CFLAGS are unset
2086 if test "$GCC" = yes; then
2095 if test "$GCC"; then
2096 CFLAGS="-pipe $CFLAGS"
2100 *mingw32* ) MINGW32=yes;;
2105 *cygwin* ) CYGWIN=yes;;
2109 if test "$MINGW32" = "yes"; then
2112 if test "$CYGWIN" = "yes"; then
2119 if test $dodk = auto; then
2121 if test $target_type = unix; then
2130 # Check whether --enable-mingw32 or --disable-mingw32 was given.
2131 if test "${enable_mingw32+set}" = set; then
2132 enableval="$enable_mingw32"
2133 if test $enableval = yes; then
2138 if test $target_type = mingw; then
2140 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
2141 PTHREAD_LIB=-lpthreadGC
2142 echo "Using mingw32 (Win32 GUI)"
2145 if test $target_type = cygwin; then
2146 SPECIAL_CFLAGS="-mno-win32"
2148 echo "Using Cygnus (Win32 command line)"
2151 PTHREAD_LIB=-lpthread
2155 if test $dodk != no; then
2156 for ac_prog in w3m lynx links
2158 # Extract the first word of "$ac_prog", so it can be a program name with args.
2159 set dummy $ac_prog; ac_word=$2
2160 echo "$as_me:2160: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_WDUMP+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 if test -n "$WDUMP"; then
2166 ac_cv_prog_WDUMP="$WDUMP" # Let the user override the test.
2168 ac_save_IFS=$IFS; IFS=$ac_path_separator
2170 for ac_dir in $ac_dummy; do
2172 test -z "$ac_dir" && ac_dir=.
2173 $as_executable_p "$ac_dir/$ac_word" || continue
2174 ac_cv_prog_WDUMP="$ac_prog"
2175 echo "$as_me:2175: found $ac_dir/$ac_word" >&5
2181 WDUMP=$ac_cv_prog_WDUMP
2182 if test -n "$WDUMP"; then
2183 echo "$as_me:2183: result: $WDUMP" >&5
2184 echo "${ECHO_T}$WDUMP" >&6
2186 echo "$as_me:2186: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2190 test -n "$WDUMP" && break
2192 test -n "$WDUMP" || WDUMP="false"
2194 if test "$WDUMP" = false; then
2195 { { echo "$as_me:2195: error: You need some kind of text browser to continue \(w3m, lynx and links are supported\)" >&5
2196 echo "$as_me: error: You need some kind of text browser to continue \(w3m, lynx and links are supported\)" >&2;}
2197 { (exit 1); exit 1; }; }
2199 if test $DB2HTML = false; then
2201 for ac_prog in db2html docbook2html
2203 # Extract the first word of "$ac_prog", so it can be a program name with args.
2204 set dummy $ac_prog; ac_word=$2
2205 echo "$as_me:2205: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_DB2HTML+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test -n "$DB2HTML"; then
2211 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
2213 ac_save_IFS=$IFS; IFS=$ac_path_separator
2215 for ac_dir in $ac_dummy; do
2217 test -z "$ac_dir" && ac_dir=.
2218 $as_executable_p "$ac_dir/$ac_word" || continue
2219 ac_cv_prog_DB2HTML="$ac_prog"
2220 echo "$as_me:2220: found $ac_dir/$ac_word" >&5
2226 DB2HTML=$ac_cv_prog_DB2HTML
2227 if test -n "$DB2HTML"; then
2228 echo "$as_me:2228: result: $DB2HTML" >&5
2229 echo "${ECHO_T}$DB2HTML" >&6
2231 echo "$as_me:2231: result: no" >&5
2232 echo "${ECHO_T}no" >&6
2235 test -n "$DB2HTML" && break
2237 test -n "$DB2HTML" || DB2HTML="false"
2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 echo "$as_me:2246: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248 if test "${ac_cv_prog_RPMBIN+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 if test -n "$RPMBIN"; then
2252 ac_cv_prog_RPMBIN="$RPMBIN" # Let the user override the test.
2254 ac_save_IFS=$IFS; IFS=$ac_path_separator
2256 for ac_dir in $ac_dummy; do
2258 test -z "$ac_dir" && ac_dir=.
2259 $as_executable_p "$ac_dir/$ac_word" || continue
2260 ac_cv_prog_RPMBIN="$ac_prog"
2261 echo "$as_me:2261: found $ac_dir/$ac_word" >&5
2267 RPMBIN=$ac_cv_prog_RPMBIN
2268 if test -n "$RPMBIN"; then
2269 echo "$as_me:2269: result: $RPMBIN" >&5
2270 echo "${ECHO_T}$RPMBIN" >&6
2272 echo "$as_me:2272: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2276 test -n "$RPMBIN" && break
2278 test -n "$RPMBIN" || RPMBIN="false"
2280 if test $RPMBIN != false; then
2281 RPM_BASE=`rpm --eval "%{_topdir}"`
2282 if test "$RPM_BASE" = ""; then
2283 RPM_BASE=/usr/src/redhat
2287 for ac_prog in jade openjade
2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 echo "$as_me:2291: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293 if test "${ac_cv_prog_JADEBIN+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 if test -n "$JADEBIN"; then
2297 ac_cv_prog_JADEBIN="$JADEBIN" # Let the user override the test.
2299 ac_save_IFS=$IFS; IFS=$ac_path_separator
2301 for ac_dir in $ac_dummy; do
2303 test -z "$ac_dir" && ac_dir=.
2304 $as_executable_p "$ac_dir/$ac_word" || continue
2305 ac_cv_prog_JADEBIN="$ac_prog"
2306 echo "$as_me:2306: found $ac_dir/$ac_word" >&5
2312 JADEBIN=$ac_cv_prog_JADEBIN
2313 if test -n "$JADEBIN"; then
2314 echo "$as_me:2314: result: $JADEBIN" >&5
2315 echo "${ECHO_T}$JADEBIN" >&6
2317 echo "$as_me:2317: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2321 test -n "$JADEBIN" && break
2323 test -n "$JADEBIN" || JADEBIN="false"
2325 if test $dodk = yes; then
2326 if test $DKPREFIX = none; then
2327 for i in /usr/share/sgml/docbook/dsssl-stylesheets /usr/share/sgml/docbkdsl; do
2328 echo -n "checking for $i/html/docbook.dsl..."
2329 if test -f $i/html/docbook.dsl; then
2340 old_CFLAGS_nospecial=$CFLAGS
2341 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
2343 # Hack to force AutoConf to use the CFLAGS we just set
2344 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
2345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2348 echo "$as_me:2348: checking for pthread.h" >&5
2349 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
2350 if test "${ac_cv_header_pthread_h+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2354 #line 2354 "configure"
2355 #include "confdefs.h"
2356 #include <pthread.h>
2358 if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5
2359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2361 egrep -v '^ *\+' conftest.er1 >conftest.err
2363 cat conftest.err >&5
2364 echo "$as_me:2364: \$? = $ac_status" >&5
2365 (exit $ac_status); } >/dev/null; then
2366 if test -s conftest.err; then
2367 ac_cpp_err=$ac_c_preproc_warn_flag
2374 if test -z "$ac_cpp_err"; then
2375 ac_cv_header_pthread_h=yes
2377 echo "$as_me: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2379 ac_cv_header_pthread_h=no
2381 rm -f conftest.err conftest.$ac_ext
2383 echo "$as_me:2383: result: $ac_cv_header_pthread_h" >&5
2384 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
2385 if test $ac_cv_header_pthread_h = yes; then
2391 # Check whether --enable-pthread or --disable-pthread was given.
2392 if test "${enable_pthread+set}" = set; then
2393 enableval="$enable_pthread"
2394 if test $enableval = no; then
2400 if test $have_pthread = yes; then
2402 cat >>confdefs.h <<\EOF
2403 #define FEATURE_PTHREAD 1
2406 echo Using POSIX threads
2407 if test "$GCC" = "yes"; then
2408 # Set a GCC specific switch:
2409 if test "$target_type" = "unix"; then
2410 # This compiler switch makes Linux thread-safe
2411 # Don't know about other OS's? Is this switch
2414 SPECIAL_CFLAGS="-pthread"
2419 echo Using native threads
2422 echo "$as_me:2422: checking for gethostbyname in -lnsl" >&5
2423 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2424 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 ac_check_lib_save_LIBS=$LIBS
2429 cat >conftest.$ac_ext <<_ACEOF
2430 #line 2430 "configure"
2431 #include "confdefs.h"
2433 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char gethostbyname ();
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { (eval echo "$as_me:2449: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>&5
2452 echo "$as_me:2452: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -s conftest$ac_exeext'
2455 { (eval echo "$as_me:2455: \"$ac_try\"") >&5
2458 echo "$as_me:2458: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2460 ac_cv_lib_nsl_gethostbyname=yes
2462 echo "$as_me: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 ac_cv_lib_nsl_gethostbyname=no
2466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2467 LIBS=$ac_check_lib_save_LIBS
2469 echo "$as_me:2469: result: $ac_cv_lib_nsl_gethostbyname" >&5
2470 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2471 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2472 cat >>confdefs.h <<EOF
2473 #define HAVE_LIBNSL 1
2480 echo "$as_me:2480: checking for gethostbyaddr_r" >&5
2481 echo $ECHO_N "checking for gethostbyaddr_r... $ECHO_C" >&6
2482 if test "${ac_cv_func_gethostbyaddr_r+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 cat >conftest.$ac_ext <<_ACEOF
2486 #line 2486 "configure"
2487 #include "confdefs.h"
2488 /* System header to define __stub macros and hopefully few prototypes,
2489 which can conflict with char gethostbyaddr_r (); below. */
2491 /* Override any gcc2 internal prototype to avoid an error. */
2495 /* We use char because int might match the return type of a gcc2
2496 builtin and then its argument prototype would still apply. */
2497 char gethostbyaddr_r ();
2503 /* The GNU C library defines this for functions which it implements
2504 to always fail with ENOSYS. Some functions are actually named
2505 something starting with __ and the normal name is an alias. */
2506 #if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
2509 f = gethostbyaddr_r;
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { (eval echo "$as_me:2517: \"$ac_link\"") >&5
2518 (eval $ac_link) 2>&5
2520 echo "$as_me:2520: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest$ac_exeext'
2523 { (eval echo "$as_me:2523: \"$ac_try\"") >&5
2526 echo "$as_me:2526: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_func_gethostbyaddr_r=yes
2530 echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 ac_cv_func_gethostbyaddr_r=no
2534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2536 echo "$as_me:2536: result: $ac_cv_func_gethostbyaddr_r" >&5
2537 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_r" >&6
2538 if test $ac_cv_func_gethostbyaddr_r = yes; then
2540 echo "$as_me:2540: checking signature of gethostbyaddr_r" >&5
2541 echo $ECHO_N "checking signature of gethostbyaddr_r... $ECHO_C" >&6
2542 cat >conftest.$ac_ext <<_ACEOF
2543 #line 2543 "configure"
2544 #include "confdefs.h"
2552 struct hostent *h, *hp;
2555 (void) gethostbyaddr_r(a, l, t, h, b, bl, &hp, &e)
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:2562: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2565 echo "$as_me:2565: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:2568: \"$ac_try\"") >&5
2571 echo "$as_me:2571: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2574 cat >>confdefs.h <<\EOF
2575 #define HAVE_GETHOSTBYADDR_R_8_ARGS 1
2578 echo "$as_me:2578: result: 8 args" >&5
2579 echo "${ECHO_T}8 args" >&6
2582 echo "$as_me: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2585 cat >conftest.$ac_ext <<_ACEOF
2586 #line 2586 "configure"
2587 #include "confdefs.h"
2598 (void) gethostbyaddr_r(a, l, t, h, b, bl, &e)
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:2605: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>&5
2608 echo "$as_me:2608: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:2611: \"$ac_try\"") >&5
2614 echo "$as_me:2614: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2617 cat >>confdefs.h <<\EOF
2618 #define HAVE_GETHOSTBYADDR_R_7_ARGS 1
2621 echo "$as_me:2621: result: 7 args" >&5
2622 echo "${ECHO_T}7 args" >&6
2625 echo "$as_me: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2628 cat >conftest.$ac_ext <<_ACEOF
2629 #line 2629 "configure"
2630 #include "confdefs.h"
2638 struct hostent_data *d;
2642 (void) gethostbyaddr_r(a, l, t, h, d)
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:2649: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>&5
2652 echo "$as_me:2652: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -s conftest.$ac_objext'
2655 { (eval echo "$as_me:2655: \"$ac_try\"") >&5
2658 echo "$as_me:2658: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2661 cat >>confdefs.h <<\EOF
2662 #define HAVE_GETHOSTBYADDR_R_5_ARGS 1
2665 echo "$as_me:2665: result: 5 args" >&5
2666 echo "${ECHO_T}5 args" >&6
2669 echo "$as_me: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 echo "$as_me:2672: result: unrecognised" >&5
2673 echo "${ECHO_T}unrecognised" >&6
2676 rm -f conftest.$ac_objext conftest.$ac_ext
2679 rm -f conftest.$ac_objext conftest.$ac_ext
2682 rm -f conftest.$ac_objext conftest.$ac_ext
2686 echo "$as_me:2686: result: no" >&5
2687 echo "${ECHO_T}no" >&6
2691 echo "$as_me:2691: checking for gethostbyname_r" >&5
2692 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
2693 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 cat >conftest.$ac_ext <<_ACEOF
2697 #line 2697 "configure"
2698 #include "confdefs.h"
2699 /* System header to define __stub macros and hopefully few prototypes,
2700 which can conflict with char gethostbyname_r (); below. */
2702 /* Override any gcc2 internal prototype to avoid an error. */
2706 /* We use char because int might match the return type of a gcc2
2707 builtin and then its argument prototype would still apply. */
2708 char gethostbyname_r ();
2714 /* The GNU C library defines this for functions which it implements
2715 to always fail with ENOSYS. Some functions are actually named
2716 something starting with __ and the normal name is an alias. */
2717 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
2720 f = gethostbyname_r;
2727 rm -f conftest.$ac_objext conftest$ac_exeext
2728 if { (eval echo "$as_me:2728: \"$ac_link\"") >&5
2729 (eval $ac_link) 2>&5
2731 echo "$as_me:2731: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -s conftest$ac_exeext'
2734 { (eval echo "$as_me:2734: \"$ac_try\"") >&5
2737 echo "$as_me:2737: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 ac_cv_func_gethostbyname_r=yes
2741 echo "$as_me: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2743 ac_cv_func_gethostbyname_r=no
2745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2747 echo "$as_me:2747: result: $ac_cv_func_gethostbyname_r" >&5
2748 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
2749 if test $ac_cv_func_gethostbyname_r = yes; then
2751 echo "$as_me:2751: checking signature of gethostbyname_r" >&5
2752 echo $ECHO_N "checking signature of gethostbyname_r... $ECHO_C" >&6
2753 cat >conftest.$ac_ext <<_ACEOF
2754 #line 2754 "configure"
2755 #include "confdefs.h"
2763 struct hostent *h, *r;
2766 (void) gethostbyname_r(n, h, b, bl, &r, &e)
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:2773: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>&5
2776 echo "$as_me:2776: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:2779: \"$ac_try\"") >&5
2782 echo "$as_me:2782: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2785 cat >>confdefs.h <<\EOF
2786 #define HAVE_GETHOSTBYNAME_R_6_ARGS 1
2789 echo "$as_me:2789: result: 6 args" >&5
2790 echo "${ECHO_T}6 args" >&6
2793 echo "$as_me: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 cat >conftest.$ac_ext <<_ACEOF
2797 #line 2797 "configure"
2798 #include "confdefs.h"
2809 (void) gethostbyname_r(n, h, b, bl, &e)
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:2816: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>&5
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:2822: \"$ac_try\"") >&5
2825 echo "$as_me:2825: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2828 cat >>confdefs.h <<\EOF
2829 #define HAVE_GETHOSTBYNAME_R_5_ARGS 1
2832 echo "$as_me:2832: result: 5 args" >&5
2833 echo "${ECHO_T}5 args" >&6
2836 echo "$as_me: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line 2840 "configure"
2841 #include "confdefs.h"
2849 struct hostent_data *d;
2852 (void) gethostbyname_r(n, h, d)
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:2859: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:2865: \"$ac_try\"") >&5
2868 echo "$as_me:2868: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2871 cat >>confdefs.h <<\EOF
2872 #define HAVE_GETHOSTBYNAME_R_3_ARGS 1
2875 echo "$as_me:2875: result: 3 args" >&5
2876 echo "${ECHO_T}3 args" >&6
2879 echo "$as_me: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2882 echo "$as_me:2882: result: unrecognised" >&5
2883 echo "${ECHO_T}unrecognised" >&6
2886 rm -f conftest.$ac_objext conftest.$ac_ext
2889 rm -f conftest.$ac_objext conftest.$ac_ext
2892 rm -f conftest.$ac_objext conftest.$ac_ext
2896 echo "$as_me:2896: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2901 echo "$as_me:2901: checking for gmtime_r" >&5
2902 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
2903 if test "${ac_cv_func_gmtime_r+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line 2907 "configure"
2908 #include "confdefs.h"
2909 /* System header to define __stub macros and hopefully few prototypes,
2910 which can conflict with char gmtime_r (); below. */
2912 /* Override any gcc2 internal prototype to avoid an error. */
2916 /* We use char because int might match the return type of a gcc2
2917 builtin and then its argument prototype would still apply. */
2924 /* The GNU C library defines this for functions which it implements
2925 to always fail with ENOSYS. Some functions are actually named
2926 something starting with __ and the normal name is an alias. */
2927 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
2937 rm -f conftest.$ac_objext conftest$ac_exeext
2938 if { (eval echo "$as_me:2938: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>&5
2941 echo "$as_me:2941: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -s conftest$ac_exeext'
2944 { (eval echo "$as_me:2944: \"$ac_try\"") >&5
2947 echo "$as_me:2947: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 ac_cv_func_gmtime_r=yes
2951 echo "$as_me: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 ac_cv_func_gmtime_r=no
2955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2957 echo "$as_me:2957: result: $ac_cv_func_gmtime_r" >&5
2958 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
2959 if test $ac_cv_func_gmtime_r = yes; then
2961 echo "$as_me:2961: checking signature of gmtime_r" >&5
2962 echo $ECHO_N "checking signature of gmtime_r... $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line 2964 "configure"
2965 #include "confdefs.h"
2975 (void) gmtime_r(t, tm)
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:2982: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>&5
2985 echo "$as_me:2985: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:2988: \"$ac_try\"") >&5
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2994 echo "$as_me:2994: result: ok" >&5
2995 echo "${ECHO_T}ok" >&6
2996 cat >>confdefs.h <<\EOF
2997 #define HAVE_GMTIME_R 1
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 echo "$as_me:3004: result: unrecognised" >&5
3005 echo "${ECHO_T}unrecognised" >&6
3008 rm -f conftest.$ac_objext conftest.$ac_ext
3012 echo "$as_me:3012: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3017 echo "$as_me:3017: checking for localtime_r" >&5
3018 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
3019 if test "${ac_cv_func_localtime_r+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 cat >conftest.$ac_ext <<_ACEOF
3023 #line 3023 "configure"
3024 #include "confdefs.h"
3025 /* System header to define __stub macros and hopefully few prototypes,
3026 which can conflict with char localtime_r (); below. */
3028 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3034 char localtime_r ();
3040 /* The GNU C library defines this for functions which it implements
3041 to always fail with ENOSYS. Some functions are actually named
3042 something starting with __ and the normal name is an alias. */
3043 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
3053 rm -f conftest.$ac_objext conftest$ac_exeext
3054 if { (eval echo "$as_me:3054: \"$ac_link\"") >&5
3055 (eval $ac_link) 2>&5
3057 echo "$as_me:3057: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -s conftest$ac_exeext'
3060 { (eval echo "$as_me:3060: \"$ac_try\"") >&5
3063 echo "$as_me:3063: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_cv_func_localtime_r=yes
3067 echo "$as_me: failed program was:" >&5
3068 cat conftest.$ac_ext >&5
3069 ac_cv_func_localtime_r=no
3071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3073 echo "$as_me:3073: result: $ac_cv_func_localtime_r" >&5
3074 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
3075 if test $ac_cv_func_localtime_r = yes; then
3077 echo "$as_me:3077: checking signature of localtime_r" >&5
3078 echo $ECHO_N "checking signature of localtime_r... $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #line 3080 "configure"
3081 #include "confdefs.h"
3091 (void) localtime_r(t, tm)
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:3098: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>&5
3101 echo "$as_me:3101: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:3104: \"$ac_try\"") >&5
3107 echo "$as_me:3107: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3110 echo "$as_me:3110: result: ok" >&5
3111 echo "${ECHO_T}ok" >&6
3112 cat >>confdefs.h <<\EOF
3113 #define HAVE_LOCALTIME_R 1
3117 echo "$as_me: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3120 echo "$as_me:3120: result: unrecognised" >&5
3121 echo "${ECHO_T}unrecognised" >&6
3124 rm -f conftest.$ac_objext conftest.$ac_ext
3128 echo "$as_me:3128: result: no" >&5
3129 echo "${ECHO_T}no" >&6
3136 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
3137 cat >>confdefs.h <<\EOF
3138 #define __EXTENSIONS__ 1
3141 if test "$GCC" = "yes"; then
3142 # Set a GCC specific switch:
3143 # This compiler switch makes Solaris thread-safe
3145 SPECIAL_CFLAGS="-pthreads"
3147 # What do we do without GCC? Guess this:
3148 SPECIAL_CFLAGS="-D_REENTRANT"
3154 *-os2-emx*) SOCKET_LIB=-lsocket
3161 *-amigaos) AMIGAOS_ONLY=
3165 echo "$as_me:3165: checking for ANSI C header files" >&5
3166 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3167 if test "${ac_cv_header_stdc+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 cat >conftest.$ac_ext <<_ACEOF
3171 #line 3171 "configure"
3172 #include "confdefs.h"
3179 if { (eval echo "$as_me:3179: \"$ac_cpp conftest.$ac_ext\"") >&5
3180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3182 egrep -v '^ *\+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:3185: \$? = $ac_status" >&5
3186 (exit $ac_status); } >/dev/null; then
3187 if test -s conftest.err; then
3188 ac_cpp_err=$ac_c_preproc_warn_flag
3195 if test -z "$ac_cpp_err"; then
3196 ac_cv_header_stdc=yes
3198 echo "$as_me: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 ac_cv_header_stdc=no
3202 rm -f conftest.err conftest.$ac_ext
3204 if test $ac_cv_header_stdc = yes; then
3205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3206 cat >conftest.$ac_ext <<_ACEOF
3207 #line 3207 "configure"
3208 #include "confdefs.h"
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213 egrep "memchr" >/dev/null 2>&1; then
3216 ac_cv_header_stdc=no
3222 if test $ac_cv_header_stdc = yes; then
3223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3224 cat >conftest.$ac_ext <<_ACEOF
3225 #line 3225 "configure"
3226 #include "confdefs.h"
3230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3231 egrep "free" >/dev/null 2>&1; then
3234 ac_cv_header_stdc=no
3240 if test $ac_cv_header_stdc = yes; then
3241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3242 if test "$cross_compiling" = yes; then
3245 cat >conftest.$ac_ext <<_ACEOF
3246 #line 3246 "configure"
3247 #include "confdefs.h"
3249 #if ((' ' & 0x0FF) == 0x020)
3250 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3251 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3253 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3254 || ('j' <= (c) && (c) <= 'r') \
3255 || ('s' <= (c) && (c) <= 'z'))
3256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3264 for (i = 0; i < 256; i++)
3265 if (XOR (islower (i), ISLOWER (i))
3266 || toupper (i) != TOUPPER (i))
3271 rm -f conftest$ac_exeext
3272 if { (eval echo "$as_me:3272: \"$ac_link\"") >&5
3273 (eval $ac_link) 2>&5
3275 echo "$as_me:3275: \$? = $ac_status" >&5
3276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3277 { (eval echo "$as_me:3277: \"$ac_try\"") >&5
3280 echo "$as_me:3280: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3284 echo "$as_me: program exited with status $ac_status" >&5
3285 echo "$as_me: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 ac_cv_header_stdc=no
3289 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3293 echo "$as_me:3293: result: $ac_cv_header_stdc" >&5
3294 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3295 if test $ac_cv_header_stdc = yes; then
3297 cat >>confdefs.h <<\EOF
3298 #define STDC_HEADERS 1
3303 echo "$as_me:3303: checking for $CC option to accept ANSI C" >&5
3304 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3305 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 ac_cv_prog_cc_stdc=no
3310 cat >conftest.$ac_ext <<_ACEOF
3311 #line 3311 "configure"
3312 #include "confdefs.h"
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3331 s = g (p, va_arg (v,int));
3335 int test (int i, double x);
3336 struct s1 {int (*f) (int a);};
3337 struct s2 {int (*f) (double a);};
3338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3344 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3349 # Don't try gcc -ansi; that turns off useful extensions and
3350 # breaks some systems' header files.
3351 # AIX -qlanglvl=ansi
3352 # Ultrix and OSF/1 -std1
3353 # HP-UX 10.20 and later -Ae
3354 # HP-UX older versions -Aa -D_HPUX_SOURCE
3355 # SVR4 -Xc -D__EXTENSIONS__
3356 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3358 CC="$ac_save_CC $ac_arg"
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:3360: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>&5
3363 echo "$as_me:3363: \$? = $ac_status" >&5
3364 (exit $ac_status); } &&
3365 { ac_try='test -s conftest.$ac_objext'
3366 { (eval echo "$as_me:3366: \"$ac_try\"") >&5
3369 echo "$as_me:3369: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 ac_cv_prog_cc_stdc=$ac_arg
3374 echo "$as_me: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 rm -f conftest.$ac_objext
3379 rm -f conftest.$ac_ext conftest.$ac_objext
3384 case "x$ac_cv_prog_cc_stdc" in
3386 echo "$as_me:3386: result: none needed" >&5
3387 echo "${ECHO_T}none needed" >&6 ;;
3389 echo "$as_me:3389: result: $ac_cv_prog_cc_stdc" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3391 CC="$CC $ac_cv_prog_cc_stdc" ;;
3394 echo "$as_me:3394: checking for an ANSI C-conforming const" >&5
3395 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3396 if test "${ac_cv_c_const+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 cat >conftest.$ac_ext <<_ACEOF
3400 #line 3400 "configure"
3401 #include "confdefs.h"
3406 /* FIXME: Include the comments suggested by Paul. */
3408 /* Ultrix mips cc rejects this. */
3409 typedef int charset[2];
3411 /* SunOS 4.1.1 cc rejects this. */
3412 char const *const *ccp;
3414 /* NEC SVR4.0.2 mips cc rejects this. */
3415 struct point {int x, y;};
3416 static struct point const zero = {0,0};
3417 /* AIX XL C 1.02.0.0 rejects this.
3418 It does not let you subtract one const X* pointer from another in
3419 an arm of an if-expression whose if-part is not a constant
3421 const char *g = "string";
3422 ccp = &g + (g ? g-g : 0);
3423 /* HPUX 7.0 cc rejects these. */
3426 ccp = (char const *const *) p;
3427 { /* SCO 3.2v4 cc rejects this. */
3429 char const *s = 0 ? (char *) 0 : (char const *) 0;
3433 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3435 const int *foo = &x[0];
3438 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3439 typedef const int *iptr;
3443 { /* AIX XL C 1.02.0.0 rejects this saying
3444 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3445 struct s { int j; const int *ap[3]; };
3446 struct s *b; b->j = 5;
3448 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:3458: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>&5
3461 echo "$as_me:3461: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:3464: \"$ac_try\"") >&5
3467 echo "$as_me:3467: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3471 echo "$as_me: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3475 rm -f conftest.$ac_objext conftest.$ac_ext
3477 echo "$as_me:3477: result: $ac_cv_c_const" >&5
3478 echo "${ECHO_T}$ac_cv_c_const" >&6
3479 if test $ac_cv_c_const = no; then
3481 cat >>confdefs.h <<\EOF
3487 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3490 inttypes.h stdint.h unistd.h
3492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3493 echo "$as_me:3493: checking for $ac_header" >&5
3494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 cat >conftest.$ac_ext <<_ACEOF
3499 #line 3499 "configure"
3500 #include "confdefs.h"
3501 $ac_includes_default
3502 #include <$ac_header>
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:3505: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>&5
3508 echo "$as_me:3508: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:3511: \"$ac_try\"") >&5
3514 echo "$as_me:3514: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 eval "$as_ac_Header=yes"
3518 echo "$as_me: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 eval "$as_ac_Header=no"
3522 rm -f conftest.$ac_objext conftest.$ac_ext
3524 echo "$as_me:3524: result: `eval echo '${'$as_ac_Header'}'`" >&5
3525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3527 cat >>confdefs.h <<EOF
3528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3534 echo "$as_me:3534: checking for size_t" >&5
3535 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3536 if test "${ac_cv_type_size_t+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line 3540 "configure"
3541 #include "confdefs.h"
3542 $ac_includes_default
3548 if (sizeof (size_t))
3554 rm -f conftest.$ac_objext
3555 if { (eval echo "$as_me:3555: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>&5
3558 echo "$as_me:3558: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:3561: \"$ac_try\"") >&5
3564 echo "$as_me:3564: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 ac_cv_type_size_t=yes
3568 echo "$as_me: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3570 ac_cv_type_size_t=no
3572 rm -f conftest.$ac_objext conftest.$ac_ext
3574 echo "$as_me:3574: result: $ac_cv_type_size_t" >&5
3575 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3576 if test $ac_cv_type_size_t = yes; then
3580 cat >>confdefs.h <<EOF
3581 #define size_t unsigned
3586 echo "$as_me:3586: checking for int" >&5
3587 echo $ECHO_N "checking for int... $ECHO_C" >&6
3588 if test "${ac_cv_type_int+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line 3592 "configure"
3593 #include "confdefs.h"
3594 $ac_includes_default
3606 rm -f conftest.$ac_objext
3607 if { (eval echo "$as_me:3607: \"$ac_compile\"") >&5
3608 (eval $ac_compile) 2>&5
3610 echo "$as_me:3610: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:3613: \"$ac_try\"") >&5
3616 echo "$as_me:3616: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3620 echo "$as_me: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3624 rm -f conftest.$ac_objext conftest.$ac_ext
3626 echo "$as_me:3626: result: $ac_cv_type_int" >&5
3627 echo "${ECHO_T}$ac_cv_type_int" >&6
3629 echo "$as_me:3629: checking size of int" >&5
3630 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3631 if test "${ac_cv_sizeof_int+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 if test "$ac_cv_type_int" = yes; then
3635 if test "$cross_compiling" = yes; then
3636 # Depending upon the size, compute the lo and hi bounds.
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line 3638 "configure"
3639 #include "confdefs.h"
3640 $ac_includes_default
3644 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
3649 rm -f conftest.$ac_objext
3650 if { (eval echo "$as_me:3650: \"$ac_compile\"") >&5
3651 (eval $ac_compile) 2>&5
3653 echo "$as_me:3653: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -s conftest.$ac_objext'
3656 { (eval echo "$as_me:3656: \"$ac_try\"") >&5
3659 echo "$as_me:3659: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3663 cat >conftest.$ac_ext <<_ACEOF
3664 #line 3664 "configure"
3665 #include "confdefs.h"
3666 $ac_includes_default
3670 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
3675 rm -f conftest.$ac_objext
3676 if { (eval echo "$as_me:3676: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>&5
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:3682: \"$ac_try\"") >&5
3685 echo "$as_me:3685: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 ac_hi=$ac_mid; break
3689 echo "$as_me: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3691 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3693 rm -f conftest.$ac_objext conftest.$ac_ext
3696 echo "$as_me: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3700 cat >conftest.$ac_ext <<_ACEOF
3701 #line 3701 "configure"
3702 #include "confdefs.h"
3703 $ac_includes_default
3707 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:3713: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>&5
3716 echo "$as_me:3716: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:3719: \"$ac_try\"") >&5
3722 echo "$as_me:3722: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_lo=$ac_mid; break
3726 echo "$as_me: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3730 rm -f conftest.$ac_objext conftest.$ac_ext
3733 rm -f conftest.$ac_objext conftest.$ac_ext
3734 # Binary search between lo and hi bounds.
3735 while test "x$ac_lo" != "x$ac_hi"; do
3736 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3737 cat >conftest.$ac_ext <<_ACEOF
3738 #line 3738 "configure"
3739 #include "confdefs.h"
3740 $ac_includes_default
3744 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:3750: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>&5
3753 echo "$as_me:3753: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:3756: \"$ac_try\"") >&5
3759 echo "$as_me:3759: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3763 echo "$as_me: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 ac_lo=`expr $ac_mid + 1`
3767 rm -f conftest.$ac_objext conftest.$ac_ext
3769 ac_cv_sizeof_int=$ac_lo
3771 if test "$cross_compiling" = yes; then
3772 { { echo "$as_me:3772: error: cannot run test program while cross compiling" >&5
3773 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3774 { (exit 1); exit 1; }; }
3776 cat >conftest.$ac_ext <<_ACEOF
3777 #line 3777 "configure"
3778 #include "confdefs.h"
3779 $ac_includes_default
3783 FILE *f = fopen ("conftest.val", "w");
3786 fprintf (f, "%d", (sizeof (int)));
3792 rm -f conftest$ac_exeext
3793 if { (eval echo "$as_me:3793: \"$ac_link\"") >&5
3794 (eval $ac_link) 2>&5
3796 echo "$as_me:3796: \$? = $ac_status" >&5
3797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3798 { (eval echo "$as_me:3798: \"$ac_try\"") >&5
3801 echo "$as_me:3801: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 ac_cv_sizeof_int=`cat conftest.val`
3805 echo "$as_me: program exited with status $ac_status" >&5
3806 echo "$as_me: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3809 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3817 echo "$as_me:3817: result: $ac_cv_sizeof_int" >&5
3818 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3819 cat >>confdefs.h <<EOF
3820 #define SIZEOF_INT $ac_cv_sizeof_int
3823 echo "$as_me:3823: checking for char *" >&5
3824 echo $ECHO_N "checking for char *... $ECHO_C" >&6
3825 if test "${ac_cv_type_char_p+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 cat >conftest.$ac_ext <<_ACEOF
3829 #line 3829 "configure"
3830 #include "confdefs.h"
3831 $ac_includes_default
3837 if (sizeof (char *))
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:3844: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>&5
3847 echo "$as_me:3847: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -s conftest.$ac_objext'
3850 { (eval echo "$as_me:3850: \"$ac_try\"") >&5
3853 echo "$as_me:3853: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3855 ac_cv_type_char_p=yes
3857 echo "$as_me: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3859 ac_cv_type_char_p=no
3861 rm -f conftest.$ac_objext conftest.$ac_ext
3863 echo "$as_me:3863: result: $ac_cv_type_char_p" >&5
3864 echo "${ECHO_T}$ac_cv_type_char_p" >&6
3866 echo "$as_me:3866: checking size of char *" >&5
3867 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
3868 if test "${ac_cv_sizeof_char_p+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 if test "$ac_cv_type_char_p" = yes; then
3872 if test "$cross_compiling" = yes; then
3873 # Depending upon the size, compute the lo and hi bounds.
3874 cat >conftest.$ac_ext <<_ACEOF
3875 #line 3875 "configure"
3876 #include "confdefs.h"
3877 $ac_includes_default
3881 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:3887: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>&5
3890 echo "$as_me:3890: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -s conftest.$ac_objext'
3893 { (eval echo "$as_me:3893: \"$ac_try\"") >&5
3896 echo "$as_me:3896: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3900 cat >conftest.$ac_ext <<_ACEOF
3901 #line 3901 "configure"
3902 #include "confdefs.h"
3903 $ac_includes_default
3907 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:3913: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>&5
3916 echo "$as_me:3916: \$? = $ac_status" >&5
3917 (exit $ac_status); } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:3919: \"$ac_try\"") >&5
3922 echo "$as_me:3922: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 ac_hi=$ac_mid; break
3926 echo "$as_me: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3930 rm -f conftest.$ac_objext conftest.$ac_ext
3933 echo "$as_me: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3937 cat >conftest.$ac_ext <<_ACEOF
3938 #line 3938 "configure"
3939 #include "confdefs.h"
3940 $ac_includes_default
3944 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:3950: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>&5
3953 echo "$as_me:3953: \$? = $ac_status" >&5
3954 (exit $ac_status); } &&
3955 { ac_try='test -s conftest.$ac_objext'
3956 { (eval echo "$as_me:3956: \"$ac_try\"") >&5
3959 echo "$as_me:3959: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 ac_lo=$ac_mid; break
3963 echo "$as_me: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3967 rm -f conftest.$ac_objext conftest.$ac_ext
3970 rm -f conftest.$ac_objext conftest.$ac_ext
3971 # Binary search between lo and hi bounds.
3972 while test "x$ac_lo" != "x$ac_hi"; do
3973 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3974 cat >conftest.$ac_ext <<_ACEOF
3975 #line 3975 "configure"
3976 #include "confdefs.h"
3977 $ac_includes_default
3981 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:3987: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>&5
3990 echo "$as_me:3990: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:3993: \"$ac_try\"") >&5
3996 echo "$as_me:3996: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
4000 echo "$as_me: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4002 ac_lo=`expr $ac_mid + 1`
4004 rm -f conftest.$ac_objext conftest.$ac_ext
4006 ac_cv_sizeof_char_p=$ac_lo
4008 if test "$cross_compiling" = yes; then
4009 { { echo "$as_me:4009: error: cannot run test program while cross compiling" >&5
4010 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4011 { (exit 1); exit 1; }; }
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line 4014 "configure"
4015 #include "confdefs.h"
4016 $ac_includes_default
4020 FILE *f = fopen ("conftest.val", "w");
4023 fprintf (f, "%d", (sizeof (char *)));
4029 rm -f conftest$ac_exeext
4030 if { (eval echo "$as_me:4030: \"$ac_link\"") >&5
4031 (eval $ac_link) 2>&5
4033 echo "$as_me:4033: \$? = $ac_status" >&5
4034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035 { (eval echo "$as_me:4035: \"$ac_try\"") >&5
4038 echo "$as_me:4038: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_cv_sizeof_char_p=`cat conftest.val`
4042 echo "$as_me: program exited with status $ac_status" >&5
4043 echo "$as_me: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4046 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4051 ac_cv_sizeof_char_p=0
4054 echo "$as_me:4054: result: $ac_cv_sizeof_char_p" >&5
4055 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
4056 cat >>confdefs.h <<EOF
4057 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
4060 echo "$as_me:4060: checking for long" >&5
4061 echo $ECHO_N "checking for long... $ECHO_C" >&6
4062 if test "${ac_cv_type_long+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 cat >conftest.$ac_ext <<_ACEOF
4066 #line 4066 "configure"
4067 #include "confdefs.h"
4068 $ac_includes_default
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:4081: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
4084 echo "$as_me:4084: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:4087: \"$ac_try\"") >&5
4090 echo "$as_me:4090: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4098 rm -f conftest.$ac_objext conftest.$ac_ext
4100 echo "$as_me:4100: result: $ac_cv_type_long" >&5
4101 echo "${ECHO_T}$ac_cv_type_long" >&6
4103 echo "$as_me:4103: checking size of long" >&5
4104 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4105 if test "${ac_cv_sizeof_long+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 if test "$ac_cv_type_long" = yes; then
4109 if test "$cross_compiling" = yes; then
4110 # Depending upon the size, compute the lo and hi bounds.
4111 cat >conftest.$ac_ext <<_ACEOF
4112 #line 4112 "configure"
4113 #include "confdefs.h"
4114 $ac_includes_default
4118 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:4124: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>&5
4127 echo "$as_me:4127: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -s conftest.$ac_objext'
4130 { (eval echo "$as_me:4130: \"$ac_try\"") >&5
4133 echo "$as_me:4133: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then
4137 cat >conftest.$ac_ext <<_ACEOF
4138 #line 4138 "configure"
4139 #include "confdefs.h"
4140 $ac_includes_default
4144 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:4150: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4153 echo "$as_me:4153: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:4156: \"$ac_try\"") >&5
4159 echo "$as_me:4159: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_hi=$ac_mid; break
4163 echo "$as_me: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4165 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4167 rm -f conftest.$ac_objext conftest.$ac_ext
4170 echo "$as_me: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line 4175 "configure"
4176 #include "confdefs.h"
4177 $ac_includes_default
4181 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:4187: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>&5
4190 echo "$as_me:4190: \$? = $ac_status" >&5
4191 (exit $ac_status); } &&
4192 { ac_try='test -s conftest.$ac_objext'
4193 { (eval echo "$as_me:4193: \"$ac_try\"") >&5
4196 echo "$as_me:4196: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 ac_lo=$ac_mid; break
4200 echo "$as_me: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4204 rm -f conftest.$ac_objext conftest.$ac_ext
4207 rm -f conftest.$ac_objext conftest.$ac_ext
4208 # Binary search between lo and hi bounds.
4209 while test "x$ac_lo" != "x$ac_hi"; do
4210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4211 cat >conftest.$ac_ext <<_ACEOF
4212 #line 4212 "configure"
4213 #include "confdefs.h"
4214 $ac_includes_default
4218 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:4224: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>&5
4227 echo "$as_me:4227: \$? = $ac_status" >&5
4228 (exit $ac_status); } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:4230: \"$ac_try\"") >&5
4233 echo "$as_me:4233: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4237 echo "$as_me: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4239 ac_lo=`expr $ac_mid + 1`
4241 rm -f conftest.$ac_objext conftest.$ac_ext
4243 ac_cv_sizeof_long=$ac_lo
4245 if test "$cross_compiling" = yes; then
4246 { { echo "$as_me:4246: error: cannot run test program while cross compiling" >&5
4247 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4248 { (exit 1); exit 1; }; }
4250 cat >conftest.$ac_ext <<_ACEOF
4251 #line 4251 "configure"
4252 #include "confdefs.h"
4253 $ac_includes_default
4257 FILE *f = fopen ("conftest.val", "w");
4260 fprintf (f, "%d", (sizeof (long)));
4266 rm -f conftest$ac_exeext
4267 if { (eval echo "$as_me:4267: \"$ac_link\"") >&5
4268 (eval $ac_link) 2>&5
4270 echo "$as_me:4270: \$? = $ac_status" >&5
4271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4272 { (eval echo "$as_me:4272: \"$ac_try\"") >&5
4275 echo "$as_me:4275: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 ac_cv_sizeof_long=`cat conftest.val`
4279 echo "$as_me: program exited with status $ac_status" >&5
4280 echo "$as_me: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4283 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4291 echo "$as_me:4291: result: $ac_cv_sizeof_long" >&5
4292 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4293 cat >>confdefs.h <<EOF
4294 #define SIZEOF_LONG $ac_cv_sizeof_long
4297 echo "$as_me:4297: checking for long long" >&5
4298 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4299 if test "${ac_cv_type_long_long+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 cat >conftest.$ac_ext <<_ACEOF
4303 #line 4303 "configure"
4304 #include "confdefs.h"
4305 $ac_includes_default
4309 if ((long long *) 0)
4311 if (sizeof (long long))
4317 rm -f conftest.$ac_objext
4318 if { (eval echo "$as_me:4318: \"$ac_compile\"") >&5
4319 (eval $ac_compile) 2>&5
4321 echo "$as_me:4321: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (eval echo "$as_me:4324: \"$ac_try\"") >&5
4327 echo "$as_me:4327: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_type_long_long=yes
4331 echo "$as_me: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4333 ac_cv_type_long_long=no
4335 rm -f conftest.$ac_objext conftest.$ac_ext
4337 echo "$as_me:4337: result: $ac_cv_type_long_long" >&5
4338 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4340 echo "$as_me:4340: checking size of long long" >&5
4341 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4342 if test "${ac_cv_sizeof_long_long+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 if test "$ac_cv_type_long_long" = yes; then
4346 if test "$cross_compiling" = yes; then
4347 # Depending upon the size, compute the lo and hi bounds.
4348 cat >conftest.$ac_ext <<_ACEOF
4349 #line 4349 "configure"
4350 #include "confdefs.h"
4351 $ac_includes_default
4355 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:4361: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>&5
4364 echo "$as_me:4364: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (eval echo "$as_me:4367: \"$ac_try\"") >&5
4370 echo "$as_me:4370: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4374 cat >conftest.$ac_ext <<_ACEOF
4375 #line 4375 "configure"
4376 #include "confdefs.h"
4377 $ac_includes_default
4381 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:4387: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4390 echo "$as_me:4390: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:4393: \"$ac_try\"") >&5
4396 echo "$as_me:4396: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_hi=$ac_mid; break
4400 echo "$as_me: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4402 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4404 rm -f conftest.$ac_objext conftest.$ac_ext
4407 echo "$as_me: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line 4412 "configure"
4413 #include "confdefs.h"
4414 $ac_includes_default
4418 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
4423 rm -f conftest.$ac_objext
4424 if { (eval echo "$as_me:4424: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>&5
4427 echo "$as_me:4427: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -s conftest.$ac_objext'
4430 { (eval echo "$as_me:4430: \"$ac_try\"") >&5
4433 echo "$as_me:4433: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_lo=$ac_mid; break
4437 echo "$as_me: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4441 rm -f conftest.$ac_objext conftest.$ac_ext
4444 rm -f conftest.$ac_objext conftest.$ac_ext
4445 # Binary search between lo and hi bounds.
4446 while test "x$ac_lo" != "x$ac_hi"; do
4447 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4448 cat >conftest.$ac_ext <<_ACEOF
4449 #line 4449 "configure"
4450 #include "confdefs.h"
4451 $ac_includes_default
4455 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:4461: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>&5
4464 echo "$as_me:4464: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:4467: \"$ac_try\"") >&5
4470 echo "$as_me:4470: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4474 echo "$as_me: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4476 ac_lo=`expr $ac_mid + 1`
4478 rm -f conftest.$ac_objext conftest.$ac_ext
4480 ac_cv_sizeof_long_long=$ac_lo
4482 if test "$cross_compiling" = yes; then
4483 { { echo "$as_me:4483: error: cannot run test program while cross compiling" >&5
4484 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4485 { (exit 1); exit 1; }; }
4487 cat >conftest.$ac_ext <<_ACEOF
4488 #line 4488 "configure"
4489 #include "confdefs.h"
4490 $ac_includes_default
4494 FILE *f = fopen ("conftest.val", "w");
4497 fprintf (f, "%d", (sizeof (long long)));
4503 rm -f conftest$ac_exeext
4504 if { (eval echo "$as_me:4504: \"$ac_link\"") >&5
4505 (eval $ac_link) 2>&5
4507 echo "$as_me:4507: \$? = $ac_status" >&5
4508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4509 { (eval echo "$as_me:4509: \"$ac_try\"") >&5
4512 echo "$as_me:4512: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 ac_cv_sizeof_long_long=`cat conftest.val`
4516 echo "$as_me: program exited with status $ac_status" >&5
4517 echo "$as_me: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4520 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4525 ac_cv_sizeof_long_long=0
4528 echo "$as_me:4528: result: $ac_cv_sizeof_long_long" >&5
4529 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4530 cat >>confdefs.h <<EOF
4531 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4534 echo "$as_me:4534: checking for size_t" >&5
4535 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4536 if test "${ac_cv_type_size_t+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line 4540 "configure"
4541 #include "confdefs.h"
4542 $ac_includes_default
4548 if (sizeof (size_t))
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:4555: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>&5
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try='test -s conftest.$ac_objext'
4561 { (eval echo "$as_me:4561: \"$ac_try\"") >&5
4564 echo "$as_me:4564: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 ac_cv_type_size_t=yes
4568 echo "$as_me: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4570 ac_cv_type_size_t=no
4572 rm -f conftest.$ac_objext conftest.$ac_ext
4574 echo "$as_me:4574: result: $ac_cv_type_size_t" >&5
4575 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4577 echo "$as_me:4577: checking size of size_t" >&5
4578 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
4579 if test "${ac_cv_sizeof_size_t+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 if test "$ac_cv_type_size_t" = yes; then
4583 if test "$cross_compiling" = yes; then
4584 # Depending upon the size, compute the lo and hi bounds.
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line 4586 "configure"
4587 #include "confdefs.h"
4588 $ac_includes_default
4592 int _array_ [1 - 2 * !((sizeof (size_t)) >= 0)]
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:4598: \"$ac_compile\"") >&5
4599 (eval $ac_compile) 2>&5
4601 echo "$as_me:4601: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:4604: \"$ac_try\"") >&5
4607 echo "$as_me:4607: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4611 cat >conftest.$ac_ext <<_ACEOF
4612 #line 4612 "configure"
4613 #include "confdefs.h"
4614 $ac_includes_default
4618 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
4623 rm -f conftest.$ac_objext
4624 if { (eval echo "$as_me:4624: \"$ac_compile\"") >&5
4625 (eval $ac_compile) 2>&5
4627 echo "$as_me:4627: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:4630: \"$ac_try\"") >&5
4633 echo "$as_me:4633: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 ac_hi=$ac_mid; break
4637 echo "$as_me: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4639 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4641 rm -f conftest.$ac_objext conftest.$ac_ext
4644 echo "$as_me: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4648 cat >conftest.$ac_ext <<_ACEOF
4649 #line 4649 "configure"
4650 #include "confdefs.h"
4651 $ac_includes_default
4655 int _array_ [1 - 2 * !((sizeof (size_t)) >= $ac_mid)]
4660 rm -f conftest.$ac_objext
4661 if { (eval echo "$as_me:4661: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>&5
4664 echo "$as_me:4664: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -s conftest.$ac_objext'
4667 { (eval echo "$as_me:4667: \"$ac_try\"") >&5
4670 echo "$as_me:4670: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 ac_lo=$ac_mid; break
4674 echo "$as_me: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4676 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4678 rm -f conftest.$ac_objext conftest.$ac_ext
4681 rm -f conftest.$ac_objext conftest.$ac_ext
4682 # Binary search between lo and hi bounds.
4683 while test "x$ac_lo" != "x$ac_hi"; do
4684 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4685 cat >conftest.$ac_ext <<_ACEOF
4686 #line 4686 "configure"
4687 #include "confdefs.h"
4688 $ac_includes_default
4692 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:4698: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>&5
4701 echo "$as_me:4701: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:4704: \"$ac_try\"") >&5
4707 echo "$as_me:4707: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4711 echo "$as_me: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 ac_lo=`expr $ac_mid + 1`
4715 rm -f conftest.$ac_objext conftest.$ac_ext
4717 ac_cv_sizeof_size_t=$ac_lo
4719 if test "$cross_compiling" = yes; then
4720 { { echo "$as_me:4720: error: cannot run test program while cross compiling" >&5
4721 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4722 { (exit 1); exit 1; }; }
4724 cat >conftest.$ac_ext <<_ACEOF
4725 #line 4725 "configure"
4726 #include "confdefs.h"
4727 $ac_includes_default
4731 FILE *f = fopen ("conftest.val", "w");
4734 fprintf (f, "%d", (sizeof (size_t)));
4740 rm -f conftest$ac_exeext
4741 if { (eval echo "$as_me:4741: \"$ac_link\"") >&5
4742 (eval $ac_link) 2>&5
4744 echo "$as_me:4744: \$? = $ac_status" >&5
4745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4746 { (eval echo "$as_me:4746: \"$ac_try\"") >&5
4749 echo "$as_me:4749: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 ac_cv_sizeof_size_t=`cat conftest.val`
4753 echo "$as_me: program exited with status $ac_status" >&5
4754 echo "$as_me: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4757 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4762 ac_cv_sizeof_size_t=0
4765 echo "$as_me:4765: result: $ac_cv_sizeof_size_t" >&5
4766 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
4767 cat >>confdefs.h <<EOF
4768 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
4771 for ac_func in strerror bcopy memmove
4773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4774 echo "$as_me:4774: checking for $ac_func" >&5
4775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_var+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line 4780 "configure"
4781 #include "confdefs.h"
4782 /* System header to define __stub macros and hopefully few prototypes,
4783 which can conflict with char $ac_func (); below. */
4785 /* Override any gcc2 internal prototype to avoid an error. */
4789 /* We use char because int might match the return type of a gcc2
4790 builtin and then its argument prototype would still apply. */
4797 /* The GNU C library defines this for functions which it implements
4798 to always fail with ENOSYS. Some functions are actually named
4799 something starting with __ and the normal name is an alias. */
4800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4810 rm -f conftest.$ac_objext conftest$ac_exeext
4811 if { (eval echo "$as_me:4811: \"$ac_link\"") >&5
4812 (eval $ac_link) 2>&5
4814 echo "$as_me:4814: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest$ac_exeext'
4817 { (eval echo "$as_me:4817: \"$ac_try\"") >&5
4820 echo "$as_me:4820: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 eval "$as_ac_var=yes"
4824 echo "$as_me: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4826 eval "$as_ac_var=no"
4828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4830 echo "$as_me:4830: result: `eval echo '${'$as_ac_var'}'`" >&5
4831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4832 if test `eval echo '${'$as_ac_var'}'` = yes; then
4833 cat >>confdefs.h <<EOF
4834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4840 echo "$as_me:4840: checking for pcre_compile in -lpcre" >&5
4841 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
4842 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 ac_check_lib_save_LIBS=$LIBS
4847 cat >conftest.$ac_ext <<_ACEOF
4848 #line 4848 "configure"
4849 #include "confdefs.h"
4851 /* Override any gcc2 internal prototype to avoid an error. */
4855 /* We use char because int might match the return type of a gcc2
4856 builtin and then its argument prototype would still apply. */
4857 char pcre_compile ();
4866 rm -f conftest.$ac_objext conftest$ac_exeext
4867 if { (eval echo "$as_me:4867: \"$ac_link\"") >&5
4868 (eval $ac_link) 2>&5
4870 echo "$as_me:4870: \$? = $ac_status" >&5
4871 (exit $ac_status); } &&
4872 { ac_try='test -s conftest$ac_exeext'
4873 { (eval echo "$as_me:4873: \"$ac_try\"") >&5
4876 echo "$as_me:4876: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 ac_cv_lib_pcre_pcre_compile=yes
4880 echo "$as_me: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4882 ac_cv_lib_pcre_pcre_compile=no
4884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4885 LIBS=$ac_check_lib_save_LIBS
4887 echo "$as_me:4887: result: $ac_cv_lib_pcre_pcre_compile" >&5
4888 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
4889 if test $ac_cv_lib_pcre_pcre_compile = yes; then
4890 echo "$as_me:4890: checking for pcre.h" >&5
4891 echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
4892 if test "${ac_cv_header_pcre_h+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 cat >conftest.$ac_ext <<_ACEOF
4896 #line 4896 "configure"
4897 #include "confdefs.h"
4900 if { (eval echo "$as_me:4900: \"$ac_cpp conftest.$ac_ext\"") >&5
4901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4903 egrep -v '^ *\+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 echo "$as_me:4906: \$? = $ac_status" >&5
4907 (exit $ac_status); } >/dev/null; then
4908 if test -s conftest.err; then
4909 ac_cpp_err=$ac_c_preproc_warn_flag
4916 if test -z "$ac_cpp_err"; then
4917 ac_cv_header_pcre_h=yes
4919 echo "$as_me: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4921 ac_cv_header_pcre_h=no
4923 rm -f conftest.err conftest.$ac_ext
4925 echo "$as_me:4925: result: $ac_cv_header_pcre_h" >&5
4926 echo "${ECHO_T}$ac_cv_header_pcre_h" >&6
4927 if test $ac_cv_header_pcre_h = yes; then
4937 echo "$as_me:4937: checking for regcomp in -lpcreposix" >&5
4938 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
4939 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 ac_check_lib_save_LIBS=$LIBS
4943 LIBS="-lpcreposix -lpcre $LIBS"
4944 cat >conftest.$ac_ext <<_ACEOF
4945 #line 4945 "configure"
4946 #include "confdefs.h"
4948 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4963 rm -f conftest.$ac_objext conftest$ac_exeext
4964 if { (eval echo "$as_me:4964: \"$ac_link\"") >&5
4965 (eval $ac_link) 2>&5
4967 echo "$as_me:4967: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -s conftest$ac_exeext'
4970 { (eval echo "$as_me:4970: \"$ac_try\"") >&5
4973 echo "$as_me:4973: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_lib_pcreposix_regcomp=yes
4977 echo "$as_me: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4979 ac_cv_lib_pcreposix_regcomp=no
4981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4982 LIBS=$ac_check_lib_save_LIBS
4984 echo "$as_me:4984: result: $ac_cv_lib_pcreposix_regcomp" >&5
4985 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
4986 if test $ac_cv_lib_pcreposix_regcomp = yes; then
4987 echo "$as_me:4987: checking for pcreposix.h" >&5
4988 echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6
4989 if test "${ac_cv_header_pcreposix_h+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 cat >conftest.$ac_ext <<_ACEOF
4993 #line 4993 "configure"
4994 #include "confdefs.h"
4995 #include <pcreposix.h>
4997 if { (eval echo "$as_me:4997: \"$ac_cpp conftest.$ac_ext\"") >&5
4998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5000 egrep -v '^ *\+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 echo "$as_me:5003: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null; then
5005 if test -s conftest.err; then
5006 ac_cpp_err=$ac_c_preproc_warn_flag
5013 if test -z "$ac_cpp_err"; then
5014 ac_cv_header_pcreposix_h=yes
5016 echo "$as_me: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5018 ac_cv_header_pcreposix_h=no
5020 rm -f conftest.err conftest.$ac_ext
5022 echo "$as_me:5022: result: $ac_cv_header_pcreposix_h" >&5
5023 echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6
5024 if test $ac_cv_header_pcreposix_h = yes; then
5034 echo "$as_me:5034: checking for pcrs_compile in -lpcrs" >&5
5035 echo $ECHO_N "checking for pcrs_compile in -lpcrs... $ECHO_C" >&6
5036 if test "${ac_cv_lib_pcrs_pcrs_compile+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 ac_check_lib_save_LIBS=$LIBS
5041 cat >conftest.$ac_ext <<_ACEOF
5042 #line 5042 "configure"
5043 #include "confdefs.h"
5045 /* Override any gcc2 internal prototype to avoid an error. */
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5051 char pcrs_compile ();
5060 rm -f conftest.$ac_objext conftest$ac_exeext
5061 if { (eval echo "$as_me:5061: \"$ac_link\"") >&5
5062 (eval $ac_link) 2>&5
5064 echo "$as_me:5064: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -s conftest$ac_exeext'
5067 { (eval echo "$as_me:5067: \"$ac_try\"") >&5
5070 echo "$as_me:5070: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 ac_cv_lib_pcrs_pcrs_compile=yes
5074 echo "$as_me: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5076 ac_cv_lib_pcrs_pcrs_compile=no
5078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5081 echo "$as_me:5081: result: $ac_cv_lib_pcrs_pcrs_compile" >&5
5082 echo "${ECHO_T}$ac_cv_lib_pcrs_pcrs_compile" >&6
5083 if test $ac_cv_lib_pcrs_pcrs_compile = yes; then
5084 echo "$as_me:5084: checking for pcrs.h" >&5
5085 echo $ECHO_N "checking for pcrs.h... $ECHO_C" >&6
5086 if test "${ac_cv_header_pcrs_h+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line 5090 "configure"
5091 #include "confdefs.h"
5094 if { (eval echo "$as_me:5094: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5097 egrep -v '^ *\+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 echo "$as_me:5100: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null; then
5102 if test -s conftest.err; then
5103 ac_cpp_err=$ac_c_preproc_warn_flag
5110 if test -z "$ac_cpp_err"; then
5111 ac_cv_header_pcrs_h=yes
5113 echo "$as_me: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 ac_cv_header_pcrs_h=no
5117 rm -f conftest.err conftest.$ac_ext
5119 echo "$as_me:5119: result: $ac_cv_header_pcrs_h" >&5
5120 echo "${ECHO_T}$ac_cv_header_pcrs_h" >&6
5121 if test $ac_cv_header_pcrs_h = yes; then
5131 cat >>confdefs.h <<\EOF
5135 # Check whether --enable-toggle or --disable-toggle was given.
5136 if test "${enable_toggle+set}" = set; then
5137 enableval="$enable_toggle"
5138 if test $enableval = yes; then
5139 cat >>confdefs.h <<\EOF
5140 #define FEATURE_TOGGLE 1
5145 cat >>confdefs.h <<\EOF
5146 #define FEATURE_TOGGLE 1
5151 # Check whether --enable-force or --disable-force was given.
5152 if test "${enable_force+set}" = set; then
5153 enableval="$enable_force"
5154 if test $enableval = yes; then
5155 cat >>confdefs.h <<\EOF
5156 #define FEATURE_FORCE_LOAD 1
5161 cat >>confdefs.h <<\EOF
5162 #define FEATURE_FORCE_LOAD 1
5167 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
5168 if test "${enable_fast_redirects+set}" = set; then
5169 enableval="$enable_fast_redirects"
5170 if test $enableval = yes; then
5171 cat >>confdefs.h <<\EOF
5172 #define FEATURE_FAST_REDIRECTS 1
5177 cat >>confdefs.h <<\EOF
5178 #define FEATURE_FAST_REDIRECTS 1
5183 # Check whether --enable-killpopup or --disable-killpopup was given.
5184 if test "${enable_killpopup+set}" = set; then
5185 enableval="$enable_killpopup"
5186 if test $enableval = yes; then
5187 cat >>confdefs.h <<\EOF
5188 #define FEATURE_KILL_POPUPS 1
5193 cat >>confdefs.h <<\EOF
5194 #define FEATURE_KILL_POPUPS 1
5199 # Check whether --enable-stats or --disable-stats was given.
5200 if test "${enable_stats+set}" = set; then
5201 enableval="$enable_stats"
5202 if test $enableval = yes; then
5203 cat >>confdefs.h <<\EOF
5204 #define FEATURE_STATISTICS 1
5209 cat >>confdefs.h <<\EOF
5210 #define FEATURE_STATISTICS 1
5215 # Check whether --enable-ie-images or --disable-ie-images was given.
5216 if test "${enable_ie_images+set}" = set; then
5217 enableval="$enable_ie_images"
5218 if test $enableval = yes; then
5219 cat >>confdefs.h <<\EOF
5220 #define FEATURE_IMAGE_DETECT_MSIE 1
5225 cat >>confdefs.h <<\EOF
5226 #define FEATURE_IMAGE_DETECT_MSIE 1
5231 # Check whether --enable-image-blocking or --disable-image-blocking was given.
5232 if test "${enable_image_blocking+set}" = set; then
5233 enableval="$enable_image_blocking"
5234 if test $enableval = yes; then
5235 cat >>confdefs.h <<\EOF
5236 #define FEATURE_IMAGE_BLOCKING 1
5241 cat >>confdefs.h <<\EOF
5242 #define FEATURE_IMAGE_BLOCKING 1
5247 # Check whether --enable-acl-files or --disable-acl-files was given.
5248 if test "${enable_acl_files+set}" = set; then
5249 enableval="$enable_acl_files"
5250 if test $enableval = yes; then
5251 cat >>confdefs.h <<\EOF
5252 #define FEATURE_ACL 1
5257 cat >>confdefs.h <<\EOF
5258 #define FEATURE_ACL 1
5263 # Check whether --enable-trust-files or --disable-trust-files was given.
5264 if test "${enable_trust_files+set}" = set; then
5265 enableval="$enable_trust_files"
5266 if test $enableval = yes; then
5267 cat >>confdefs.h <<\EOF
5268 #define FEATURE_TRUST 1
5273 cat >>confdefs.h <<\EOF
5274 #define FEATURE_TRUST 1
5279 # Check whether --enable-jar-files or --disable-jar-files was given.
5280 if test "${enable_jar_files+set}" = set; then
5281 enableval="$enable_jar_files"
5282 if test $enableval = yes; then
5283 cat >>confdefs.h <<\EOF
5284 #define FEATURE_COOKIE_JAR 1
5289 cat >>confdefs.h <<\EOF
5290 #define FEATURE_COOKIE_JAR 1
5295 # Check whether --enable-editor or --disable-editor was given.
5296 if test "${enable_editor+set}" = set; then
5297 enableval="$enable_editor"
5298 if test $enableval = yes; then
5299 cat >>confdefs.h <<\EOF
5300 #define FEATURE_CGI_EDIT_ACTIONS 1
5305 cat >>confdefs.h <<\EOF
5306 #define FEATURE_CGI_EDIT_ACTIONS 1
5311 # Check whether --enable-no-gifs or --disable-no-gifs was given.
5312 if test "${enable_no_gifs+set}" = set; then
5313 enableval="$enable_no_gifs"
5314 if test $enableval = yes; then
5315 cat >>confdefs.h <<\EOF
5316 #define FEATURE_NO_GIFS 1
5322 # Check whether --enable-regex-matching or --disable-regex-matching was given.
5323 if test "${enable_regex_matching+set}" = set; then
5324 enableval="$enable_regex_matching"
5325 regex_matching=$enableval
5330 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
5331 if test "${enable_dynamic_pcre+set}" = set; then
5332 enableval="$enable_dynamic_pcre"
5333 if test $enableval = "no"; then have_pcre=no; fi
5336 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
5337 if test "${enable_dynamic_pcrs+set}" = set; then
5338 enableval="$enable_dynamic_pcrs"
5339 if test $enableval = "no"; then have_pcrs=no; fi
5342 # Is the regex URL matching based on libpcreposix, but we
5343 # don't have that library?
5345 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
5346 dont_miss_pcreposix=yes
5348 dont_miss_pcreposix=no
5351 # If we have libpcre and either we also have pcreposix or
5352 # we don't need pcreposix, then link pcre dynamically; else
5353 # build it and link statically
5355 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
5356 echo "using libpcre"
5361 echo "using built-in static pcre"
5363 cat >>confdefs.h <<\EOF
5364 #define STATIC_PCRE 1
5370 # If we have libpcrs and pcre is linked dynamically
5371 # then also link pcrs dynamically, else build and link
5374 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
5375 echo "using libpcrs"
5379 echo "using built-in static pcrs"
5380 cat >>confdefs.h <<\EOF
5381 #define STATIC_PCRS 1
5387 # Which method should be used for URL matching?
5388 # pcre, gnu regex or prefix matching?
5390 if test $regex_matching = "gnu"; then
5391 echo "using gnu regex for URL matching"
5392 cat >>confdefs.h <<\EOF
5398 elif test $regex_matching = "pcre"; then
5399 echo "using pcre regex for URL matching"
5400 cat >>confdefs.h <<\EOF
5401 #define REGEX_PCRE 1
5406 if test $pcre_dyn = "yes"; then
5407 LIBS="$LIBS -lpcreposix"
5410 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
5415 CFLAGS=$old_CFLAGS_nospecial
5417 ac_config_files="$ac_config_files GNUmakefile"
5418 cat >confcache <<\_ACEOF
5419 # This file is a shell script that caches the results of configure
5420 # tests run on this system so they can be shared between configure
5421 # scripts and configure runs, see configure's option --config-cache.
5422 # It is not useful on other systems. If it contains results you don't
5423 # want to keep, you may remove or edit it.
5425 # config.status only pays attention to the cache file if you give it
5426 # the --recheck option to rerun configure.
5428 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5434 # The following way of writing the cache mishandles newlines in values,
5435 # but we know of no workaround that is simple, portable, and efficient.
5436 # So, don't put newlines in cache variables' values.
5437 # Ultrix sh set writes to stderr and can't be redirected directly,
5438 # and sets the high bit in the cache file unless we assign to the vars.
5441 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5443 # `set' does not quote correctly, so add quotes (double-quote
5444 # substitution turns \\\\ into \\, and sed turns \\ into \).
5447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5450 # `set' quotes correctly as required by POSIX, so do not add quotes.
5452 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5461 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5463 if cmp -s $cache_file confcache; then :; else
5464 if test -w $cache_file; then
5465 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5466 cat confcache >$cache_file
5468 echo "not updating unwritable cache $cache_file"
5473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5474 # Let make expand exec_prefix.
5475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5477 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5478 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5479 # trailing colons and then remove the whole line if VPATH becomes empty
5480 # (actually we leave an empty line to preserve line numbers).
5481 if test "x$srcdir" = x.; then
5482 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5483 s/:*\$(srcdir):*/:/;
5484 s/:*\${srcdir}:*/:/;
5486 s/^\([^=]*=[ ]*\):*/\1/;
5492 DEFS=-DHAVE_CONFIG_H
5494 : ${CONFIG_STATUS=./config.status}
5495 ac_clean_files_save=$ac_clean_files
5496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5497 { echo "$as_me:5497: creating $CONFIG_STATUS" >&5
5498 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5499 cat >$CONFIG_STATUS <<_ACEOF
5501 # Generated automatically by configure.
5502 # Run this file to recreate the current configuration.
5503 # Compiler output produced by configure, useful for debugging
5504 # configure, is in config.log if it exists.
5507 SHELL=\${CONFIG_SHELL-$SHELL}
5508 ac_cs_invocation="\$0 \$@"
5512 cat >>$CONFIG_STATUS <<\_ACEOF
5513 # Be Bourne compatible
5514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5517 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5521 # Name of the executable.
5522 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5524 if expr a : '\(a\)' >/dev/null 2>&1; then
5530 rm -f conf$$ conf$$.exe conf$$.file
5532 if ln -s conf$$.file conf$$ 2>/dev/null; then
5533 # We could just check for DJGPP; but this test a) works b) is more generic
5534 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5535 if test -f conf$$.exe; then
5536 # Don't use ln at all; we don't have any links
5541 elif ln conf$$.file conf$$ 2>/dev/null; then
5546 rm -f conf$$ conf$$.exe conf$$.file
5548 as_executable_p="test -f"
5550 # Support unset when possible.
5551 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5558 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5559 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5560 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5561 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5562 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5563 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5564 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5565 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5568 # We need space, tab and new line, in precisely that order.
5574 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5580 # Files that config.status was made for.
5581 if test -n "$ac_config_files"; then
5582 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5585 if test -n "$ac_config_headers"; then
5586 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5589 if test -n "$ac_config_links"; then
5590 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5593 if test -n "$ac_config_commands"; then
5594 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5597 cat >>$CONFIG_STATUS <<\EOF
5600 \`$as_me' instantiates files from templates according to the
5601 current configuration.
5603 Usage: $0 [OPTIONS] [FILE]...
5605 -h, --help print this help, then exit
5606 -V, --version print version number, then exit
5607 -d, --debug don't remove temporary files
5608 --recheck update $as_me by reconfiguring in the same conditions
5609 --file=FILE[:TEMPLATE]
5610 instantiate the configuration file FILE
5611 --header=FILE[:TEMPLATE]
5612 instantiate the configuration header FILE
5614 Configuration files:
5617 Configuration headers:
5620 Report bugs to <bug-autoconf@gnu.org>."
5623 cat >>$CONFIG_STATUS <<EOF
5626 configured by $0, generated by GNU Autoconf 2.52,
5627 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5629 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5630 Free Software Foundation, Inc.
5631 This config.status script is free software; the Free Software Foundation
5632 gives unlimited permission to copy, distribute and modify it."
5636 cat >>$CONFIG_STATUS <<\EOF
5637 # If no file are specified by the user, then we need to provide default
5638 # value. By we need to know if files were specified by the user.
5644 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5645 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5647 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5651 *) # This is not an option, so the user has probably given explicit
5653 ac_need_defaults=false;;
5657 # Handling of the options.
5659 cat >>$CONFIG_STATUS <<EOF
5660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5661 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5662 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5664 cat >>$CONFIG_STATUS <<\EOF
5665 --version | --vers* | -V )
5666 echo "$ac_cs_version"; exit 0 ;;
5668 # Conflict between --help and --header
5669 { { echo "$as_me:5669: error: ambiguous option: $1
5670 Try \`$0 --help' for more information." >&5
5671 echo "$as_me: error: ambiguous option: $1
5672 Try \`$0 --help' for more information." >&2;}
5673 { (exit 1); exit 1; }; };;
5674 --help | --hel | -h )
5675 echo "$ac_cs_usage"; exit 0 ;;
5676 --debug | --d* | -d )
5678 --file | --fil | --fi | --f )
5680 CONFIG_FILES="$CONFIG_FILES $1"
5681 ac_need_defaults=false;;
5682 --header | --heade | --head | --hea )
5684 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5685 ac_need_defaults=false;;
5688 -*) { { echo "$as_me:5688: error: unrecognized option: $1
5689 Try \`$0 --help' for more information." >&5
5690 echo "$as_me: error: unrecognized option: $1
5691 Try \`$0 --help' for more information." >&2;}
5692 { (exit 1); exit 1; }; } ;;
5694 *) ac_config_targets="$ac_config_targets $1" ;;
5703 ## ----------------------- ##
5704 ## Running config.status. ##
5705 ## ----------------------- ##
5707 This file was extended by $as_me 2.52, executed with
5708 CONFIG_FILES = $CONFIG_FILES
5709 CONFIG_HEADERS = $CONFIG_HEADERS
5710 CONFIG_LINKS = $CONFIG_LINKS
5711 CONFIG_COMMANDS = $CONFIG_COMMANDS
5713 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5718 cat >>$CONFIG_STATUS <<\EOF
5719 for ac_config_target in $ac_config_targets
5721 case "$ac_config_target" in
5722 # Handling of arguments.
5723 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
5724 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5725 *) { { echo "$as_me:5725: error: invalid argument: $ac_config_target" >&5
5726 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5727 { (exit 1); exit 1; }; };;
5731 # If the user did not use the arguments to specify the items to instantiate,
5732 # then the envvar interface is used. Set only those that are not.
5733 # We use the long form for the default assignment because of an extremely
5734 # bizarre bug on SunOS 4.1.3.
5735 if $ac_need_defaults; then
5736 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5737 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5740 # Create a temporary directory, and hook for its removal unless debugging.
5743 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5744 trap '{ (exit 1); exit 1; }' 1 2 13 15
5747 # Create a (secure) tmp directory for tmp files.
5750 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5751 test -n "$tmp" && test -d "$tmp"
5754 tmp=$TMPDIR/cs$$-$RANDOM
5755 (umask 077 && mkdir $tmp)
5758 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5759 { (exit 1); exit 1; }
5764 cat >>$CONFIG_STATUS <<EOF
5767 # CONFIG_FILES section.
5770 # No need to generate the scripts if there are no CONFIG_FILES.
5771 # This happens for instance when ./config.status config.h
5772 if test -n "\$CONFIG_FILES"; then
5773 # Protect against being on the right side of a sed subst in config.status.
5774 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5775 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5776 s,@SHELL@,$SHELL,;t t
5777 s,@exec_prefix@,$exec_prefix,;t t
5778 s,@prefix@,$prefix,;t t
5779 s,@program_transform_name@,$program_transform_name,;t t
5780 s,@bindir@,$bindir,;t t
5781 s,@sbindir@,$sbindir,;t t
5782 s,@libexecdir@,$libexecdir,;t t
5783 s,@datadir@,$datadir,;t t
5784 s,@sysconfdir@,$sysconfdir,;t t
5785 s,@sharedstatedir@,$sharedstatedir,;t t
5786 s,@localstatedir@,$localstatedir,;t t
5787 s,@libdir@,$libdir,;t t
5788 s,@includedir@,$includedir,;t t
5789 s,@oldincludedir@,$oldincludedir,;t t
5790 s,@infodir@,$infodir,;t t
5791 s,@mandir@,$mandir,;t t
5792 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5793 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5794 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5795 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5796 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5797 s,@build_alias@,$build_alias,;t t
5798 s,@host_alias@,$host_alias,;t t
5799 s,@target_alias@,$target_alias,;t t
5800 s,@ECHO_C@,$ECHO_C,;t t
5801 s,@ECHO_N@,$ECHO_N,;t t
5802 s,@ECHO_T@,$ECHO_T,;t t
5803 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5806 s,@build@,$build,;t t
5807 s,@build_cpu@,$build_cpu,;t t
5808 s,@build_vendor@,$build_vendor,;t t
5809 s,@build_os@,$build_os,;t t
5811 s,@host_cpu@,$host_cpu,;t t
5812 s,@host_vendor@,$host_vendor,;t t
5813 s,@host_os@,$host_os,;t t
5814 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
5815 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
5816 s,@VERSION_POINT@,$VERSION_POINT,;t t
5817 s,@CODE_STATUS@,$CODE_STATUS,;t t
5819 s,@CFLAGS@,$CFLAGS,;t t
5820 s,@LDFLAGS@,$LDFLAGS,;t t
5821 s,@CPPFLAGS@,$CPPFLAGS,;t t
5822 s,@ac_ct_CC@,$ac_ct_CC,;t t
5823 s,@EXEEXT@,$EXEEXT,;t t
5824 s,@OBJEXT@,$OBJEXT,;t t
5827 s,@WIN_ONLY@,$WIN_ONLY,;t t
5828 s,@WDUMP@,$WDUMP,;t t
5829 s,@DB2HTML@,$DB2HTML,;t t
5830 s,@RPMBIN@,$RPMBIN,;t t
5831 s,@RPM_BASE@,$RPM_BASE,;t t
5832 s,@JADEBIN@,$JADEBIN,;t t
5833 s,@DKPREFIX@,$DKPREFIX,;t t
5834 s,@PTHREAD_ONLY@,$PTHREAD_ONLY,;t t
5835 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
5836 s,@AMIGAOS_ONLY@,$AMIGAOS_ONLY,;t t
5837 s,@GNU_REGEX_ONLY@,$GNU_REGEX_ONLY,;t t
5838 s,@PCRE_REGEX_ONLY@,$PCRE_REGEX_ONLY,;t t
5839 s,@STATIC_PCRE_ONLY@,$STATIC_PCRE_ONLY,;t t
5840 s,@STATIC_PCRS_ONLY@,$STATIC_PCRS_ONLY,;t t
5841 s,@SPECIAL_CFLAGS@,$SPECIAL_CFLAGS,;t t
5842 s,@PTHREAD_LIB@,$PTHREAD_LIB,;t t
5847 cat >>$CONFIG_STATUS <<\EOF
5848 # Split the substitutions into bite-sized pieces for seds with
5849 # small command number limits, like on Digital OSF/1 and HP-UX.
5851 ac_sed_frag=1 # Number of current file.
5852 ac_beg=1 # First line for current file.
5853 ac_end=$ac_max_sed_lines # Line after last line for current file.
5856 while $ac_more_lines; do
5857 if test $ac_beg -gt 1; then
5858 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5860 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5862 if test ! -s $tmp/subs.frag; then
5865 # The purpose of the label and of the branching condition is to
5866 # speed up the sed processing (if there are no `@' at all, there
5867 # is no need to browse any of the substitutions).
5868 # These are the two extra sed commands mentioned above.
5870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5871 if test -z "$ac_sed_cmds"; then
5872 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5874 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5876 ac_sed_frag=`expr $ac_sed_frag + 1`
5878 ac_end=`expr $ac_end + $ac_max_sed_lines`
5881 if test -z "$ac_sed_cmds"; then
5884 fi # test -n "$CONFIG_FILES"
5887 cat >>$CONFIG_STATUS <<\EOF
5888 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5891 - | *:- | *:-:* ) # input from stdin
5893 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5895 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5897 * ) ac_file_in=$ac_file.in ;;
5900 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5901 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5902 X"$ac_file" : 'X\(//\)[^/]' \| \
5903 X"$ac_file" : 'X\(//\)$' \| \
5904 X"$ac_file" : 'X\(/\)' \| \
5905 . : '\(.\)' 2>/dev/null ||
5907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5909 /^X\(\/\/\)$/{ s//\1/; q; }
5910 /^X\(\/\).*/{ s//\1/; q; }
5912 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5914 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5918 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5919 case $as_mkdir_dir in
5920 # Skip DOS drivespec
5921 ?:) as_incr_dir=$as_mkdir_dir ;;
5923 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5924 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5929 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5930 # A "../" for each directory in $ac_dir_suffix.
5931 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5933 ac_dir_suffix= ac_dots=
5938 if test -z "$ac_dots"; then
5941 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5944 ac_srcdir=$srcdir$ac_dir_suffix;
5945 ac_top_srcdir=$srcdir ;;
5947 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5948 ac_top_srcdir=$ac_dots$srcdir ;;
5951 if test x"$ac_file" != x-; then
5952 { echo "$as_me:5952: creating $ac_file" >&5
5953 echo "$as_me: creating $ac_file" >&6;}
5956 # Let's still pretend it is `configure' which instantiates (i.e., don't
5957 # use $as_me), people would be surprised to read:
5958 # /* config.h. Generated automatically by config.status. */
5959 configure_input="Generated automatically from `echo $ac_file_in |
5960 sed 's,.*/,,'` by configure."
5962 # First look for the input files in the build tree, otherwise in the
5964 ac_file_inputs=`IFS=:
5965 for f in $ac_file_in; do
5967 -) echo $tmp/stdin ;;
5969 # Absolute (can't be DOS-style, as IFS=:)
5970 test -f "$f" || { { echo "$as_me:5970: error: cannot find input file: $f" >&5
5971 echo "$as_me: error: cannot find input file: $f" >&2;}
5972 { (exit 1); exit 1; }; }
5975 if test -f "$f"; then
5978 elif test -f "$srcdir/$f"; then
5983 { { echo "$as_me:5983: error: cannot find input file: $f" >&5
5984 echo "$as_me: error: cannot find input file: $f" >&2;}
5985 { (exit 1); exit 1; }; }
5988 done` || { (exit 1); exit 1; }
5990 cat >>$CONFIG_STATUS <<EOF
5994 cat >>$CONFIG_STATUS <<\EOF
5996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5997 s,@configure_input@,$configure_input,;t t
5998 s,@srcdir@,$ac_srcdir,;t t
5999 s,@top_srcdir@,$ac_top_srcdir,;t t
6000 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6002 if test x"$ac_file" != x-; then
6003 mv $tmp/out $ac_file
6011 cat >>$CONFIG_STATUS <<\EOF
6014 # CONFIG_HEADER section.
6017 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6018 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6020 # ac_d sets the value in "#define NAME VALUE" lines.
6021 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6022 ac_dB='[ ].*$,\1#\2'
6025 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6026 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6027 ac_uB='$,\1#\2define\3'
6031 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6034 - | *:- | *:-:* ) # input from stdin
6036 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6037 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6038 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6040 * ) ac_file_in=$ac_file.in ;;
6043 test x"$ac_file" != x- && { echo "$as_me:6043: creating $ac_file" >&5
6044 echo "$as_me: creating $ac_file" >&6;}
6046 # First look for the input files in the build tree, otherwise in the
6048 ac_file_inputs=`IFS=:
6049 for f in $ac_file_in; do
6051 -) echo $tmp/stdin ;;
6053 # Absolute (can't be DOS-style, as IFS=:)
6054 test -f "$f" || { { echo "$as_me:6054: error: cannot find input file: $f" >&5
6055 echo "$as_me: error: cannot find input file: $f" >&2;}
6056 { (exit 1); exit 1; }; }
6059 if test -f "$f"; then
6062 elif test -f "$srcdir/$f"; then
6067 { { echo "$as_me:6067: error: cannot find input file: $f" >&5
6068 echo "$as_me: error: cannot find input file: $f" >&2;}
6069 { (exit 1); exit 1; }; }
6072 done` || { (exit 1); exit 1; }
6073 # Remove the trailing spaces.
6074 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6078 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6079 # `conftest.undefs', that substitutes the proper values into
6080 # config.h.in to produce config.h. The first handles `#define'
6081 # templates, and the second `#undef' templates.
6082 # And first: Protect against being on the right side of a sed subst in
6083 # config.status. Protect against being in an unquoted here document
6085 rm -f conftest.defines conftest.undefs
6086 # Using a here document instead of a string reduces the quoting nightmare.
6087 # Putting comments in sed scripts is not portable.
6089 # `end' is used to avoid that the second main sed command (meant for
6090 # 0-ary CPP macros) applies to n-ary macro definitions.
6091 # See the Autoconf documentation for `clear'.
6092 cat >confdef2sed.sed <<\EOF
6097 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
6099 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6102 # If some macros were called several times there might be several times
6103 # the same #defines, which is useless. Nevertheless, we may not want to
6104 # sort them, since we want the *last* AC-DEFINE to be honored.
6105 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6106 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6107 rm -f confdef2sed.sed
6109 # This sed command replaces #undef with comments. This is necessary, for
6110 # example, in the case of _POSIX_SOURCE, which is predefined and required
6111 # on some systems where configure will not decide to define it.
6112 cat >>conftest.undefs <<\EOF
6113 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6116 # Break up conftest.defines because some shells have a limit on the size
6117 # of here documents, and old seds have small limits too (100 cmds).
6118 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6119 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6120 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6121 echo ' :' >>$CONFIG_STATUS
6123 while grep . conftest.defines >/dev/null
6125 # Write a limited-size here document to $tmp/defines.sed.
6126 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6127 # Speed up: don't consider the non `#define' lines.
6128 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6129 # Work around the forget-to-reset-the-flag bug.
6130 echo 't clr' >>$CONFIG_STATUS
6131 echo ': clr' >>$CONFIG_STATUS
6132 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6134 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6138 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6139 rm -f conftest.defines
6140 mv conftest.tail conftest.defines
6142 rm -f conftest.defines
6143 echo ' fi # egrep' >>$CONFIG_STATUS
6144 echo >>$CONFIG_STATUS
6146 # Break up conftest.undefs because some shells have a limit on the size
6147 # of here documents, and old seds have small limits too (100 cmds).
6148 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6150 while grep . conftest.undefs >/dev/null
6152 # Write a limited-size here document to $tmp/undefs.sed.
6153 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6154 # Speed up: don't consider the non `#undef'
6155 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6156 # Work around the forget-to-reset-the-flag bug.
6157 echo 't clr' >>$CONFIG_STATUS
6158 echo ': clr' >>$CONFIG_STATUS
6159 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6161 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6165 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6166 rm -f conftest.undefs
6167 mv conftest.tail conftest.undefs
6169 rm -f conftest.undefs
6171 cat >>$CONFIG_STATUS <<\EOF
6172 # Let's still pretend it is `configure' which instantiates (i.e., don't
6173 # use $as_me), people would be surprised to read:
6174 # /* config.h. Generated automatically by config.status. */
6175 if test x"$ac_file" = x-; then
6176 echo "/* Generated automatically by configure. */" >$tmp/config.h
6178 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
6180 cat $tmp/in >>$tmp/config.h
6182 if test x"$ac_file" != x-; then
6183 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6184 { echo "$as_me:6184: $ac_file is unchanged" >&5
6185 echo "$as_me: $ac_file is unchanged" >&6;}
6187 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6188 X"$ac_file" : 'X\(//\)[^/]' \| \
6189 X"$ac_file" : 'X\(//\)$' \| \
6190 X"$ac_file" : 'X\(/\)' \| \
6191 . : '\(.\)' 2>/dev/null ||
6193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6195 /^X\(\/\/\)$/{ s//\1/; q; }
6196 /^X\(\/\).*/{ s//\1/; q; }
6198 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6200 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6204 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6205 case $as_mkdir_dir in
6206 # Skip DOS drivespec
6207 ?:) as_incr_dir=$as_mkdir_dir ;;
6209 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6210 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6217 mv $tmp/config.h $ac_file
6226 cat >>$CONFIG_STATUS <<\EOF
6228 { (exit 0); exit 0; }
6230 chmod +x $CONFIG_STATUS
6231 ac_clean_files=$ac_clean_files_save
6233 # configure is writing to config.log, and then calls config.status.
6234 # config.status does its own redirection, appending to config.log.
6235 # Unfortunately, on DOS this fails, as config.log is still kept open
6236 # by configure, so config.status won't be able to write to it; its
6237 # output is simply discarded. So we exec the FD to /dev/null,
6238 # effectively closing config.log, so it can be properly (re)opened and
6239 # appended to by config.status. When coming back to configure, we
6240 # need to make the FD available again.
6241 if test "$no_create" != yes; then
6244 $SHELL $CONFIG_STATUS || ac_cs_success=false
6246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6247 # would make configure fail if this is the last instruction.
6248 $ac_cs_success || { (exit 1); exit 1; }