2 # From configure.in Revision: 1.22 .
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-regex-matching=pcre Use perl-compatible regex for actionsfile
689 pattern matching (default)
690 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
691 matching (-> bigger binary)
692 --disable-regex-matching Don't use regex matching, compare URL
693 prefix instead (won't shrink birary)
694 --disable-dynamic-pcre Use the built-in, static pcre, even if
696 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
702 --with-debug Enable debug mode
704 Some influential environment variables:
705 CC C compiler command
706 CFLAGS C compiler flags
707 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
708 nonstandard directory <lib dir>
709 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
710 headers in a nonstandard directory <include dir>
713 Use these variables to override the choices made by `configure' or to help
714 it to find libraries and programs with nonstandard names/locations.
719 if test "$ac_init_help" = "recursive"; then
720 # If there are subdirs, report their specific --help.
722 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
724 # A "../" for each directory in /$ac_subdir.
725 ac_dots=`echo $ac_subdir |
726 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
729 .) # No --srcdir option. We are building in place.
730 ac_sub_srcdir=$srcdir ;;
731 [\\/]* | ?:[\\/]* ) # Absolute path.
732 ac_sub_srcdir=$srcdir/$ac_subdir ;;
734 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
737 # Check for guested configure; otherwise get Cygnus style configure.
738 if test -f $ac_sub_srcdir/configure.gnu; then
740 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
741 elif test -f $ac_sub_srcdir/configure; then
743 $SHELL $ac_sub_srcdir/configure --help=recursive
744 elif test -f $ac_sub_srcdir/configure.ac ||
745 test -f $ac_sub_srcdir/configure.in; then
749 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
755 test -n "$ac_init_help" && exit 0
756 if $ac_init_version; then
759 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
760 Free Software Foundation, Inc.
761 This configure script is free software; the Free Software Foundation
762 gives unlimited permission to copy, distribute and modify it.
768 This file contains any messages produced by compilers while
769 running configure, to aid debugging if configure makes a mistake.
771 It was created by $as_me, which was
772 generated by GNU Autoconf 2.52. Invocation command line was
783 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
784 uname -m = `(uname -m) 2>/dev/null || echo unknown`
785 uname -r = `(uname -r) 2>/dev/null || echo unknown`
786 uname -s = `(uname -s) 2>/dev/null || echo unknown`
787 uname -v = `(uname -v) 2>/dev/null || echo unknown`
789 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
790 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
792 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
793 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
794 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
795 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
796 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
797 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
798 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
812 # Keep a trace of the command line.
813 # Strip out --no-create and --no-recursion so they do not pile up.
814 # Also quote any args containing shell meta-characters.
820 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821 | --no-cr | --no-c) ;;
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
825 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
826 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
828 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
831 # Get rid of the leading space.
834 # When interrupted or exit'd, cleanup temporary files, and complete
835 # config.log. We remove comments because anyway the quotes in there
836 # would cause problems or look ugly.
838 # Save into config.log some information that might help in debugging.
840 echo "## ----------------- ##" >&5
841 echo "## Cache variables. ##" >&5
842 echo "## ----------------- ##" >&5
844 # The following way of writing the cache mishandles newlines in values,
847 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
850 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
859 sed "/^$/d" confdefs.h >conftest.log
860 if test -s conftest.log; then
862 echo "## ------------ ##" >&5
863 echo "## confdefs.h. ##" >&5
864 echo "## ------------ ##" >&5
869 test "$ac_signal" != 0 &&
870 echo "$as_me: caught signal $ac_signal" >&5
871 echo "$as_me: exit $exit_status" >&5
872 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
875 for ac_signal in 1 2 13 15; do
876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
881 rm -rf conftest* confdefs.h
882 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
885 # Let the site file select an alternate cache file if it wants to.
886 # Prefer explicitly selected file to automatically selected ones.
887 if test -z "$CONFIG_SITE"; then
888 if test "x$prefix" != xNONE; then
889 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
891 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
894 for ac_site_file in $CONFIG_SITE; do
895 if test -r "$ac_site_file"; then
896 { echo "$as_me:896: loading site script $ac_site_file" >&5
897 echo "$as_me: loading site script $ac_site_file" >&6;}
898 cat "$ac_site_file" >&5
903 if test -r "$cache_file"; then
904 # Some versions of bash will fail to source /dev/null (special
905 # files actually), so we avoid doing that.
906 if test -f "$cache_file"; then
907 { echo "$as_me:907: loading cache $cache_file" >&5
908 echo "$as_me: loading cache $cache_file" >&6;}
910 [\\/]* | ?:[\\/]* ) . $cache_file;;
915 { echo "$as_me:915: creating cache $cache_file" >&5
916 echo "$as_me: creating cache $cache_file" >&6;}
920 # Check that the precious variables saved in the cache have kept the same
922 ac_cache_corrupted=false
923 for ac_var in `(set) 2>&1 |
924 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
926 eval ac_new_set=\$ac_env_${ac_var}_set
927 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
928 eval ac_new_val="\$ac_env_${ac_var}_value"
929 case $ac_old_set,$ac_new_set in
931 { echo "$as_me:931: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
935 { echo "$as_me:935: error: \`$ac_var' was not set in the previous run" >&5
936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
937 ac_cache_corrupted=: ;;
940 if test "x$ac_old_val" != "x$ac_new_val"; then
941 { echo "$as_me:941: error: \`$ac_var' has changed since the previous run:" >&5
942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
943 { echo "$as_me:943: former value: $ac_old_val" >&5
944 echo "$as_me: former value: $ac_old_val" >&2;}
945 { echo "$as_me:945: current value: $ac_new_val" >&5
946 echo "$as_me: current value: $ac_new_val" >&2;}
950 # Pass precious variables to config.status. It doesn't matter if
951 # we pass some twice (in addition to the command line arguments).
952 if test "$ac_new_set" = set; then
954 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
956 ac_configure_args="$ac_configure_args '$ac_arg'"
958 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
963 if $ac_cache_corrupted; then
964 { echo "$as_me:964: error: changes in the environment can compromise the build" >&5
965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
966 { { echo "$as_me:966: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
968 { (exit 1); exit 1; }; }
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C='
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers config.h"
1001 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1002 if test -f $ac_dir/install-sh; then
1004 ac_install_sh="$ac_aux_dir/install-sh -c"
1006 elif test -f $ac_dir/install.sh; then
1008 ac_install_sh="$ac_aux_dir/install.sh -c"
1010 elif test -f $ac_dir/shtool; then
1012 ac_install_sh="$ac_aux_dir/shtool install -c"
1016 if test -z "$ac_aux_dir"; then
1017 { { echo "$as_me:1017: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1018 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1019 { (exit 1); exit 1; }; }
1021 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1022 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1023 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1025 # Make sure we can run config.sub.
1026 $ac_config_sub sun4 >/dev/null 2>&1 ||
1027 { { echo "$as_me:1027: error: cannot run $ac_config_sub" >&5
1028 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1029 { (exit 1); exit 1; }; }
1031 echo "$as_me:1031: checking build system type" >&5
1032 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1033 if test "${ac_cv_build+set}" = set; then
1034 echo $ECHO_N "(cached) $ECHO_C" >&6
1036 ac_cv_build_alias=$build_alias
1037 test -z "$ac_cv_build_alias" &&
1038 ac_cv_build_alias=`$ac_config_guess`
1039 test -z "$ac_cv_build_alias" &&
1040 { { echo "$as_me:1040: error: cannot guess build type; you must specify one" >&5
1041 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1042 { (exit 1); exit 1; }; }
1043 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1044 { { echo "$as_me:1044: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1045 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1046 { (exit 1); exit 1; }; }
1049 echo "$as_me:1049: result: $ac_cv_build" >&5
1050 echo "${ECHO_T}$ac_cv_build" >&6
1052 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$as_me:1056: checking host system type" >&5
1057 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1058 if test "${ac_cv_host+set}" = set; then
1059 echo $ECHO_N "(cached) $ECHO_C" >&6
1061 ac_cv_host_alias=$host_alias
1062 test -z "$ac_cv_host_alias" &&
1063 ac_cv_host_alias=$ac_cv_build_alias
1064 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1065 { { echo "$as_me:1065: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1066 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1067 { (exit 1); exit 1; }; }
1070 echo "$as_me:1070: result: $ac_cv_host" >&5
1071 echo "${ECHO_T}$ac_cv_host" >&6
1073 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1080 CODE_STATUS="\"beta\""
1082 cat >>confdefs.h <<EOF
1083 #define VERSION_MAJOR ${VERSION_MAJOR}
1086 cat >>confdefs.h <<EOF
1087 #define VERSION_MINOR ${VERSION_MINOR}
1090 cat >>confdefs.h <<EOF
1091 #define VERSION_POINT ${VERSION_POINT}
1094 cat >>confdefs.h <<EOF
1095 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
1098 cat >>confdefs.h <<EOF
1099 #define CODE_STATUS ${CODE_STATUS}
1103 ac_cpp='$CPP $CPPFLAGS'
1104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1107 if test -n "$ac_tool_prefix"; then
1108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1110 echo "$as_me:1110: checking for $ac_word" >&5
1111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1112 if test "${ac_cv_prog_CC+set}" = set; then
1113 echo $ECHO_N "(cached) $ECHO_C" >&6
1115 if test -n "$CC"; then
1116 ac_cv_prog_CC="$CC" # Let the user override the test.
1118 ac_save_IFS=$IFS; IFS=$ac_path_separator
1120 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 $as_executable_p "$ac_dir/$ac_word" || continue
1124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1125 echo "$as_me:1125: found $ac_dir/$ac_word" >&5
1132 if test -n "$CC"; then
1133 echo "$as_me:1133: result: $CC" >&5
1134 echo "${ECHO_T}$CC" >&6
1136 echo "$as_me:1136: result: no" >&5
1137 echo "${ECHO_T}no" >&6
1141 if test -z "$ac_cv_prog_CC"; then
1143 # Extract the first word of "gcc", so it can be a program name with args.
1144 set dummy gcc; ac_word=$2
1145 echo "$as_me:1145: checking for $ac_word" >&5
1146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1147 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1148 echo $ECHO_N "(cached) $ECHO_C" >&6
1150 if test -n "$ac_ct_CC"; then
1151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1153 ac_save_IFS=$IFS; IFS=$ac_path_separator
1155 for ac_dir in $ac_dummy; do
1157 test -z "$ac_dir" && ac_dir=.
1158 $as_executable_p "$ac_dir/$ac_word" || continue
1159 ac_cv_prog_ac_ct_CC="gcc"
1160 echo "$as_me:1160: found $ac_dir/$ac_word" >&5
1166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1167 if test -n "$ac_ct_CC"; then
1168 echo "$as_me:1168: result: $ac_ct_CC" >&5
1169 echo "${ECHO_T}$ac_ct_CC" >&6
1171 echo "$as_me:1171: result: no" >&5
1172 echo "${ECHO_T}no" >&6
1180 if test -z "$CC"; then
1181 if test -n "$ac_tool_prefix"; then
1182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1183 set dummy ${ac_tool_prefix}cc; ac_word=$2
1184 echo "$as_me:1184: checking for $ac_word" >&5
1185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1186 if test "${ac_cv_prog_CC+set}" = set; then
1187 echo $ECHO_N "(cached) $ECHO_C" >&6
1189 if test -n "$CC"; then
1190 ac_cv_prog_CC="$CC" # Let the user override the test.
1192 ac_save_IFS=$IFS; IFS=$ac_path_separator
1194 for ac_dir in $ac_dummy; do
1196 test -z "$ac_dir" && ac_dir=.
1197 $as_executable_p "$ac_dir/$ac_word" || continue
1198 ac_cv_prog_CC="${ac_tool_prefix}cc"
1199 echo "$as_me:1199: found $ac_dir/$ac_word" >&5
1206 if test -n "$CC"; then
1207 echo "$as_me:1207: result: $CC" >&5
1208 echo "${ECHO_T}$CC" >&6
1210 echo "$as_me:1210: result: no" >&5
1211 echo "${ECHO_T}no" >&6
1215 if test -z "$ac_cv_prog_CC"; then
1217 # Extract the first word of "cc", so it can be a program name with args.
1218 set dummy cc; ac_word=$2
1219 echo "$as_me:1219: checking for $ac_word" >&5
1220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1222 echo $ECHO_N "(cached) $ECHO_C" >&6
1224 if test -n "$ac_ct_CC"; then
1225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1227 ac_save_IFS=$IFS; IFS=$ac_path_separator
1229 for ac_dir in $ac_dummy; do
1231 test -z "$ac_dir" && ac_dir=.
1232 $as_executable_p "$ac_dir/$ac_word" || continue
1233 ac_cv_prog_ac_ct_CC="cc"
1234 echo "$as_me:1234: found $ac_dir/$ac_word" >&5
1240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1241 if test -n "$ac_ct_CC"; then
1242 echo "$as_me:1242: result: $ac_ct_CC" >&5
1243 echo "${ECHO_T}$ac_ct_CC" >&6
1245 echo "$as_me:1245: result: no" >&5
1246 echo "${ECHO_T}no" >&6
1255 if test -z "$CC"; then
1256 # Extract the first word of "cc", so it can be a program name with args.
1257 set dummy cc; ac_word=$2
1258 echo "$as_me:1258: checking for $ac_word" >&5
1259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1260 if test "${ac_cv_prog_CC+set}" = set; then
1261 echo $ECHO_N "(cached) $ECHO_C" >&6
1263 if test -n "$CC"; then
1264 ac_cv_prog_CC="$CC" # Let the user override the test.
1267 ac_save_IFS=$IFS; IFS=$ac_path_separator
1269 for ac_dir in $ac_dummy; do
1271 test -z "$ac_dir" && ac_dir=.
1272 $as_executable_p "$ac_dir/$ac_word" || continue
1273 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1274 ac_prog_rejected=yes
1278 echo "$as_me:1278: found $ac_dir/$ac_word" >&5
1282 if test $ac_prog_rejected = yes; then
1283 # We found a bogon in the path, so make sure we never use it.
1284 set dummy $ac_cv_prog_CC
1286 if test $# != 0; then
1287 # We chose a different compiler from the bogus one.
1288 # However, it has the same basename, so the bogon will be chosen
1289 # first if we set CC to just the basename; use the full file name.
1291 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1299 if test -n "$CC"; then
1300 echo "$as_me:1300: result: $CC" >&5
1301 echo "${ECHO_T}$CC" >&6
1303 echo "$as_me:1303: result: no" >&5
1304 echo "${ECHO_T}no" >&6
1308 if test -z "$CC"; then
1309 if test -n "$ac_tool_prefix"; then
1312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1314 echo "$as_me:1314: checking for $ac_word" >&5
1315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1316 if test "${ac_cv_prog_CC+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 if test -n "$CC"; then
1320 ac_cv_prog_CC="$CC" # Let the user override the test.
1322 ac_save_IFS=$IFS; IFS=$ac_path_separator
1324 for ac_dir in $ac_dummy; do
1326 test -z "$ac_dir" && ac_dir=.
1327 $as_executable_p "$ac_dir/$ac_word" || continue
1328 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1329 echo "$as_me:1329: found $ac_dir/$ac_word" >&5
1336 if test -n "$CC"; then
1337 echo "$as_me:1337: result: $CC" >&5
1338 echo "${ECHO_T}$CC" >&6
1340 echo "$as_me:1340: result: no" >&5
1341 echo "${ECHO_T}no" >&6
1344 test -n "$CC" && break
1347 if test -z "$CC"; then
1351 # Extract the first word of "$ac_prog", so it can be a program name with args.
1352 set dummy $ac_prog; ac_word=$2
1353 echo "$as_me:1353: checking for $ac_word" >&5
1354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 if test -n "$ac_ct_CC"; then
1359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1361 ac_save_IFS=$IFS; IFS=$ac_path_separator
1363 for ac_dir in $ac_dummy; do
1365 test -z "$ac_dir" && ac_dir=.
1366 $as_executable_p "$ac_dir/$ac_word" || continue
1367 ac_cv_prog_ac_ct_CC="$ac_prog"
1368 echo "$as_me:1368: found $ac_dir/$ac_word" >&5
1374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1375 if test -n "$ac_ct_CC"; then
1376 echo "$as_me:1376: result: $ac_ct_CC" >&5
1377 echo "${ECHO_T}$ac_ct_CC" >&6
1379 echo "$as_me:1379: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1383 test -n "$ac_ct_CC" && break
1391 test -z "$CC" && { { echo "$as_me:1391: error: no acceptable cc found in \$PATH" >&5
1392 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1393 { (exit 1); exit 1; }; }
1395 # Provide some information about the compiler.
1396 echo "$as_me:1396:" \
1397 "checking for C compiler version" >&5
1398 ac_compiler=`set X $ac_compile; echo $2`
1399 { (eval echo "$as_me:1399: \"$ac_compiler --version </dev/null >&5\"") >&5
1400 (eval $ac_compiler --version </dev/null >&5) 2>&5
1402 echo "$as_me:1402: \$? = $ac_status" >&5
1403 (exit $ac_status); }
1404 { (eval echo "$as_me:1404: \"$ac_compiler -v </dev/null >&5\"") >&5
1405 (eval $ac_compiler -v </dev/null >&5) 2>&5
1407 echo "$as_me:1407: \$? = $ac_status" >&5
1408 (exit $ac_status); }
1409 { (eval echo "$as_me:1409: \"$ac_compiler -V </dev/null >&5\"") >&5
1410 (eval $ac_compiler -V </dev/null >&5) 2>&5
1412 echo "$as_me:1412: \$? = $ac_status" >&5
1413 (exit $ac_status); }
1415 cat >conftest.$ac_ext <<_ACEOF
1416 #line 1416 "configure"
1417 #include "confdefs.h"
1427 ac_clean_files_save=$ac_clean_files
1428 ac_clean_files="$ac_clean_files a.out a.exe"
1429 # Try to create an executable without -o first, disregard a.out.
1430 # It will help us diagnose broken compilers, and finding out an intuition
1432 echo "$as_me:1432: checking for C compiler default output" >&5
1433 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1434 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1435 if { (eval echo "$as_me:1435: \"$ac_link_default\"") >&5
1436 (eval $ac_link_default) 2>&5
1438 echo "$as_me:1438: \$? = $ac_status" >&5
1439 (exit $ac_status); }; then
1440 # Find the output, starting from the most likely. This scheme is
1441 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1443 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1444 ls a.out conftest 2>/dev/null;
1445 ls a.* conftest.* 2>/dev/null`; do
1447 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1448 a.out ) # We found the default executable, but exeext='' is most
1451 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1452 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1459 echo "$as_me: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1461 { { echo "$as_me:1461: error: C compiler cannot create executables" >&5
1462 echo "$as_me: error: C compiler cannot create executables" >&2;}
1463 { (exit 77); exit 77; }; }
1466 ac_exeext=$ac_cv_exeext
1467 echo "$as_me:1467: result: $ac_file" >&5
1468 echo "${ECHO_T}$ac_file" >&6
1470 # Check the compiler produces executables we can run. If not, either
1471 # the compiler is broken, or we cross compile.
1472 echo "$as_me:1472: checking whether the C compiler works" >&5
1473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1475 # If not cross compiling, check that we can run a simple program.
1476 if test "$cross_compiling" != yes; then
1477 if { ac_try='./$ac_file'
1478 { (eval echo "$as_me:1478: \"$ac_try\"") >&5
1481 echo "$as_me:1481: \$? = $ac_status" >&5
1482 (exit $ac_status); }; }; then
1485 if test "$cross_compiling" = maybe; then
1488 { { echo "$as_me:1488: error: cannot run C compiled programs.
1489 If you meant to cross compile, use \`--host'." >&5
1490 echo "$as_me: error: cannot run C compiled programs.
1491 If you meant to cross compile, use \`--host'." >&2;}
1492 { (exit 1); exit 1; }; }
1496 echo "$as_me:1496: result: yes" >&5
1497 echo "${ECHO_T}yes" >&6
1499 rm -f a.out a.exe conftest$ac_cv_exeext
1500 ac_clean_files=$ac_clean_files_save
1501 # Check the compiler produces executables we can run. If not, either
1502 # the compiler is broken, or we cross compile.
1503 echo "$as_me:1503: checking whether we are cross compiling" >&5
1504 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1505 echo "$as_me:1505: result: $cross_compiling" >&5
1506 echo "${ECHO_T}$cross_compiling" >&6
1508 echo "$as_me:1508: checking for executable suffix" >&5
1509 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1510 if { (eval echo "$as_me:1510: \"$ac_link\"") >&5
1511 (eval $ac_link) 2>&5
1513 echo "$as_me:1513: \$? = $ac_status" >&5
1514 (exit $ac_status); }; then
1515 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1516 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1517 # work properly (i.e., refer to `conftest.exe'), while it won't with
1519 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1521 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1529 { { echo "$as_me:1529: error: cannot compute EXEEXT: cannot compile and link" >&5
1530 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1531 { (exit 1); exit 1; }; }
1534 rm -f conftest$ac_cv_exeext
1535 echo "$as_me:1535: result: $ac_cv_exeext" >&5
1536 echo "${ECHO_T}$ac_cv_exeext" >&6
1538 rm -f conftest.$ac_ext
1539 EXEEXT=$ac_cv_exeext
1541 echo "$as_me:1541: checking for object suffix" >&5
1542 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1543 if test "${ac_cv_objext+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 cat >conftest.$ac_ext <<_ACEOF
1547 #line 1547 "configure"
1548 #include "confdefs.h"
1558 rm -f conftest.o conftest.obj
1559 if { (eval echo "$as_me:1559: \"$ac_compile\"") >&5
1560 (eval $ac_compile) 2>&5
1562 echo "$as_me:1562: \$? = $ac_status" >&5
1563 (exit $ac_status); }; then
1564 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1572 echo "$as_me: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 { { echo "$as_me:1574: error: cannot compute OBJEXT: cannot compile" >&5
1575 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1576 { (exit 1); exit 1; }; }
1579 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1581 echo "$as_me:1581: result: $ac_cv_objext" >&5
1582 echo "${ECHO_T}$ac_cv_objext" >&6
1583 OBJEXT=$ac_cv_objext
1585 echo "$as_me:1585: checking whether we are using the GNU C compiler" >&5
1586 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1587 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 cat >conftest.$ac_ext <<_ACEOF
1591 #line 1591 "configure"
1592 #include "confdefs.h"
1605 rm -f conftest.$ac_objext
1606 if { (eval echo "$as_me:1606: \"$ac_compile\"") >&5
1607 (eval $ac_compile) 2>&5
1609 echo "$as_me:1609: \$? = $ac_status" >&5
1610 (exit $ac_status); } &&
1611 { ac_try='test -s conftest.$ac_objext'
1612 { (eval echo "$as_me:1612: \"$ac_try\"") >&5
1615 echo "$as_me:1615: \$? = $ac_status" >&5
1616 (exit $ac_status); }; }; then
1619 echo "$as_me: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1623 rm -f conftest.$ac_objext conftest.$ac_ext
1624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1627 echo "$as_me:1627: result: $ac_cv_c_compiler_gnu" >&5
1628 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1629 GCC=`test $ac_compiler_gnu = yes && echo yes`
1630 ac_test_CFLAGS=${CFLAGS+set}
1631 ac_save_CFLAGS=$CFLAGS
1633 echo "$as_me:1633: checking whether $CC accepts -g" >&5
1634 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1635 if test "${ac_cv_prog_cc_g+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 cat >conftest.$ac_ext <<_ACEOF
1639 #line 1639 "configure"
1640 #include "confdefs.h"
1650 rm -f conftest.$ac_objext
1651 if { (eval echo "$as_me:1651: \"$ac_compile\"") >&5
1652 (eval $ac_compile) 2>&5
1654 echo "$as_me:1654: \$? = $ac_status" >&5
1655 (exit $ac_status); } &&
1656 { ac_try='test -s conftest.$ac_objext'
1657 { (eval echo "$as_me:1657: \"$ac_try\"") >&5
1660 echo "$as_me:1660: \$? = $ac_status" >&5
1661 (exit $ac_status); }; }; then
1664 echo "$as_me: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1668 rm -f conftest.$ac_objext conftest.$ac_ext
1670 echo "$as_me:1670: result: $ac_cv_prog_cc_g" >&5
1671 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1672 if test "$ac_test_CFLAGS" = set; then
1673 CFLAGS=$ac_save_CFLAGS
1674 elif test $ac_cv_prog_cc_g = yes; then
1675 if test "$GCC" = yes; then
1681 if test "$GCC" = yes; then
1687 # Some people use a C++ compiler to compile C. Since we use `exit',
1688 # in C++ we need to declare it. In case someone uses the same compiler
1689 # for both compiling C and C++ we need to have the C++ compiler decide
1690 # the declaration of exit, since it's the most demanding environment.
1691 cat >conftest.$ac_ext <<_ACEOF
1696 rm -f conftest.$ac_objext
1697 if { (eval echo "$as_me:1697: \"$ac_compile\"") >&5
1698 (eval $ac_compile) 2>&5
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); } &&
1702 { ac_try='test -s conftest.$ac_objext'
1703 { (eval echo "$as_me:1703: \"$ac_try\"") >&5
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); }; }; then
1708 for ac_declaration in \
1710 '#include <stdlib.h>' \
1711 'extern "C" void std::exit (int) throw (); using std::exit;' \
1712 'extern "C" void std::exit (int); using std::exit;' \
1713 'extern "C" void exit (int) throw ();' \
1714 'extern "C" void exit (int);' \
1717 cat >conftest.$ac_ext <<_ACEOF
1718 #line 1718 "configure"
1719 #include "confdefs.h"
1730 rm -f conftest.$ac_objext
1731 if { (eval echo "$as_me:1731: \"$ac_compile\"") >&5
1732 (eval $ac_compile) 2>&5
1734 echo "$as_me:1734: \$? = $ac_status" >&5
1735 (exit $ac_status); } &&
1736 { ac_try='test -s conftest.$ac_objext'
1737 { (eval echo "$as_me:1737: \"$ac_try\"") >&5
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); }; }; then
1744 echo "$as_me: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1748 rm -f conftest.$ac_objext conftest.$ac_ext
1749 cat >conftest.$ac_ext <<_ACEOF
1750 #line 1750 "configure"
1751 #include "confdefs.h"
1761 rm -f conftest.$ac_objext
1762 if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); } &&
1767 { ac_try='test -s conftest.$ac_objext'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1775 echo "$as_me: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1778 rm -f conftest.$ac_objext conftest.$ac_ext
1781 if test -n "$ac_declaration"; then
1782 echo '#ifdef __cplusplus' >>confdefs.h
1783 echo $ac_declaration >>confdefs.h
1784 echo '#endif' >>confdefs.h
1788 echo "$as_me: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 rm -f conftest.$ac_objext conftest.$ac_ext
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 echo "$as_me:1803: checking how to run the C preprocessor" >&5
1804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1805 # On Suns, sometimes $CPP names a directory.
1806 if test -n "$CPP" && test -d "$CPP"; then
1809 if test -z "$CPP"; then
1810 if test "${ac_cv_prog_CPP+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 # Double quotes because CPP needs to be expanded
1814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1817 for ac_c_preproc_warn_flag in '' yes
1819 # Use a header file that comes with gcc, so configuring glibc
1820 # with a fresh cross-compiler works.
1821 # On the NeXT, cc -E runs the code through the compiler's parser,
1822 # not just through cpp. "Syntax error" is here to catch this case.
1823 cat >conftest.$ac_ext <<_ACEOF
1824 #line 1824 "configure"
1825 #include "confdefs.h"
1829 if { (eval echo "$as_me:1829: \"$ac_cpp conftest.$ac_ext\"") >&5
1830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1832 egrep -v '^ *\+' conftest.er1 >conftest.err
1834 cat conftest.err >&5
1835 echo "$as_me:1835: \$? = $ac_status" >&5
1836 (exit $ac_status); } >/dev/null; then
1837 if test -s conftest.err; then
1838 ac_cpp_err=$ac_c_preproc_warn_flag
1845 if test -z "$ac_cpp_err"; then
1848 echo "$as_me: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1850 # Broken: fails on valid input.
1853 rm -f conftest.err conftest.$ac_ext
1855 # OK, works on sane cases. Now check whether non-existent headers
1856 # can be detected and how.
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line 1858 "configure"
1859 #include "confdefs.h"
1860 #include <ac_nonexistent.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
1879 # Broken: success on invalid input.
1882 echo "$as_me: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1884 # Passes both tests.
1888 rm -f conftest.err conftest.$ac_ext
1891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1892 rm -f conftest.err conftest.$ac_ext
1893 if $ac_preproc_ok; then
1905 echo "$as_me:1905: result: $CPP" >&5
1906 echo "${ECHO_T}$CPP" >&6
1908 for ac_c_preproc_warn_flag in '' yes
1910 # Use a header file that comes with gcc, so configuring glibc
1911 # with a fresh cross-compiler works.
1912 # On the NeXT, cc -E runs the code through the compiler's parser,
1913 # not just through cpp. "Syntax error" is here to catch this case.
1914 cat >conftest.$ac_ext <<_ACEOF
1915 #line 1915 "configure"
1916 #include "confdefs.h"
1920 if { (eval echo "$as_me:1920: \"$ac_cpp conftest.$ac_ext\"") >&5
1921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1923 egrep -v '^ *\+' conftest.er1 >conftest.err
1925 cat conftest.err >&5
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); } >/dev/null; then
1928 if test -s conftest.err; then
1929 ac_cpp_err=$ac_c_preproc_warn_flag
1936 if test -z "$ac_cpp_err"; then
1939 echo "$as_me: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941 # Broken: fails on valid input.
1944 rm -f conftest.err conftest.$ac_ext
1946 # OK, works on sane cases. Now check whether non-existent headers
1947 # can be detected and how.
1948 cat >conftest.$ac_ext <<_ACEOF
1949 #line 1949 "configure"
1950 #include "confdefs.h"
1951 #include <ac_nonexistent.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
1970 # Broken: success on invalid input.
1973 echo "$as_me: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1975 # Passes both tests.
1979 rm -f conftest.err conftest.$ac_ext
1982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1983 rm -f conftest.err conftest.$ac_ext
1984 if $ac_preproc_ok; then
1987 { { echo "$as_me:1987: error: C preprocessor \"$CPP\" fails sanity check" >&5
1988 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1989 { (exit 1); exit 1; }; }
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 # Extract the first word of "gdb", so it can be a program name with args.
1999 set dummy gdb; ac_word=$2
2000 echo "$as_me:2000: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_GDB+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 if test -n "$GDB"; then
2006 ac_cv_prog_GDB="$GDB" # Let the user override the test.
2008 ac_save_IFS=$IFS; IFS=$ac_path_separator
2010 for ac_dir in $ac_dummy; do
2012 test -z "$ac_dir" && ac_dir=.
2013 $as_executable_p "$ac_dir/$ac_word" || continue
2014 ac_cv_prog_GDB="yes"
2015 echo "$as_me:2015: found $ac_dir/$ac_word" >&5
2019 test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
2023 if test -n "$GDB"; then
2024 echo "$as_me:2024: result: $GDB" >&5
2025 echo "${ECHO_T}$GDB" >&6
2027 echo "$as_me:2027: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2031 # Check whether --with-debug or --without-debug was given.
2032 if test "${with_debug+set}" = set; then
2033 withval="$with_debug"
2035 if test "x$withval" != "$xno" ; then
2036 if test $ac_cv_prog_cc_g = yes; then
2037 if test "$GCC" = yes; then
2038 if test "$GDB"; then
2043 CFLAGS="$CFLAGS -Wshadow -Wconversion"
2048 CFLAGS="$CFLAGS -D_DEBUG"
2053 if test "$GCC" = yes; then
2061 if test "$GCC"; then
2062 CFLAGS="-pipe $CFLAGS"
2066 *mingw32* ) MINGW32=yes;;
2071 *cygwin* ) CYGWIN=yes;;
2075 if test "$MINGW32" = "yes"; then
2078 if test "$CYGWIN" = "yes"; then
2085 # Check whether --enable-mingw32 or --disable-mingw32 was given.
2086 if test "${enable_mingw32+set}" = set; then
2087 enableval="$enable_mingw32"
2088 if test $enableval = yes; then
2093 if test $target_type = mingw; then
2095 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
2096 PTHREAD_LIB=-lpthreadGC
2097 echo "Using mingw32 (Win32 GUI)"
2100 if test $target_type = cygwin; then
2101 SPECIAL_CFLAGS="-mno-win32"
2103 echo "Using Cygnus (Win32 command line)"
2106 PTHREAD_LIB=-lpthread
2110 old_CFLAGS_nospecial=$CFLAGS
2111 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
2113 # Hack to force AutoConf to use the CFLAGS we just set
2114 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
2115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2118 echo "$as_me:2118: checking for pthread.h" >&5
2119 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
2120 if test "${ac_cv_header_pthread_h+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 cat >conftest.$ac_ext <<_ACEOF
2124 #line 2124 "configure"
2125 #include "confdefs.h"
2126 #include <pthread.h>
2128 if { (eval echo "$as_me:2128: \"$ac_cpp conftest.$ac_ext\"") >&5
2129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2131 egrep -v '^ *\+' conftest.er1 >conftest.err
2133 cat conftest.err >&5
2134 echo "$as_me:2134: \$? = $ac_status" >&5
2135 (exit $ac_status); } >/dev/null; then
2136 if test -s conftest.err; then
2137 ac_cpp_err=$ac_c_preproc_warn_flag
2144 if test -z "$ac_cpp_err"; then
2145 ac_cv_header_pthread_h=yes
2147 echo "$as_me: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2149 ac_cv_header_pthread_h=no
2151 rm -f conftest.err conftest.$ac_ext
2153 echo "$as_me:2153: result: $ac_cv_header_pthread_h" >&5
2154 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
2155 if test $ac_cv_header_pthread_h = yes; then
2161 # Check whether --enable-pthread or --disable-pthread was given.
2162 if test "${enable_pthread+set}" = set; then
2163 enableval="$enable_pthread"
2164 if test $enableval = no; then
2170 if test $have_pthread = yes; then
2172 cat >>confdefs.h <<\EOF
2173 #define FEATURE_PTHREAD 1
2176 echo Using POSIX threads
2177 if test "$GCC" = "yes"; then
2178 # Set a GCC specific switch:
2179 if test "$target_type" = "unix"; then
2180 # This compiler switch makes Linux thread-safe
2181 # Don't know about other OS's? Is this switch
2184 SPECIAL_CFLAGS="-pthread"
2189 echo Using native threads
2195 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
2196 cat >>confdefs.h <<\EOF
2197 #define __EXTENSIONS__ 1
2200 if test "$GCC" = "yes"; then
2201 # Set a GCC specific switch:
2202 # This compiler switch makes Solaris thread-safe
2204 SPECIAL_CFLAGS="-pthreads"
2206 # What do we do without GCC? Guess this:
2207 SPECIAL_CFLAGS="-D_REENTRANT"
2213 *-os2-emx*) SOCKET_LIB=-lsocket
2220 *-amigaos) AMIGAOS_ONLY=
2224 echo "$as_me:2224: checking for ANSI C header files" >&5
2225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2226 if test "${ac_cv_header_stdc+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 cat >conftest.$ac_ext <<_ACEOF
2230 #line 2230 "configure"
2231 #include "confdefs.h"
2238 if { (eval echo "$as_me:2238: \"$ac_cpp conftest.$ac_ext\"") >&5
2239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2241 egrep -v '^ *\+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:2244: \$? = $ac_status" >&5
2245 (exit $ac_status); } >/dev/null; then
2246 if test -s conftest.err; then
2247 ac_cpp_err=$ac_c_preproc_warn_flag
2254 if test -z "$ac_cpp_err"; then
2255 ac_cv_header_stdc=yes
2257 echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 ac_cv_header_stdc=no
2261 rm -f conftest.err conftest.$ac_ext
2263 if test $ac_cv_header_stdc = yes; then
2264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2265 cat >conftest.$ac_ext <<_ACEOF
2266 #line 2266 "configure"
2267 #include "confdefs.h"
2271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2272 egrep "memchr" >/dev/null 2>&1; then
2275 ac_cv_header_stdc=no
2281 if test $ac_cv_header_stdc = yes; then
2282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2283 cat >conftest.$ac_ext <<_ACEOF
2284 #line 2284 "configure"
2285 #include "confdefs.h"
2289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2290 egrep "free" >/dev/null 2>&1; then
2293 ac_cv_header_stdc=no
2299 if test $ac_cv_header_stdc = yes; then
2300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2301 if test "$cross_compiling" = yes; then
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #line 2305 "configure"
2306 #include "confdefs.h"
2308 #if ((' ' & 0x0FF) == 0x020)
2309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2312 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2313 || ('j' <= (c) && (c) <= 'r') \
2314 || ('s' <= (c) && (c) <= 'z'))
2315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2323 for (i = 0; i < 256; i++)
2324 if (XOR (islower (i), ISLOWER (i))
2325 || toupper (i) != TOUPPER (i))
2330 rm -f conftest$ac_exeext
2331 if { (eval echo "$as_me:2331: \"$ac_link\"") >&5
2332 (eval $ac_link) 2>&5
2334 echo "$as_me:2334: \$? = $ac_status" >&5
2335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2336 { (eval echo "$as_me:2336: \"$ac_try\"") >&5
2339 echo "$as_me:2339: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2343 echo "$as_me: program exited with status $ac_status" >&5
2344 echo "$as_me: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2346 ac_cv_header_stdc=no
2348 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2352 echo "$as_me:2352: result: $ac_cv_header_stdc" >&5
2353 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2354 if test $ac_cv_header_stdc = yes; then
2356 cat >>confdefs.h <<\EOF
2357 #define STDC_HEADERS 1
2362 echo "$as_me:2362: checking for $CC option to accept ANSI C" >&5
2363 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 ac_cv_prog_cc_stdc=no
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line 2370 "configure"
2371 #include "confdefs.h"
2374 #include <sys/types.h>
2375 #include <sys/stat.h>
2376 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2377 struct buf { int x; };
2378 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2379 static char *e (p, i)
2385 static char *f (char * (*g) (char **, int), char **p, ...)
2390 s = g (p, va_arg (v,int));
2394 int test (int i, double x);
2395 struct s1 {int (*f) (int a);};
2396 struct s2 {int (*f) (double a);};
2397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2408 # Don't try gcc -ansi; that turns off useful extensions and
2409 # breaks some systems' header files.
2410 # AIX -qlanglvl=ansi
2411 # Ultrix and OSF/1 -std1
2412 # HP-UX 10.20 and later -Ae
2413 # HP-UX older versions -Aa -D_HPUX_SOURCE
2414 # SVR4 -Xc -D__EXTENSIONS__
2415 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2417 CC="$ac_save_CC $ac_arg"
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:2419: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>&5
2422 echo "$as_me:2422: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:2425: \"$ac_try\"") >&5
2428 echo "$as_me:2428: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 ac_cv_prog_cc_stdc=$ac_arg
2433 echo "$as_me: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2436 rm -f conftest.$ac_objext
2438 rm -f conftest.$ac_ext conftest.$ac_objext
2443 case "x$ac_cv_prog_cc_stdc" in
2445 echo "$as_me:2445: result: none needed" >&5
2446 echo "${ECHO_T}none needed" >&6 ;;
2448 echo "$as_me:2448: result: $ac_cv_prog_cc_stdc" >&5
2449 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2450 CC="$CC $ac_cv_prog_cc_stdc" ;;
2453 echo "$as_me:2453: checking for an ANSI C-conforming const" >&5
2454 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2455 if test "${ac_cv_c_const+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 cat >conftest.$ac_ext <<_ACEOF
2459 #line 2459 "configure"
2460 #include "confdefs.h"
2465 /* FIXME: Include the comments suggested by Paul. */
2467 /* Ultrix mips cc rejects this. */
2468 typedef int charset[2];
2470 /* SunOS 4.1.1 cc rejects this. */
2471 char const *const *ccp;
2473 /* NEC SVR4.0.2 mips cc rejects this. */
2474 struct point {int x, y;};
2475 static struct point const zero = {0,0};
2476 /* AIX XL C 1.02.0.0 rejects this.
2477 It does not let you subtract one const X* pointer from another in
2478 an arm of an if-expression whose if-part is not a constant
2480 const char *g = "string";
2481 ccp = &g + (g ? g-g : 0);
2482 /* HPUX 7.0 cc rejects these. */
2485 ccp = (char const *const *) p;
2486 { /* SCO 3.2v4 cc rejects this. */
2488 char const *s = 0 ? (char *) 0 : (char const *) 0;
2492 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2494 const int *foo = &x[0];
2497 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2498 typedef const int *iptr;
2502 { /* AIX XL C 1.02.0.0 rejects this saying
2503 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2504 struct s { int j; const int *ap[3]; };
2505 struct s *b; b->j = 5;
2507 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:2517: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>&5
2520 echo "$as_me:2520: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:2523: \"$ac_try\"") >&5
2526 echo "$as_me:2526: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2530 echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2534 rm -f conftest.$ac_objext conftest.$ac_ext
2536 echo "$as_me:2536: result: $ac_cv_c_const" >&5
2537 echo "${ECHO_T}$ac_cv_c_const" >&6
2538 if test $ac_cv_c_const = no; then
2540 cat >>confdefs.h <<\EOF
2546 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2548 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2549 inttypes.h stdint.h unistd.h
2551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2552 echo "$as_me:2552: checking for $ac_header" >&5
2553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 cat >conftest.$ac_ext <<_ACEOF
2558 #line 2558 "configure"
2559 #include "confdefs.h"
2560 $ac_includes_default
2561 #include <$ac_header>
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:2564: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>&5
2567 echo "$as_me:2567: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:2570: \"$ac_try\"") >&5
2573 echo "$as_me:2573: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 eval "$as_ac_Header=yes"
2577 echo "$as_me: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2579 eval "$as_ac_Header=no"
2581 rm -f conftest.$ac_objext conftest.$ac_ext
2583 echo "$as_me:2583: result: `eval echo '${'$as_ac_Header'}'`" >&5
2584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2586 cat >>confdefs.h <<EOF
2587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2593 echo "$as_me:2593: checking for size_t" >&5
2594 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2595 if test "${ac_cv_type_size_t+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2599 #line 2599 "configure"
2600 #include "confdefs.h"
2601 $ac_includes_default
2607 if (sizeof (size_t))
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:2614: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2617 echo "$as_me:2617: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:2620: \"$ac_try\"") >&5
2623 echo "$as_me:2623: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 ac_cv_type_size_t=yes
2627 echo "$as_me: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2629 ac_cv_type_size_t=no
2631 rm -f conftest.$ac_objext conftest.$ac_ext
2633 echo "$as_me:2633: result: $ac_cv_type_size_t" >&5
2634 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2635 if test $ac_cv_type_size_t = yes; then
2639 cat >>confdefs.h <<EOF
2640 #define size_t unsigned
2645 echo "$as_me:2645: checking for int" >&5
2646 echo $ECHO_N "checking for int... $ECHO_C" >&6
2647 if test "${ac_cv_type_int+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 cat >conftest.$ac_ext <<_ACEOF
2651 #line 2651 "configure"
2652 #include "confdefs.h"
2653 $ac_includes_default
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:2666: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>&5
2669 echo "$as_me:2669: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:2672: \"$ac_try\"") >&5
2675 echo "$as_me:2675: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2683 rm -f conftest.$ac_objext conftest.$ac_ext
2685 echo "$as_me:2685: result: $ac_cv_type_int" >&5
2686 echo "${ECHO_T}$ac_cv_type_int" >&6
2688 echo "$as_me:2688: checking size of int" >&5
2689 echo $ECHO_N "checking size of int... $ECHO_C" >&6
2690 if test "${ac_cv_sizeof_int+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 if test "$ac_cv_type_int" = yes; then
2694 if test "$cross_compiling" = yes; then
2695 # Depending upon the size, compute the lo and hi bounds.
2696 cat >conftest.$ac_ext <<_ACEOF
2697 #line 2697 "configure"
2698 #include "confdefs.h"
2699 $ac_includes_default
2703 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:2709: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>&5
2712 echo "$as_me:2712: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:2715: \"$ac_try\"") >&5
2718 echo "$as_me:2718: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #line 2723 "configure"
2724 #include "confdefs.h"
2725 $ac_includes_default
2729 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:2735: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>&5
2738 echo "$as_me:2738: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:2741: \"$ac_try\"") >&5
2744 echo "$as_me:2744: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_hi=$ac_mid; break
2748 echo "$as_me: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2750 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
2752 rm -f conftest.$ac_objext conftest.$ac_ext
2755 echo "$as_me: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line 2760 "configure"
2761 #include "confdefs.h"
2762 $ac_includes_default
2766 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:2772: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>&5
2775 echo "$as_me:2775: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:2778: \"$ac_try\"") >&5
2781 echo "$as_me:2781: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 ac_lo=$ac_mid; break
2785 echo "$as_me: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
2789 rm -f conftest.$ac_objext conftest.$ac_ext
2792 rm -f conftest.$ac_objext conftest.$ac_ext
2793 # Binary search between lo and hi bounds.
2794 while test "x$ac_lo" != "x$ac_hi"; do
2795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2796 cat >conftest.$ac_ext <<_ACEOF
2797 #line 2797 "configure"
2798 #include "confdefs.h"
2799 $ac_includes_default
2803 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:2809: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>&5
2812 echo "$as_me:2812: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -s conftest.$ac_objext'
2815 { (eval echo "$as_me:2815: \"$ac_try\"") >&5
2818 echo "$as_me:2818: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2822 echo "$as_me: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2824 ac_lo=`expr $ac_mid + 1`
2826 rm -f conftest.$ac_objext conftest.$ac_ext
2828 ac_cv_sizeof_int=$ac_lo
2830 if test "$cross_compiling" = yes; then
2831 { { echo "$as_me:2831: error: cannot run test program while cross compiling" >&5
2832 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2833 { (exit 1); exit 1; }; }
2835 cat >conftest.$ac_ext <<_ACEOF
2836 #line 2836 "configure"
2837 #include "confdefs.h"
2838 $ac_includes_default
2842 FILE *f = fopen ("conftest.val", "w");
2845 fprintf (f, "%d", (sizeof (int)));
2851 rm -f conftest$ac_exeext
2852 if { (eval echo "$as_me:2852: \"$ac_link\"") >&5
2853 (eval $ac_link) 2>&5
2855 echo "$as_me:2855: \$? = $ac_status" >&5
2856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2857 { (eval echo "$as_me:2857: \"$ac_try\"") >&5
2860 echo "$as_me:2860: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2862 ac_cv_sizeof_int=`cat conftest.val`
2864 echo "$as_me: program exited with status $ac_status" >&5
2865 echo "$as_me: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2868 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2876 echo "$as_me:2876: result: $ac_cv_sizeof_int" >&5
2877 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
2878 cat >>confdefs.h <<EOF
2879 #define SIZEOF_INT $ac_cv_sizeof_int
2882 echo "$as_me:2882: checking for char *" >&5
2883 echo $ECHO_N "checking for char *... $ECHO_C" >&6
2884 if test "${ac_cv_type_char_p+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 cat >conftest.$ac_ext <<_ACEOF
2888 #line 2888 "configure"
2889 #include "confdefs.h"
2890 $ac_includes_default
2896 if (sizeof (char *))
2902 rm -f conftest.$ac_objext
2903 if { (eval echo "$as_me:2903: \"$ac_compile\"") >&5
2904 (eval $ac_compile) 2>&5
2906 echo "$as_me:2906: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:2909: \"$ac_try\"") >&5
2912 echo "$as_me:2912: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 ac_cv_type_char_p=yes
2916 echo "$as_me: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2918 ac_cv_type_char_p=no
2920 rm -f conftest.$ac_objext conftest.$ac_ext
2922 echo "$as_me:2922: result: $ac_cv_type_char_p" >&5
2923 echo "${ECHO_T}$ac_cv_type_char_p" >&6
2925 echo "$as_me:2925: checking size of char *" >&5
2926 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
2927 if test "${ac_cv_sizeof_char_p+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 if test "$ac_cv_type_char_p" = yes; then
2931 if test "$cross_compiling" = yes; then
2932 # Depending upon the size, compute the lo and hi bounds.
2933 cat >conftest.$ac_ext <<_ACEOF
2934 #line 2934 "configure"
2935 #include "confdefs.h"
2936 $ac_includes_default
2940 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
2945 rm -f conftest.$ac_objext
2946 if { (eval echo "$as_me:2946: \"$ac_compile\"") >&5
2947 (eval $ac_compile) 2>&5
2949 echo "$as_me:2949: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (eval echo "$as_me:2952: \"$ac_try\"") >&5
2955 echo "$as_me:2955: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #line 2960 "configure"
2961 #include "confdefs.h"
2962 $ac_includes_default
2966 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:2972: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>&5
2975 echo "$as_me:2975: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -s conftest.$ac_objext'
2978 { (eval echo "$as_me:2978: \"$ac_try\"") >&5
2981 echo "$as_me:2981: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2983 ac_hi=$ac_mid; break
2985 echo "$as_me: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2987 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
2989 rm -f conftest.$ac_objext conftest.$ac_ext
2992 echo "$as_me: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line 2997 "configure"
2998 #include "confdefs.h"
2999 $ac_includes_default
3003 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:3009: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>&5
3012 echo "$as_me:3012: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:3015: \"$ac_try\"") >&5
3018 echo "$as_me:3018: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3020 ac_lo=$ac_mid; break
3022 echo "$as_me: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3026 rm -f conftest.$ac_objext conftest.$ac_ext
3029 rm -f conftest.$ac_objext conftest.$ac_ext
3030 # Binary search between lo and hi bounds.
3031 while test "x$ac_lo" != "x$ac_hi"; do
3032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3033 cat >conftest.$ac_ext <<_ACEOF
3034 #line 3034 "configure"
3035 #include "confdefs.h"
3036 $ac_includes_default
3040 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:3046: \"$ac_compile\"") >&5
3047 (eval $ac_compile) 2>&5
3049 echo "$as_me:3049: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:3052: \"$ac_try\"") >&5
3055 echo "$as_me:3055: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3059 echo "$as_me: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 ac_lo=`expr $ac_mid + 1`
3063 rm -f conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_sizeof_char_p=$ac_lo
3067 if test "$cross_compiling" = yes; then
3068 { { echo "$as_me:3068: error: cannot run test program while cross compiling" >&5
3069 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3070 { (exit 1); exit 1; }; }
3072 cat >conftest.$ac_ext <<_ACEOF
3073 #line 3073 "configure"
3074 #include "confdefs.h"
3075 $ac_includes_default
3079 FILE *f = fopen ("conftest.val", "w");
3082 fprintf (f, "%d", (sizeof (char *)));
3088 rm -f conftest$ac_exeext
3089 if { (eval echo "$as_me:3089: \"$ac_link\"") >&5
3090 (eval $ac_link) 2>&5
3092 echo "$as_me:3092: \$? = $ac_status" >&5
3093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3094 { (eval echo "$as_me:3094: \"$ac_try\"") >&5
3097 echo "$as_me:3097: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3099 ac_cv_sizeof_char_p=`cat conftest.val`
3101 echo "$as_me: program exited with status $ac_status" >&5
3102 echo "$as_me: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3105 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3110 ac_cv_sizeof_char_p=0
3113 echo "$as_me:3113: result: $ac_cv_sizeof_char_p" >&5
3114 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
3115 cat >>confdefs.h <<EOF
3116 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
3119 echo "$as_me:3119: checking for long" >&5
3120 echo $ECHO_N "checking for long... $ECHO_C" >&6
3121 if test "${ac_cv_type_long+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3125 #line 3125 "configure"
3126 #include "confdefs.h"
3127 $ac_includes_default
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:3140: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3143 echo "$as_me:3143: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:3146: \"$ac_try\"") >&5
3149 echo "$as_me:3149: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3153 echo "$as_me: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3157 rm -f conftest.$ac_objext conftest.$ac_ext
3159 echo "$as_me:3159: result: $ac_cv_type_long" >&5
3160 echo "${ECHO_T}$ac_cv_type_long" >&6
3162 echo "$as_me:3162: checking size of long" >&5
3163 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3164 if test "${ac_cv_sizeof_long+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 if test "$ac_cv_type_long" = yes; then
3168 if test "$cross_compiling" = yes; then
3169 # Depending upon the size, compute the lo and hi bounds.
3170 cat >conftest.$ac_ext <<_ACEOF
3171 #line 3171 "configure"
3172 #include "confdefs.h"
3173 $ac_includes_default
3177 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
3182 rm -f conftest.$ac_objext
3183 if { (eval echo "$as_me:3183: \"$ac_compile\"") >&5
3184 (eval $ac_compile) 2>&5
3186 echo "$as_me:3186: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:3189: \"$ac_try\"") >&5
3192 echo "$as_me:3192: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3196 cat >conftest.$ac_ext <<_ACEOF
3197 #line 3197 "configure"
3198 #include "confdefs.h"
3199 $ac_includes_default
3203 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:3209: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>&5
3212 echo "$as_me:3212: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:3215: \"$ac_try\"") >&5
3218 echo "$as_me:3218: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_hi=$ac_mid; break
3222 echo "$as_me: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3224 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3226 rm -f conftest.$ac_objext conftest.$ac_ext
3229 echo "$as_me: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3233 cat >conftest.$ac_ext <<_ACEOF
3234 #line 3234 "configure"
3235 #include "confdefs.h"
3236 $ac_includes_default
3240 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:3246: \"$ac_compile\"") >&5
3247 (eval $ac_compile) 2>&5
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:3252: \"$ac_try\"") >&5
3255 echo "$as_me:3255: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3257 ac_lo=$ac_mid; break
3259 echo "$as_me: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3263 rm -f conftest.$ac_objext conftest.$ac_ext
3266 rm -f conftest.$ac_objext conftest.$ac_ext
3267 # Binary search between lo and hi bounds.
3268 while test "x$ac_lo" != "x$ac_hi"; do
3269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3270 cat >conftest.$ac_ext <<_ACEOF
3271 #line 3271 "configure"
3272 #include "confdefs.h"
3273 $ac_includes_default
3277 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:3283: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>&5
3286 echo "$as_me:3286: \$? = $ac_status" >&5
3287 (exit $ac_status); } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:3289: \"$ac_try\"") >&5
3292 echo "$as_me:3292: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3298 ac_lo=`expr $ac_mid + 1`
3300 rm -f conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_sizeof_long=$ac_lo
3304 if test "$cross_compiling" = yes; then
3305 { { echo "$as_me:3305: error: cannot run test program while cross compiling" >&5
3306 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3307 { (exit 1); exit 1; }; }
3309 cat >conftest.$ac_ext <<_ACEOF
3310 #line 3310 "configure"
3311 #include "confdefs.h"
3312 $ac_includes_default
3316 FILE *f = fopen ("conftest.val", "w");
3319 fprintf (f, "%d", (sizeof (long)));
3325 rm -f conftest$ac_exeext
3326 if { (eval echo "$as_me:3326: \"$ac_link\"") >&5
3327 (eval $ac_link) 2>&5
3329 echo "$as_me:3329: \$? = $ac_status" >&5
3330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3331 { (eval echo "$as_me:3331: \"$ac_try\"") >&5
3334 echo "$as_me:3334: \$? = $ac_status" >&5
3335 (exit $ac_status); }; }; then
3336 ac_cv_sizeof_long=`cat conftest.val`
3338 echo "$as_me: program exited with status $ac_status" >&5
3339 echo "$as_me: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3342 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3350 echo "$as_me:3350: result: $ac_cv_sizeof_long" >&5
3351 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3352 cat >>confdefs.h <<EOF
3353 #define SIZEOF_LONG $ac_cv_sizeof_long
3356 echo "$as_me:3356: checking for long long" >&5
3357 echo $ECHO_N "checking for long long... $ECHO_C" >&6
3358 if test "${ac_cv_type_long_long+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 cat >conftest.$ac_ext <<_ACEOF
3362 #line 3362 "configure"
3363 #include "confdefs.h"
3364 $ac_includes_default
3368 if ((long long *) 0)
3370 if (sizeof (long long))
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:3377: \"$ac_compile\"") >&5
3378 (eval $ac_compile) 2>&5
3380 echo "$as_me:3380: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (eval echo "$as_me:3383: \"$ac_try\"") >&5
3386 echo "$as_me:3386: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 ac_cv_type_long_long=yes
3390 echo "$as_me: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3392 ac_cv_type_long_long=no
3394 rm -f conftest.$ac_objext conftest.$ac_ext
3396 echo "$as_me:3396: result: $ac_cv_type_long_long" >&5
3397 echo "${ECHO_T}$ac_cv_type_long_long" >&6
3399 echo "$as_me:3399: checking size of long long" >&5
3400 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3401 if test "${ac_cv_sizeof_long_long+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 if test "$ac_cv_type_long_long" = yes; then
3405 if test "$cross_compiling" = yes; then
3406 # Depending upon the size, compute the lo and hi bounds.
3407 cat >conftest.$ac_ext <<_ACEOF
3408 #line 3408 "configure"
3409 #include "confdefs.h"
3410 $ac_includes_default
3414 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
3419 rm -f conftest.$ac_objext
3420 if { (eval echo "$as_me:3420: \"$ac_compile\"") >&5
3421 (eval $ac_compile) 2>&5
3423 echo "$as_me:3423: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:3426: \"$ac_try\"") >&5
3429 echo "$as_me:3429: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line 3434 "configure"
3435 #include "confdefs.h"
3436 $ac_includes_default
3440 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:3446: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>&5
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:3452: \"$ac_try\"") >&5
3455 echo "$as_me:3455: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 ac_hi=$ac_mid; break
3459 echo "$as_me: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3463 rm -f conftest.$ac_objext conftest.$ac_ext
3466 echo "$as_me: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #line 3471 "configure"
3472 #include "confdefs.h"
3473 $ac_includes_default
3477 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
3482 rm -f conftest.$ac_objext
3483 if { (eval echo "$as_me:3483: \"$ac_compile\"") >&5
3484 (eval $ac_compile) 2>&5
3486 echo "$as_me:3486: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -s conftest.$ac_objext'
3489 { (eval echo "$as_me:3489: \"$ac_try\"") >&5
3492 echo "$as_me:3492: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 ac_lo=$ac_mid; break
3496 echo "$as_me: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3500 rm -f conftest.$ac_objext conftest.$ac_ext
3503 rm -f conftest.$ac_objext conftest.$ac_ext
3504 # Binary search between lo and hi bounds.
3505 while test "x$ac_lo" != "x$ac_hi"; do
3506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3507 cat >conftest.$ac_ext <<_ACEOF
3508 #line 3508 "configure"
3509 #include "confdefs.h"
3510 $ac_includes_default
3514 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
3519 rm -f conftest.$ac_objext
3520 if { (eval echo "$as_me:3520: \"$ac_compile\"") >&5
3521 (eval $ac_compile) 2>&5
3523 echo "$as_me:3523: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:3526: \"$ac_try\"") >&5
3529 echo "$as_me:3529: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3533 echo "$as_me: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 ac_lo=`expr $ac_mid + 1`
3537 rm -f conftest.$ac_objext conftest.$ac_ext
3539 ac_cv_sizeof_long_long=$ac_lo
3541 if test "$cross_compiling" = yes; then
3542 { { echo "$as_me:3542: error: cannot run test program while cross compiling" >&5
3543 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3544 { (exit 1); exit 1; }; }
3546 cat >conftest.$ac_ext <<_ACEOF
3547 #line 3547 "configure"
3548 #include "confdefs.h"
3549 $ac_includes_default
3553 FILE *f = fopen ("conftest.val", "w");
3556 fprintf (f, "%d", (sizeof (long long)));
3562 rm -f conftest$ac_exeext
3563 if { (eval echo "$as_me:3563: \"$ac_link\"") >&5
3564 (eval $ac_link) 2>&5
3566 echo "$as_me:3566: \$? = $ac_status" >&5
3567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3568 { (eval echo "$as_me:3568: \"$ac_try\"") >&5
3571 echo "$as_me:3571: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 ac_cv_sizeof_long_long=`cat conftest.val`
3575 echo "$as_me: program exited with status $ac_status" >&5
3576 echo "$as_me: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3584 ac_cv_sizeof_long_long=0
3587 echo "$as_me:3587: result: $ac_cv_sizeof_long_long" >&5
3588 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3589 cat >>confdefs.h <<EOF
3590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3593 echo "$as_me:3593: checking for size_t" >&5
3594 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3595 if test "${ac_cv_type_size_t+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 cat >conftest.$ac_ext <<_ACEOF
3599 #line 3599 "configure"
3600 #include "confdefs.h"
3601 $ac_includes_default
3607 if (sizeof (size_t))
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:3614: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>&5
3617 echo "$as_me:3617: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:3620: \"$ac_try\"") >&5
3623 echo "$as_me:3623: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_cv_type_size_t=yes
3627 echo "$as_me: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3629 ac_cv_type_size_t=no
3631 rm -f conftest.$ac_objext conftest.$ac_ext
3633 echo "$as_me:3633: result: $ac_cv_type_size_t" >&5
3634 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3636 echo "$as_me:3636: checking size of size_t" >&5
3637 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
3638 if test "${ac_cv_sizeof_size_t+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test "$ac_cv_type_size_t" = yes; then
3642 if test "$cross_compiling" = yes; then
3643 # Depending upon the size, compute the lo and hi bounds.
3644 cat >conftest.$ac_ext <<_ACEOF
3645 #line 3645 "configure"
3646 #include "confdefs.h"
3647 $ac_includes_default
3651 int _array_ [1 - 2 * !((sizeof (size_t)) >= 0)]
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:3657: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>&5
3660 echo "$as_me:3660: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:3663: \"$ac_try\"") >&5
3666 echo "$as_me:3666: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3670 cat >conftest.$ac_ext <<_ACEOF
3671 #line 3671 "configure"
3672 #include "confdefs.h"
3673 $ac_includes_default
3677 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
3682 rm -f conftest.$ac_objext
3683 if { (eval echo "$as_me:3683: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>&5
3686 echo "$as_me:3686: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:3689: \"$ac_try\"") >&5
3692 echo "$as_me:3692: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_hi=$ac_mid; break
3696 echo "$as_me: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3698 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3700 rm -f conftest.$ac_objext conftest.$ac_ext
3703 echo "$as_me: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3707 cat >conftest.$ac_ext <<_ACEOF
3708 #line 3708 "configure"
3709 #include "confdefs.h"
3710 $ac_includes_default
3714 int _array_ [1 - 2 * !((sizeof (size_t)) >= $ac_mid)]
3719 rm -f conftest.$ac_objext
3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>&5
3723 echo "$as_me:3723: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:3726: \"$ac_try\"") >&5
3729 echo "$as_me:3729: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_lo=$ac_mid; break
3733 echo "$as_me: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3737 rm -f conftest.$ac_objext conftest.$ac_ext
3740 rm -f conftest.$ac_objext conftest.$ac_ext
3741 # Binary search between lo and hi bounds.
3742 while test "x$ac_lo" != "x$ac_hi"; do
3743 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #line 3745 "configure"
3746 #include "confdefs.h"
3747 $ac_includes_default
3751 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
3756 rm -f conftest.$ac_objext
3757 if { (eval echo "$as_me:3757: \"$ac_compile\"") >&5
3758 (eval $ac_compile) 2>&5
3760 echo "$as_me:3760: \$? = $ac_status" >&5
3761 (exit $ac_status); } &&
3762 { ac_try='test -s conftest.$ac_objext'
3763 { (eval echo "$as_me:3763: \"$ac_try\"") >&5
3766 echo "$as_me:3766: \$? = $ac_status" >&5
3767 (exit $ac_status); }; }; then
3770 echo "$as_me: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3772 ac_lo=`expr $ac_mid + 1`
3774 rm -f conftest.$ac_objext conftest.$ac_ext
3776 ac_cv_sizeof_size_t=$ac_lo
3778 if test "$cross_compiling" = yes; then
3779 { { echo "$as_me:3779: error: cannot run test program while cross compiling" >&5
3780 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3781 { (exit 1); exit 1; }; }
3783 cat >conftest.$ac_ext <<_ACEOF
3784 #line 3784 "configure"
3785 #include "confdefs.h"
3786 $ac_includes_default
3790 FILE *f = fopen ("conftest.val", "w");
3793 fprintf (f, "%d", (sizeof (size_t)));
3799 rm -f conftest$ac_exeext
3800 if { (eval echo "$as_me:3800: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>&5
3803 echo "$as_me:3803: \$? = $ac_status" >&5
3804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805 { (eval echo "$as_me:3805: \"$ac_try\"") >&5
3808 echo "$as_me:3808: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_sizeof_size_t=`cat conftest.val`
3812 echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3816 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3821 ac_cv_sizeof_size_t=0
3824 echo "$as_me:3824: result: $ac_cv_sizeof_size_t" >&5
3825 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
3826 cat >>confdefs.h <<EOF
3827 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
3830 for ac_func in strerror bcopy memmove
3832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3833 echo "$as_me:3833: checking for $ac_func" >&5
3834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3835 if eval "test \"\${$as_ac_var+set}\" = set"; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3839 #line 3839 "configure"
3840 #include "confdefs.h"
3841 /* System header to define __stub macros and hopefully few prototypes,
3842 which can conflict with char $ac_func (); below. */
3844 /* Override any gcc2 internal prototype to avoid an error. */
3848 /* We use char because int might match the return type of a gcc2
3849 builtin and then its argument prototype would still apply. */
3856 /* The GNU C library defines this for functions which it implements
3857 to always fail with ENOSYS. Some functions are actually named
3858 something starting with __ and the normal name is an alias. */
3859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3869 rm -f conftest.$ac_objext conftest$ac_exeext
3870 if { (eval echo "$as_me:3870: \"$ac_link\"") >&5
3871 (eval $ac_link) 2>&5
3873 echo "$as_me:3873: \$? = $ac_status" >&5
3874 (exit $ac_status); } &&
3875 { ac_try='test -s conftest$ac_exeext'
3876 { (eval echo "$as_me:3876: \"$ac_try\"") >&5
3879 echo "$as_me:3879: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 eval "$as_ac_var=yes"
3883 echo "$as_me: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 eval "$as_ac_var=no"
3887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3889 echo "$as_me:3889: result: `eval echo '${'$as_ac_var'}'`" >&5
3890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3891 if test `eval echo '${'$as_ac_var'}'` = yes; then
3892 cat >>confdefs.h <<EOF
3893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3899 echo "$as_me:3899: checking for pcre_compile in -lpcre" >&5
3900 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
3901 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 ac_check_lib_save_LIBS=$LIBS
3906 cat >conftest.$ac_ext <<_ACEOF
3907 #line 3907 "configure"
3908 #include "confdefs.h"
3910 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3916 char pcre_compile ();
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:3926: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3929 echo "$as_me:3929: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -s conftest$ac_exeext'
3932 { (eval echo "$as_me:3932: \"$ac_try\"") >&5
3935 echo "$as_me:3935: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_lib_pcre_pcre_compile=yes
3939 echo "$as_me: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3941 ac_cv_lib_pcre_pcre_compile=no
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3946 echo "$as_me:3946: result: $ac_cv_lib_pcre_pcre_compile" >&5
3947 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
3948 if test $ac_cv_lib_pcre_pcre_compile = yes; then
3949 echo "$as_me:3949: checking for pcre.h" >&5
3950 echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
3951 if test "${ac_cv_header_pcre_h+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 cat >conftest.$ac_ext <<_ACEOF
3955 #line 3955 "configure"
3956 #include "confdefs.h"
3959 if { (eval echo "$as_me:3959: \"$ac_cpp conftest.$ac_ext\"") >&5
3960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3962 egrep -v '^ *\+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:3965: \$? = $ac_status" >&5
3966 (exit $ac_status); } >/dev/null; then
3967 if test -s conftest.err; then
3968 ac_cpp_err=$ac_c_preproc_warn_flag
3975 if test -z "$ac_cpp_err"; then
3976 ac_cv_header_pcre_h=yes
3978 echo "$as_me: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3980 ac_cv_header_pcre_h=no
3982 rm -f conftest.err conftest.$ac_ext
3984 echo "$as_me:3984: result: $ac_cv_header_pcre_h" >&5
3985 echo "${ECHO_T}$ac_cv_header_pcre_h" >&6
3986 if test $ac_cv_header_pcre_h = yes; then
3996 echo "$as_me:3996: checking for regcomp in -lpcreposix" >&5
3997 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
3998 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 ac_check_lib_save_LIBS=$LIBS
4002 LIBS="-lpcreposix -lpcre $LIBS"
4003 cat >conftest.$ac_ext <<_ACEOF
4004 #line 4004 "configure"
4005 #include "confdefs.h"
4007 /* Override any gcc2 internal prototype to avoid an error. */
4011 /* We use char because int might match the return type of a gcc2
4012 builtin and then its argument prototype would still apply. */
4022 rm -f conftest.$ac_objext conftest$ac_exeext
4023 if { (eval echo "$as_me:4023: \"$ac_link\"") >&5
4024 (eval $ac_link) 2>&5
4026 echo "$as_me:4026: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try='test -s conftest$ac_exeext'
4029 { (eval echo "$as_me:4029: \"$ac_try\"") >&5
4032 echo "$as_me:4032: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4034 ac_cv_lib_pcreposix_regcomp=yes
4036 echo "$as_me: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 ac_cv_lib_pcreposix_regcomp=no
4040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4041 LIBS=$ac_check_lib_save_LIBS
4043 echo "$as_me:4043: result: $ac_cv_lib_pcreposix_regcomp" >&5
4044 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
4045 if test $ac_cv_lib_pcreposix_regcomp = yes; then
4046 echo "$as_me:4046: checking for pcreposix.h" >&5
4047 echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6
4048 if test "${ac_cv_header_pcreposix_h+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line 4052 "configure"
4053 #include "confdefs.h"
4054 #include <pcreposix.h>
4056 if { (eval echo "$as_me:4056: \"$ac_cpp conftest.$ac_ext\"") >&5
4057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4059 egrep -v '^ *\+' conftest.er1 >conftest.err
4061 cat conftest.err >&5
4062 echo "$as_me:4062: \$? = $ac_status" >&5
4063 (exit $ac_status); } >/dev/null; then
4064 if test -s conftest.err; then
4065 ac_cpp_err=$ac_c_preproc_warn_flag
4072 if test -z "$ac_cpp_err"; then
4073 ac_cv_header_pcreposix_h=yes
4075 echo "$as_me: failed program was:" >&5
4076 cat conftest.$ac_ext >&5
4077 ac_cv_header_pcreposix_h=no
4079 rm -f conftest.err conftest.$ac_ext
4081 echo "$as_me:4081: result: $ac_cv_header_pcreposix_h" >&5
4082 echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6
4083 if test $ac_cv_header_pcreposix_h = yes; then
4093 echo "$as_me:4093: checking for pcrs_compile in -lpcrs" >&5
4094 echo $ECHO_N "checking for pcrs_compile in -lpcrs... $ECHO_C" >&6
4095 if test "${ac_cv_lib_pcrs_pcrs_compile+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 ac_check_lib_save_LIBS=$LIBS
4100 cat >conftest.$ac_ext <<_ACEOF
4101 #line 4101 "configure"
4102 #include "confdefs.h"
4104 /* Override any gcc2 internal prototype to avoid an error. */
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4110 char pcrs_compile ();
4119 rm -f conftest.$ac_objext conftest$ac_exeext
4120 if { (eval echo "$as_me:4120: \"$ac_link\"") >&5
4121 (eval $ac_link) 2>&5
4123 echo "$as_me:4123: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -s conftest$ac_exeext'
4126 { (eval echo "$as_me:4126: \"$ac_try\"") >&5
4129 echo "$as_me:4129: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_lib_pcrs_pcrs_compile=yes
4133 echo "$as_me: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4135 ac_cv_lib_pcrs_pcrs_compile=no
4137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4138 LIBS=$ac_check_lib_save_LIBS
4140 echo "$as_me:4140: result: $ac_cv_lib_pcrs_pcrs_compile" >&5
4141 echo "${ECHO_T}$ac_cv_lib_pcrs_pcrs_compile" >&6
4142 if test $ac_cv_lib_pcrs_pcrs_compile = yes; then
4143 echo "$as_me:4143: checking for pcrs.h" >&5
4144 echo $ECHO_N "checking for pcrs.h... $ECHO_C" >&6
4145 if test "${ac_cv_header_pcrs_h+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 cat >conftest.$ac_ext <<_ACEOF
4149 #line 4149 "configure"
4150 #include "confdefs.h"
4153 if { (eval echo "$as_me:4153: \"$ac_cpp conftest.$ac_ext\"") >&5
4154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156 egrep -v '^ *\+' conftest.er1 >conftest.err
4158 cat conftest.err >&5
4159 echo "$as_me:4159: \$? = $ac_status" >&5
4160 (exit $ac_status); } >/dev/null; then
4161 if test -s conftest.err; then
4162 ac_cpp_err=$ac_c_preproc_warn_flag
4169 if test -z "$ac_cpp_err"; then
4170 ac_cv_header_pcrs_h=yes
4172 echo "$as_me: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4174 ac_cv_header_pcrs_h=no
4176 rm -f conftest.err conftest.$ac_ext
4178 echo "$as_me:4178: result: $ac_cv_header_pcrs_h" >&5
4179 echo "${ECHO_T}$ac_cv_header_pcrs_h" >&6
4180 if test $ac_cv_header_pcrs_h = yes; then
4190 cat >>confdefs.h <<\EOF
4194 # Check whether --enable-toggle or --disable-toggle was given.
4195 if test "${enable_toggle+set}" = set; then
4196 enableval="$enable_toggle"
4197 if test $enableval = yes; then
4198 cat >>confdefs.h <<\EOF
4199 #define FEATURE_TOGGLE 1
4204 cat >>confdefs.h <<\EOF
4205 #define FEATURE_TOGGLE 1
4210 # Check whether --enable-force or --disable-force was given.
4211 if test "${enable_force+set}" = set; then
4212 enableval="$enable_force"
4213 if test $enableval = yes; then
4214 cat >>confdefs.h <<\EOF
4215 #define FEATURE_FORCE_LOAD 1
4220 cat >>confdefs.h <<\EOF
4221 #define FEATURE_FORCE_LOAD 1
4226 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
4227 if test "${enable_fast_redirects+set}" = set; then
4228 enableval="$enable_fast_redirects"
4229 if test $enableval = yes; then
4230 cat >>confdefs.h <<\EOF
4231 #define FEATURE_FAST_REDIRECTS 1
4236 cat >>confdefs.h <<\EOF
4237 #define FEATURE_FAST_REDIRECTS 1
4242 # Check whether --enable-killpopup or --disable-killpopup was given.
4243 if test "${enable_killpopup+set}" = set; then
4244 enableval="$enable_killpopup"
4245 if test $enableval = yes; then
4246 cat >>confdefs.h <<\EOF
4247 #define FEATURE_KILL_POPUPS 1
4252 cat >>confdefs.h <<\EOF
4253 #define FEATURE_KILL_POPUPS 1
4258 # Check whether --enable-stats or --disable-stats was given.
4259 if test "${enable_stats+set}" = set; then
4260 enableval="$enable_stats"
4261 if test $enableval = yes; then
4262 cat >>confdefs.h <<\EOF
4263 #define FEATURE_STATISTICS 1
4268 cat >>confdefs.h <<\EOF
4269 #define FEATURE_STATISTICS 1
4274 # Check whether --enable-ie-images or --disable-ie-images was given.
4275 if test "${enable_ie_images+set}" = set; then
4276 enableval="$enable_ie_images"
4277 if test $enableval = yes; then
4278 cat >>confdefs.h <<\EOF
4279 #define FEATURE_IMAGE_DETECT_MSIE 1
4284 cat >>confdefs.h <<\EOF
4285 #define FEATURE_IMAGE_DETECT_MSIE 1
4290 # Check whether --enable-image-blocking or --disable-image-blocking was given.
4291 if test "${enable_image_blocking+set}" = set; then
4292 enableval="$enable_image_blocking"
4293 if test $enableval = yes; then
4294 cat >>confdefs.h <<\EOF
4295 #define FEATURE_IMAGE_BLOCKING 1
4300 cat >>confdefs.h <<\EOF
4301 #define FEATURE_IMAGE_BLOCKING 1
4306 # Check whether --enable-acl-files or --disable-acl-files was given.
4307 if test "${enable_acl_files+set}" = set; then
4308 enableval="$enable_acl_files"
4309 if test $enableval = yes; then
4310 cat >>confdefs.h <<\EOF
4311 #define FEATURE_ACL 1
4316 cat >>confdefs.h <<\EOF
4317 #define FEATURE_ACL 1
4322 # Check whether --enable-trust-files or --disable-trust-files was given.
4323 if test "${enable_trust_files+set}" = set; then
4324 enableval="$enable_trust_files"
4325 if test $enableval = yes; then
4326 cat >>confdefs.h <<\EOF
4327 #define FEATURE_TRUST 1
4332 cat >>confdefs.h <<\EOF
4333 #define FEATURE_TRUST 1
4338 # Check whether --enable-jar-files or --disable-jar-files was given.
4339 if test "${enable_jar_files+set}" = set; then
4340 enableval="$enable_jar_files"
4341 if test $enableval = yes; then
4342 cat >>confdefs.h <<\EOF
4343 #define FEATURE_COOKIE_JAR 1
4348 cat >>confdefs.h <<\EOF
4349 #define FEATURE_COOKIE_JAR 1
4354 # Check whether --enable-editor or --disable-editor was given.
4355 if test "${enable_editor+set}" = set; then
4356 enableval="$enable_editor"
4357 if test $enableval = yes; then
4358 cat >>confdefs.h <<\EOF
4359 #define FEATURE_CGI_EDIT_ACTIONS 1
4364 cat >>confdefs.h <<\EOF
4365 #define FEATURE_CGI_EDIT_ACTIONS 1
4370 # Check whether --enable-regex-matching or --disable-regex-matching was given.
4371 if test "${enable_regex_matching+set}" = set; then
4372 enableval="$enable_regex_matching"
4373 regex_matching=$enableval
4378 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
4379 if test "${enable_dynamic_pcre+set}" = set; then
4380 enableval="$enable_dynamic_pcre"
4381 if test $enableval = "no"; then have_pcre=no; fi
4384 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
4385 if test "${enable_dynamic_pcrs+set}" = set; then
4386 enableval="$enable_dynamic_pcrs"
4387 if test $enableval = "no"; then have_pcrs=no; fi
4390 # Is the regex URL matching based on libpcreposix, but we
4391 # don't have that library?
4393 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
4394 dont_miss_pcreposix=yes
4396 dont_miss_pcreposix=no
4399 # If we have libpcre and either we also have pcreposix or
4400 # we don't need pcreposix, then link pcre dynamically; else
4401 # build it and link statically
4403 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
4404 echo "using libpcre"
4409 echo "using built-in static pcre"
4411 cat >>confdefs.h <<\EOF
4412 #define STATIC_PCRE 1
4418 # If we have libpcrs and pcre is linked dynamically
4419 # then also link pcrs dynamically, else build and link
4422 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
4423 echo "using libpcrs"
4427 echo "using built-in static pcrs"
4428 cat >>confdefs.h <<\EOF
4429 #define STATIC_PCRS 1
4435 # Which method should be used for URL matching?
4436 # pcre, gnu regex or prefix matching?
4438 if test $regex_matching = "gnu"; then
4439 echo "using gnu regex for URL matching"
4440 cat >>confdefs.h <<\EOF
4446 elif test $regex_matching = "pcre"; then
4447 echo "using pcre regex for URL matching"
4448 cat >>confdefs.h <<\EOF
4449 #define REGEX_PCRE 1
4454 if test $pcre_dyn = "yes"; then
4455 LIBS="$LIBS -lpcreposix"
4458 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
4463 CFLAGS=$old_CFLAGS_nospecial
4465 ac_config_files="$ac_config_files GNUmakefile"
4466 cat >confcache <<\_ACEOF
4467 # This file is a shell script that caches the results of configure
4468 # tests run on this system so they can be shared between configure
4469 # scripts and configure runs, see configure's option --config-cache.
4470 # It is not useful on other systems. If it contains results you don't
4471 # want to keep, you may remove or edit it.
4473 # config.status only pays attention to the cache file if you give it
4474 # the --recheck option to rerun configure.
4476 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4482 # The following way of writing the cache mishandles newlines in values,
4483 # but we know of no workaround that is simple, portable, and efficient.
4484 # So, don't put newlines in cache variables' values.
4485 # Ultrix sh set writes to stderr and can't be redirected directly,
4486 # and sets the high bit in the cache file unless we assign to the vars.
4489 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4491 # `set' does not quote correctly, so add quotes (double-quote
4492 # substitution turns \\\\ into \\, and sed turns \\ into \).
4495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4498 # `set' quotes correctly as required by POSIX, so do not add quotes.
4500 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4509 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4511 if cmp -s $cache_file confcache; then :; else
4512 if test -w $cache_file; then
4513 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4514 cat confcache >$cache_file
4516 echo "not updating unwritable cache $cache_file"
4521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4522 # Let make expand exec_prefix.
4523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4525 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4526 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4527 # trailing colons and then remove the whole line if VPATH becomes empty
4528 # (actually we leave an empty line to preserve line numbers).
4529 if test "x$srcdir" = x.; then
4530 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4531 s/:*\$(srcdir):*/:/;
4532 s/:*\${srcdir}:*/:/;
4534 s/^\([^=]*=[ ]*\):*/\1/;
4540 DEFS=-DHAVE_CONFIG_H
4542 : ${CONFIG_STATUS=./config.status}
4543 ac_clean_files_save=$ac_clean_files
4544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4545 { echo "$as_me:4545: creating $CONFIG_STATUS" >&5
4546 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4547 cat >$CONFIG_STATUS <<_ACEOF
4549 # Generated automatically by configure.
4550 # Run this file to recreate the current configuration.
4551 # Compiler output produced by configure, useful for debugging
4552 # configure, is in config.log if it exists.
4555 SHELL=\${CONFIG_SHELL-$SHELL}
4556 ac_cs_invocation="\$0 \$@"
4560 cat >>$CONFIG_STATUS <<\_ACEOF
4561 # Be Bourne compatible
4562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4565 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4569 # Name of the executable.
4570 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4572 if expr a : '\(a\)' >/dev/null 2>&1; then
4578 rm -f conf$$ conf$$.exe conf$$.file
4580 if ln -s conf$$.file conf$$ 2>/dev/null; then
4581 # We could just check for DJGPP; but this test a) works b) is more generic
4582 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4583 if test -f conf$$.exe; then
4584 # Don't use ln at all; we don't have any links
4589 elif ln conf$$.file conf$$ 2>/dev/null; then
4594 rm -f conf$$ conf$$.exe conf$$.file
4596 as_executable_p="test -f"
4598 # Support unset when possible.
4599 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4606 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4607 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4608 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4609 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4610 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4611 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4612 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4613 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4616 # We need space, tab and new line, in precisely that order.
4622 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4628 # Files that config.status was made for.
4629 if test -n "$ac_config_files"; then
4630 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4633 if test -n "$ac_config_headers"; then
4634 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4637 if test -n "$ac_config_links"; then
4638 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4641 if test -n "$ac_config_commands"; then
4642 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4645 cat >>$CONFIG_STATUS <<\EOF
4648 \`$as_me' instantiates files from templates according to the
4649 current configuration.
4651 Usage: $0 [OPTIONS] [FILE]...
4653 -h, --help print this help, then exit
4654 -V, --version print version number, then exit
4655 -d, --debug don't remove temporary files
4656 --recheck update $as_me by reconfiguring in the same conditions
4657 --file=FILE[:TEMPLATE]
4658 instantiate the configuration file FILE
4659 --header=FILE[:TEMPLATE]
4660 instantiate the configuration header FILE
4662 Configuration files:
4665 Configuration headers:
4668 Report bugs to <bug-autoconf@gnu.org>."
4671 cat >>$CONFIG_STATUS <<EOF
4674 configured by $0, generated by GNU Autoconf 2.52,
4675 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4677 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4678 Free Software Foundation, Inc.
4679 This config.status script is free software; the Free Software Foundation
4680 gives unlimited permission to copy, distribute and modify it."
4684 cat >>$CONFIG_STATUS <<\EOF
4685 # If no file are specified by the user, then we need to provide default
4686 # value. By we need to know if files were specified by the user.
4692 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4693 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4695 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4699 *) # This is not an option, so the user has probably given explicit
4701 ac_need_defaults=false;;
4705 # Handling of the options.
4707 cat >>$CONFIG_STATUS <<EOF
4708 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4709 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4710 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4712 cat >>$CONFIG_STATUS <<\EOF
4713 --version | --vers* | -V )
4714 echo "$ac_cs_version"; exit 0 ;;
4716 # Conflict between --help and --header
4717 { { echo "$as_me:4717: error: ambiguous option: $1
4718 Try \`$0 --help' for more information." >&5
4719 echo "$as_me: error: ambiguous option: $1
4720 Try \`$0 --help' for more information." >&2;}
4721 { (exit 1); exit 1; }; };;
4722 --help | --hel | -h )
4723 echo "$ac_cs_usage"; exit 0 ;;
4724 --debug | --d* | -d )
4726 --file | --fil | --fi | --f )
4728 CONFIG_FILES="$CONFIG_FILES $1"
4729 ac_need_defaults=false;;
4730 --header | --heade | --head | --hea )
4732 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4733 ac_need_defaults=false;;
4736 -*) { { echo "$as_me:4736: error: unrecognized option: $1
4737 Try \`$0 --help' for more information." >&5
4738 echo "$as_me: error: unrecognized option: $1
4739 Try \`$0 --help' for more information." >&2;}
4740 { (exit 1); exit 1; }; } ;;
4742 *) ac_config_targets="$ac_config_targets $1" ;;
4751 ## ----------------------- ##
4752 ## Running config.status. ##
4753 ## ----------------------- ##
4755 This file was extended by $as_me 2.52, executed with
4756 CONFIG_FILES = $CONFIG_FILES
4757 CONFIG_HEADERS = $CONFIG_HEADERS
4758 CONFIG_LINKS = $CONFIG_LINKS
4759 CONFIG_COMMANDS = $CONFIG_COMMANDS
4761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4766 cat >>$CONFIG_STATUS <<\EOF
4767 for ac_config_target in $ac_config_targets
4769 case "$ac_config_target" in
4770 # Handling of arguments.
4771 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
4772 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4773 *) { { echo "$as_me:4773: error: invalid argument: $ac_config_target" >&5
4774 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4775 { (exit 1); exit 1; }; };;
4779 # If the user did not use the arguments to specify the items to instantiate,
4780 # then the envvar interface is used. Set only those that are not.
4781 # We use the long form for the default assignment because of an extremely
4782 # bizarre bug on SunOS 4.1.3.
4783 if $ac_need_defaults; then
4784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4785 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4788 # Create a temporary directory, and hook for its removal unless debugging.
4791 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4792 trap '{ (exit 1); exit 1; }' 1 2 13 15
4795 # Create a (secure) tmp directory for tmp files.
4798 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4799 test -n "$tmp" && test -d "$tmp"
4802 tmp=$TMPDIR/cs$$-$RANDOM
4803 (umask 077 && mkdir $tmp)
4806 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4807 { (exit 1); exit 1; }
4812 cat >>$CONFIG_STATUS <<EOF
4815 # CONFIG_FILES section.
4818 # No need to generate the scripts if there are no CONFIG_FILES.
4819 # This happens for instance when ./config.status config.h
4820 if test -n "\$CONFIG_FILES"; then
4821 # Protect against being on the right side of a sed subst in config.status.
4822 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4823 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4824 s,@SHELL@,$SHELL,;t t
4825 s,@exec_prefix@,$exec_prefix,;t t
4826 s,@prefix@,$prefix,;t t
4827 s,@program_transform_name@,$program_transform_name,;t t
4828 s,@bindir@,$bindir,;t t
4829 s,@sbindir@,$sbindir,;t t
4830 s,@libexecdir@,$libexecdir,;t t
4831 s,@datadir@,$datadir,;t t
4832 s,@sysconfdir@,$sysconfdir,;t t
4833 s,@sharedstatedir@,$sharedstatedir,;t t
4834 s,@localstatedir@,$localstatedir,;t t
4835 s,@libdir@,$libdir,;t t
4836 s,@includedir@,$includedir,;t t
4837 s,@oldincludedir@,$oldincludedir,;t t
4838 s,@infodir@,$infodir,;t t
4839 s,@mandir@,$mandir,;t t
4840 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4841 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4842 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4843 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4844 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4845 s,@build_alias@,$build_alias,;t t
4846 s,@host_alias@,$host_alias,;t t
4847 s,@target_alias@,$target_alias,;t t
4848 s,@ECHO_C@,$ECHO_C,;t t
4849 s,@ECHO_N@,$ECHO_N,;t t
4850 s,@ECHO_T@,$ECHO_T,;t t
4851 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4854 s,@build@,$build,;t t
4855 s,@build_cpu@,$build_cpu,;t t
4856 s,@build_vendor@,$build_vendor,;t t
4857 s,@build_os@,$build_os,;t t
4859 s,@host_cpu@,$host_cpu,;t t
4860 s,@host_vendor@,$host_vendor,;t t
4861 s,@host_os@,$host_os,;t t
4862 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
4863 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
4864 s,@VERSION_POINT@,$VERSION_POINT,;t t
4866 s,@CFLAGS@,$CFLAGS,;t t
4867 s,@LDFLAGS@,$LDFLAGS,;t t
4868 s,@CPPFLAGS@,$CPPFLAGS,;t t
4869 s,@ac_ct_CC@,$ac_ct_CC,;t t
4870 s,@EXEEXT@,$EXEEXT,;t t
4871 s,@OBJEXT@,$OBJEXT,;t t
4874 s,@WIN_ONLY@,$WIN_ONLY,;t t
4875 s,@PTHREAD_ONLY@,$PTHREAD_ONLY,;t t
4876 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
4877 s,@AMIGAOS_ONLY@,$AMIGAOS_ONLY,;t t
4878 s,@GNU_REGEX_ONLY@,$GNU_REGEX_ONLY,;t t
4879 s,@PCRE_REGEX_ONLY@,$PCRE_REGEX_ONLY,;t t
4880 s,@STATIC_PCRE_ONLY@,$STATIC_PCRE_ONLY,;t t
4881 s,@STATIC_PCRS_ONLY@,$STATIC_PCRS_ONLY,;t t
4882 s,@SPECIAL_CFLAGS@,$SPECIAL_CFLAGS,;t t
4883 s,@PTHREAD_LIB@,$PTHREAD_LIB,;t t
4888 cat >>$CONFIG_STATUS <<\EOF
4889 # Split the substitutions into bite-sized pieces for seds with
4890 # small command number limits, like on Digital OSF/1 and HP-UX.
4892 ac_sed_frag=1 # Number of current file.
4893 ac_beg=1 # First line for current file.
4894 ac_end=$ac_max_sed_lines # Line after last line for current file.
4897 while $ac_more_lines; do
4898 if test $ac_beg -gt 1; then
4899 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4901 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4903 if test ! -s $tmp/subs.frag; then
4906 # The purpose of the label and of the branching condition is to
4907 # speed up the sed processing (if there are no `@' at all, there
4908 # is no need to browse any of the substitutions).
4909 # These are the two extra sed commands mentioned above.
4911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4912 if test -z "$ac_sed_cmds"; then
4913 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4915 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4917 ac_sed_frag=`expr $ac_sed_frag + 1`
4919 ac_end=`expr $ac_end + $ac_max_sed_lines`
4922 if test -z "$ac_sed_cmds"; then
4925 fi # test -n "$CONFIG_FILES"
4928 cat >>$CONFIG_STATUS <<\EOF
4929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4932 - | *:- | *:-:* ) # input from stdin
4934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4938 * ) ac_file_in=$ac_file.in ;;
4941 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4942 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4943 X"$ac_file" : 'X\(//\)[^/]' \| \
4944 X"$ac_file" : 'X\(//\)$' \| \
4945 X"$ac_file" : 'X\(/\)' \| \
4946 . : '\(.\)' 2>/dev/null ||
4948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4950 /^X\(\/\/\)$/{ s//\1/; q; }
4951 /^X\(\/\).*/{ s//\1/; q; }
4953 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4955 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4959 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4960 case $as_mkdir_dir in
4961 # Skip DOS drivespec
4962 ?:) as_incr_dir=$as_mkdir_dir ;;
4964 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4965 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4970 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4971 # A "../" for each directory in $ac_dir_suffix.
4972 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4974 ac_dir_suffix= ac_dots=
4979 if test -z "$ac_dots"; then
4982 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4985 ac_srcdir=$srcdir$ac_dir_suffix;
4986 ac_top_srcdir=$srcdir ;;
4988 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4989 ac_top_srcdir=$ac_dots$srcdir ;;
4992 if test x"$ac_file" != x-; then
4993 { echo "$as_me:4993: creating $ac_file" >&5
4994 echo "$as_me: creating $ac_file" >&6;}
4997 # Let's still pretend it is `configure' which instantiates (i.e., don't
4998 # use $as_me), people would be surprised to read:
4999 # /* config.h. Generated automatically by config.status. */
5000 configure_input="Generated automatically from `echo $ac_file_in |
5001 sed 's,.*/,,'` by configure."
5003 # First look for the input files in the build tree, otherwise in the
5005 ac_file_inputs=`IFS=:
5006 for f in $ac_file_in; do
5008 -) echo $tmp/stdin ;;
5010 # Absolute (can't be DOS-style, as IFS=:)
5011 test -f "$f" || { { echo "$as_me:5011: error: cannot find input file: $f" >&5
5012 echo "$as_me: error: cannot find input file: $f" >&2;}
5013 { (exit 1); exit 1; }; }
5016 if test -f "$f"; then
5019 elif test -f "$srcdir/$f"; then
5024 { { echo "$as_me:5024: error: cannot find input file: $f" >&5
5025 echo "$as_me: error: cannot find input file: $f" >&2;}
5026 { (exit 1); exit 1; }; }
5029 done` || { (exit 1); exit 1; }
5031 cat >>$CONFIG_STATUS <<EOF
5035 cat >>$CONFIG_STATUS <<\EOF
5037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5038 s,@configure_input@,$configure_input,;t t
5039 s,@srcdir@,$ac_srcdir,;t t
5040 s,@top_srcdir@,$ac_top_srcdir,;t t
5041 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5043 if test x"$ac_file" != x-; then
5044 mv $tmp/out $ac_file
5052 cat >>$CONFIG_STATUS <<\EOF
5055 # CONFIG_HEADER section.
5058 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5059 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5061 # ac_d sets the value in "#define NAME VALUE" lines.
5062 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5063 ac_dB='[ ].*$,\1#\2'
5066 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5067 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5068 ac_uB='$,\1#\2define\3'
5072 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5073 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5075 - | *:- | *:-:* ) # input from stdin
5077 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5079 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5080 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5081 * ) ac_file_in=$ac_file.in ;;
5084 test x"$ac_file" != x- && { echo "$as_me:5084: creating $ac_file" >&5
5085 echo "$as_me: creating $ac_file" >&6;}
5087 # First look for the input files in the build tree, otherwise in the
5089 ac_file_inputs=`IFS=:
5090 for f in $ac_file_in; do
5092 -) echo $tmp/stdin ;;
5094 # Absolute (can't be DOS-style, as IFS=:)
5095 test -f "$f" || { { echo "$as_me:5095: error: cannot find input file: $f" >&5
5096 echo "$as_me: error: cannot find input file: $f" >&2;}
5097 { (exit 1); exit 1; }; }
5100 if test -f "$f"; then
5103 elif test -f "$srcdir/$f"; then
5108 { { echo "$as_me:5108: error: cannot find input file: $f" >&5
5109 echo "$as_me: error: cannot find input file: $f" >&2;}
5110 { (exit 1); exit 1; }; }
5113 done` || { (exit 1); exit 1; }
5114 # Remove the trailing spaces.
5115 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5119 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5120 # `conftest.undefs', that substitutes the proper values into
5121 # config.h.in to produce config.h. The first handles `#define'
5122 # templates, and the second `#undef' templates.
5123 # And first: Protect against being on the right side of a sed subst in
5124 # config.status. Protect against being in an unquoted here document
5126 rm -f conftest.defines conftest.undefs
5127 # Using a here document instead of a string reduces the quoting nightmare.
5128 # Putting comments in sed scripts is not portable.
5130 # `end' is used to avoid that the second main sed command (meant for
5131 # 0-ary CPP macros) applies to n-ary macro definitions.
5132 # See the Autoconf documentation for `clear'.
5133 cat >confdef2sed.sed <<\EOF
5138 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5140 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5143 # If some macros were called several times there might be several times
5144 # the same #defines, which is useless. Nevertheless, we may not want to
5145 # sort them, since we want the *last* AC-DEFINE to be honored.
5146 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5147 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5148 rm -f confdef2sed.sed
5150 # This sed command replaces #undef with comments. This is necessary, for
5151 # example, in the case of _POSIX_SOURCE, which is predefined and required
5152 # on some systems where configure will not decide to define it.
5153 cat >>conftest.undefs <<\EOF
5154 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5157 # Break up conftest.defines because some shells have a limit on the size
5158 # of here documents, and old seds have small limits too (100 cmds).
5159 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5160 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5161 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5162 echo ' :' >>$CONFIG_STATUS
5164 while grep . conftest.defines >/dev/null
5166 # Write a limited-size here document to $tmp/defines.sed.
5167 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5168 # Speed up: don't consider the non `#define' lines.
5169 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5170 # Work around the forget-to-reset-the-flag bug.
5171 echo 't clr' >>$CONFIG_STATUS
5172 echo ': clr' >>$CONFIG_STATUS
5173 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5175 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5179 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5180 rm -f conftest.defines
5181 mv conftest.tail conftest.defines
5183 rm -f conftest.defines
5184 echo ' fi # egrep' >>$CONFIG_STATUS
5185 echo >>$CONFIG_STATUS
5187 # Break up conftest.undefs because some shells have a limit on the size
5188 # of here documents, and old seds have small limits too (100 cmds).
5189 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5191 while grep . conftest.undefs >/dev/null
5193 # Write a limited-size here document to $tmp/undefs.sed.
5194 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5195 # Speed up: don't consider the non `#undef'
5196 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5197 # Work around the forget-to-reset-the-flag bug.
5198 echo 't clr' >>$CONFIG_STATUS
5199 echo ': clr' >>$CONFIG_STATUS
5200 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5202 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5206 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5207 rm -f conftest.undefs
5208 mv conftest.tail conftest.undefs
5210 rm -f conftest.undefs
5212 cat >>$CONFIG_STATUS <<\EOF
5213 # Let's still pretend it is `configure' which instantiates (i.e., don't
5214 # use $as_me), people would be surprised to read:
5215 # /* config.h. Generated automatically by config.status. */
5216 if test x"$ac_file" = x-; then
5217 echo "/* Generated automatically by configure. */" >$tmp/config.h
5219 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5221 cat $tmp/in >>$tmp/config.h
5223 if test x"$ac_file" != x-; then
5224 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5225 { echo "$as_me:5225: $ac_file is unchanged" >&5
5226 echo "$as_me: $ac_file is unchanged" >&6;}
5228 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5229 X"$ac_file" : 'X\(//\)[^/]' \| \
5230 X"$ac_file" : 'X\(//\)$' \| \
5231 X"$ac_file" : 'X\(/\)' \| \
5232 . : '\(.\)' 2>/dev/null ||
5234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5236 /^X\(\/\/\)$/{ s//\1/; q; }
5237 /^X\(\/\).*/{ s//\1/; q; }
5239 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5241 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5245 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5246 case $as_mkdir_dir in
5247 # Skip DOS drivespec
5248 ?:) as_incr_dir=$as_mkdir_dir ;;
5250 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5251 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5258 mv $tmp/config.h $ac_file
5267 cat >>$CONFIG_STATUS <<\EOF
5269 { (exit 0); exit 0; }
5271 chmod +x $CONFIG_STATUS
5272 ac_clean_files=$ac_clean_files_save
5274 # configure is writing to config.log, and then calls config.status.
5275 # config.status does its own redirection, appending to config.log.
5276 # Unfortunately, on DOS this fails, as config.log is still kept open
5277 # by configure, so config.status won't be able to write to it; its
5278 # output is simply discarded. So we exec the FD to /dev/null,
5279 # effectively closing config.log, so it can be properly (re)opened and
5280 # appended to by config.status. When coming back to configure, we
5281 # need to make the FD available again.
5282 if test "$no_create" != yes; then
5285 $SHELL $CONFIG_STATUS || ac_cs_success=false
5287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5288 # would make configure fail if this is the last instruction.
5289 $ac_cs_success || { (exit 1); exit 1; }