2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="mmalloc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
836 if test -n "$ac_init_help"; then
840 Some influential environment variables:
841 CC C compiler command
842 CFLAGS C compiler flags
843 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
844 nonstandard directory <lib dir>
845 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
846 headers in a nonstandard directory <include dir>
849 Use these variables to override the choices made by `configure' or to help
850 it to find libraries and programs with nonstandard names/locations.
855 if test "$ac_init_help" = "recursive"; then
856 # If there are subdirs, report their specific --help.
858 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
859 test -d $ac_dir || continue
862 if test "$ac_dir" != .; then
863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
864 # A "../" for each directory in $ac_dir_suffix.
865 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
867 ac_dir_suffix= ac_top_builddir=
871 .) # No --srcdir option. We are building in place.
873 if test -z "$ac_top_builddir"; then
876 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
878 [\\/]* | ?:[\\/]* ) # Absolute path.
879 ac_srcdir=$srcdir$ac_dir_suffix;
880 ac_top_srcdir=$srcdir ;;
882 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
883 ac_top_srcdir=$ac_top_builddir$srcdir ;;
886 # Do not use `cd foo && pwd` to compute absolute paths, because
887 # the directories may not exist.
889 .) ac_abs_builddir="$ac_dir";;
892 .) ac_abs_builddir=`pwd`;;
893 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
894 *) ac_abs_builddir=`pwd`/"$ac_dir";;
897 case $ac_abs_builddir in
898 .) ac_abs_top_builddir=${ac_top_builddir}.;;
900 case ${ac_top_builddir}. in
901 .) ac_abs_top_builddir=$ac_abs_builddir;;
902 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
903 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
906 case $ac_abs_builddir in
907 .) ac_abs_srcdir=$ac_srcdir;;
910 .) ac_abs_srcdir=$ac_abs_builddir;;
911 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
912 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
915 case $ac_abs_builddir in
916 .) ac_abs_top_srcdir=$ac_top_srcdir;;
918 case $ac_top_srcdir in
919 .) ac_abs_top_srcdir=$ac_abs_builddir;;
920 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
921 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
926 # Check for guested configure; otherwise get Cygnus style configure.
927 if test -f $ac_srcdir/configure.gnu; then
929 $SHELL $ac_srcdir/configure.gnu --help=recursive
930 elif test -f $ac_srcdir/configure; then
932 $SHELL $ac_srcdir/configure --help=recursive
933 elif test -f $ac_srcdir/configure.ac ||
934 test -f $ac_srcdir/configure.in; then
938 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944 test -n "$ac_init_help" && exit 0
945 if $ac_init_version; then
948 Copyright (C) 2003 Free Software Foundation, Inc.
949 This configure script is free software; the Free Software Foundation
950 gives unlimited permission to copy, distribute and modify it.
956 This file contains any messages produced by compilers while
957 running configure, to aid debugging if configure makes a mistake.
959 It was created by $as_me, which was
960 generated by GNU Autoconf 2.59. Invocation command line was
971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
994 test -z "$as_dir" && as_dir=.
1010 # Keep a trace of the command line.
1011 # Strip out --no-create and --no-recursion so they do not pile up.
1012 # Strip out --silent because we don't want to record it for future runs.
1013 # Also quote any args containing shell meta-characters.
1014 # Make two passes to allow for proper duplicate-argument suppression.
1019 ac_must_keep_next=false
1025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1029 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1033 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036 if test $ac_must_keep_next = true; then
1037 ac_must_keep_next=false # Got value, back to normal.
1040 *=* | --config-cache | -C | -disable-* | --disable-* \
1041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043 | -with-* | --with-* | -without-* | --without-* | --x)
1044 case "$ac_configure_args0 " in
1045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1048 -* ) ac_must_keep_next=true ;;
1051 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052 # Get rid of the leading space.
1058 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061 # When interrupted or exit'd, cleanup temporary files, and complete
1062 # config.log. We remove comments because anyway the quotes in there
1063 # would cause problems or look ugly.
1064 # WARNING: Be sure not to use single quotes in there, as some shells,
1065 # such as our DU 5.0 friend, will then `close' the trap.
1066 trap 'exit_status=$?
1067 # Save into config.log some information that might help in debugging.
1072 ## ---------------- ##
1073 ## Cache variables. ##
1074 ## ---------------- ##
1077 # The following way of writing the cache mishandles newlines in values,
1080 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1083 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 ## ----------------- ##
1096 ## Output variables. ##
1097 ## ----------------- ##
1100 for ac_var in $ac_subst_vars
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1107 if test -n "$ac_subst_files"; then
1114 for ac_var in $ac_subst_files
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1122 if test -s confdefs.h; then
1129 sed "/^$/d" confdefs.h | sort
1132 test "$ac_signal" != 0 &&
1133 echo "$as_me: caught signal $ac_signal"
1134 echo "$as_me: exit $exit_status"
1136 rm -f core *.core &&
1137 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1140 for ac_signal in 1 2 13 15; do
1141 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146 rm -rf conftest* confdefs.h
1147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1150 # Predefined preprocessor variables.
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_NAME "$PACKAGE_NAME"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_STRING "$PACKAGE_STRING"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1177 # Let the site file select an alternate cache file if it wants to.
1178 # Prefer explicitly selected file to automatically selected ones.
1179 if test -z "$CONFIG_SITE"; then
1180 if test "x$prefix" != xNONE; then
1181 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1186 for ac_site_file in $CONFIG_SITE; do
1187 if test -r "$ac_site_file"; then
1188 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189 echo "$as_me: loading site script $ac_site_file" >&6;}
1190 sed 's/^/| /' "$ac_site_file" >&5
1195 if test -r "$cache_file"; then
1196 # Some versions of bash will fail to source /dev/null (special
1197 # files actually), so we avoid doing that.
1198 if test -f "$cache_file"; then
1199 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200 echo "$as_me: loading cache $cache_file" >&6;}
1202 [\\/]* | ?:[\\/]* ) . $cache_file;;
1203 *) . ./$cache_file;;
1207 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208 echo "$as_me: creating cache $cache_file" >&6;}
1212 # Check that the precious variables saved in the cache have kept the same
1214 ac_cache_corrupted=false
1215 for ac_var in `(set) 2>&1 |
1216 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1217 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218 eval ac_new_set=\$ac_env_${ac_var}_set
1219 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220 eval ac_new_val="\$ac_env_${ac_var}_value"
1221 case $ac_old_set,$ac_new_set in
1223 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225 ac_cache_corrupted=: ;;
1227 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229 ac_cache_corrupted=: ;;
1232 if test "x$ac_old_val" != "x$ac_new_val"; then
1233 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1234 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1235 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1236 echo "$as_me: former value: $ac_old_val" >&2;}
1237 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1238 echo "$as_me: current value: $ac_new_val" >&2;}
1239 ac_cache_corrupted=:
1242 # Pass precious variables to config.status.
1243 if test "$ac_new_set" = set; then
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 *) ac_arg=$ac_var=$ac_new_val ;;
1249 case " $ac_configure_args " in
1250 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1251 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1255 if $ac_cache_corrupted; then
1256 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260 { (exit 1); exit 1; }; }
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293 if test -n "$ac_tool_prefix"; then
1294 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1295 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1296 echo "$as_me:$LINENO: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_prog_CC+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 if test -n "$CC"; then
1302 ac_cv_prog_CC="$CC" # Let the user override the test.
1304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1308 test -z "$as_dir" && as_dir=.
1309 for ac_exec_ext in '' $ac_executable_extensions; do
1310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1311 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1321 if test -n "$CC"; then
1322 echo "$as_me:$LINENO: result: $CC" >&5
1323 echo "${ECHO_T}$CC" >&6
1325 echo "$as_me:$LINENO: result: no" >&5
1326 echo "${ECHO_T}no" >&6
1330 if test -z "$ac_cv_prog_CC"; then
1332 # Extract the first word of "gcc", so it can be a program name with args.
1333 set dummy gcc; ac_word=$2
1334 echo "$as_me:$LINENO: checking for $ac_word" >&5
1335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1339 if test -n "$ac_ct_CC"; then
1340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346 test -z "$as_dir" && as_dir=.
1347 for ac_exec_ext in '' $ac_executable_extensions; do
1348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1349 ac_cv_prog_ac_ct_CC="gcc"
1350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1359 if test -n "$ac_ct_CC"; then
1360 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1361 echo "${ECHO_T}$ac_ct_CC" >&6
1363 echo "$as_me:$LINENO: result: no" >&5
1364 echo "${ECHO_T}no" >&6
1372 if test -z "$CC"; then
1373 if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}cc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_CC="${ac_tool_prefix}cc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 if test -n "$CC"; then
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1410 if test -z "$ac_cv_prog_CC"; then
1412 # Extract the first word of "cc", so it can be a program name with args.
1413 set dummy cc; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 test -z "$as_dir" && as_dir=.
1427 for ac_exec_ext in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_ac_ct_CC="cc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1453 if test -z "$CC"; then
1454 # Extract the first word of "cc", so it can be a program name with args.
1455 set dummy cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1473 ac_prog_rejected=yes
1477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 if test $ac_prog_rejected = yes; then
1484 # We found a bogon in the path, so make sure we never use it.
1485 set dummy $ac_cv_prog_CC
1487 if test $# != 0; then
1488 # We chose a different compiler from the bogus one.
1489 # However, it has the same basename, so the bogon will be chosen
1490 # first if we set CC to just the basename; use the full file name.
1492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$CC"; then
1508 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1546 test -n "$CC" && break
1549 if test -z "$CC"; then
1553 # Extract the first word of "$ac_prog", so it can be a program name with args.
1554 set dummy $ac_prog; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="$ac_prog"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1588 test -n "$ac_ct_CC" && break
1597 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1598 See \`config.log' for more details." >&5
1599 echo "$as_me: error: no acceptable C compiler found in \$PATH
1600 See \`config.log' for more details." >&2;}
1601 { (exit 1); exit 1; }; }
1603 # Provide some information about the compiler.
1604 echo "$as_me:$LINENO:" \
1605 "checking for C compiler version" >&5
1606 ac_compiler=`set X $ac_compile; echo $2`
1607 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1608 (eval $ac_compiler --version </dev/null >&5) 2>&5
1610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1611 (exit $ac_status); }
1612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1613 (eval $ac_compiler -v </dev/null >&5) 2>&5
1615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1616 (exit $ac_status); }
1617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1618 (eval $ac_compiler -V </dev/null >&5) 2>&5
1620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1621 (exit $ac_status); }
1623 cat >conftest.$ac_ext <<_ACEOF
1626 cat confdefs.h >>conftest.$ac_ext
1627 cat >>conftest.$ac_ext <<_ACEOF
1628 /* end confdefs.h. */
1638 ac_clean_files_save=$ac_clean_files
1639 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1640 # Try to create an executable without -o first, disregard a.out.
1641 # It will help us diagnose broken compilers, and finding out an intuition
1643 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1644 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1645 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1646 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1647 (eval $ac_link_default) 2>&5
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }; then
1651 # Find the output, starting from the most likely. This scheme is
1652 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1655 # Be careful to initialize this variable, since it used to be cached.
1656 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1658 # b.out is created by i960 compilers.
1659 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1661 test -f "$ac_file" || continue
1663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1666 # This is the source file.
1669 # We found the default executable, but exeext='' is most
1673 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1674 # FIXME: I believe we export ac_cv_exeext for Libtool,
1675 # but it would be cool to find out if it's true. Does anybody
1676 # maintain Libtool? --akim.
1684 echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1687 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1688 See \`config.log' for more details." >&5
1689 echo "$as_me: error: C compiler cannot create executables
1690 See \`config.log' for more details." >&2;}
1691 { (exit 77); exit 77; }; }
1694 ac_exeext=$ac_cv_exeext
1695 echo "$as_me:$LINENO: result: $ac_file" >&5
1696 echo "${ECHO_T}$ac_file" >&6
1698 # Check the compiler produces executables we can run. If not, either
1699 # the compiler is broken, or we cross compile.
1700 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1701 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1702 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1703 # If not cross compiling, check that we can run a simple program.
1704 if test "$cross_compiling" != yes; then
1705 if { ac_try='./$ac_file'
1706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }; }; then
1713 if test "$cross_compiling" = maybe; then
1716 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1717 If you meant to cross compile, use \`--host'.
1718 See \`config.log' for more details." >&5
1719 echo "$as_me: error: cannot run C compiled programs.
1720 If you meant to cross compile, use \`--host'.
1721 See \`config.log' for more details." >&2;}
1722 { (exit 1); exit 1; }; }
1726 echo "$as_me:$LINENO: result: yes" >&5
1727 echo "${ECHO_T}yes" >&6
1729 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1730 ac_clean_files=$ac_clean_files_save
1731 # Check the compiler produces executables we can run. If not, either
1732 # the compiler is broken, or we cross compile.
1733 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1734 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1735 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1736 echo "${ECHO_T}$cross_compiling" >&6
1738 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1739 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1741 (eval $ac_link) 2>&5
1743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744 (exit $ac_status); }; then
1745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1746 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1747 # work properly (i.e., refer to `conftest.exe'), while it won't with
1749 for ac_file in conftest.exe conftest conftest.*; do
1750 test -f "$ac_file" || continue
1752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1760 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1761 See \`config.log' for more details." >&5
1762 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1763 See \`config.log' for more details." >&2;}
1764 { (exit 1); exit 1; }; }
1767 rm -f conftest$ac_cv_exeext
1768 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1769 echo "${ECHO_T}$ac_cv_exeext" >&6
1771 rm -f conftest.$ac_ext
1772 EXEEXT=$ac_cv_exeext
1774 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1775 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1776 if test "${ac_cv_objext+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 cat >conftest.$ac_ext <<_ACEOF
1782 cat confdefs.h >>conftest.$ac_ext
1783 cat >>conftest.$ac_ext <<_ACEOF
1784 /* end confdefs.h. */
1794 rm -f conftest.o conftest.obj
1795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799 (exit $ac_status); }; then
1800 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1803 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1808 echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1811 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1812 See \`config.log' for more details." >&5
1813 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1814 See \`config.log' for more details." >&2;}
1815 { (exit 1); exit 1; }; }
1818 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1820 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1821 echo "${ECHO_T}$ac_cv_objext" >&6
1822 OBJEXT=$ac_cv_objext
1824 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1825 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1826 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 cat >conftest.$ac_ext <<_ACEOF
1832 cat confdefs.h >>conftest.$ac_ext
1833 cat >>conftest.$ac_ext <<_ACEOF
1834 /* end confdefs.h. */
1847 rm -f conftest.$ac_objext
1848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1849 (eval $ac_compile) 2>conftest.er1
1851 grep -v '^ *+' conftest.er1 >conftest.err
1853 cat conftest.err >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); } &&
1856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }; } &&
1862 { ac_try='test -s conftest.$ac_objext'
1863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }; }; then
1870 echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1879 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1881 GCC=`test $ac_compiler_gnu = yes && echo yes`
1882 ac_test_CFLAGS=${CFLAGS+set}
1883 ac_save_CFLAGS=$CFLAGS
1885 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1886 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1887 if test "${ac_cv_prog_cc_g+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 cat >conftest.$ac_ext <<_ACEOF
1893 cat confdefs.h >>conftest.$ac_ext
1894 cat >>conftest.$ac_ext <<_ACEOF
1895 /* end confdefs.h. */
1905 rm -f conftest.$ac_objext
1906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1907 (eval $ac_compile) 2>conftest.er1
1909 grep -v '^ *+' conftest.er1 >conftest.err
1911 cat conftest.err >&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); } &&
1914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }; } &&
1920 { ac_try='test -s conftest.$ac_objext'
1921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; }; then
1928 echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1935 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1936 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1937 if test "$ac_test_CFLAGS" = set; then
1938 CFLAGS=$ac_save_CFLAGS
1939 elif test $ac_cv_prog_cc_g = yes; then
1940 if test "$GCC" = yes; then
1946 if test "$GCC" = yes; then
1952 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1953 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1954 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 ac_cv_prog_cc_stdc=no
1959 cat >conftest.$ac_ext <<_ACEOF
1962 cat confdefs.h >>conftest.$ac_ext
1963 cat >>conftest.$ac_ext <<_ACEOF
1964 /* end confdefs.h. */
1967 #include <sys/types.h>
1968 #include <sys/stat.h>
1969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1970 struct buf { int x; };
1971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1972 static char *e (p, i)
1978 static char *f (char * (*g) (char **, int), char **p, ...)
1983 s = g (p, va_arg (v,int));
1988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1989 function prototypes and stuff, but not '\xHH' hex character constants.
1990 These don't provoke an error unfortunately, instead are silently treated
1991 as 'x'. The following induces an error, until -std1 is added to get
1992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1993 array size at least. It's necessary to write '\x00'==0 to get something
1994 that's true only with -std1. */
1995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1997 int test (int i, double x);
1998 struct s1 {int (*f) (int a);};
1999 struct s2 {int (*f) (double a);};
2000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2006 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2011 # Don't try gcc -ansi; that turns off useful extensions and
2012 # breaks some systems' header files.
2013 # AIX -qlanglvl=ansi
2014 # Ultrix and OSF/1 -std1
2015 # HP-UX 10.20 and later -Ae
2016 # HP-UX older versions -Aa -D_HPUX_SOURCE
2017 # SVR4 -Xc -D__EXTENSIONS__
2018 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2020 CC="$ac_save_CC $ac_arg"
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>conftest.er1
2025 grep -v '^ *+' conftest.er1 >conftest.err
2027 cat conftest.err >&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); } &&
2030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
2042 ac_cv_prog_cc_stdc=$ac_arg
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2049 rm -f conftest.err conftest.$ac_objext
2051 rm -f conftest.$ac_ext conftest.$ac_objext
2056 case "x$ac_cv_prog_cc_stdc" in
2058 echo "$as_me:$LINENO: result: none needed" >&5
2059 echo "${ECHO_T}none needed" >&6 ;;
2061 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2062 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2063 CC="$CC $ac_cv_prog_cc_stdc" ;;
2066 # Some people use a C++ compiler to compile C. Since we use `exit',
2067 # in C++ we need to declare it. In case someone uses the same compiler
2068 # for both compiling C and C++ we need to have the C++ compiler decide
2069 # the declaration of exit, since it's the most demanding environment.
2070 cat >conftest.$ac_ext <<_ACEOF
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>conftest.er1
2079 grep -v '^ *+' conftest.er1 >conftest.err
2081 cat conftest.err >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } &&
2084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2096 for ac_declaration in \
2098 'extern "C" void std::exit (int) throw (); using std::exit;' \
2099 'extern "C" void std::exit (int); using std::exit;' \
2100 'extern "C" void exit (int) throw ();' \
2101 'extern "C" void exit (int);' \
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2120 rm -f conftest.$ac_objext
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>conftest.er1
2124 grep -v '^ *+' conftest.er1 >conftest.err
2126 cat conftest.err >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); } &&
2129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; } &&
2135 { ac_try='test -s conftest.$ac_objext'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2143 echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2149 cat >conftest.$ac_ext <<_ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2168 grep -v '^ *+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; } &&
2179 { ac_try='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2194 if test -n "$ac_declaration"; then
2195 echo '#ifdef __cplusplus' >>confdefs.h
2196 echo $ac_declaration >>confdefs.h
2197 echo '#endif' >>confdefs.h
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212 if test -n "$ac_tool_prefix"; then
2213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2214 set dummy ${ac_tool_prefix}ar; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_AR+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 if test -n "$AR"; then
2221 ac_cv_prog_AR="$AR" # Let the user override the test.
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_AR="${ac_tool_prefix}ar"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 if test -n "$AR"; then
2241 echo "$as_me:$LINENO: result: $AR" >&5
2242 echo "${ECHO_T}$AR" >&6
2244 echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2249 if test -z "$ac_cv_prog_AR"; then
2251 # Extract the first word of "ar", so it can be a program name with args.
2252 set dummy ar; ac_word=$2
2253 echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 if test -n "$ac_ct_AR"; then
2259 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268 ac_cv_prog_ac_ct_AR="ar"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2278 if test -n "$ac_ct_AR"; then
2279 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2280 echo "${ECHO_T}$ac_ct_AR" >&6
2282 echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_RANLIB+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test -n "$RANLIB"; then
2300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 RANLIB=$ac_cv_prog_RANLIB
2319 if test -n "$RANLIB"; then
2320 echo "$as_me:$LINENO: result: $RANLIB" >&5
2321 echo "${ECHO_T}$RANLIB" >&6
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2328 if test -z "$ac_cv_prog_RANLIB"; then
2329 ac_ct_RANLIB=$RANLIB
2330 # Extract the first word of "ranlib", so it can be a program name with args.
2331 set dummy ranlib; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$ac_ct_RANLIB"; then
2338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_ac_ct_RANLIB="ranlib"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2358 if test -n "$ac_ct_RANLIB"; then
2359 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2360 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2362 echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2366 RANLIB=$ac_ct_RANLIB
2368 RANLIB="$ac_cv_prog_RANLIB"
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2379 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2380 # On Suns, sometimes $CPP names a directory.
2381 if test -n "$CPP" && test -d "$CPP"; then
2384 if test -z "$CPP"; then
2385 if test "${ac_cv_prog_CPP+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 # Double quotes because CPP needs to be expanded
2389 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2392 for ac_c_preproc_warn_flag in '' yes
2394 # Use a header file that comes with gcc, so configuring glibc
2395 # with a fresh cross-compiler works.
2396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2397 # <limits.h> exists even on freestanding compilers.
2398 # On the NeXT, cc -E runs the code through the compiler's parser,
2399 # not just through cpp. "Syntax error" is here to catch this case.
2400 cat >conftest.$ac_ext <<_ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2407 # include <limits.h>
2409 # include <assert.h>
2413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2416 grep -v '^ *+' conftest.er1 >conftest.err
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } >/dev/null; then
2421 if test -s conftest.err; then
2422 ac_cpp_err=$ac_c_preproc_warn_flag
2423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430 if test -z "$ac_cpp_err"; then
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 # Broken: fails on valid input.
2439 rm -f conftest.err conftest.$ac_ext
2441 # OK, works on sane cases. Now check whether non-existent headers
2442 # can be detected and how.
2443 cat >conftest.$ac_ext <<_ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2449 #include <ac_nonexistent.h>
2451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 grep -v '^ *+' conftest.er1 >conftest.err
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } >/dev/null; then
2459 if test -s conftest.err; then
2460 ac_cpp_err=$ac_c_preproc_warn_flag
2461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2468 if test -z "$ac_cpp_err"; then
2469 # Broken: success on invalid input.
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2475 # Passes both tests.
2479 rm -f conftest.err conftest.$ac_ext
2482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2483 rm -f conftest.err conftest.$ac_ext
2484 if $ac_preproc_ok; then
2496 echo "$as_me:$LINENO: result: $CPP" >&5
2497 echo "${ECHO_T}$CPP" >&6
2499 for ac_c_preproc_warn_flag in '' yes
2501 # Use a header file that comes with gcc, so configuring glibc
2502 # with a fresh cross-compiler works.
2503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2504 # <limits.h> exists even on freestanding compilers.
2505 # On the NeXT, cc -E runs the code through the compiler's parser,
2506 # not just through cpp. "Syntax error" is here to catch this case.
2507 cat >conftest.$ac_ext <<_ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2514 # include <limits.h>
2516 # include <assert.h>
2520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2523 grep -v '^ *+' conftest.er1 >conftest.err
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } >/dev/null; then
2528 if test -s conftest.err; then
2529 ac_cpp_err=$ac_c_preproc_warn_flag
2530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537 if test -z "$ac_cpp_err"; then
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2543 # Broken: fails on valid input.
2546 rm -f conftest.err conftest.$ac_ext
2548 # OK, works on sane cases. Now check whether non-existent headers
2549 # can be detected and how.
2550 cat >conftest.$ac_ext <<_ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2556 #include <ac_nonexistent.h>
2558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2561 grep -v '^ *+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } >/dev/null; then
2566 if test -s conftest.err; then
2567 ac_cpp_err=$ac_c_preproc_warn_flag
2568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2575 if test -z "$ac_cpp_err"; then
2576 # Broken: success on invalid input.
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2582 # Passes both tests.
2586 rm -f conftest.err conftest.$ac_ext
2589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2590 rm -f conftest.err conftest.$ac_ext
2591 if $ac_preproc_ok; then
2594 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2595 See \`config.log' for more details." >&5
2596 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2597 See \`config.log' for more details." >&2;}
2598 { (exit 1); exit 1; }; }
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 echo "$as_me:$LINENO: checking for egrep" >&5
2609 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2610 if test "${ac_cv_prog_egrep+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2614 then ac_cv_prog_egrep='grep -E'
2615 else ac_cv_prog_egrep='egrep'
2618 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2619 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2620 EGREP=$ac_cv_prog_egrep
2623 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2624 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2625 if test "${ac_cv_header_stdc+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 ac_cv_header_stdc=yes
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2673 ac_cv_header_stdc=no
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 if test $ac_cv_header_stdc = yes; then
2678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2689 $EGREP "memchr" >/dev/null 2>&1; then
2692 ac_cv_header_stdc=no
2698 if test $ac_cv_header_stdc = yes; then
2699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2710 $EGREP "free" >/dev/null 2>&1; then
2713 ac_cv_header_stdc=no
2719 if test $ac_cv_header_stdc = yes; then
2720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2721 if test "$cross_compiling" = yes; then
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2731 #if ((' ' & 0x0FF) == 0x020)
2732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2735 # define ISLOWER(c) \
2736 (('a' <= (c) && (c) <= 'i') \
2737 || ('j' <= (c) && (c) <= 'r') \
2738 || ('s' <= (c) && (c) <= 'z'))
2739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2747 for (i = 0; i < 256; i++)
2748 if (XOR (islower (i), ISLOWER (i))
2749 || toupper (i) != TOUPPER (i))
2754 rm -f conftest$ac_exeext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2756 (eval $ac_link) 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2767 echo "$as_me: program exited with status $ac_status" >&5
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2772 ac_cv_header_stdc=no
2774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2778 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2779 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2780 if test $ac_cv_header_stdc = yes; then
2782 cat >>confdefs.h <<\_ACEOF
2783 #define STDC_HEADERS 1
2788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2798 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2799 inttypes.h stdint.h unistd.h
2801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2802 echo "$as_me:$LINENO: checking for $ac_header" >&5
2803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 cat >conftest.$ac_ext <<_ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 $ac_includes_default
2815 #include <$ac_header>
2817 rm -f conftest.$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819 (eval $ac_compile) 2>conftest.er1
2821 grep -v '^ *+' conftest.er1 >conftest.err
2823 cat conftest.err >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; } &&
2832 { ac_try='test -s conftest.$ac_objext'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 eval "$as_ac_Header=yes"
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 eval "$as_ac_Header=no"
2845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2850 cat >>confdefs.h <<_ACEOF
2851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2861 for ac_header in stdlib.h unistd.h
2863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2865 echo "$as_me:$LINENO: checking for $ac_header" >&5
2866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2873 # Is the header compilable?
2874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2876 cat >conftest.$ac_ext <<_ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882 $ac_includes_default
2883 #include <$ac_header>
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887 (eval $ac_compile) 2>conftest.er1
2889 grep -v '^ *+' conftest.er1 >conftest.err
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 ac_header_compiler=yes
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 ac_header_compiler=no
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2915 echo "${ECHO_T}$ac_header_compiler" >&6
2917 # Is the header present?
2918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 #include <$ac_header>
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1 >conftest.err
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev/null; then
2936 if test -s conftest.err; then
2937 ac_cpp_err=$ac_c_preproc_warn_flag
2938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2945 if test -z "$ac_cpp_err"; then
2946 ac_header_preproc=yes
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 ac_header_preproc=no
2953 rm -f conftest.err conftest.$ac_ext
2954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2955 echo "${ECHO_T}$ac_header_preproc" >&6
2957 # So? What about this header?
2958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2964 ac_header_preproc=yes
2967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2981 ## ------------------------------------------ ##
2982 ## Report this to the AC_PACKAGE_NAME lists. ##
2983 ## ------------------------------------------ ##
2986 sed "s/^/$as_me: WARNING: /" >&2
2989 echo "$as_me:$LINENO: checking for $ac_header" >&5
2990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 eval "$as_ac_Header=\$ac_header_preproc"
2996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3001 cat >>confdefs.h <<_ACEOF
3002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3010 for ac_func in getpagesize
3012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3013 echo "$as_me:$LINENO: checking for $ac_func" >&5
3014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3015 if eval "test \"\${$as_ac_var+set}\" = set"; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3026 #define $ac_func innocuous_$ac_func
3028 /* System header to define __stub macros and hopefully few prototypes,
3029 which can conflict with char $ac_func (); below.
3030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3031 <limits.h> exists even on freestanding compilers. */
3034 # include <limits.h>
3036 # include <assert.h>
3041 /* Override any gcc2 internal prototype to avoid an error. */
3046 /* We use char because int might match the return type of a gcc2
3047 builtin and then its argument prototype would still apply. */
3049 /* The GNU C library defines this for functions which it implements
3050 to always fail with ENOSYS. Some functions are actually named
3051 something starting with __ and the normal name is an alias. */
3052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3055 char (*f) () = $ac_func;
3064 return f != $ac_func;
3069 rm -f conftest.$ac_objext conftest$ac_exeext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071 (eval $ac_link) 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest$ac_exeext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 eval "$as_ac_var=yes"
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 eval "$as_ac_var=no"
3097 rm -f conftest.err conftest.$ac_objext \
3098 conftest$ac_exeext conftest.$ac_ext
3100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3102 if test `eval echo '${'$as_ac_var'}'` = yes; then
3103 cat >>confdefs.h <<_ACEOF
3104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3110 echo "$as_me:$LINENO: checking for working mmap" >&5
3111 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3112 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test "$cross_compiling" = yes; then
3116 ac_cv_func_mmap_fixed_mapped=no
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3124 $ac_includes_default
3125 /* malloc might have been renamed as rpl_malloc. */
3128 /* Thanks to Mike Haertel and Jim Avera for this test.
3129 Here is a matrix of mmap possibilities:
3130 mmap private not fixed
3131 mmap private fixed at somewhere currently unmapped
3132 mmap private fixed at somewhere already mapped
3133 mmap shared not fixed
3134 mmap shared fixed at somewhere currently unmapped
3135 mmap shared fixed at somewhere already mapped
3136 For private mappings, we should verify that changes cannot be read()
3137 back from the file, nor mmap's back from the file at a different
3138 address. (There have been systems where private was not correctly
3139 implemented like the infamous i386 svr4.0, and systems where the
3140 VM page cache was not coherent with the file system buffer cache
3141 like early versions of FreeBSD and possibly contemporary NetBSD.)
3142 For shared mappings, we should conversely verify that changes get
3143 propagated back to all the places they're supposed to be.
3145 Grep wants private fixed already mapped.
3146 The main things grep needs to know about mmap are:
3147 * does it exist and is it safe to write into the mmap'd area
3148 * how to use it (BSD variants) */
3151 #include <sys/mman.h>
3153 #if !STDC_HEADERS && !HAVE_STDLIB_H
3157 /* This mess was copied from the GNU getpagesize.h. */
3158 #if !HAVE_GETPAGESIZE
3159 /* Assume that all systems that can run configure have sys/param.h. */
3160 # if !HAVE_SYS_PARAM_H
3161 # define HAVE_SYS_PARAM_H 1
3164 # ifdef _SC_PAGESIZE
3165 # define getpagesize() sysconf(_SC_PAGESIZE)
3166 # else /* no _SC_PAGESIZE */
3167 # if HAVE_SYS_PARAM_H
3168 # include <sys/param.h>
3169 # ifdef EXEC_PAGESIZE
3170 # define getpagesize() EXEC_PAGESIZE
3171 # else /* no EXEC_PAGESIZE */
3173 # define getpagesize() NBPG * CLSIZE
3176 # endif /* no CLSIZE */
3177 # else /* no NBPG */
3179 # define getpagesize() NBPC
3180 # else /* no NBPC */
3182 # define getpagesize() PAGESIZE
3183 # endif /* PAGESIZE */
3184 # endif /* no NBPC */
3185 # endif /* no NBPG */
3186 # endif /* no EXEC_PAGESIZE */
3187 # else /* no HAVE_SYS_PARAM_H */
3188 # define getpagesize() 8192 /* punt totally */
3189 # endif /* no HAVE_SYS_PARAM_H */
3190 # endif /* no _SC_PAGESIZE */
3192 #endif /* no HAVE_GETPAGESIZE */
3197 char *data, *data2, *data3;
3201 pagesize = getpagesize ();
3203 /* First, make a file with some known garbage in it. */
3204 data = (char *) malloc (pagesize);
3207 for (i = 0; i < pagesize; ++i)
3208 *(data + i) = rand ();
3210 fd = creat ("conftest.mmap", 0600);
3213 if (write (fd, data, pagesize) != pagesize)
3217 /* Next, try to mmap the file at a fixed address which already has
3218 something else allocated at it. If we can, also make sure that
3219 we see the same garbage. */
3220 fd = open ("conftest.mmap", O_RDWR);
3223 data2 = (char *) malloc (2 * pagesize);
3226 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3227 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3228 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3230 for (i = 0; i < pagesize; ++i)
3231 if (*(data + i) != *(data2 + i))
3234 /* Finally, make sure that changes to the mapped area do not
3235 percolate back to the file as seen by read(). (This is a bug on
3236 some variants of i386 svr4.0.) */
3237 for (i = 0; i < pagesize; ++i)
3238 *(data2 + i) = *(data2 + i) + 1;
3239 data3 = (char *) malloc (pagesize);
3242 if (read (fd, data3, pagesize) != pagesize)
3244 for (i = 0; i < pagesize; ++i)
3245 if (*(data + i) != *(data3 + i))
3251 rm -f conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253 (eval $ac_link) 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_cv_func_mmap_fixed_mapped=yes
3264 echo "$as_me: program exited with status $ac_status" >&5
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3269 ac_cv_func_mmap_fixed_mapped=no
3271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3274 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3275 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3276 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3278 cat >>confdefs.h <<\_ACEOF
3288 for ac_header in limits.h stddef.h unistd.h
3290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3292 echo "$as_me:$LINENO: checking for $ac_header" >&5
3293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3300 # Is the header compilable?
3301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 $ac_includes_default
3310 #include <$ac_header>
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 ac_header_compiler=yes
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 ac_header_compiler=no
3340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3342 echo "${ECHO_T}$ac_header_compiler" >&6
3344 # Is the header present?
3345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #include <$ac_header>
3355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3358 grep -v '^ *+' conftest.er1 >conftest.err
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } >/dev/null; then
3363 if test -s conftest.err; then
3364 ac_cpp_err=$ac_c_preproc_warn_flag
3365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3372 if test -z "$ac_cpp_err"; then
3373 ac_header_preproc=yes
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 ac_header_preproc=no
3380 rm -f conftest.err conftest.$ac_ext
3381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3382 echo "${ECHO_T}$ac_header_preproc" >&6
3384 # So? What about this header?
3385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3391 ac_header_preproc=yes
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3408 ## ------------------------------------------ ##
3409 ## Report this to the AC_PACKAGE_NAME lists. ##
3410 ## ------------------------------------------ ##
3413 sed "s/^/$as_me: WARNING: /" >&2
3416 echo "$as_me:$LINENO: checking for $ac_header" >&5
3417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 eval "$as_ac_Header=\$ac_header_preproc"
3423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3428 cat >>confdefs.h <<_ACEOF
3429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3438 ac_config_files="$ac_config_files Makefile"
3439 cat >confcache <<\_ACEOF
3440 # This file is a shell script that caches the results of configure
3441 # tests run on this system so they can be shared between configure
3442 # scripts and configure runs, see configure's option --config-cache.
3443 # It is not useful on other systems. If it contains results you don't
3444 # want to keep, you may remove or edit it.
3446 # config.status only pays attention to the cache file if you give it
3447 # the --recheck option to rerun configure.
3449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3455 # The following way of writing the cache mishandles newlines in values,
3456 # but we know of no workaround that is simple, portable, and efficient.
3457 # So, don't put newlines in cache variables' values.
3458 # Ultrix sh set writes to stderr and can't be redirected directly,
3459 # and sets the high bit in the cache file unless we assign to the vars.
3462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3464 # `set' does not quote correctly, so add quotes (double-quote
3465 # substitution turns \\\\ into \\, and sed turns \\ into \).
3468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3471 # `set' quotes correctly as required by POSIX, so do not add quotes.
3473 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3482 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3484 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3485 if test -w $cache_file; then
3486 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3487 cat confcache >$cache_file
3489 echo "not updating unwritable cache $cache_file"
3494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3495 # Let make expand exec_prefix.
3496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3500 # trailing colons and then remove the whole line if VPATH becomes empty
3501 # (actually we leave an empty line to preserve line numbers).
3502 if test "x$srcdir" = x.; then
3503 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3504 s/:*\$(srcdir):*/:/;
3505 s/:*\${srcdir}:*/:/;
3507 s/^\([^=]*=[ ]*\):*/\1/;
3513 # Transform confdefs.h into DEFS.
3514 # Protect against shell expansion while executing Makefile rules.
3515 # Protect against Makefile macro expansion.
3517 # If the first sed substitution is executed (which looks for macros that
3518 # take arguments), then we branch to the quote section. Otherwise,
3519 # look for a macro that doesn't take arguments.
3520 cat >confdef2opt.sed <<\_ACEOF
3523 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3525 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3529 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3535 # We use echo to avoid assuming a particular line-breaking character.
3536 # The extra dot is to prevent the shell from consuming trailing
3537 # line-breaks from the sub-command output. A line-break within
3538 # single-quotes doesn't work because, if this script is created in a
3539 # platform that uses two characters for line-breaks (e.g., DOS), tr
3541 ac_LF_and_DOT=`echo; echo .`
3542 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3543 rm -f confdef2opt.sed
3548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3549 # 1. Remove the extension, and $U if already installed.
3550 ac_i=`echo "$ac_i" |
3551 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3553 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3554 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3558 LTLIBOBJS=$ac_ltlibobjs
3562 : ${CONFIG_STATUS=./config.status}
3563 ac_clean_files_save=$ac_clean_files
3564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3565 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3566 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3567 cat >$CONFIG_STATUS <<_ACEOF
3569 # Generated by $as_me.
3570 # Run this file to recreate the current configuration.
3571 # Compiler output produced by configure, useful for debugging
3572 # configure, is in config.log if it exists.
3577 SHELL=\${CONFIG_SHELL-$SHELL}
3580 cat >>$CONFIG_STATUS <<\_ACEOF
3581 ## --------------------- ##
3582 ## M4sh Initialization. ##
3583 ## --------------------- ##
3585 # Be Bourne compatible
3586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3589 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3590 # is contrary to our usage. Disable this feature.
3591 alias -g '${1+"$@"}'='"$@"'
3592 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3595 DUALCASE=1; export DUALCASE # for MKS sh
3597 # Support unset when possible.
3598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3605 # Work around bugs in pre-3.0 UWIN ksh.
3606 $as_unset ENV MAIL MAILPATH
3613 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3614 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3615 LC_TELEPHONE LC_TIME
3617 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3618 eval $as_var=C; export $as_var
3624 # Required to use basename.
3625 if expr a : '\(a\)' >/dev/null 2>&1; then
3631 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3632 as_basename=basename
3638 # Name of the executable.
3639 as_me=`$as_basename "$0" ||
3640 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3641 X"$0" : 'X\(//\)$' \| \
3642 X"$0" : 'X\(/\)$' \| \
3643 . : '\(.\)' 2>/dev/null ||
3645 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3646 /^X\/\(\/\/\)$/{ s//\1/; q; }
3647 /^X\/\(\/\).*/{ s//\1/; q; }
3651 # PATH needs CR, and LINENO needs CR and PATH.
3652 # Avoid depending upon Character Ranges.
3653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3656 as_cr_digits='0123456789'
3657 as_cr_alnum=$as_cr_Letters$as_cr_digits
3659 # The user is always right.
3660 if test "${PATH_SEPARATOR+set}" != set; then
3661 echo "#! /bin/sh" >conf$$.sh
3662 echo "exit 0" >>conf$$.sh
3664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3675 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3676 test "x$as_lineno_1" != "x$as_lineno_2" &&
3677 test "x$as_lineno_3" = "x$as_lineno_2" || {
3678 # Find who we are. Look in the path if we contain no path at all
3681 *[\\/]* ) as_myself=$0 ;;
3682 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3692 # We did not find ourselves, most probably we were run as `sh COMMAND'
3693 # in which case we are not to be found in the path.
3694 if test "x$as_myself" = x; then
3697 if test ! -f "$as_myself"; then
3698 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3699 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3700 { (exit 1); exit 1; }; }
3702 case $CONFIG_SHELL in
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3708 test -z "$as_dir" && as_dir=.
3709 for as_base in sh bash ksh sh5; do
3712 if ("$as_dir/$as_base" -c '
3715 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3716 test "x$as_lineno_1" != "x$as_lineno_2" &&
3717 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3718 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3719 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3720 CONFIG_SHELL=$as_dir/$as_base
3722 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3730 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3731 # uniformly replaced by the line number. The first 'sed' inserts a
3732 # line-number line before each line; the second 'sed' does the real
3733 # work. The second script uses 'N' to pair each line-number line
3734 # with the numbered line, and appends trailing '-' during
3735 # substitution so that $LINENO is not a special case at line end.
3736 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3737 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3738 sed '=' <$as_myself |
3743 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3746 s,^['$as_cr_digits']*\n,,
3748 chmod +x $as_me.lineno ||
3749 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3750 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3751 { (exit 1); exit 1; }; }
3753 # Don't try to exec as it changes $[0], causing all sort of problems
3754 # (the dirname of $[0] is not the place where we might find the
3755 # original and so on. Autoconf is especially sensible to this).
3757 # Exit status is that of the last command.
3762 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3763 *c*,-n*) ECHO_N= ECHO_C='
3765 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3766 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3769 if expr a : '\(a\)' >/dev/null 2>&1; then
3775 rm -f conf$$ conf$$.exe conf$$.file
3777 if ln -s conf$$.file conf$$ 2>/dev/null; then
3778 # We could just check for DJGPP; but this test a) works b) is more generic
3779 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3780 if test -f conf$$.exe; then
3781 # Don't use ln at all; we don't have any links
3786 elif ln conf$$.file conf$$ 2>/dev/null; then
3791 rm -f conf$$ conf$$.exe conf$$.file
3793 if mkdir -p . 2>/dev/null; then
3796 test -d ./-p && rmdir ./-p
3800 as_executable_p="test -f"
3802 # Sed expression to map a string onto a valid CPP name.
3803 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3805 # Sed expression to map a string onto a valid variable name.
3806 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3810 # We need space, tab and new line, in precisely that order.
3820 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3821 # report actual input values of CONFIG_FILES etc. instead of their
3822 # values after options handling. Logging --version etc. is OK.
3826 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3827 ## Running $as_me. ##
3832 This file was extended by $as_me, which was
3833 generated by GNU Autoconf 2.59. Invocation command line was
3835 CONFIG_FILES = $CONFIG_FILES
3836 CONFIG_HEADERS = $CONFIG_HEADERS
3837 CONFIG_LINKS = $CONFIG_LINKS
3838 CONFIG_COMMANDS = $CONFIG_COMMANDS
3842 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3846 # Files that config.status was made for.
3847 if test -n "$ac_config_files"; then
3848 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3851 if test -n "$ac_config_headers"; then
3852 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3855 if test -n "$ac_config_links"; then
3856 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3859 if test -n "$ac_config_commands"; then
3860 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3863 cat >>$CONFIG_STATUS <<\_ACEOF
3866 \`$as_me' instantiates files from templates according to the
3867 current configuration.
3869 Usage: $0 [OPTIONS] [FILE]...
3871 -h, --help print this help, then exit
3872 -V, --version print version number, then exit
3873 -q, --quiet do not print progress messages
3874 -d, --debug don't remove temporary files
3875 --recheck update $as_me by reconfiguring in the same conditions
3876 --file=FILE[:TEMPLATE]
3877 instantiate the configuration file FILE
3879 Configuration files:
3882 Report bugs to <bug-autoconf@gnu.org>."
3885 cat >>$CONFIG_STATUS <<_ACEOF
3888 configured by $0, generated by GNU Autoconf 2.59,
3889 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3891 Copyright (C) 2003 Free Software Foundation, Inc.
3892 This config.status script is free software; the Free Software Foundation
3893 gives unlimited permission to copy, distribute and modify it."
3897 cat >>$CONFIG_STATUS <<\_ACEOF
3898 # If no file are specified by the user, then we need to provide default
3899 # value. By we need to know if files were specified by the user.
3905 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3906 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3914 *) # This is not an option, so the user has probably given explicit
3917 ac_need_defaults=false;;
3921 # Handling of the options.
3923 cat >>$CONFIG_STATUS <<\_ACEOF
3924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3926 --version | --vers* | -V )
3927 echo "$ac_cs_version"; exit 0 ;;
3929 # Conflict between --help and --header
3930 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3931 Try \`$0 --help' for more information." >&5
3932 echo "$as_me: error: ambiguous option: $1
3933 Try \`$0 --help' for more information." >&2;}
3934 { (exit 1); exit 1; }; };;
3935 --help | --hel | -h )
3936 echo "$ac_cs_usage"; exit 0 ;;
3937 --debug | --d* | -d )
3939 --file | --fil | --fi | --f )
3941 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3942 ac_need_defaults=false;;
3943 --header | --heade | --head | --hea )
3945 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3946 ac_need_defaults=false;;
3947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3948 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3952 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3953 Try \`$0 --help' for more information." >&5
3954 echo "$as_me: error: unrecognized option: $1
3955 Try \`$0 --help' for more information." >&2;}
3956 { (exit 1); exit 1; }; } ;;
3958 *) ac_config_targets="$ac_config_targets $1" ;;
3964 ac_configure_extra_args=
3966 if $ac_cs_silent; then
3968 ac_configure_extra_args="$ac_configure_extra_args --silent"
3972 cat >>$CONFIG_STATUS <<_ACEOF
3973 if \$ac_cs_recheck; then
3974 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3975 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3984 cat >>$CONFIG_STATUS <<\_ACEOF
3985 for ac_config_target in $ac_config_targets
3987 case "$ac_config_target" in
3988 # Handling of arguments.
3989 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3990 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3991 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3992 { (exit 1); exit 1; }; };;
3996 # If the user did not use the arguments to specify the items to instantiate,
3997 # then the envvar interface is used. Set only those that are not.
3998 # We use the long form for the default assignment because of an extremely
3999 # bizarre bug on SunOS 4.1.3.
4000 if $ac_need_defaults; then
4001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4004 # Have a temporary directory for convenience. Make it in the build tree
4005 # simply because there is no reason to put it here, and in addition,
4006 # creating and moving files from /tmp can sometimes cause problems.
4007 # Create a temporary directory, and hook for its removal unless debugging.
4010 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4011 trap '{ (exit 1); exit 1; }' 1 2 13 15
4014 # Create a (secure) tmp directory for tmp files.
4017 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4018 test -n "$tmp" && test -d "$tmp"
4021 tmp=./confstat$$-$RANDOM
4022 (umask 077 && mkdir $tmp)
4025 echo "$me: cannot create a temporary directory in ." >&2
4026 { (exit 1); exit 1; }
4031 cat >>$CONFIG_STATUS <<_ACEOF
4034 # CONFIG_FILES section.
4037 # No need to generate the scripts if there are no CONFIG_FILES.
4038 # This happens for instance when ./config.status config.h
4039 if test -n "\$CONFIG_FILES"; then
4040 # Protect against being on the right side of a sed subst in config.status.
4041 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4042 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4043 s,@SHELL@,$SHELL,;t t
4044 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4045 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4046 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4047 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4048 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4049 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4050 s,@exec_prefix@,$exec_prefix,;t t
4051 s,@prefix@,$prefix,;t t
4052 s,@program_transform_name@,$program_transform_name,;t t
4053 s,@bindir@,$bindir,;t t
4054 s,@sbindir@,$sbindir,;t t
4055 s,@libexecdir@,$libexecdir,;t t
4056 s,@datadir@,$datadir,;t t
4057 s,@sysconfdir@,$sysconfdir,;t t
4058 s,@sharedstatedir@,$sharedstatedir,;t t
4059 s,@localstatedir@,$localstatedir,;t t
4060 s,@libdir@,$libdir,;t t
4061 s,@includedir@,$includedir,;t t
4062 s,@oldincludedir@,$oldincludedir,;t t
4063 s,@infodir@,$infodir,;t t
4064 s,@mandir@,$mandir,;t t
4065 s,@build_alias@,$build_alias,;t t
4066 s,@host_alias@,$host_alias,;t t
4067 s,@target_alias@,$target_alias,;t t
4069 s,@ECHO_C@,$ECHO_C,;t t
4070 s,@ECHO_N@,$ECHO_N,;t t
4071 s,@ECHO_T@,$ECHO_T,;t t
4074 s,@CFLAGS@,$CFLAGS,;t t
4075 s,@LDFLAGS@,$LDFLAGS,;t t
4076 s,@CPPFLAGS@,$CPPFLAGS,;t t
4077 s,@ac_ct_CC@,$ac_ct_CC,;t t
4078 s,@EXEEXT@,$EXEEXT,;t t
4079 s,@OBJEXT@,$OBJEXT,;t t
4081 s,@ac_ct_AR@,$ac_ct_AR,;t t
4082 s,@RANLIB@,$RANLIB,;t t
4083 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4085 s,@EGREP@,$EGREP,;t t
4086 s,@LIBOBJS@,$LIBOBJS,;t t
4087 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4092 cat >>$CONFIG_STATUS <<\_ACEOF
4093 # Split the substitutions into bite-sized pieces for seds with
4094 # small command number limits, like on Digital OSF/1 and HP-UX.
4096 ac_sed_frag=1 # Number of current file.
4097 ac_beg=1 # First line for current file.
4098 ac_end=$ac_max_sed_lines # Line after last line for current file.
4101 while $ac_more_lines; do
4102 if test $ac_beg -gt 1; then
4103 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4105 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4107 if test ! -s $tmp/subs.frag; then
4110 # The purpose of the label and of the branching condition is to
4111 # speed up the sed processing (if there are no `@' at all, there
4112 # is no need to browse any of the substitutions).
4113 # These are the two extra sed commands mentioned above.
4115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4116 if test -z "$ac_sed_cmds"; then
4117 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4119 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4121 ac_sed_frag=`expr $ac_sed_frag + 1`
4123 ac_end=`expr $ac_end + $ac_max_sed_lines`
4126 if test -z "$ac_sed_cmds"; then
4129 fi # test -n "$CONFIG_FILES"
4132 cat >>$CONFIG_STATUS <<\_ACEOF
4133 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4134 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4136 - | *:- | *:-:* ) # input from stdin
4138 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4139 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4140 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4141 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4142 * ) ac_file_in=$ac_file.in ;;
4145 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4146 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4148 X"$ac_file" : 'X\(//\)[^/]' \| \
4149 X"$ac_file" : 'X\(//\)$' \| \
4150 X"$ac_file" : 'X\(/\)' \| \
4151 . : '\(.\)' 2>/dev/null ||
4153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4155 /^X\(\/\/\)$/{ s//\1/; q; }
4156 /^X\(\/\).*/{ s//\1/; q; }
4158 { if $as_mkdir_p; then
4163 while test ! -d "$as_dir"; do
4164 as_dirs="$as_dir $as_dirs"
4165 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4167 X"$as_dir" : 'X\(//\)[^/]' \| \
4168 X"$as_dir" : 'X\(//\)$' \| \
4169 X"$as_dir" : 'X\(/\)' \| \
4170 . : '\(.\)' 2>/dev/null ||
4172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4174 /^X\(\/\/\)$/{ s//\1/; q; }
4175 /^X\(\/\).*/{ s//\1/; q; }
4178 test ! -n "$as_dirs" || mkdir $as_dirs
4179 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4180 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4181 { (exit 1); exit 1; }; }; }
4185 if test "$ac_dir" != .; then
4186 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4187 # A "../" for each directory in $ac_dir_suffix.
4188 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4190 ac_dir_suffix= ac_top_builddir=
4194 .) # No --srcdir option. We are building in place.
4196 if test -z "$ac_top_builddir"; then
4199 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4201 [\\/]* | ?:[\\/]* ) # Absolute path.
4202 ac_srcdir=$srcdir$ac_dir_suffix;
4203 ac_top_srcdir=$srcdir ;;
4205 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4206 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4209 # Do not use `cd foo && pwd` to compute absolute paths, because
4210 # the directories may not exist.
4212 .) ac_abs_builddir="$ac_dir";;
4215 .) ac_abs_builddir=`pwd`;;
4216 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4217 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4220 case $ac_abs_builddir in
4221 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4223 case ${ac_top_builddir}. in
4224 .) ac_abs_top_builddir=$ac_abs_builddir;;
4225 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4226 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4229 case $ac_abs_builddir in
4230 .) ac_abs_srcdir=$ac_srcdir;;
4233 .) ac_abs_srcdir=$ac_abs_builddir;;
4234 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4235 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4238 case $ac_abs_builddir in
4239 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4241 case $ac_top_srcdir in
4242 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4243 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4244 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4250 # Let's still pretend it is `configure' which instantiates (i.e., don't
4251 # use $as_me), people would be surprised to read:
4252 # /* config.h. Generated by config.status. */
4253 if test x"$ac_file" = x-; then
4256 configure_input="$ac_file. "
4258 configure_input=$configure_input"Generated from `echo $ac_file_in |
4259 sed 's,.*/,,'` by configure."
4261 # First look for the input files in the build tree, otherwise in the
4263 ac_file_inputs=`IFS=:
4264 for f in $ac_file_in; do
4266 -) echo $tmp/stdin ;;
4268 # Absolute (can't be DOS-style, as IFS=:)
4269 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4270 echo "$as_me: error: cannot find input file: $f" >&2;}
4271 { (exit 1); exit 1; }; }
4274 if test -f "$f"; then
4277 elif test -f "$srcdir/$f"; then
4282 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4283 echo "$as_me: error: cannot find input file: $f" >&2;}
4284 { (exit 1); exit 1; }; }
4287 done` || { (exit 1); exit 1; }
4289 if test x"$ac_file" != x-; then
4290 { echo "$as_me:$LINENO: creating $ac_file" >&5
4291 echo "$as_me: creating $ac_file" >&6;}
4295 cat >>$CONFIG_STATUS <<_ACEOF
4299 cat >>$CONFIG_STATUS <<\_ACEOF
4301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4302 s,@configure_input@,$configure_input,;t t
4303 s,@srcdir@,$ac_srcdir,;t t
4304 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4305 s,@top_srcdir@,$ac_top_srcdir,;t t
4306 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4307 s,@builddir@,$ac_builddir,;t t
4308 s,@abs_builddir@,$ac_abs_builddir,;t t
4309 s,@top_builddir@,$ac_top_builddir,;t t
4310 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4311 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4313 if test x"$ac_file" != x-; then
4314 mv $tmp/out $ac_file
4323 cat >>$CONFIG_STATUS <<\_ACEOF
4325 { (exit 0); exit 0; }
4327 chmod +x $CONFIG_STATUS
4328 ac_clean_files=$ac_clean_files_save
4331 # configure is writing to config.log, and then calls config.status.
4332 # config.status does its own redirection, appending to config.log.
4333 # Unfortunately, on DOS this fails, as config.log is still kept open
4334 # by configure, so config.status won't be able to write to it; its
4335 # output is simply discarded. So we exec the FD to /dev/null,
4336 # effectively closing config.log, so it can be properly (re)opened and
4337 # appended to by config.status. When coming back to configure, we
4338 # need to make the FD available again.
4339 if test "$no_create" != yes; then
4341 ac_config_status_args=
4342 test "$silent" = yes &&
4343 ac_config_status_args="$ac_config_status_args --quiet"
4345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4348 # would make configure fail if this is the last instruction.
4349 $ac_cs_success || { (exit 1); exit 1; }