2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for middleman 1.0.
5 # Report bugs to <jasonmc@sympatico.ca>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
41 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
43 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conftest.sh
88 echo "exit 0" >>conftest.sh
90 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
137 if ("$as_dir/$as_base" -c '
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 if mkdir -p . 2>/dev/null; then
223 as_executable_p="test -f"
225 # Sed expression to map a string onto a valid CPP name.
226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228 # Sed expression to map a string onto a valid variable name.
229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # We need space, tab and new line, in precisely that order.
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 ac_default_prefix=/usr/local
253 ac_config_libobj_dir=.
258 SHELL=${CONFIG_SHELL-/bin/sh}
260 # Maximum number of lines to put in a shell here document.
261 # This variable seems obsolete. It should probably be removed, and
262 # only ac_max_sed_lines should be used.
263 : ${ac_max_here_lines=38}
265 # Identity of this package.
266 PACKAGE_NAME='middleman'
267 PACKAGE_TARNAME='middleman'
268 PACKAGE_VERSION='1.0'
269 PACKAGE_STRING='middleman 1.0'
270 PACKAGE_BUGREPORT='jasonmc@sympatico.ca'
272 ac_unique_file="src/mem.c"
273 # Factoring default headers for most tests.
274 ac_includes_default="\
277 # include <sys/types.h>
280 # include <sys/stat.h>
291 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <strings.h>
300 # include <inttypes.h>
310 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS STRIP CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
313 # Initialize some variables set by options.
315 ac_init_version=false
316 # The variables have the same names as the options, with
317 # dashes changed to underlines.
325 program_transform_name=s,x,x,
333 # Installation directory options.
334 # These are left unexpanded so users can "make install exec_prefix=/foo"
335 # and all the variables that are supposed to be based on exec_prefix
336 # by default will actually change.
337 # Use braces instead of parens because sh, perl, etc. also accept them.
338 bindir='${exec_prefix}/bin'
339 sbindir='${exec_prefix}/sbin'
340 libexecdir='${exec_prefix}/libexec'
341 datadir='${prefix}/share'
342 sysconfdir='${prefix}/etc'
343 sharedstatedir='${prefix}/com'
344 localstatedir='${prefix}/var'
345 libdir='${exec_prefix}/lib'
346 includedir='${prefix}/include'
347 oldincludedir='/usr/include'
348 infodir='${prefix}/info'
349 mandir='${prefix}/man'
354 # If the previous option needs an argument, assign it.
355 if test -n "$ac_prev"; then
356 eval "$ac_prev=\$ac_option"
361 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363 # Accept the important Cygnus configure options, so we can diagnose typos.
367 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 -build | --build | --buil | --bui | --bu)
373 ac_prev=build_alias ;;
374 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
375 build_alias=$ac_optarg ;;
377 -cache-file | --cache-file | --cache-fil | --cache-fi \
378 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
379 ac_prev=cache_file ;;
380 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
381 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
382 cache_file=$ac_optarg ;;
385 cache_file=config.cache ;;
387 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 datadir=$ac_optarg ;;
393 -disable-* | --disable-*)
394 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
395 # Reject names that are not valid shell variable names.
396 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
397 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
398 { (exit 1); exit 1; }; }
399 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
400 eval "enable_$ac_feature=no" ;;
402 -enable-* | --enable-*)
403 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
404 # Reject names that are not valid shell variable names.
405 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
407 { (exit 1); exit 1; }; }
408 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 eval "enable_$ac_feature='$ac_optarg'" ;;
415 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
416 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
417 | --exec | --exe | --ex)
418 ac_prev=exec_prefix ;;
419 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
420 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
421 | --exec=* | --exe=* | --ex=*)
422 exec_prefix=$ac_optarg ;;
424 -gas | --gas | --ga | --g)
425 # Obsolete; use --with-gas.
428 -help | --help | --hel | --he | -h)
430 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
431 ac_init_help=recursive ;;
432 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
433 ac_init_help=short ;;
435 -host | --host | --hos | --ho)
436 ac_prev=host_alias ;;
437 -host=* | --host=* | --hos=* | --ho=*)
438 host_alias=$ac_optarg ;;
440 -includedir | --includedir | --includedi | --included | --include \
441 | --includ | --inclu | --incl | --inc)
442 ac_prev=includedir ;;
443 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
444 | --includ=* | --inclu=* | --incl=* | --inc=*)
445 includedir=$ac_optarg ;;
447 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
450 infodir=$ac_optarg ;;
452 -libdir | --libdir | --libdi | --libd)
454 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
458 | --libexe | --libex | --libe)
459 ac_prev=libexecdir ;;
460 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
461 | --libexe=* | --libex=* | --libe=*)
462 libexecdir=$ac_optarg ;;
464 -localstatedir | --localstatedir | --localstatedi | --localstated \
465 | --localstate | --localstat | --localsta | --localst \
466 | --locals | --local | --loca | --loc | --lo)
467 ac_prev=localstatedir ;;
468 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
469 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
470 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
471 localstatedir=$ac_optarg ;;
473 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 # Obsolete; use --without-fp.
482 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
483 | --no-cr | --no-c | -n)
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
491 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
492 | --oldin | --oldi | --old | --ol | --o)
493 ac_prev=oldincludedir ;;
494 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
495 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
496 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
497 oldincludedir=$ac_optarg ;;
499 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 -program-prefix | --program-prefix | --program-prefi | --program-pref \
505 | --program-pre | --program-pr | --program-p)
506 ac_prev=program_prefix ;;
507 -program-prefix=* | --program-prefix=* | --program-prefi=* \
508 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
509 program_prefix=$ac_optarg ;;
511 -program-suffix | --program-suffix | --program-suffi | --program-suff \
512 | --program-suf | --program-su | --program-s)
513 ac_prev=program_suffix ;;
514 -program-suffix=* | --program-suffix=* | --program-suffi=* \
515 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
516 program_suffix=$ac_optarg ;;
518 -program-transform-name | --program-transform-name \
519 | --program-transform-nam | --program-transform-na \
520 | --program-transform-n | --program-transform- \
521 | --program-transform | --program-transfor \
522 | --program-transfo | --program-transf \
523 | --program-trans | --program-tran \
524 | --progr-tra | --program-tr | --program-t)
525 ac_prev=program_transform_name ;;
526 -program-transform-name=* | --program-transform-name=* \
527 | --program-transform-nam=* | --program-transform-na=* \
528 | --program-transform-n=* | --program-transform-=* \
529 | --program-transform=* | --program-transfor=* \
530 | --program-transfo=* | --program-transf=* \
531 | --program-trans=* | --program-tran=* \
532 | --progr-tra=* | --program-tr=* | --program-t=*)
533 program_transform_name=$ac_optarg ;;
535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
536 | -silent | --silent | --silen | --sile | --sil)
539 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 sbindir=$ac_optarg ;;
545 -sharedstatedir | --sharedstatedir | --sharedstatedi \
546 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
547 | --sharedst | --shareds | --shared | --share | --shar \
549 ac_prev=sharedstatedir ;;
550 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
551 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
552 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 sharedstatedir=$ac_optarg ;;
556 -site | --site | --sit)
558 -site=* | --site=* | --sit=*)
561 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
567 | --syscon | --sysco | --sysc | --sys | --sy)
568 ac_prev=sysconfdir ;;
569 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
570 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
571 sysconfdir=$ac_optarg ;;
573 -target | --target | --targe | --targ | --tar | --ta | --t)
574 ac_prev=target_alias ;;
575 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
576 target_alias=$ac_optarg ;;
578 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 -version | --version | --versio | --versi | --vers | -V)
585 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 eval "with_$ac_package='$ac_optarg'" ;;
597 -without-* | --without-*)
598 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
599 # Reject names that are not valid shell variable names.
600 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
601 { echo "$as_me: error: invalid package name: $ac_package" >&2
602 { (exit 1); exit 1; }; }
603 ac_package=`echo $ac_package | sed 's/-/_/g'`
604 eval "with_$ac_package=no" ;;
607 # Obsolete; use --with-x.
610 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
611 | --x-incl | --x-inc | --x-in | --x-i)
612 ac_prev=x_includes ;;
613 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
614 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
615 x_includes=$ac_optarg ;;
617 -x-libraries | --x-libraries | --x-librarie | --x-librari \
618 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
619 ac_prev=x_libraries ;;
620 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
621 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
622 x_libraries=$ac_optarg ;;
624 -*) { echo "$as_me: error: unrecognized option: $ac_option
625 Try \`$0 --help' for more information." >&2
626 { (exit 1); exit 1; }; }
630 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
631 # Reject names that are not valid shell variable names.
632 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
633 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
634 { (exit 1); exit 1; }; }
635 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
636 eval "$ac_envvar='$ac_optarg'"
640 # FIXME: should be removed in autoconf 3.0.
641 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
642 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
643 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
644 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 if test -n "$ac_prev"; then
651 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
652 { echo "$as_me: error: missing argument to $ac_option" >&2
653 { (exit 1); exit 1; }; }
656 # Be sure to have absolute paths.
657 for ac_var in exec_prefix prefix
659 eval ac_val=$`echo $ac_var`
661 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
667 # Be sure to have absolute paths.
668 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
669 localstatedir libdir includedir oldincludedir infodir mandir
671 eval ac_val=$`echo $ac_var`
673 [\\/$]* | ?:[\\/]* ) ;;
674 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
675 { (exit 1); exit 1; }; };;
679 # There might be people who depend on the old broken behavior: `$host'
680 # used to hold the argument of --host etc.
681 # FIXME: To remove some day.
686 # FIXME: To remove some day.
687 if test "x$host_alias" != x; then
688 if test "x$build_alias" = x; then
689 cross_compiling=maybe
690 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
691 If a cross compiler is detected then cross compile mode will be used." >&2
692 elif test "x$build_alias" != "x$host_alias"; then
698 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700 test "$silent" = yes && exec 6>/dev/null
703 # Find the source files, if location was not specified.
704 if test -z "$srcdir"; then
705 ac_srcdir_defaulted=yes
706 # Try the directory containing this script, then its parent.
707 ac_confdir=`(dirname "$0") 2>/dev/null ||
708 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
709 X"$0" : 'X\(//\)[^/]' \| \
710 X"$0" : 'X\(//\)$' \| \
711 X"$0" : 'X\(/\)' \| \
712 . : '\(.\)' 2>/dev/null ||
714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
716 /^X\(\/\/\)$/{ s//\1/; q; }
717 /^X\(\/\).*/{ s//\1/; q; }
720 if test ! -r $srcdir/$ac_unique_file; then
724 ac_srcdir_defaulted=no
726 if test ! -r $srcdir/$ac_unique_file; then
727 if test "$ac_srcdir_defaulted" = yes; then
728 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
729 { (exit 1); exit 1; }; }
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
732 { (exit 1); exit 1; }; }
735 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
736 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
737 { (exit 1); exit 1; }; }
738 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
739 ac_env_build_alias_set=${build_alias+set}
740 ac_env_build_alias_value=$build_alias
741 ac_cv_env_build_alias_set=${build_alias+set}
742 ac_cv_env_build_alias_value=$build_alias
743 ac_env_host_alias_set=${host_alias+set}
744 ac_env_host_alias_value=$host_alias
745 ac_cv_env_host_alias_set=${host_alias+set}
746 ac_cv_env_host_alias_value=$host_alias
747 ac_env_target_alias_set=${target_alias+set}
748 ac_env_target_alias_value=$target_alias
749 ac_cv_env_target_alias_set=${target_alias+set}
750 ac_cv_env_target_alias_value=$target_alias
751 ac_env_CC_set=${CC+set}
753 ac_cv_env_CC_set=${CC+set}
754 ac_cv_env_CC_value=$CC
755 ac_env_CFLAGS_set=${CFLAGS+set}
756 ac_env_CFLAGS_value=$CFLAGS
757 ac_cv_env_CFLAGS_set=${CFLAGS+set}
758 ac_cv_env_CFLAGS_value=$CFLAGS
759 ac_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_env_LDFLAGS_value=$LDFLAGS
761 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_cv_env_LDFLAGS_value=$LDFLAGS
763 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_env_CPPFLAGS_value=$CPPFLAGS
765 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
767 ac_env_CPP_set=${CPP+set}
768 ac_env_CPP_value=$CPP
769 ac_cv_env_CPP_set=${CPP+set}
770 ac_cv_env_CPP_value=$CPP
773 # Report the --help message.
775 if test "$ac_init_help" = "long"; then
776 # Omit some internal or obsolete options to make the list less imposing.
777 # This message is too long to be a string in the A/UX 3.1 sh.
779 \`configure' configures middleman 1.0 to adapt to many kinds of systems.
781 Usage: $0 [OPTION]... [VAR=VALUE]...
783 To assign environment variables (e.g., CC, CFLAGS...), specify them as
784 VAR=VALUE. See below for descriptions of some of the useful variables.
786 Defaults for the options are specified in brackets.
789 -h, --help display this help and exit
790 --help=short display options specific to this package
791 --help=recursive display the short help of all the included packages
792 -V, --version display version information and exit
793 -q, --quiet, --silent do not print \`checking...' messages
794 --cache-file=FILE cache test results in FILE [disabled]
795 -C, --config-cache alias for \`--cache-file=config.cache'
796 -n, --no-create do not create output files
797 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 Installation directories:
803 --prefix=PREFIX install architecture-independent files in PREFIX
805 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 By default, \`make install' will install all the files in
809 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
810 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
811 for instance \`--prefix=\$HOME'.
813 For better control, use the options below.
815 Fine tuning of the installation directories:
816 --bindir=DIR user executables [EPREFIX/bin]
817 --sbindir=DIR system admin executables [EPREFIX/sbin]
818 --libexecdir=DIR program executables [EPREFIX/libexec]
819 --datadir=DIR read-only architecture-independent data [PREFIX/share]
820 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
821 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
822 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
823 --libdir=DIR object code libraries [EPREFIX/lib]
824 --includedir=DIR C header files [PREFIX/include]
825 --oldincludedir=DIR C header files for non-gcc [/usr/include]
826 --infodir=DIR info documentation [PREFIX/info]
827 --mandir=DIR man documentation [PREFIX/man]
834 if test -n "$ac_init_help"; then
835 case $ac_init_help in
836 short | recursive ) echo "Configuration of middleman 1.0:";;
841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843 --enable-syslog use syslog for logging
844 --enable-debug compile with debugging symbols
846 Some influential environment variables:
847 CC C compiler command
848 CFLAGS C compiler flags
849 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
850 nonstandard directory <lib dir>
851 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
852 headers in a nonstandard directory <include dir>
855 Use these variables to override the choices made by `configure' or to help
856 it to find libraries and programs with nonstandard names/locations.
858 Report bugs to <jasonmc@sympatico.ca>.
862 if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
869 if test "$ac_dir" != .; then
870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871 # A "../" for each directory in $ac_dir_suffix.
872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
874 ac_dir_suffix= ac_top_builddir=
878 .) # No --srcdir option. We are building in place.
880 if test -z "$ac_top_builddir"; then
883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
885 [\\/]* | ?:[\\/]* ) # Absolute path.
886 ac_srcdir=$srcdir$ac_dir_suffix;
887 ac_top_srcdir=$srcdir ;;
889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
900 # Check for guested configure; otherwise get Cygnus style configure.
901 if test -f $ac_srcdir/configure.gnu; then
903 $SHELL $ac_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_srcdir/configure; then
906 $SHELL $ac_srcdir/configure --help=recursive
907 elif test -f $ac_srcdir/configure.ac ||
908 test -f $ac_srcdir/configure.in; then
912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
921 middleman configure 1.0
922 generated by GNU Autoconf 2.54
924 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
925 Free Software Foundation, Inc.
926 This configure script is free software; the Free Software Foundation
927 gives unlimited permission to copy, distribute and modify it.
933 This file contains any messages produced by compilers while
934 running configure, to aid debugging if configure makes a mistake.
936 It was created by middleman $as_me 1.0, which was
937 generated by GNU Autoconf 2.54. Invocation command line was
948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
958 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
961 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
962 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
963 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
971 test -z "$as_dir" && as_dir=.
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n ) continue ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1004 # Get rid of the leading space.
1008 # When interrupted or exit'd, cleanup temporary files, and complete
1009 # config.log. We remove comments because anyway the quotes in there
1010 # would cause problems or look ugly.
1011 # WARNING: Be sure not to use single quotes in there, as some shells,
1012 # such as our DU 5.0 friend, will then `close' the trap.
1013 trap 'exit_status=$?
1014 # Save into config.log some information that might help in debugging.
1019 ## ---------------- ##
1020 ## Cache variables. ##
1021 ## ---------------- ##
1024 # The following way of writing the cache mishandles newlines in values,
1027 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1035 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1042 ## ----------------- ##
1043 ## Output variables. ##
1044 ## ----------------- ##
1047 for ac_var in $ac_subst_vars
1049 eval ac_val=$`echo $ac_var`
1050 echo "$ac_var='"'"'$ac_val'"'"'"
1054 if test -n "$ac_subst_files"; then
1061 for ac_var in $ac_subst_files
1063 eval ac_val=$`echo $ac_var`
1064 echo "$ac_var='"'"'$ac_val'"'"'"
1069 if test -s confdefs.h; then
1076 sed "/^$/d" confdefs.h | sort
1079 test "$ac_signal" != 0 &&
1080 echo "$as_me: caught signal $ac_signal"
1081 echo "$as_me: exit $exit_status"
1083 rm -f core core.* *.core &&
1084 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1087 for ac_signal in 1 2 13 15; do
1088 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1093 rm -rf conftest* confdefs.h
1094 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1097 # Predefined preprocessor variables.
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_NAME "$PACKAGE_NAME"
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_STRING "$PACKAGE_STRING"
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1124 # Let the site file select an alternate cache file if it wants to.
1125 # Prefer explicitly selected file to automatically selected ones.
1126 if test -z "$CONFIG_SITE"; then
1127 if test "x$prefix" != xNONE; then
1128 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1130 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1133 for ac_site_file in $CONFIG_SITE; do
1134 if test -r "$ac_site_file"; then
1135 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1136 echo "$as_me: loading site script $ac_site_file" >&6;}
1137 sed 's/^/| /' "$ac_site_file" >&5
1142 if test -r "$cache_file"; then
1143 # Some versions of bash will fail to source /dev/null (special
1144 # files actually), so we avoid doing that.
1145 if test -f "$cache_file"; then
1146 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1147 echo "$as_me: loading cache $cache_file" >&6;}
1149 [\\/]* | ?:[\\/]* ) . $cache_file;;
1150 *) . ./$cache_file;;
1154 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1155 echo "$as_me: creating cache $cache_file" >&6;}
1159 # Check that the precious variables saved in the cache have kept the same
1161 ac_cache_corrupted=false
1162 for ac_var in `(set) 2>&1 |
1163 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1165 eval ac_new_set=\$ac_env_${ac_var}_set
1166 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1167 eval ac_new_val="\$ac_env_${ac_var}_value"
1168 case $ac_old_set,$ac_new_set in
1170 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1171 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1172 ac_cache_corrupted=: ;;
1174 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1175 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1176 ac_cache_corrupted=: ;;
1179 if test "x$ac_old_val" != "x$ac_new_val"; then
1180 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1181 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1182 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1183 echo "$as_me: former value: $ac_old_val" >&2;}
1184 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1185 echo "$as_me: current value: $ac_new_val" >&2;}
1186 ac_cache_corrupted=:
1189 # Pass precious variables to config.status.
1190 if test "$ac_new_set" = set; then
1192 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1193 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1194 *) ac_arg=$ac_var=$ac_new_val ;;
1196 case " $ac_configure_args " in
1197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1198 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1202 if $ac_cache_corrupted; then
1203 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1204 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1205 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1206 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1207 { (exit 1); exit 1; }; }
1211 ac_cpp='$CPP $CPPFLAGS'
1212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1243 ac_config_headers="$ac_config_headers config.h"
1248 # Deal with compile-time options
1249 # Check whether --enable-syslog or --disable-syslog was given.
1250 if test "${enable_syslog+set}" = set; then
1251 enableval="$enable_syslog"
1252 CFLAGS="$CFLAGS -DUSE_SYSLOG"
1255 ac_cpp='$CPP $CPPFLAGS'
1256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1259 if test -n "$ac_tool_prefix"; then
1260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1262 echo "$as_me:$LINENO: checking for $ac_word" >&5
1263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1264 if test "${ac_cv_prog_CC+set}" = set; then
1265 echo $ECHO_N "(cached) $ECHO_C" >&6
1267 if test -n "$CC"; then
1268 ac_cv_prog_CC="$CC" # Let the user override the test.
1270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274 test -z "$as_dir" && as_dir=.
1275 for ac_exec_ext in '' $ac_executable_extensions; do
1276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1277 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1287 if test -n "$CC"; then
1288 echo "$as_me:$LINENO: result: $CC" >&5
1289 echo "${ECHO_T}$CC" >&6
1291 echo "$as_me:$LINENO: result: no" >&5
1292 echo "${ECHO_T}no" >&6
1296 if test -z "$ac_cv_prog_CC"; then
1298 # Extract the first word of "gcc", so it can be a program name with args.
1299 set dummy gcc; ac_word=$2
1300 echo "$as_me:$LINENO: checking for $ac_word" >&5
1301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1302 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1303 echo $ECHO_N "(cached) $ECHO_C" >&6
1305 if test -n "$ac_ct_CC"; then
1306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1312 test -z "$as_dir" && as_dir=.
1313 for ac_exec_ext in '' $ac_executable_extensions; do
1314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1315 ac_cv_prog_ac_ct_CC="gcc"
1316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1325 if test -n "$ac_ct_CC"; then
1326 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1327 echo "${ECHO_T}$ac_ct_CC" >&6
1329 echo "$as_me:$LINENO: result: no" >&5
1330 echo "${ECHO_T}no" >&6
1338 if test -z "$CC"; then
1339 if test -n "$ac_tool_prefix"; then
1340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1341 set dummy ${ac_tool_prefix}cc; ac_word=$2
1342 echo "$as_me:$LINENO: checking for $ac_word" >&5
1343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1344 if test "${ac_cv_prog_CC+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1347 if test -n "$CC"; then
1348 ac_cv_prog_CC="$CC" # Let the user override the test.
1350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354 test -z "$as_dir" && as_dir=.
1355 for ac_exec_ext in '' $ac_executable_extensions; do
1356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1357 ac_cv_prog_CC="${ac_tool_prefix}cc"
1358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1367 if test -n "$CC"; then
1368 echo "$as_me:$LINENO: result: $CC" >&5
1369 echo "${ECHO_T}$CC" >&6
1371 echo "$as_me:$LINENO: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1376 if test -z "$ac_cv_prog_CC"; then
1378 # Extract the first word of "cc", so it can be a program name with args.
1379 set dummy cc; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 if test -n "$ac_ct_CC"; then
1386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_ac_ct_CC="cc"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1405 if test -n "$ac_ct_CC"; then
1406 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1407 echo "${ECHO_T}$ac_ct_CC" >&6
1409 echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1419 if test -z "$CC"; then
1420 # Extract the first word of "cc", so it can be a program name with args.
1421 set dummy cc; ac_word=$2
1422 echo "$as_me:$LINENO: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 if test -n "$CC"; then
1428 ac_cv_prog_CC="$CC" # Let the user override the test.
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1439 ac_prog_rejected=yes
1443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449 if test $ac_prog_rejected = yes; then
1450 # We found a bogon in the path, so make sure we never use it.
1451 set dummy $ac_cv_prog_CC
1453 if test $# != 0; then
1454 # We chose a different compiler from the bogus one.
1455 # However, it has the same basename, so the bogon will be chosen
1456 # first if we set CC to just the basename; use the full file name.
1458 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1473 if test -z "$CC"; then
1474 if test -n "$ac_tool_prefix"; then
1477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 if test -n "$CC"; then
1505 echo "$as_me:$LINENO: result: $CC" >&5
1506 echo "${ECHO_T}$CC" >&6
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1512 test -n "$CC" && break
1515 if test -z "$CC"; then
1519 # Extract the first word of "$ac_prog", so it can be a program name with args.
1520 set dummy $ac_prog; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 if test -n "$ac_ct_CC"; then
1527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_ac_ct_CC="$ac_prog"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546 if test -n "$ac_ct_CC"; then
1547 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1548 echo "${ECHO_T}$ac_ct_CC" >&6
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1554 test -n "$ac_ct_CC" && break
1563 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1564 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1565 { (exit 1); exit 1; }; }
1567 # Provide some information about the compiler.
1568 echo "$as_me:$LINENO:" \
1569 "checking for C compiler version" >&5
1570 ac_compiler=`set X $ac_compile; echo $2`
1571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1572 (eval $ac_compiler --version </dev/null >&5) 2>&5
1574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1575 (exit $ac_status); }
1576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1577 (eval $ac_compiler -v </dev/null >&5) 2>&5
1579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580 (exit $ac_status); }
1581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1582 (eval $ac_compiler -V </dev/null >&5) 2>&5
1584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1585 (exit $ac_status); }
1587 cat >conftest.$ac_ext <<_ACEOF
1588 #line $LINENO "configure"
1589 #include "confdefs.h"
1599 ac_clean_files_save=$ac_clean_files
1600 ac_clean_files="$ac_clean_files a.out a.exe"
1601 # Try to create an executable without -o first, disregard a.out.
1602 # It will help us diagnose broken compilers, and finding out an intuition
1604 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1605 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1606 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1607 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1608 (eval $ac_link_default) 2>&5
1610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1611 (exit $ac_status); }; then
1612 # Find the output, starting from the most likely. This scheme is
1613 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1616 # Be careful to initialize this variable, since it used to be cached.
1617 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1619 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1620 test -f "$ac_file" || continue
1622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1623 a.out ) # We found the default executable, but exeext='' is most
1626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1627 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1634 echo "$as_me: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1636 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1637 check \`config.log' for details." >&5
1638 echo "$as_me: error: C compiler cannot create executables
1639 check \`config.log' for details." >&2;}
1640 { (exit 77); exit 77; }; }
1643 ac_exeext=$ac_cv_exeext
1644 echo "$as_me:$LINENO: result: $ac_file" >&5
1645 echo "${ECHO_T}$ac_file" >&6
1647 # Check the compiler produces executables we can run. If not, either
1648 # the compiler is broken, or we cross compile.
1649 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1650 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1651 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1652 # If not cross compiling, check that we can run a simple program.
1653 if test "$cross_compiling" != yes; then
1654 if { ac_try='./$ac_file'
1655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1659 (exit $ac_status); }; }; then
1662 if test "$cross_compiling" = maybe; then
1665 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1666 If you meant to cross compile, use \`--host'." >&5
1667 echo "$as_me: error: cannot run C compiled programs.
1668 If you meant to cross compile, use \`--host'." >&2;}
1669 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: yes" >&5
1674 echo "${ECHO_T}yes" >&6
1676 rm -f a.out a.exe conftest$ac_cv_exeext
1677 ac_clean_files=$ac_clean_files_save
1678 # Check the compiler produces executables we can run. If not, either
1679 # the compiler is broken, or we cross compile.
1680 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1681 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1682 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1683 echo "${ECHO_T}$cross_compiling" >&6
1685 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1686 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1688 (eval $ac_link) 2>&5
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }; then
1692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1694 # work properly (i.e., refer to `conftest.exe'), while it won't with
1696 for ac_file in conftest.exe conftest conftest.*; do
1697 test -f "$ac_file" || continue
1699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1707 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1708 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1709 { (exit 1); exit 1; }; }
1712 rm -f conftest$ac_cv_exeext
1713 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1714 echo "${ECHO_T}$ac_cv_exeext" >&6
1716 rm -f conftest.$ac_ext
1717 EXEEXT=$ac_cv_exeext
1719 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1720 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1721 if test "${ac_cv_objext+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 cat >conftest.$ac_ext <<_ACEOF
1725 #line $LINENO "configure"
1726 #include "confdefs.h"
1736 rm -f conftest.o conftest.obj
1737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1738 (eval $ac_compile) 2>&5
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }; then
1742 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1745 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1750 echo "$as_me: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1752 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1753 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1754 { (exit 1); exit 1; }; }
1757 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1759 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1760 echo "${ECHO_T}$ac_cv_objext" >&6
1761 OBJEXT=$ac_cv_objext
1763 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1764 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1765 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 cat >conftest.$ac_ext <<_ACEOF
1769 #line $LINENO "configure"
1770 #include "confdefs.h"
1783 rm -f conftest.$ac_objext
1784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); } &&
1789 { ac_try='test -s conftest.$ac_objext'
1790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1801 rm -f conftest.$ac_objext conftest.$ac_ext
1802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1805 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1806 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1807 GCC=`test $ac_compiler_gnu = yes && echo yes`
1808 ac_test_CFLAGS=${CFLAGS+set}
1809 ac_save_CFLAGS=$CFLAGS
1811 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1812 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1813 if test "${ac_cv_prog_cc_g+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 cat >conftest.$ac_ext <<_ACEOF
1817 #line $LINENO "configure"
1818 #include "confdefs.h"
1828 rm -f conftest.$ac_objext
1829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1830 (eval $ac_compile) 2>&5
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); } &&
1834 { ac_try='test -s conftest.$ac_objext'
1835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); }; }; then
1842 echo "$as_me: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1846 rm -f conftest.$ac_objext conftest.$ac_ext
1848 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1849 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1850 if test "$ac_test_CFLAGS" = set; then
1851 CFLAGS=$ac_save_CFLAGS
1852 elif test $ac_cv_prog_cc_g = yes; then
1853 if test "$GCC" = yes; then
1859 if test "$GCC" = yes; then
1865 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1866 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1867 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 ac_cv_prog_cc_stdc=no
1872 cat >conftest.$ac_ext <<_ACEOF
1873 #line $LINENO "configure"
1874 #include "confdefs.h"
1877 #include <sys/types.h>
1878 #include <sys/stat.h>
1879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1880 struct buf { int x; };
1881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1882 static char *e (p, i)
1888 static char *f (char * (*g) (char **, int), char **p, ...)
1893 s = g (p, va_arg (v,int));
1897 int test (int i, double x);
1898 struct s1 {int (*f) (int a);};
1899 struct s2 {int (*f) (double a);};
1900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1906 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1911 # Don't try gcc -ansi; that turns off useful extensions and
1912 # breaks some systems' header files.
1913 # AIX -qlanglvl=ansi
1914 # Ultrix and OSF/1 -std1
1915 # HP-UX 10.20 and later -Ae
1916 # HP-UX older versions -Aa -D_HPUX_SOURCE
1917 # SVR4 -Xc -D__EXTENSIONS__
1918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1920 CC="$ac_save_CC $ac_arg"
1921 rm -f conftest.$ac_objext
1922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); } &&
1927 { ac_try='test -s conftest.$ac_objext'
1928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; }; then
1933 ac_cv_prog_cc_stdc=$ac_arg
1936 echo "$as_me: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1939 rm -f conftest.$ac_objext
1941 rm -f conftest.$ac_ext conftest.$ac_objext
1946 case "x$ac_cv_prog_cc_stdc" in
1948 echo "$as_me:$LINENO: result: none needed" >&5
1949 echo "${ECHO_T}none needed" >&6 ;;
1951 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1952 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1953 CC="$CC $ac_cv_prog_cc_stdc" ;;
1956 # Some people use a C++ compiler to compile C. Since we use `exit',
1957 # in C++ we need to declare it. In case someone uses the same compiler
1958 # for both compiling C and C++ we need to have the C++ compiler decide
1959 # the declaration of exit, since it's the most demanding environment.
1960 cat >conftest.$ac_ext <<_ACEOF
1965 rm -f conftest.$ac_objext
1966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1967 (eval $ac_compile) 2>&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); } &&
1971 { ac_try='test -s conftest.$ac_objext'
1972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; }; then
1977 for ac_declaration in \
1979 '#include <stdlib.h>' \
1980 'extern "C" void std::exit (int) throw (); using std::exit;' \
1981 'extern "C" void std::exit (int); using std::exit;' \
1982 'extern "C" void exit (int) throw ();' \
1983 'extern "C" void exit (int);' \
1986 cat >conftest.$ac_ext <<_ACEOF
1987 #line $LINENO "configure"
1988 #include "confdefs.h"
1999 rm -f conftest.$ac_objext
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2017 rm -f conftest.$ac_objext conftest.$ac_ext
2018 cat >conftest.$ac_ext <<_ACEOF
2019 #line $LINENO "configure"
2020 #include "confdefs.h"
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2044 echo "$as_me: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2047 rm -f conftest.$ac_objext conftest.$ac_ext
2050 if test -n "$ac_declaration"; then
2051 echo '#ifdef __cplusplus' >>confdefs.h
2052 echo $ac_declaration >>confdefs.h
2053 echo '#endif' >>confdefs.h
2057 echo "$as_me: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2060 rm -f conftest.$ac_objext conftest.$ac_ext
2062 ac_cpp='$CPP $CPPFLAGS'
2063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2068 # Check whether --enable-debug or --disable-debug was given.
2069 if test "${enable_debug+set}" = set; then
2070 enableval="$enable_debug"
2072 echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
2073 echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6
2074 if test "${ac_cv_lib_efence_malloc+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 ac_check_lib_save_LIBS=$LIBS
2078 LIBS="-lefence $LIBS"
2079 cat >conftest.$ac_ext <<_ACEOF
2080 #line $LINENO "configure"
2081 #include "confdefs.h"
2083 /* Override any gcc2 internal prototype to avoid an error. */
2087 /* We use char because int might match the return type of a gcc2
2088 builtin and then its argument prototype would still apply. */
2098 rm -f conftest.$ac_objext conftest$ac_exeext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2100 (eval $ac_link) 2>&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try='test -s conftest$ac_exeext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2110 ac_cv_lib_efence_malloc=yes
2112 echo "$as_me: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 ac_cv_lib_efence_malloc=no
2116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2117 LIBS=$ac_check_lib_save_LIBS
2119 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
2120 echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6
2121 if test $ac_cv_lib_efence_malloc = yes; then
2122 cat >>confdefs.h <<_ACEOF
2123 #define HAVE_LIBEFENCE 1
2126 LIBS="-lefence $LIBS"
2134 # Checks for programs.
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 if test -n "$CC"; then
2169 echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2177 if test -z "$ac_cv_prog_CC"; then
2179 # Extract the first word of "gcc", so it can be a program name with args.
2180 set dummy gcc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 if test -n "$ac_ct_CC"; then
2187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 ac_cv_prog_ac_ct_CC="gcc"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2219 if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
2221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2222 set dummy ${ac_tool_prefix}cc; ac_word=$2
2223 echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test -n "$CC"; then
2229 ac_cv_prog_CC="$CC" # Let the user override the test.
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238 ac_cv_prog_CC="${ac_tool_prefix}cc"
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 if test -n "$CC"; then
2249 echo "$as_me:$LINENO: result: $CC" >&5
2250 echo "${ECHO_T}$CC" >&6
2252 echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6
2257 if test -z "$ac_cv_prog_CC"; then
2259 # Extract the first word of "cc", so it can be a program name with args.
2260 set dummy cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$ac_ct_CC"; then
2267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_ac_ct_CC="cc"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288 echo "${ECHO_T}$ac_ct_CC" >&6
2290 echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2300 if test -z "$CC"; then
2301 # Extract the first word of "cc", so it can be a program name with args.
2302 set dummy cc; ac_word=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_CC+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$CC"; then
2309 ac_cv_prog_CC="$CC" # Let the user override the test.
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2320 ac_prog_rejected=yes
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 if test $ac_prog_rejected = yes; then
2331 # We found a bogon in the path, so make sure we never use it.
2332 set dummy $ac_cv_prog_CC
2334 if test $# != 0; then
2335 # We chose a different compiler from the bogus one.
2336 # However, it has the same basename, so the bogon will be chosen
2337 # first if we set CC to just the basename; use the full file name.
2339 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2345 if test -n "$CC"; then
2346 echo "$as_me:$LINENO: result: $CC" >&5
2347 echo "${ECHO_T}$CC" >&6
2349 echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2354 if test -z "$CC"; then
2355 if test -n "$ac_tool_prefix"; then
2358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 if test -n "$CC"; then
2386 echo "$as_me:$LINENO: result: $CC" >&5
2387 echo "${ECHO_T}$CC" >&6
2389 echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2393 test -n "$CC" && break
2396 if test -z "$CC"; then
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_ac_ct_CC="$ac_prog"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2435 test -n "$ac_ct_CC" && break
2444 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2445 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2446 { (exit 1); exit 1; }; }
2448 # Provide some information about the compiler.
2449 echo "$as_me:$LINENO:" \
2450 "checking for C compiler version" >&5
2451 ac_compiler=`set X $ac_compile; echo $2`
2452 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2453 (eval $ac_compiler --version </dev/null >&5) 2>&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2458 (eval $ac_compiler -v </dev/null >&5) 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2462 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2463 (eval $ac_compiler -V </dev/null >&5) 2>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }
2468 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2469 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 cat >conftest.$ac_ext <<_ACEOF
2474 #line $LINENO "configure"
2475 #include "confdefs.h"
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -s conftest.$ac_objext'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2502 echo "$as_me: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2510 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2511 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2512 GCC=`test $ac_compiler_gnu = yes && echo yes`
2513 ac_test_CFLAGS=${CFLAGS+set}
2514 ac_save_CFLAGS=$CFLAGS
2516 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2517 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2518 if test "${ac_cv_prog_cc_g+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2523 #include "confdefs.h"
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2547 echo "$as_me: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2551 rm -f conftest.$ac_objext conftest.$ac_ext
2553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2554 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2555 if test "$ac_test_CFLAGS" = set; then
2556 CFLAGS=$ac_save_CFLAGS
2557 elif test $ac_cv_prog_cc_g = yes; then
2558 if test "$GCC" = yes; then
2564 if test "$GCC" = yes; then
2570 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2571 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2572 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 ac_cv_prog_cc_stdc=no
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 #include "confdefs.h"
2582 #include <sys/types.h>
2583 #include <sys/stat.h>
2584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2585 struct buf { int x; };
2586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2587 static char *e (p, i)
2593 static char *f (char * (*g) (char **, int), char **p, ...)
2598 s = g (p, va_arg (v,int));
2602 int test (int i, double x);
2603 struct s1 {int (*f) (int a);};
2604 struct s2 {int (*f) (double a);};
2605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2616 # Don't try gcc -ansi; that turns off useful extensions and
2617 # breaks some systems' header files.
2618 # AIX -qlanglvl=ansi
2619 # Ultrix and OSF/1 -std1
2620 # HP-UX 10.20 and later -Ae
2621 # HP-UX older versions -Aa -D_HPUX_SOURCE
2622 # SVR4 -Xc -D__EXTENSIONS__
2623 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2625 CC="$ac_save_CC $ac_arg"
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 ac_cv_prog_cc_stdc=$ac_arg
2641 echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2644 rm -f conftest.$ac_objext
2646 rm -f conftest.$ac_ext conftest.$ac_objext
2651 case "x$ac_cv_prog_cc_stdc" in
2653 echo "$as_me:$LINENO: result: none needed" >&5
2654 echo "${ECHO_T}none needed" >&6 ;;
2656 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2657 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2658 CC="$CC $ac_cv_prog_cc_stdc" ;;
2661 # Some people use a C++ compiler to compile C. Since we use `exit',
2662 # in C++ we need to declare it. In case someone uses the same compiler
2663 # for both compiling C and C++ we need to have the C++ compiler decide
2664 # the declaration of exit, since it's the most demanding environment.
2665 cat >conftest.$ac_ext <<_ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 for ac_declaration in \
2684 '#include <stdlib.h>' \
2685 'extern "C" void std::exit (int) throw (); using std::exit;' \
2686 'extern "C" void std::exit (int); using std::exit;' \
2687 'extern "C" void exit (int) throw ();' \
2688 'extern "C" void exit (int);' \
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 #include "confdefs.h"
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2722 rm -f conftest.$ac_objext conftest.$ac_ext
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2725 #include "confdefs.h"
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2749 echo "$as_me: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2752 rm -f conftest.$ac_objext conftest.$ac_ext
2755 if test -n "$ac_declaration"; then
2756 echo '#ifdef __cplusplus' >>confdefs.h
2757 echo $ac_declaration >>confdefs.h
2758 echo '#endif' >>confdefs.h
2762 echo "$as_me: failed program was:" >&5
2763 cat conftest.$ac_ext >&5
2765 rm -f conftest.$ac_objext conftest.$ac_ext
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 # Checks for libraries.
2774 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2775 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2776 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 ac_check_lib_save_LIBS=$LIBS
2780 LIBS="-lpthread $LIBS"
2781 cat >conftest.$ac_ext <<_ACEOF
2782 #line $LINENO "configure"
2783 #include "confdefs.h"
2785 /* Override any gcc2 internal prototype to avoid an error. */
2789 /* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2791 char pthread_create ();
2800 rm -f conftest.$ac_objext conftest$ac_exeext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2802 (eval $ac_link) 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -s conftest$ac_exeext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 ac_cv_lib_pthread_pthread_create=yes
2814 echo "$as_me: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2816 ac_cv_lib_pthread_pthread_create=no
2818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2819 LIBS=$ac_check_lib_save_LIBS
2821 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2822 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2823 if test $ac_cv_lib_pthread_pthread_create = yes; then
2824 LIBS="$LIBS -lpthread"
2827 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2828 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2829 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 ac_check_lib_save_LIBS=$LIBS
2834 cat >conftest.$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2836 #include "confdefs.h"
2838 /* Override any gcc2 internal prototype to avoid an error. */
2842 /* We use char because int might match the return type of a gcc2
2843 builtin and then its argument prototype would still apply. */
2844 char pthread_create ();
2853 rm -f conftest.$ac_objext conftest$ac_exeext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2855 (eval $ac_link) 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -s conftest$ac_exeext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 ac_cv_lib_c_r_pthread_create=yes
2867 echo "$as_me: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2869 ac_cv_lib_c_r_pthread_create=no
2871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2872 LIBS=$ac_check_lib_save_LIBS
2874 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2875 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2876 if test $ac_cv_lib_c_r_pthread_create = yes; then
2877 cat >>confdefs.h <<_ACEOF
2878 #define HAVE_LIBC_R 1
2884 CFLAGS="$CFLAGS -pthread"
2892 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
2893 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
2894 if test "${ac_cv_lib_z_gzopen+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 ac_check_lib_save_LIBS=$LIBS
2899 cat >conftest.$ac_ext <<_ACEOF
2900 #line $LINENO "configure"
2901 #include "confdefs.h"
2903 /* Override any gcc2 internal prototype to avoid an error. */
2907 /* We use char because int might match the return type of a gcc2
2908 builtin and then its argument prototype would still apply. */
2918 rm -f conftest.$ac_objext conftest$ac_exeext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2920 (eval $ac_link) 2>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -s conftest$ac_exeext'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 ac_cv_lib_z_gzopen=yes
2932 echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 ac_cv_lib_z_gzopen=no
2936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2937 LIBS=$ac_check_lib_save_LIBS
2939 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
2940 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
2941 if test $ac_cv_lib_z_gzopen = yes; then
2942 cat >>confdefs.h <<_ACEOF
2951 for ac_func in gzopen
2953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2954 echo "$as_me:$LINENO: checking for $ac_func" >&5
2955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2956 if eval "test \"\${$as_ac_var+set}\" = set"; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #line $LINENO "configure"
2961 #include "confdefs.h"
2962 /* System header to define __stub macros and hopefully few prototypes,
2963 which can conflict with char $ac_func (); below. */
2965 /* Override any gcc2 internal prototype to avoid an error. */
2969 /* We use char because int might match the return type of a gcc2
2970 builtin and then its argument prototype would still apply. */
2977 /* The GNU C library defines this for functions which it implements
2978 to always fail with ENOSYS. Some functions are actually named
2979 something starting with __ and the normal name is an alias. */
2980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2990 rm -f conftest.$ac_objext conftest$ac_exeext
2991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2992 (eval $ac_link) 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -s conftest$ac_exeext'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3002 eval "$as_ac_var=yes"
3004 echo "$as_me: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 eval "$as_ac_var=no"
3008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3012 if test `eval echo '${'$as_ac_var'}'` = yes; then
3013 cat >>confdefs.h <<_ACEOF
3014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3021 # Checks for header files.
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3028 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3029 # On Suns, sometimes $CPP names a directory.
3030 if test -n "$CPP" && test -d "$CPP"; then
3033 if test -z "$CPP"; then
3034 if test "${ac_cv_prog_CPP+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 # Double quotes because CPP needs to be expanded
3038 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3041 for ac_c_preproc_warn_flag in '' yes
3043 # Use a header file that comes with gcc, so configuring glibc
3044 # with a fresh cross-compiler works.
3045 # On the NeXT, cc -E runs the code through the compiler's parser,
3046 # not just through cpp. "Syntax error" is here to catch this case.
3047 cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3049 #include "confdefs.h"
3053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056 grep -v '^ *+' conftest.er1 >conftest.err
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } >/dev/null; then
3061 if test -s conftest.err; then
3062 ac_cpp_err=$ac_c_preproc_warn_flag
3069 if test -z "$ac_cpp_err"; then
3072 echo "$as_me: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3074 # Broken: fails on valid input.
3077 rm -f conftest.err conftest.$ac_ext
3079 # OK, works on sane cases. Now check whether non-existent headers
3080 # can be detected and how.
3081 cat >conftest.$ac_ext <<_ACEOF
3082 #line $LINENO "configure"
3083 #include "confdefs.h"
3084 #include <ac_nonexistent.h>
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3102 if test -z "$ac_cpp_err"; then
3103 # Broken: success on invalid input.
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3108 # Passes both tests.
3112 rm -f conftest.err conftest.$ac_ext
3115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116 rm -f conftest.err conftest.$ac_ext
3117 if $ac_preproc_ok; then
3129 echo "$as_me:$LINENO: result: $CPP" >&5
3130 echo "${ECHO_T}$CPP" >&6
3132 for ac_c_preproc_warn_flag in '' yes
3134 # Use a header file that comes with gcc, so configuring glibc
3135 # with a fresh cross-compiler works.
3136 # On the NeXT, cc -E runs the code through the compiler's parser,
3137 # not just through cpp. "Syntax error" is here to catch this case.
3138 cat >conftest.$ac_ext <<_ACEOF
3139 #line $LINENO "configure"
3140 #include "confdefs.h"
3144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } >/dev/null; then
3152 if test -s conftest.err; then
3153 ac_cpp_err=$ac_c_preproc_warn_flag
3160 if test -z "$ac_cpp_err"; then
3163 echo "$as_me: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3165 # Broken: fails on valid input.
3168 rm -f conftest.err conftest.$ac_ext
3170 # OK, works on sane cases. Now check whether non-existent headers
3171 # can be detected and how.
3172 cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
3174 #include "confdefs.h"
3175 #include <ac_nonexistent.h>
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null; then
3185 if test -s conftest.err; then
3186 ac_cpp_err=$ac_c_preproc_warn_flag
3193 if test -z "$ac_cpp_err"; then
3194 # Broken: success on invalid input.
3197 echo "$as_me: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3199 # Passes both tests.
3203 rm -f conftest.err conftest.$ac_ext
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then
3211 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3212 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3213 { (exit 1); exit 1; }; }
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 echo "$as_me:$LINENO: checking for egrep" >&5
3224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225 if test "${ac_cv_prog_egrep+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3229 then ac_cv_prog_egrep='grep -E'
3230 else ac_cv_prog_egrep='egrep'
3233 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235 EGREP=$ac_cv_prog_egrep
3238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3240 if test "${ac_cv_header_stdc+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.$ac_ext <<_ACEOF
3244 #line $LINENO "configure"
3245 #include "confdefs.h"
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3268 if test -z "$ac_cpp_err"; then
3269 ac_cv_header_stdc=yes
3271 echo "$as_me: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 ac_cv_header_stdc=no
3275 rm -f conftest.err conftest.$ac_ext
3277 if test $ac_cv_header_stdc = yes; then
3278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3279 cat >conftest.$ac_ext <<_ACEOF
3280 #line $LINENO "configure"
3281 #include "confdefs.h"
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 $EGREP "memchr" >/dev/null 2>&1; then
3289 ac_cv_header_stdc=no
3295 if test $ac_cv_header_stdc = yes; then
3296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3299 #include "confdefs.h"
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "free" >/dev/null 2>&1; then
3307 ac_cv_header_stdc=no
3313 if test $ac_cv_header_stdc = yes; then
3314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3315 if test "$cross_compiling" = yes; then
3318 cat >conftest.$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3320 #include "confdefs.h"
3322 #if ((' ' & 0x0FF) == 0x020)
3323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3326 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3327 || ('j' <= (c) && (c) <= 'r') \
3328 || ('s' <= (c) && (c) <= 'z'))
3329 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3332 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3337 for (i = 0; i < 256; i++)
3338 if (XOR (islower (i), ISLOWER (i))
3339 || toupper (i) != TOUPPER (i))
3344 rm -f conftest$ac_exeext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3346 (eval $ac_link) 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3357 echo "$as_me: program exited with status $ac_status" >&5
3358 echo "$as_me: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3361 ac_cv_header_stdc=no
3363 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3368 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3369 if test $ac_cv_header_stdc = yes; then
3371 cat >>confdefs.h <<\_ACEOF
3372 #define STDC_HEADERS 1
3377 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3378 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3379 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 cat >conftest.$ac_ext <<_ACEOF
3383 #line $LINENO "configure"
3384 #include "confdefs.h"
3385 #include <sys/types.h>
3386 #include <sys/wait.h>
3388 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3391 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3399 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3404 rm -f conftest.$ac_objext
3405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 (eval $ac_compile) 2>&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_header_sys_wait_h=yes
3418 echo "$as_me: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3420 ac_cv_header_sys_wait_h=no
3422 rm -f conftest.$ac_objext conftest.$ac_ext
3424 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3425 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3426 if test $ac_cv_header_sys_wait_h = yes; then
3428 cat >>confdefs.h <<\_ACEOF
3429 #define HAVE_SYS_WAIT_H 1
3434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3445 inttypes.h stdint.h unistd.h
3447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3448 echo "$as_me:$LINENO: checking for $ac_header" >&5
3449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 cat >conftest.$ac_ext <<_ACEOF
3454 #line $LINENO "configure"
3455 #include "confdefs.h"
3456 $ac_includes_default
3458 #include <$ac_header>
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 eval "$as_ac_Header=yes"
3474 echo "$as_me: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 eval "$as_ac_Header=no"
3478 rm -f conftest.$ac_objext conftest.$ac_ext
3480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3483 cat >>confdefs.h <<_ACEOF
3484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3497 for ac_header in arpa/inet.h fcntl.h netdb.h sys/socket.h sys/time.h
3499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3501 echo "$as_me:$LINENO: checking for $ac_header" >&5
3502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3509 # Is the header compilable?
3510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #line $LINENO "configure"
3514 #include "confdefs.h"
3515 $ac_includes_default
3516 #include <$ac_header>
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_header_compiler=yes
3532 echo "$as_me: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3534 ac_header_compiler=no
3536 rm -f conftest.$ac_objext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538 echo "${ECHO_T}$ac_header_compiler" >&6
3540 # Is the header present?
3541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3544 #line $LINENO "configure"
3545 #include "confdefs.h"
3546 #include <$ac_header>
3548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } >/dev/null; then
3556 if test -s conftest.err; then
3557 ac_cpp_err=$ac_c_preproc_warn_flag
3564 if test -z "$ac_cpp_err"; then
3565 ac_header_preproc=yes
3567 echo "$as_me: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3569 ac_header_preproc=no
3571 rm -f conftest.err conftest.$ac_ext
3572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3573 echo "${ECHO_T}$ac_header_preproc" >&6
3575 # So? What about this header?
3576 case $ac_header_compiler:$ac_header_preproc in
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3590 echo "$as_me:$LINENO: checking for $ac_header" >&5
3591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 eval "$as_ac_Header=$ac_header_preproc"
3597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602 cat >>confdefs.h <<_ACEOF
3603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3607 echo "Some header files required to build this program are not present"; exit
3613 for ac_header in zlib.h
3615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3617 echo "$as_me:$LINENO: checking for $ac_header" >&5
3618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3625 # Is the header compilable?
3626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3631 $ac_includes_default
3632 #include <$ac_header>
3634 rm -f conftest.$ac_objext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_header_compiler=yes
3648 echo "$as_me: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 ac_header_compiler=no
3652 rm -f conftest.$ac_objext conftest.$ac_ext
3653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3654 echo "${ECHO_T}$ac_header_compiler" >&6
3656 # Is the header present?
3657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3659 cat >conftest.$ac_ext <<_ACEOF
3660 #line $LINENO "configure"
3661 #include "confdefs.h"
3662 #include <$ac_header>
3664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } >/dev/null; then
3672 if test -s conftest.err; then
3673 ac_cpp_err=$ac_c_preproc_warn_flag
3680 if test -z "$ac_cpp_err"; then
3681 ac_header_preproc=yes
3683 echo "$as_me: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 ac_header_preproc=no
3687 rm -f conftest.err conftest.$ac_ext
3688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3689 echo "${ECHO_T}$ac_header_preproc" >&6
3691 # So? What about this header?
3692 case $ac_header_compiler:$ac_header_preproc in
3694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3706 echo "$as_me:$LINENO: checking for $ac_header" >&5
3707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 eval "$as_ac_Header=$ac_header_preproc"
3713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3718 cat >>confdefs.h <<_ACEOF
3719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3727 # Checks for typedefs, structures, and compiler characteristics.
3728 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3729 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3730 if test "${ac_cv_header_time+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 #include "confdefs.h"
3736 #include <sys/types.h>
3737 #include <sys/time.h>
3743 if ((struct tm *) 0)
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 ac_cv_header_time=yes
3763 echo "$as_me: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 ac_cv_header_time=no
3767 rm -f conftest.$ac_objext conftest.$ac_ext
3769 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3770 echo "${ECHO_T}$ac_cv_header_time" >&6
3771 if test $ac_cv_header_time = yes; then
3773 cat >>confdefs.h <<\_ACEOF
3774 #define TIME_WITH_SYS_TIME 1
3779 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3780 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3781 if test "${ac_cv_struct_tm+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 cat >conftest.$ac_ext <<_ACEOF
3785 #line $LINENO "configure"
3786 #include "confdefs.h"
3787 #include <sys/types.h>
3793 struct tm *tp; tp->tm_sec;
3798 rm -f conftest.$ac_objext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800 (eval $ac_compile) 2>&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } &&
3804 { ac_try='test -s conftest.$ac_objext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_struct_tm=time.h
3812 echo "$as_me: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 ac_cv_struct_tm=sys/time.h
3816 rm -f conftest.$ac_objext conftest.$ac_ext
3818 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3819 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3820 if test $ac_cv_struct_tm = sys/time.h; then
3822 cat >>confdefs.h <<\_ACEOF
3823 #define TM_IN_SYS_TIME 1
3829 # Check for proper networking libraries
3831 for ac_func in gethostbyname_r
3833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3834 echo "$as_me:$LINENO: checking for $ac_func" >&5
3835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3836 if eval "test \"\${$as_ac_var+set}\" = set"; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 cat >conftest.$ac_ext <<_ACEOF
3840 #line $LINENO "configure"
3841 #include "confdefs.h"
3842 /* System header to define __stub macros and hopefully few prototypes,
3843 which can conflict with char $ac_func (); below. */
3845 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3857 /* The GNU C library defines this for functions which it implements
3858 to always fail with ENOSYS. Some functions are actually named
3859 something starting with __ and the normal name is an alias. */
3860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872 (eval $ac_link) 2>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -s conftest$ac_exeext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 eval "$as_ac_var=yes"
3884 echo "$as_me: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 eval "$as_ac_var=no"
3888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3892 if test `eval echo '${'$as_ac_var'}'` = yes; then
3893 cat >>confdefs.h <<_ACEOF
3894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3899 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
3900 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
3901 if test "${ac_cv_lib_nsl_gethostbyname_r+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 $LINENO "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 gethostbyname_r ();
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -s conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_lib_nsl_gethostbyname_r=yes
3939 echo "$as_me: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3941 ac_cv_lib_nsl_gethostbyname_r=no
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
3947 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
3948 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
3949 cat >>confdefs.h <<_ACEOF
3950 #define HAVE_LIBNSL 1
3957 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
3958 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
3959 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 ac_check_lib_save_LIBS=$LIBS
3963 LIBS="-lresolv $LIBS"
3964 cat >conftest.$ac_ext <<_ACEOF
3965 #line $LINENO "configure"
3966 #include "confdefs.h"
3968 /* Override any gcc2 internal prototype to avoid an error. */
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3974 char gethostbyname_r ();
3983 rm -f conftest.$ac_objext conftest$ac_exeext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3985 (eval $ac_link) 2>&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try='test -s conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_lib_resolv_gethostbyname_r=yes
3997 echo "$as_me: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
3999 ac_cv_lib_resolv_gethostbyname_r=no
4001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4002 LIBS=$ac_check_lib_save_LIBS
4004 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
4005 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
4006 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
4007 cat >>confdefs.h <<_ACEOF
4008 #define HAVE_LIBRESOLV 1
4011 LIBS="-lresolv $LIBS"
4021 for ac_func in inet_aton
4023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4024 echo "$as_me:$LINENO: checking for $ac_func" >&5
4025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4026 if eval "test \"\${$as_ac_var+set}\" = set"; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4031 #include "confdefs.h"
4032 /* System header to define __stub macros and hopefully few prototypes,
4033 which can conflict with char $ac_func (); below. */
4035 /* Override any gcc2 internal prototype to avoid an error. */
4039 /* We use char because int might match the return type of a gcc2
4040 builtin and then its argument prototype would still apply. */
4047 /* The GNU C library defines this for functions which it implements
4048 to always fail with ENOSYS. Some functions are actually named
4049 something starting with __ and the normal name is an alias. */
4050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -s conftest$ac_exeext'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4072 eval "$as_ac_var=yes"
4074 echo "$as_me: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4076 eval "$as_ac_var=no"
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4082 if test `eval echo '${'$as_ac_var'}'` = yes; then
4083 cat >>confdefs.h <<_ACEOF
4084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4089 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4090 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4091 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 ac_check_lib_save_LIBS=$LIBS
4095 LIBS="-lresolv $LIBS"
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 #include "confdefs.h"
4100 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4115 rm -f conftest.$ac_objext conftest$ac_exeext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4117 (eval $ac_link) 2>&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -s conftest$ac_exeext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 ac_cv_lib_resolv_inet_aton=yes
4129 echo "$as_me: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4131 ac_cv_lib_resolv_inet_aton=no
4133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4134 LIBS=$ac_check_lib_save_LIBS
4136 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4137 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4138 if test $ac_cv_lib_resolv_inet_aton = yes; then
4139 cat >>confdefs.h <<_ACEOF
4140 #define HAVE_LIBRESOLV 1
4143 LIBS="-lresolv $LIBS"
4151 for ac_func in socket
4153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4154 echo "$as_me:$LINENO: checking for $ac_func" >&5
4155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4156 if eval "test \"\${$as_ac_var+set}\" = set"; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 cat >conftest.$ac_ext <<_ACEOF
4160 #line $LINENO "configure"
4161 #include "confdefs.h"
4162 /* System header to define __stub macros and hopefully few prototypes,
4163 which can conflict with char $ac_func (); below. */
4165 /* Override any gcc2 internal prototype to avoid an error. */
4169 /* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4177 /* The GNU C library defines this for functions which it implements
4178 to always fail with ENOSYS. Some functions are actually named
4179 something starting with __ and the normal name is an alias. */
4180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4192 (eval $ac_link) 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -s conftest$ac_exeext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 eval "$as_ac_var=yes"
4204 echo "$as_me: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4206 eval "$as_ac_var=no"
4208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4212 if test `eval echo '${'$as_ac_var'}'` = yes; then
4213 cat >>confdefs.h <<_ACEOF
4214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4219 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4220 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4221 if test "${ac_cv_lib_socket_socket+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 ac_check_lib_save_LIBS=$LIBS
4225 LIBS="-lsocket $LIBS"
4226 cat >conftest.$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4228 #include "confdefs.h"
4230 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4245 rm -f conftest.$ac_objext conftest$ac_exeext
4246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4247 (eval $ac_link) 2>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -s conftest$ac_exeext'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4257 ac_cv_lib_socket_socket=yes
4259 echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 ac_cv_lib_socket_socket=no
4263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4264 LIBS=$ac_check_lib_save_LIBS
4266 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4267 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4268 if test $ac_cv_lib_socket_socket = yes; then
4269 cat >>confdefs.h <<_ACEOF
4270 #define HAVE_LIBSOCKET 1
4273 LIBS="-lsocket $LIBS"
4281 # Checks for library functions.
4288 for ac_func in vsnprintf strncasecmp poll setenv clearenv pthread_rwlock_init
4290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4291 echo "$as_me:$LINENO: checking for $ac_func" >&5
4292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4293 if eval "test \"\${$as_ac_var+set}\" = set"; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 #include "confdefs.h"
4299 /* System header to define __stub macros and hopefully few prototypes,
4300 which can conflict with char $ac_func (); below. */
4302 /* Override any gcc2 internal prototype to avoid an error. */
4306 /* We use char because int might match the return type of a gcc2
4307 builtin and then its argument prototype would still apply. */
4314 /* The GNU C library defines this for functions which it implements
4315 to always fail with ENOSYS. Some functions are actually named
4316 something starting with __ and the normal name is an alias. */
4317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329 (eval $ac_link) 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -s conftest$ac_exeext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 eval "$as_ac_var=yes"
4341 echo "$as_me: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4343 eval "$as_ac_var=no"
4345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4349 if test `eval echo '${'$as_ac_var'}'` = yes; then
4350 cat >>confdefs.h <<_ACEOF
4351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4362 for ac_func in bcopy memmove strerror
4364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4365 echo "$as_me:$LINENO: checking for $ac_func" >&5
4366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4367 if eval "test \"\${$as_ac_var+set}\" = set"; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 cat >conftest.$ac_ext <<_ACEOF
4371 #line $LINENO "configure"
4372 #include "confdefs.h"
4373 /* System header to define __stub macros and hopefully few prototypes,
4374 which can conflict with char $ac_func (); below. */
4376 /* Override any gcc2 internal prototype to avoid an error. */
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4388 /* The GNU C library defines this for functions which it implements
4389 to always fail with ENOSYS. Some functions are actually named
4390 something starting with __ and the normal name is an alias. */
4391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4401 rm -f conftest.$ac_objext conftest$ac_exeext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4403 (eval $ac_link) 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -s conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 eval "$as_ac_var=yes"
4415 echo "$as_me: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4417 eval "$as_ac_var=no"
4419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4423 if test `eval echo '${'$as_ac_var'}'` = yes; then
4424 cat >>confdefs.h <<_ACEOF
4425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4436 for ac_func in memset strchr strdup
4438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_func" >&5
4440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_var+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 #include "confdefs.h"
4447 /* System header to define __stub macros and hopefully few prototypes,
4448 which can conflict with char $ac_func (); below. */
4450 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4462 /* The GNU C library defines this for functions which it implements
4463 to always fail with ENOSYS. Some functions are actually named
4464 something starting with __ and the normal name is an alias. */
4465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477 (eval $ac_link) 2>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -s conftest$ac_exeext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4487 eval "$as_ac_var=yes"
4489 echo "$as_me: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
4491 eval "$as_ac_var=no"
4493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4497 if test `eval echo '${'$as_ac_var'}'` = yes; then
4498 cat >>confdefs.h <<_ACEOF
4499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4506 ac_config_files="$ac_config_files "
4508 ac_config_files="$ac_config_files Makefile"
4509 cat >confcache <<\_ACEOF
4510 # This file is a shell script that caches the results of configure
4511 # tests run on this system so they can be shared between configure
4512 # scripts and configure runs, see configure's option --config-cache.
4513 # It is not useful on other systems. If it contains results you don't
4514 # want to keep, you may remove or edit it.
4516 # config.status only pays attention to the cache file if you give it
4517 # the --recheck option to rerun configure.
4519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4525 # The following way of writing the cache mishandles newlines in values,
4526 # but we know of no workaround that is simple, portable, and efficient.
4527 # So, don't put newlines in cache variables' values.
4528 # Ultrix sh set writes to stderr and can't be redirected directly,
4529 # and sets the high bit in the cache file unless we assign to the vars.
4532 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4534 # `set' does not quote correctly, so add quotes (double-quote
4535 # substitution turns \\\\ into \\, and sed turns \\ into \).
4538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4541 # `set' quotes correctly as required by POSIX, so do not add quotes.
4543 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4552 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4554 if cmp -s $cache_file confcache; then :; else
4555 if test -w $cache_file; then
4556 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4557 cat confcache >$cache_file
4559 echo "not updating unwritable cache $cache_file"
4564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4565 # Let make expand exec_prefix.
4566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4568 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4569 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4570 # trailing colons and then remove the whole line if VPATH becomes empty
4571 # (actually we leave an empty line to preserve line numbers).
4572 if test "x$srcdir" = x.; then
4573 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4574 s/:*\$(srcdir):*/:/;
4575 s/:*\${srcdir}:*/:/;
4577 s/^\([^=]*=[ ]*\):*/\1/;
4583 DEFS=-DHAVE_CONFIG_H
4587 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4588 # 1. Remove the extension, and $U if already installed.
4589 ac_i=`echo "$ac_i" |
4590 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4592 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4593 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4597 LTLIBOBJS=$ac_ltlibobjs
4601 : ${CONFIG_STATUS=./config.status}
4602 ac_clean_files_save=$ac_clean_files
4603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4604 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4605 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4606 cat >$CONFIG_STATUS <<_ACEOF
4608 # Generated by $as_me.
4609 # Run this file to recreate the current configuration.
4610 # Compiler output produced by configure, useful for debugging
4611 # configure, is in config.log if it exists.
4614 SHELL=\${CONFIG_SHELL-$SHELL}
4617 cat >>$CONFIG_STATUS <<\_ACEOF
4618 ## --------------------- ##
4619 ## M4sh Initialization. ##
4620 ## --------------------- ##
4622 # Be Bourne compatible
4623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4626 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4627 # is contrary to our usage. Disable this feature.
4628 alias -g '${1+"$@"}'='"$@"'
4629 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4633 # Support unset when possible.
4634 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4641 # Work around bugs in pre-3.0 UWIN ksh.
4642 $as_unset ENV MAIL MAILPATH
4648 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
4650 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4651 eval $as_var=C; export $as_var
4657 # Required to use basename.
4658 if expr a : '\(a\)' >/dev/null 2>&1; then
4664 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4665 as_basename=basename
4671 # Name of the executable.
4672 as_me=`$as_basename "$0" ||
4673 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4674 X"$0" : 'X\(//\)$' \| \
4675 X"$0" : 'X\(/\)$' \| \
4676 . : '\(.\)' 2>/dev/null ||
4678 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4679 /^X\/\(\/\/\)$/{ s//\1/; q; }
4680 /^X\/\(\/\).*/{ s//\1/; q; }
4684 # PATH needs CR, and LINENO needs CR and PATH.
4685 # Avoid depending upon Character Ranges.
4686 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4687 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4688 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4689 as_cr_digits='0123456789'
4690 as_cr_alnum=$as_cr_Letters$as_cr_digits
4692 # The user is always right.
4693 if test "${PATH_SEPARATOR+set}" != set; then
4694 echo "#! /bin/sh" >conftest.sh
4695 echo "exit 0" >>conftest.sh
4696 chmod +x conftest.sh
4697 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
4708 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4709 test "x$as_lineno_1" != "x$as_lineno_2" &&
4710 test "x$as_lineno_3" = "x$as_lineno_2" || {
4711 # Find who we are. Look in the path if we contain no path at all
4714 *[\\/]* ) as_myself=$0 ;;
4715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4725 # We did not find ourselves, most probably we were run as `sh COMMAND'
4726 # in which case we are not to be found in the path.
4727 if test "x$as_myself" = x; then
4730 if test ! -f "$as_myself"; then
4731 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4732 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4733 { (exit 1); exit 1; }; }
4735 case $CONFIG_SHELL in
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4741 test -z "$as_dir" && as_dir=.
4742 for as_base in sh bash ksh sh5; do
4745 if ("$as_dir/$as_base" -c '
4748 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4749 test "x$as_lineno_1" != "x$as_lineno_2" &&
4750 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4751 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4752 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4753 CONFIG_SHELL=$as_dir/$as_base
4755 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4763 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4764 # uniformly replaced by the line number. The first 'sed' inserts a
4765 # line-number line before each line; the second 'sed' does the real
4766 # work. The second script uses 'N' to pair each line-number line
4767 # with the numbered line, and appends trailing '-' during
4768 # substitution so that $LINENO is not a special case at line end.
4769 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4770 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4771 sed '=' <$as_myself |
4776 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4779 s,^['$as_cr_digits']*\n,,
4781 chmod +x $as_me.lineno ||
4782 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4783 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4784 { (exit 1); exit 1; }; }
4786 # Don't try to exec as it changes $[0], causing all sort of problems
4787 # (the dirname of $[0] is not the place where we might find the
4788 # original and so on. Autoconf is especially sensible to this).
4790 # Exit status is that of the last command.
4795 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4796 *c*,-n*) ECHO_N= ECHO_C='
4798 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4799 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4802 if expr a : '\(a\)' >/dev/null 2>&1; then
4808 rm -f conf$$ conf$$.exe conf$$.file
4810 if ln -s conf$$.file conf$$ 2>/dev/null; then
4811 # We could just check for DJGPP; but this test a) works b) is more generic
4812 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4813 if test -f conf$$.exe; then
4814 # Don't use ln at all; we don't have any links
4819 elif ln conf$$.file conf$$ 2>/dev/null; then
4824 rm -f conf$$ conf$$.exe conf$$.file
4826 if mkdir -p . 2>/dev/null; then
4832 as_executable_p="test -f"
4834 # Sed expression to map a string onto a valid CPP name.
4835 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4837 # Sed expression to map a string onto a valid variable name.
4838 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4842 # We need space, tab and new line, in precisely that order.
4852 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4853 # report actual input values of CONFIG_FILES etc. instead of their
4854 # values after options handling. Logging --version etc. is OK.
4858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4859 ## Running $as_me. ##
4864 This file was extended by middleman $as_me 1.0, which was
4865 generated by GNU Autoconf 2.54. Invocation command line was
4867 CONFIG_FILES = $CONFIG_FILES
4868 CONFIG_HEADERS = $CONFIG_HEADERS
4869 CONFIG_LINKS = $CONFIG_LINKS
4870 CONFIG_COMMANDS = $CONFIG_COMMANDS
4874 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4878 # Files that config.status was made for.
4879 if test -n "$ac_config_files"; then
4880 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4883 if test -n "$ac_config_headers"; then
4884 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4887 if test -n "$ac_config_links"; then
4888 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4891 if test -n "$ac_config_commands"; then
4892 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4895 cat >>$CONFIG_STATUS <<\_ACEOF
4898 \`$as_me' instantiates files from templates according to the
4899 current configuration.
4901 Usage: $0 [OPTIONS] [FILE]...
4903 -h, --help print this help, then exit
4904 -V, --version print version number, then exit
4905 -d, --debug don't remove temporary files
4906 --recheck update $as_me by reconfiguring in the same conditions
4907 --file=FILE[:TEMPLATE]
4908 instantiate the configuration file FILE
4909 --header=FILE[:TEMPLATE]
4910 instantiate the configuration header FILE
4912 Configuration files:
4915 Configuration headers:
4918 Report bugs to <bug-autoconf@gnu.org>."
4921 cat >>$CONFIG_STATUS <<_ACEOF
4923 middleman config.status 1.0
4924 configured by $0, generated by GNU Autoconf 2.54,
4925 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4927 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4928 Free Software Foundation, Inc.
4929 This config.status script is free software; the Free Software Foundation
4930 gives unlimited permission to copy, distribute and modify it."
4934 cat >>$CONFIG_STATUS <<\_ACEOF
4935 # If no file are specified by the user, then we need to provide default
4936 # value. By we need to know if files were specified by the user.
4942 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4943 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4951 *) # This is not an option, so the user has probably given explicit
4954 ac_need_defaults=false;;
4958 # Handling of the options.
4960 cat >>$CONFIG_STATUS <<_ACEOF
4961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4962 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4963 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4965 cat >>$CONFIG_STATUS <<\_ACEOF
4966 --version | --vers* | -V )
4967 echo "$ac_cs_version"; exit 0 ;;
4969 # Conflict between --help and --header
4970 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4971 Try \`$0 --help' for more information." >&5
4972 echo "$as_me: error: ambiguous option: $1
4973 Try \`$0 --help' for more information." >&2;}
4974 { (exit 1); exit 1; }; };;
4975 --help | --hel | -h )
4976 echo "$ac_cs_usage"; exit 0 ;;
4977 --debug | --d* | -d )
4979 --file | --fil | --fi | --f )
4981 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4982 ac_need_defaults=false;;
4983 --header | --heade | --head | --hea )
4985 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4986 ac_need_defaults=false;;
4989 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4990 Try \`$0 --help' for more information." >&5
4991 echo "$as_me: error: unrecognized option: $1
4992 Try \`$0 --help' for more information." >&2;}
4993 { (exit 1); exit 1; }; } ;;
4995 *) ac_config_targets="$ac_config_targets $1" ;;
5007 cat >>$CONFIG_STATUS <<\_ACEOF
5008 for ac_config_target in $ac_config_targets
5010 case "$ac_config_target" in
5011 # Handling of arguments.
5012 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5013 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5015 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5016 { (exit 1); exit 1; }; };;
5020 # If the user did not use the arguments to specify the items to instantiate,
5021 # then the envvar interface is used. Set only those that are not.
5022 # We use the long form for the default assignment because of an extremely
5023 # bizarre bug on SunOS 4.1.3.
5024 if $ac_need_defaults; then
5025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5026 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5029 # Create a temporary directory, and hook for its removal unless debugging.
5032 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5033 trap '{ (exit 1); exit 1; }' 1 2 13 15
5036 # Create a (secure) tmp directory for tmp files.
5039 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5040 test -n "$tmp" && test -d "$tmp"
5043 tmp=$TMPDIR/cs$$-$RANDOM
5044 (umask 077 && mkdir $tmp)
5047 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5048 { (exit 1); exit 1; }
5053 cat >>$CONFIG_STATUS <<_ACEOF
5056 # CONFIG_FILES section.
5059 # No need to generate the scripts if there are no CONFIG_FILES.
5060 # This happens for instance when ./config.status config.h
5061 if test -n "\$CONFIG_FILES"; then
5062 # Protect against being on the right side of a sed subst in config.status.
5063 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5064 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5065 s,@SHELL@,$SHELL,;t t
5066 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5067 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5068 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5069 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5070 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5071 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5072 s,@exec_prefix@,$exec_prefix,;t t
5073 s,@prefix@,$prefix,;t t
5074 s,@program_transform_name@,$program_transform_name,;t t
5075 s,@bindir@,$bindir,;t t
5076 s,@sbindir@,$sbindir,;t t
5077 s,@libexecdir@,$libexecdir,;t t
5078 s,@datadir@,$datadir,;t t
5079 s,@sysconfdir@,$sysconfdir,;t t
5080 s,@sharedstatedir@,$sharedstatedir,;t t
5081 s,@localstatedir@,$localstatedir,;t t
5082 s,@libdir@,$libdir,;t t
5083 s,@includedir@,$includedir,;t t
5084 s,@oldincludedir@,$oldincludedir,;t t
5085 s,@infodir@,$infodir,;t t
5086 s,@mandir@,$mandir,;t t
5087 s,@build_alias@,$build_alias,;t t
5088 s,@host_alias@,$host_alias,;t t
5089 s,@target_alias@,$target_alias,;t t
5091 s,@ECHO_C@,$ECHO_C,;t t
5092 s,@ECHO_N@,$ECHO_N,;t t
5093 s,@ECHO_T@,$ECHO_T,;t t
5095 s,@STRIP@,$STRIP,;t t
5097 s,@CFLAGS@,$CFLAGS,;t t
5098 s,@LDFLAGS@,$LDFLAGS,;t t
5099 s,@CPPFLAGS@,$CPPFLAGS,;t t
5100 s,@ac_ct_CC@,$ac_ct_CC,;t t
5101 s,@EXEEXT@,$EXEEXT,;t t
5102 s,@OBJEXT@,$OBJEXT,;t t
5104 s,@EGREP@,$EGREP,;t t
5105 s,@LIBOBJS@,$LIBOBJS,;t t
5106 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5111 cat >>$CONFIG_STATUS <<\_ACEOF
5112 # Split the substitutions into bite-sized pieces for seds with
5113 # small command number limits, like on Digital OSF/1 and HP-UX.
5115 ac_sed_frag=1 # Number of current file.
5116 ac_beg=1 # First line for current file.
5117 ac_end=$ac_max_sed_lines # Line after last line for current file.
5120 while $ac_more_lines; do
5121 if test $ac_beg -gt 1; then
5122 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5124 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5126 if test ! -s $tmp/subs.frag; then
5129 # The purpose of the label and of the branching condition is to
5130 # speed up the sed processing (if there are no `@' at all, there
5131 # is no need to browse any of the substitutions).
5132 # These are the two extra sed commands mentioned above.
5134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5135 if test -z "$ac_sed_cmds"; then
5136 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5138 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5140 ac_sed_frag=`expr $ac_sed_frag + 1`
5142 ac_end=`expr $ac_end + $ac_max_sed_lines`
5145 if test -z "$ac_sed_cmds"; then
5148 fi # test -n "$CONFIG_FILES"
5151 cat >>$CONFIG_STATUS <<\_ACEOF
5152 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5155 - | *:- | *:-:* ) # input from stdin
5157 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5158 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5159 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5160 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5161 * ) ac_file_in=$ac_file.in ;;
5164 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5165 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5166 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5167 X"$ac_file" : 'X\(//\)[^/]' \| \
5168 X"$ac_file" : 'X\(//\)$' \| \
5169 X"$ac_file" : 'X\(/\)' \| \
5170 . : '\(.\)' 2>/dev/null ||
5172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5174 /^X\(\/\/\)$/{ s//\1/; q; }
5175 /^X\(\/\).*/{ s//\1/; q; }
5177 { if $as_mkdir_p; then
5182 while test ! -d "$as_dir"; do
5183 as_dirs="$as_dir $as_dirs"
5184 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5186 X"$as_dir" : 'X\(//\)[^/]' \| \
5187 X"$as_dir" : 'X\(//\)$' \| \
5188 X"$as_dir" : 'X\(/\)' \| \
5189 . : '\(.\)' 2>/dev/null ||
5191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5193 /^X\(\/\/\)$/{ s//\1/; q; }
5194 /^X\(\/\).*/{ s//\1/; q; }
5197 test ! -n "$as_dirs" || mkdir $as_dirs
5198 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5199 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5200 { (exit 1); exit 1; }; }; }
5204 if test "$ac_dir" != .; then
5205 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5206 # A "../" for each directory in $ac_dir_suffix.
5207 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5209 ac_dir_suffix= ac_top_builddir=
5213 .) # No --srcdir option. We are building in place.
5215 if test -z "$ac_top_builddir"; then
5218 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5220 [\\/]* | ?:[\\/]* ) # Absolute path.
5221 ac_srcdir=$srcdir$ac_dir_suffix;
5222 ac_top_srcdir=$srcdir ;;
5224 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5225 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5227 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5229 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5230 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5231 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5232 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5236 if test x"$ac_file" != x-; then
5237 { echo "$as_me:$LINENO: creating $ac_file" >&5
5238 echo "$as_me: creating $ac_file" >&6;}
5241 # Let's still pretend it is `configure' which instantiates (i.e., don't
5242 # use $as_me), people would be surprised to read:
5243 # /* config.h. Generated by config.status. */
5244 if test x"$ac_file" = x-; then
5247 configure_input="$ac_file. "
5249 configure_input=$configure_input"Generated from `echo $ac_file_in |
5250 sed 's,.*/,,'` by configure."
5252 # First look for the input files in the build tree, otherwise in the
5254 ac_file_inputs=`IFS=:
5255 for f in $ac_file_in; do
5257 -) echo $tmp/stdin ;;
5259 # Absolute (can't be DOS-style, as IFS=:)
5260 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5261 echo "$as_me: error: cannot find input file: $f" >&2;}
5262 { (exit 1); exit 1; }; }
5265 if test -f "$f"; then
5268 elif test -f "$srcdir/$f"; then
5273 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5274 echo "$as_me: error: cannot find input file: $f" >&2;}
5275 { (exit 1); exit 1; }; }
5278 done` || { (exit 1); exit 1; }
5280 cat >>$CONFIG_STATUS <<_ACEOF
5284 cat >>$CONFIG_STATUS <<\_ACEOF
5286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5287 s,@configure_input@,$configure_input,;t t
5288 s,@srcdir@,$ac_srcdir,;t t
5289 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5290 s,@top_srcdir@,$ac_top_srcdir,;t t
5291 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5292 s,@builddir@,$ac_builddir,;t t
5293 s,@abs_builddir@,$ac_abs_builddir,;t t
5294 s,@top_builddir@,$ac_top_builddir,;t t
5295 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5296 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5298 if test x"$ac_file" != x-; then
5299 mv $tmp/out $ac_file
5307 cat >>$CONFIG_STATUS <<\_ACEOF
5310 # CONFIG_HEADER section.
5313 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5314 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5316 # ac_d sets the value in "#define NAME VALUE" lines.
5317 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5318 ac_dB='[ ].*$,\1#\2'
5321 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5322 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5323 ac_uB='$,\1#\2define\3'
5327 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5328 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5330 - | *:- | *:-:* ) # input from stdin
5332 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5333 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5334 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5335 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5336 * ) ac_file_in=$ac_file.in ;;
5339 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5340 echo "$as_me: creating $ac_file" >&6;}
5342 # First look for the input files in the build tree, otherwise in the
5344 ac_file_inputs=`IFS=:
5345 for f in $ac_file_in; do
5347 -) echo $tmp/stdin ;;
5349 # Absolute (can't be DOS-style, as IFS=:)
5350 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5351 echo "$as_me: error: cannot find input file: $f" >&2;}
5352 { (exit 1); exit 1; }; }
5355 if test -f "$f"; then
5358 elif test -f "$srcdir/$f"; then
5363 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5364 echo "$as_me: error: cannot find input file: $f" >&2;}
5365 { (exit 1); exit 1; }; }
5368 done` || { (exit 1); exit 1; }
5369 # Remove the trailing spaces.
5370 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5374 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5375 # `conftest.undefs', that substitutes the proper values into
5376 # config.h.in to produce config.h. The first handles `#define'
5377 # templates, and the second `#undef' templates.
5378 # And first: Protect against being on the right side of a sed subst in
5379 # config.status. Protect against being in an unquoted here document
5381 rm -f conftest.defines conftest.undefs
5382 # Using a here document instead of a string reduces the quoting nightmare.
5383 # Putting comments in sed scripts is not portable.
5385 # `end' is used to avoid that the second main sed command (meant for
5386 # 0-ary CPP macros) applies to n-ary macro definitions.
5387 # See the Autoconf documentation for `clear'.
5388 cat >confdef2sed.sed <<\_ACEOF
5393 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5395 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5398 # If some macros were called several times there might be several times
5399 # the same #defines, which is useless. Nevertheless, we may not want to
5400 # sort them, since we want the *last* AC-DEFINE to be honored.
5401 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5402 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5403 rm -f confdef2sed.sed
5405 # This sed command replaces #undef with comments. This is necessary, for
5406 # example, in the case of _POSIX_SOURCE, which is predefined and required
5407 # on some systems where configure will not decide to define it.
5408 cat >>conftest.undefs <<\_ACEOF
5409 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5412 # Break up conftest.defines because some shells have a limit on the size
5413 # of here documents, and old seds have small limits too (100 cmds).
5414 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5415 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5416 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5417 echo ' :' >>$CONFIG_STATUS
5419 while grep . conftest.defines >/dev/null
5421 # Write a limited-size here document to $tmp/defines.sed.
5422 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5423 # Speed up: don't consider the non `#define' lines.
5424 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5425 # Work around the forget-to-reset-the-flag bug.
5426 echo 't clr' >>$CONFIG_STATUS
5427 echo ': clr' >>$CONFIG_STATUS
5428 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5430 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5434 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5435 rm -f conftest.defines
5436 mv conftest.tail conftest.defines
5438 rm -f conftest.defines
5439 echo ' fi # grep' >>$CONFIG_STATUS
5440 echo >>$CONFIG_STATUS
5442 # Break up conftest.undefs because some shells have a limit on the size
5443 # of here documents, and old seds have small limits too (100 cmds).
5444 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5446 while grep . conftest.undefs >/dev/null
5448 # Write a limited-size here document to $tmp/undefs.sed.
5449 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5450 # Speed up: don't consider the non `#undef'
5451 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5452 # Work around the forget-to-reset-the-flag bug.
5453 echo 't clr' >>$CONFIG_STATUS
5454 echo ': clr' >>$CONFIG_STATUS
5455 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5457 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5461 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5462 rm -f conftest.undefs
5463 mv conftest.tail conftest.undefs
5465 rm -f conftest.undefs
5467 cat >>$CONFIG_STATUS <<\_ACEOF
5468 # Let's still pretend it is `configure' which instantiates (i.e., don't
5469 # use $as_me), people would be surprised to read:
5470 # /* config.h. Generated by config.status. */
5471 if test x"$ac_file" = x-; then
5472 echo "/* Generated by configure. */" >$tmp/config.h
5474 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5476 cat $tmp/in >>$tmp/config.h
5478 if test x"$ac_file" != x-; then
5479 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5480 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5481 echo "$as_me: $ac_file is unchanged" >&6;}
5483 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5485 X"$ac_file" : 'X\(//\)[^/]' \| \
5486 X"$ac_file" : 'X\(//\)$' \| \
5487 X"$ac_file" : 'X\(/\)' \| \
5488 . : '\(.\)' 2>/dev/null ||
5490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5492 /^X\(\/\/\)$/{ s//\1/; q; }
5493 /^X\(\/\).*/{ s//\1/; q; }
5495 { if $as_mkdir_p; then
5500 while test ! -d "$as_dir"; do
5501 as_dirs="$as_dir $as_dirs"
5502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5504 X"$as_dir" : 'X\(//\)[^/]' \| \
5505 X"$as_dir" : 'X\(//\)$' \| \
5506 X"$as_dir" : 'X\(/\)' \| \
5507 . : '\(.\)' 2>/dev/null ||
5509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5511 /^X\(\/\/\)$/{ s//\1/; q; }
5512 /^X\(\/\).*/{ s//\1/; q; }
5515 test ! -n "$as_dirs" || mkdir $as_dirs
5516 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5517 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5518 { (exit 1); exit 1; }; }; }
5521 mv $tmp/config.h $ac_file
5530 cat >>$CONFIG_STATUS <<\_ACEOF
5532 { (exit 0); exit 0; }
5534 chmod +x $CONFIG_STATUS
5535 ac_clean_files=$ac_clean_files_save
5538 # configure is writing to config.log, and then calls config.status.
5539 # config.status does its own redirection, appending to config.log.
5540 # Unfortunately, on DOS this fails, as config.log is still kept open
5541 # by configure, so config.status won't be able to write to it; its
5542 # output is simply discarded. So we exec the FD to /dev/null,
5543 # effectively closing config.log, so it can be properly (re)opened and
5544 # appended to by config.status. When coming back to configure, we
5545 # need to make the FD available again.
5546 if test "$no_create" != yes; then
5549 $SHELL $CONFIG_STATUS || ac_cs_success=false
5551 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5552 # would make configure fail if this is the last instruction.
5553 $ac_cs_success || { (exit 1); exit 1; }