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
="aClient.cpp"
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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP CC CFLAGS ac_ct_CC 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_CXX_set
=${CXX+set}
754 ac_env_CXX_value
=$CXX
755 ac_cv_env_CXX_set
=${CXX+set}
756 ac_cv_env_CXX_value
=$CXX
757 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
758 ac_env_CXXFLAGS_value
=$CXXFLAGS
759 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
760 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
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_CXXCPP_set
=${CXXCPP+set}
770 ac_env_CXXCPP_value
=$CXXCPP
771 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
772 ac_cv_env_CXXCPP_value
=$CXXCPP
773 ac_env_CC_set
=${CC+set}
775 ac_cv_env_CC_set
=${CC+set}
776 ac_cv_env_CC_value
=$CC
777 ac_env_CFLAGS_set
=${CFLAGS+set}
778 ac_env_CFLAGS_value
=$CFLAGS
779 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
780 ac_cv_env_CFLAGS_value
=$CFLAGS
781 ac_env_CPP_set
=${CPP+set}
782 ac_env_CPP_value
=$CPP
783 ac_cv_env_CPP_set
=${CPP+set}
784 ac_cv_env_CPP_value
=$CPP
787 # Report the --help message.
789 if test "$ac_init_help" = "long"; then
790 # Omit some internal or obsolete options to make the list less imposing.
791 # This message is too long to be a string in the A/UX 3.1 sh.
793 \`configure' configures this package to adapt to many kinds of systems.
795 Usage: $0 [OPTION]... [VAR=VALUE]...
797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
798 VAR=VALUE. See below for descriptions of some of the useful variables.
800 Defaults for the options are specified in brackets.
803 -h, --help display this help and exit
804 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages
808 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816 Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
822 By default, \`make install' will install all the files in
823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825 for instance \`--prefix=\$HOME'.
827 For better control, use the options below.
829 Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include]
840 --infodir=DIR info documentation [PREFIX/info]
841 --mandir=DIR man documentation [PREFIX/man]
848 if test -n "$ac_init_help"; then
852 Some influential environment variables
:
853 CXX C
++ compiler
command
854 CXXFLAGS C
++ compiler flags
855 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
856 nonstandard directory
<lib dir
>
857 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
858 headers
in a nonstandard directory
<include dir
>
859 CXXCPP C
++ preprocessor
860 CC C compiler
command
861 CFLAGS C compiler flags
864 Use these variables to override the choices made by
`configure' or to help
865 it to find libraries and programs with nonstandard names/locations.
870 if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874 test -d $ac_dir || continue
877 if test "$ac_dir" != .; then
878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879 # A "../" for each directory in $ac_dir_suffix.
880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882 ac_dir_suffix= ac_top_builddir=
886 .) # No --srcdir option. We are building in place.
888 if test -z "$ac_top_builddir"; then
891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_srcdir=$srcdir$ac_dir_suffix;
895 ac_top_srcdir=$srcdir ;;
897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 # Do not use `cd foo
&& pwd` to compute absolute paths, because
902 # the directories may not exist.
904 .) ac_abs_builddir="$ac_dir";;
907 .) ac_abs_builddir=`pwd`;;
908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
912 case $ac_abs_builddir in
913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
915 case ${ac_top_builddir}. in
916 .) ac_abs_top_builddir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
921 case $ac_abs_builddir in
922 .) ac_abs_srcdir=$ac_srcdir;;
925 .) ac_abs_srcdir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
930 case $ac_abs_builddir in
931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
933 case $ac_top_srcdir in
934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941 # Check for guested configure; otherwise get Cygnus style configure.
942 if test -f $ac_srcdir/configure.gnu; then
944 $SHELL $ac_srcdir/configure.gnu --help=recursive
945 elif test -f $ac_srcdir/configure; then
947 $SHELL $ac_srcdir/configure --help=recursive
948 elif test -f $ac_srcdir/configure.ac ||
949 test -f $ac_srcdir/configure.in; then
953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 test -n "$ac_init_help" && exit 0
960 if $ac_init_version; then
963 Copyright (C) 2003 Free Software Foundation, Inc.
964 This configure script is free software; the Free Software Foundation
965 gives unlimited permission to copy, distribute and modify it.
971 This file contains any messages produced by compilers while
972 running configure, to aid debugging if configure makes a mistake.
974 It was created by $as_me, which was
975 generated by GNU Autoconf 2.59. Invocation command line was
986 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
987 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
988 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
989 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
990 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
992 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
993 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
995 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
996 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
997 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
998 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
999 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1000 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1001 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 test -z "$as_dir" && as_dir=.
1010 echo "PATH: $as_dir"
1025 # Keep a trace of the command line.
1026 # Strip out --no-create and --no-recursion so they do not pile up.
1027 # Strip out --silent because we don't want to record it for future runs.
1028 # Also quote any args containing shell meta-characters.
1029 # Make two passes to allow for proper duplicate-argument suppression.
1034 ac_must_keep_next=false
1040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1044 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1045 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1050 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1051 if test $ac_must_keep_next = true; then
1052 ac_must_keep_next=false # Got value, back to normal.
1055 *=* | --config-cache | -C | -disable-* | --disable-* \
1056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1058 | -with-* | --with-* | -without-* | --without-* | --x)
1059 case "$ac_configure_args0 " in
1060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1063 -* ) ac_must_keep_next=true ;;
1066 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1067 # Get rid of the leading space.
1073 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1074 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1076 # When interrupted or exit'd, cleanup temporary files, and complete
1077 # config.log. We remove comments because anyway the quotes in there
1078 # would cause problems or look ugly.
1079 # WARNING: Be sure not to use single quotes in there, as some shells,
1080 # such as our DU 5.0 friend, will then `close
' the trap.
1081 trap 'exit_status
=$?
1082 # Save into config.log some information that might help in debugging.
1087 ## ---------------- ##
1088 ## Cache variables. ##
1089 ## ---------------- ##
1092 # The following way of writing the cache mishandles newlines in values,
1095 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1098 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110 ## ----------------- ##
1111 ## Output variables. ##
1112 ## ----------------- ##
1115 for ac_var
in $ac_subst_vars
1117 eval ac_val
=$
`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1122 if test -n "$ac_subst_files"; then
1129 for ac_var
in $ac_subst_files
1131 eval ac_val
=$
`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1137 if test -s confdefs.h
; then
1144 sed "/^$/d" confdefs.h
| sort
1147 test "$ac_signal" != 0 &&
1148 echo "$as_me: caught signal $ac_signal"
1149 echo "$as_me: exit $exit_status"
1151 rm -f core
*.core
&&
1152 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1155 for ac_signal in 1 2 13 15; do
1156 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1161 rm -rf conftest* confdefs.h
1162 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1165 # Predefined preprocessor variables.
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 # Let the site file select an alternate cache file if it wants to.
1193 # Prefer explicitly selected file to automatically selected ones.
1194 if test -z "$CONFIG_SITE"; then
1195 if test "x$prefix" != xNONE; then
1196 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1198 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1201 for ac_site_file in $CONFIG_SITE; do
1202 if test -r "$ac_site_file"; then
1203 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1204 echo "$as_me: loading site script $ac_site_file" >&6;}
1205 sed 's
/^
/| /' "$ac_site_file" >&5
1210 if test -r "$cache_file"; then
1211 # Some versions of bash will fail to source /dev/null (special
1212 # files actually), so we avoid doing that.
1213 if test -f "$cache_file"; then
1214 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1215 echo "$as_me: loading cache $cache_file" >&6;}
1217 [\\/]* | ?:[\\/]* ) . $cache_file;;
1218 *) . ./$cache_file;;
1222 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1223 echo "$as_me: creating cache $cache_file" >&6;}
1227 # Check that the precious variables saved in the cache have kept the same
1229 ac_cache_corrupted=false
1230 for ac_var in `(set) 2>&1 |
1231 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1233 eval ac_new_set=\$ac_env_${ac_var}_set
1234 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1235 eval ac_new_val="\$ac_env_${ac_var}_value"
1236 case $ac_old_set,$ac_new_set in
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1240 ac_cache_corrupted=: ;;
1242 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1243 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1247 if test "x$ac_old_val" != "x$ac_new_val"; then
1248 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1249 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1250 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1251 echo "$as_me: former value: $ac_old_val" >&2;}
1252 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1253 echo "$as_me: current value: $ac_new_val" >&2;}
1254 ac_cache_corrupted=:
1257 # Pass precious variables to config.status.
1258 if test "$ac_new_set" = set; then
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 *) ac_arg=$ac_var=$ac_new_val ;;
1264 case " $ac_configure_args " in
1265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1266 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 if $ac_cache_corrupted; then
1271 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1272 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1273 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1274 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1275 { (exit 1); exit 1; }; }
1279 ac_cpp='$CPP $CPPFLAGS'
1280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1281 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 ac_config_headers="$ac_config_headers config.h"
1307 ac_cpp='$CXXCPP $CPPFLAGS'
1308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1309 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1311 if test -n "$ac_tool_prefix"; then
1312 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1316 echo "$as_me:$LINENO: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_prog_CXX+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1321 if test -n "$CXX"; then
1322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1328 test -z "$as_dir" && as_dir=.
1329 for ac_exec_ext in '' $ac_executable_extensions; do
1330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341 if test -n "$CXX"; then
1342 echo "$as_me:$LINENO: result: $CXX" >&5
1343 echo "${ECHO_T}$CXX" >&6
1345 echo "$as_me:$LINENO: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1349 test -n "$CXX" && break
1352 if test -z "$CXX"; then
1354 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy $ac_prog; ac_word=$2
1358 echo "$as_me:$LINENO: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 if test -n "$ac_ct_CXX"; then
1364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 test -z "$as_dir" && as_dir=.
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373 ac_cv_prog_ac_ct_CXX="$ac_prog"
1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1383 if test -n "$ac_ct_CXX"; then
1384 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1385 echo "${ECHO_T}$ac_ct_CXX" >&6
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 test -n "$ac_ct_CXX" && break
1393 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1399 # Provide some information about the compiler.
1400 echo "$as_me:$LINENO:" \
1401 "checking for C++ compiler version" >&5
1402 ac_compiler=`set X $ac_compile; echo $2`
1403 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1404 (eval $ac_compiler --version </dev/null >&5) 2>&5
1406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1407 (exit $ac_status); }
1408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1409 (eval $ac_compiler -v </dev/null >&5) 2>&5
1411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1412 (exit $ac_status); }
1413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1414 (eval $ac_compiler -V </dev/null >&5) 2>&5
1416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1417 (exit $ac_status); }
1419 cat >conftest.$ac_ext <<_ACEOF
1422 cat confdefs.h >>conftest.$ac_ext
1423 cat >>conftest.$ac_ext <<_ACEOF
1424 /* end confdefs.h. */
1434 ac_clean_files_save=$ac_clean_files
1435 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1436 # Try to create an executable without -o first, disregard a.out.
1437 # It will help us diagnose broken compilers, and finding out an intuition
1439 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1440 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1441 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1442 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1443 (eval $ac_link_default) 2>&5
1445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1446 (exit $ac_status); }; then
1447 # Find the output, starting from the most likely. This scheme is
1448 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1451 # Be careful to initialize this variable, since it used to be cached.
1452 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1454 # b.out is created by i960 compilers.
1455 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1457 test -f "$ac_file" || continue
1459 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.o
| *.obj
)
1462 # This is the source file.
1465 # We found the default executable, but exeext='' is most
1469 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1470 # FIXME: I believe we export ac_cv_exeext for Libtool,
1471 # but it would be cool to find out if it's true. Does anybody
1472 # maintain Libtool? --akim.
1480 echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.
$ac_ext >&5
1483 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1484 See \`config.log' for more details." >&5
1485 echo "$as_me: error: C++ compiler cannot create executables
1486 See \`config.log' for more details." >&2;}
1487 { (exit 77); exit 77; }; }
1490 ac_exeext
=$ac_cv_exeext
1491 echo "$as_me:$LINENO: result: $ac_file" >&5
1492 echo "${ECHO_T}$ac_file" >&6
1494 # Check the compiler produces executables we can run. If not, either
1495 # the compiler is broken, or we cross compile.
1496 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1497 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1498 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1499 # If not cross compiling, check that we can run a simple program.
1500 if test "$cross_compiling" != yes; then
1501 if { ac_try
='./$ac_file'
1502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1506 (exit $ac_status); }; }; then
1509 if test "$cross_compiling" = maybe
; then
1512 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1513 If you meant to cross compile, use \`--host'.
1514 See \`config.log' for more details." >&5
1515 echo "$as_me: error: cannot run C++ compiled programs.
1516 If you meant to cross compile, use \`--host'.
1517 See \`config.log' for more details." >&2;}
1518 { (exit 1); exit 1; }; }
1522 echo "$as_me:$LINENO: result: yes" >&5
1523 echo "${ECHO_T}yes" >&6
1525 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1526 ac_clean_files
=$ac_clean_files_save
1527 # Check the compiler produces executables we can run. If not, either
1528 # the compiler is broken, or we cross compile.
1529 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1530 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1531 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1532 echo "${ECHO_T}$cross_compiling" >&6
1534 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1535 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1537 (eval $ac_link) 2>&5
1539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1540 (exit $ac_status); }; then
1541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1542 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1543 # work properly (i.e., refer to `conftest.exe'), while it won't with
1545 for ac_file
in conftest.exe conftest conftest.
*; do
1546 test -f "$ac_file" || continue
1548 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.o
| *.obj
) ;;
1549 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1556 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1557 See \`config.log' for more details." >&5
1558 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1559 See \`config.log' for more details." >&2;}
1560 { (exit 1); exit 1; }; }
1563 rm -f conftest
$ac_cv_exeext
1564 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1565 echo "${ECHO_T}$ac_cv_exeext" >&6
1567 rm -f conftest.
$ac_ext
1568 EXEEXT
=$ac_cv_exeext
1570 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1571 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1572 if test "${ac_cv_objext+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 cat >conftest.
$ac_ext <<_ACEOF
1578 cat confdefs.h
>>conftest.
$ac_ext
1579 cat >>conftest.
$ac_ext <<_ACEOF
1580 /* end confdefs.h. */
1590 rm -f conftest.o conftest.obj
1591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1592 (eval $ac_compile) 2>&5
1594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1595 (exit $ac_status); }; then
1596 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1598 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
) ;;
1599 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1604 echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.
$ac_ext >&5
1607 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1608 See \`config.log' for more details." >&5
1609 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1610 See \`config.log' for more details." >&2;}
1611 { (exit 1); exit 1; }; }
1614 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1616 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1617 echo "${ECHO_T}$ac_cv_objext" >&6
1618 OBJEXT
=$ac_cv_objext
1620 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1621 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1622 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 cat >conftest.
$ac_ext <<_ACEOF
1628 cat confdefs.h
>>conftest.
$ac_ext
1629 cat >>conftest.
$ac_ext <<_ACEOF
1630 /* end confdefs.h. */
1643 rm -f conftest.
$ac_objext
1644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1645 (eval $ac_compile) 2>conftest.er1
1647 grep -v '^ *+' conftest.er1
>conftest.err
1649 cat conftest.err
>&5
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); } &&
1652 { ac_try
='test -z "$ac_cxx_werror_flag"
1653 || test ! -s conftest.err'
1654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }; } &&
1659 { ac_try
='test -s conftest.$ac_objext'
1660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1664 (exit $ac_status); }; }; then
1667 echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.
$ac_ext >&5
1672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1673 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
1676 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1677 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1678 GXX
=`test $ac_compiler_gnu = yes && echo yes`
1679 ac_test_CXXFLAGS
=${CXXFLAGS+set}
1680 ac_save_CXXFLAGS
=$CXXFLAGS
1682 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1683 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1684 if test "${ac_cv_prog_cxx_g+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 cat >conftest.
$ac_ext <<_ACEOF
1690 cat confdefs.h
>>conftest.
$ac_ext
1691 cat >>conftest.
$ac_ext <<_ACEOF
1692 /* end confdefs.h. */
1702 rm -f conftest.
$ac_objext
1703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1704 (eval $ac_compile) 2>conftest.er1
1706 grep -v '^ *+' conftest.er1
>conftest.err
1708 cat conftest.err
>&5
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); } &&
1711 { ac_try
='test -z "$ac_cxx_werror_flag"
1712 || test ! -s conftest.err'
1713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717 (exit $ac_status); }; } &&
1718 { ac_try
='test -s conftest.$ac_objext'
1719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723 (exit $ac_status); }; }; then
1724 ac_cv_prog_cxx_g
=yes
1726 echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.
$ac_ext >&5
1731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1733 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1734 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1735 if test "$ac_test_CXXFLAGS" = set; then
1736 CXXFLAGS
=$ac_save_CXXFLAGS
1737 elif test $ac_cv_prog_cxx_g = yes; then
1738 if test "$GXX" = yes; then
1744 if test "$GXX" = yes; then
1750 for ac_declaration
in \
1752 'extern "C" void std::exit (int) throw (); using std::exit;' \
1753 'extern "C" void std::exit (int); using std::exit;' \
1754 'extern "C" void exit (int) throw ();' \
1755 'extern "C" void exit (int);' \
1758 cat >conftest.
$ac_ext <<_ACEOF
1761 cat confdefs.h
>>conftest.
$ac_ext
1762 cat >>conftest.
$ac_ext <<_ACEOF
1763 /* end confdefs.h. */
1774 rm -f conftest.
$ac_objext
1775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1776 (eval $ac_compile) 2>conftest.er1
1778 grep -v '^ *+' conftest.er1
>conftest.err
1780 cat conftest.err
>&5
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); } &&
1783 { ac_try
='test -z "$ac_cxx_werror_flag"
1784 || test ! -s conftest.err'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; } &&
1790 { ac_try
='test -s conftest.$ac_objext'
1791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; }; then
1798 echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.
$ac_ext >&5
1803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1804 cat >conftest.
$ac_ext <<_ACEOF
1807 cat confdefs.h
>>conftest.
$ac_ext
1808 cat >>conftest.
$ac_ext <<_ACEOF
1809 /* end confdefs.h. */
1819 rm -f conftest.
$ac_objext
1820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1821 (eval $ac_compile) 2>conftest.er1
1823 grep -v '^ *+' conftest.er1
>conftest.err
1825 cat conftest.err
>&5
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); } &&
1828 { ac_try
='test -z "$ac_cxx_werror_flag"
1829 || test ! -s conftest.err'
1830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; } &&
1835 { ac_try
='test -s conftest.$ac_objext'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1843 echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.
$ac_ext >&5
1847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1850 if test -n "$ac_declaration"; then
1851 echo '#ifdef __cplusplus' >>confdefs.h
1852 echo $ac_declaration >>confdefs.h
1853 echo '#endif' >>confdefs.h
1857 ac_cpp
='$CPP $CPPFLAGS'
1858 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1863 ac_cpp
='$CXXCPP $CPPFLAGS'
1864 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
1867 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
1868 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1869 if test -z "$CXXCPP"; then
1870 if test "${ac_cv_prog_CXXCPP+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 # Double quotes because CXXCPP needs to be expanded
1874 for CXXCPP
in "$CXX -E" "/lib/cpp"
1877 for ac_cxx_preproc_warn_flag
in '' yes
1879 # Use a header file that comes with gcc, so configuring glibc
1880 # with a fresh cross-compiler works.
1881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 # <limits.h> exists even on freestanding compilers.
1883 # On the NeXT, cc -E runs the code through the compiler's parser,
1884 # not just through cpp. "Syntax error" is here to catch this case.
1885 cat >conftest.
$ac_ext <<_ACEOF
1888 cat confdefs.h
>>conftest.
$ac_ext
1889 cat >>conftest.
$ac_ext <<_ACEOF
1890 /* end confdefs.h. */
1892 # include <limits.h>
1894 # include <assert.h>
1898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1899 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1901 grep -v '^ *+' conftest.er1
>conftest.err
1903 cat conftest.err
>&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); } >/dev
/null
; then
1906 if test -s conftest.err
; then
1907 ac_cpp_err
=$ac_cxx_preproc_warn_flag
1908 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
1915 if test -z "$ac_cpp_err"; then
1918 echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.
$ac_ext >&5
1921 # Broken: fails on valid input.
1924 rm -f conftest.err conftest.
$ac_ext
1926 # OK, works on sane cases. Now check whether non-existent headers
1927 # can be detected and how.
1928 cat >conftest.
$ac_ext <<_ACEOF
1931 cat confdefs.h
>>conftest.
$ac_ext
1932 cat >>conftest.
$ac_ext <<_ACEOF
1933 /* end confdefs.h. */
1934 #include <ac_nonexistent.h>
1936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1937 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1939 grep -v '^ *+' conftest.er1
>conftest.err
1941 cat conftest.err
>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } >/dev
/null
; then
1944 if test -s conftest.err
; then
1945 ac_cpp_err
=$ac_cxx_preproc_warn_flag
1946 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
1953 if test -z "$ac_cpp_err"; then
1954 # Broken: success on invalid input.
1957 echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.
$ac_ext >&5
1960 # Passes both tests.
1964 rm -f conftest.err conftest.
$ac_ext
1967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1968 rm -f conftest.err conftest.
$ac_ext
1969 if $ac_preproc_ok; then
1974 ac_cv_prog_CXXCPP
=$CXXCPP
1977 CXXCPP
=$ac_cv_prog_CXXCPP
1979 ac_cv_prog_CXXCPP
=$CXXCPP
1981 echo "$as_me:$LINENO: result: $CXXCPP" >&5
1982 echo "${ECHO_T}$CXXCPP" >&6
1984 for ac_cxx_preproc_warn_flag
in '' yes
1986 # Use a header file that comes with gcc, so configuring glibc
1987 # with a fresh cross-compiler works.
1988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1989 # <limits.h> exists even on freestanding compilers.
1990 # On the NeXT, cc -E runs the code through the compiler's parser,
1991 # not just through cpp. "Syntax error" is here to catch this case.
1992 cat >conftest.
$ac_ext <<_ACEOF
1995 cat confdefs.h
>>conftest.
$ac_ext
1996 cat >>conftest.
$ac_ext <<_ACEOF
1997 /* end confdefs.h. */
1999 # include <limits.h>
2001 # include <assert.h>
2005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2006 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2008 grep -v '^ *+' conftest.er1
>conftest.err
2010 cat conftest.err
>&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); } >/dev
/null
; then
2013 if test -s conftest.err
; then
2014 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2015 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2022 if test -z "$ac_cpp_err"; then
2025 echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.
$ac_ext >&5
2028 # Broken: fails on valid input.
2031 rm -f conftest.err conftest.
$ac_ext
2033 # OK, works on sane cases. Now check whether non-existent headers
2034 # can be detected and how.
2035 cat >conftest.
$ac_ext <<_ACEOF
2038 cat confdefs.h
>>conftest.
$ac_ext
2039 cat >>conftest.
$ac_ext <<_ACEOF
2040 /* end confdefs.h. */
2041 #include <ac_nonexistent.h>
2043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2046 grep -v '^ *+' conftest.er1
>conftest.err
2048 cat conftest.err
>&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } >/dev
/null
; then
2051 if test -s conftest.err
; then
2052 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2053 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
2060 if test -z "$ac_cpp_err"; then
2061 # Broken: success on invalid input.
2064 echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.
$ac_ext >&5
2067 # Passes both tests.
2071 rm -f conftest.err conftest.
$ac_ext
2074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2075 rm -f conftest.err conftest.
$ac_ext
2076 if $ac_preproc_ok; then
2079 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
2087 ac_cpp
='$CPP $CPPFLAGS'
2088 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2093 ac_cpp
='$CPP $CPPFLAGS'
2094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2097 if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2099 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC
="$CC" # Let the user override the test.
2108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2112 test -z "$as_dir" && as_dir
=.
2113 for ac_exec_ext
in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 if test -n "$CC"; then
2126 echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6
2129 echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2134 if test -z "$ac_cv_prog_CC"; then
2136 # Extract the first word of "gcc", so it can be a program name with args.
2137 set dummy gcc
; ac_word
=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 if test -n "$ac_ct_CC"; then
2144 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir
=.
2151 for ac_exec_ext
in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153 ac_cv_prog_ac_ct_CC
="gcc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2163 if test -n "$ac_ct_CC"; then
2164 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165 echo "${ECHO_T}$ac_ct_CC" >&6
2167 echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2176 if test -z "$CC"; then
2177 if test -n "$ac_tool_prefix"; then
2178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2179 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2180 echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182 if test "${ac_cv_prog_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 if test -n "$CC"; then
2186 ac_cv_prog_CC
="$CC" # Let the user override the test.
2188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir
=.
2193 for ac_exec_ext
in '' $ac_executable_extensions; do
2194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 if test -n "$CC"; then
2206 echo "$as_me:$LINENO: result: $CC" >&5
2207 echo "${ECHO_T}$CC" >&6
2209 echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6
2214 if test -z "$ac_cv_prog_CC"; then
2216 # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc
; ac_word
=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 if test -n "$ac_ct_CC"; then
2224 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2230 test -z "$as_dir" && as_dir
=.
2231 for ac_exec_ext
in '' $ac_executable_extensions; do
2232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2233 ac_cv_prog_ac_ct_CC
="cc"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2243 if test -n "$ac_ct_CC"; then
2244 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2245 echo "${ECHO_T}$ac_ct_CC" >&6
2247 echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6
2257 if test -z "$CC"; then
2258 # Extract the first word of "cc", so it can be a program name with args.
2259 set dummy cc
; ac_word
=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC
="$CC" # Let the user override the test.
2269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir
=.
2274 for ac_exec_ext
in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2277 ac_prog_rejected
=yes
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 if test $ac_prog_rejected = yes; then
2288 # We found a bogon in the path, so make sure we never use it.
2289 set dummy
$ac_cv_prog_CC
2291 if test $# != 0; then
2292 # We chose a different compiler from the bogus one.
2293 # However, it has the same basename, so the bogon will be chosen
2294 # first if we set CC to just the basename; use the full file name.
2296 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2302 if test -n "$CC"; then
2303 echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6
2306 echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2311 if test -z "$CC"; then
2312 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2316 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC
="$CC" # Let the user override the test.
2325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir
=.
2330 for ac_exec_ext
in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 if test -n "$CC"; then
2343 echo "$as_me:$LINENO: result: $CC" >&5
2344 echo "${ECHO_T}$CC" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2350 test -n "$CC" && break
2353 if test -z "$CC"; then
2357 # Extract the first word of "$ac_prog", so it can be a program name with args.
2358 set dummy
$ac_prog; ac_word
=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$ac_ct_CC"; then
2365 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir
=.
2372 for ac_exec_ext
in '' $ac_executable_extensions; do
2373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2374 ac_cv_prog_ac_ct_CC
="$ac_prog"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2384 if test -n "$ac_ct_CC"; then
2385 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2386 echo "${ECHO_T}$ac_ct_CC" >&6
2388 echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2392 test -n "$ac_ct_CC" && break
2401 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&5
2403 echo "$as_me: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&2;}
2405 { (exit 1); exit 1; }; }
2407 # Provide some information about the compiler.
2408 echo "$as_me:$LINENO:" \
2409 "checking for C compiler version" >&5
2410 ac_compiler
=`set X $ac_compile; echo $2`
2411 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2412 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }
2416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2417 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }
2421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2422 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2427 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2428 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2429 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 cat >conftest.
$ac_ext <<_ACEOF
2435 cat confdefs.h
>>conftest.
$ac_ext
2436 cat >>conftest.
$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2450 rm -f conftest.
$ac_objext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 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); } &&
2459 { ac_try
='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try
='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.
$ac_ext >&5
2479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2480 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2483 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2484 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2485 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2486 ac_test_CFLAGS
=${CFLAGS+set}
2487 ac_save_CFLAGS
=$CFLAGS
2489 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2491 if test "${ac_cv_prog_cc_g+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.
$ac_ext <<_ACEOF
2497 cat confdefs.h
>>conftest.
$ac_ext
2498 cat >>conftest.
$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2509 rm -f conftest.
$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2513 grep -v '^ *+' conftest.er1
>conftest.err
2515 cat conftest.err
>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try
='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try
='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.
$ac_ext >&5
2538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2541 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2542 if test "$ac_test_CFLAGS" = set; then
2543 CFLAGS
=$ac_save_CFLAGS
2544 elif test $ac_cv_prog_cc_g = yes; then
2545 if test "$GCC" = yes; then
2551 if test "$GCC" = yes; then
2557 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2558 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2559 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 ac_cv_prog_cc_stdc
=no
2564 cat >conftest.
$ac_ext <<_ACEOF
2567 cat confdefs.h
>>conftest.
$ac_ext
2568 cat >>conftest.
$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2572 #include <sys/types.h>
2573 #include <sys/stat.h>
2574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2575 struct buf { int x; };
2576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2577 static char *e (p, i)
2583 static char *f (char * (*g) (char **, int), char **p, ...)
2588 s = g (p, va_arg (v,int));
2593 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2594 function prototypes and stuff, but not '\xHH' hex character constants.
2595 These don't provoke an error unfortunately, instead are silently treated
2596 as 'x'. The following induces an error, until -std1 is added to get
2597 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2598 array size at least. It's necessary to write '\x00'==0 to get something
2599 that's true only with -std1. */
2600 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2602 int test (int i, double x);
2603 struct s1 {int (*f) (int a);};
2604 struct s2 {int (*f) (double a);};
2605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2616 # Don't try gcc -ansi; that turns off useful extensions and
2617 # breaks some systems' header files.
2618 # AIX -qlanglvl=ansi
2619 # Ultrix and OSF/1 -std1
2620 # HP-UX 10.20 and later -Ae
2621 # HP-UX older versions -Aa -D_HPUX_SOURCE
2622 # SVR4 -Xc -D__EXTENSIONS__
2623 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2625 CC
="$ac_save_CC $ac_arg"
2626 rm -f conftest.
$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2630 grep -v '^ *+' conftest.er1
>conftest.err
2632 cat conftest.err
>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try
='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try
='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_prog_cc_stdc
=$ac_arg
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.
$ac_ext >&5
2655 rm -f conftest.err conftest.
$ac_objext
2657 rm -f conftest.
$ac_ext conftest.
$ac_objext
2662 case "x$ac_cv_prog_cc_stdc" in
2664 echo "$as_me:$LINENO: result: none needed" >&5
2665 echo "${ECHO_T}none needed" >&6 ;;
2667 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2668 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2669 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2672 # Some people use a C++ compiler to compile C. Since we use `exit',
2673 # in C++ we need to declare it. In case someone uses the same compiler
2674 # for both compiling C and C++ we need to have the C++ compiler decide
2675 # the declaration of exit, since it's the most demanding environment.
2676 cat >conftest.
$ac_ext <<_ACEOF
2681 rm -f conftest.
$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>conftest.er1
2685 grep -v '^ *+' conftest.er1
>conftest.err
2687 cat conftest.err
>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try
='test -z "$ac_c_werror_flag"
2691 || test ! -s conftest.err'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; } &&
2697 { ac_try
='test -s conftest.$ac_objext'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2703 for ac_declaration
in \
2705 'extern "C" void std::exit (int) throw (); using std::exit;' \
2706 'extern "C" void std::exit (int); using std::exit;' \
2707 'extern "C" void exit (int) throw ();' \
2708 'extern "C" void exit (int);' \
2711 cat >conftest.
$ac_ext <<_ACEOF
2714 cat confdefs.h
>>conftest.
$ac_ext
2715 cat >>conftest.
$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2727 rm -f conftest.
$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1
>conftest.err
2733 cat conftest.err
>&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try
='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try
='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.
$ac_ext >&5
2756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2757 cat >conftest.
$ac_ext <<_ACEOF
2760 cat confdefs.h
>>conftest.
$ac_ext
2761 cat >>conftest.
$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.
$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1
>conftest.err
2778 cat conftest.err
>&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try
='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try
='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.
$ac_ext >&5
2800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2803 if test -n "$ac_declaration"; then
2804 echo '#ifdef __cplusplus' >>confdefs.h
2805 echo $ac_declaration >>confdefs.h
2806 echo '#endif' >>confdefs.h
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.
$ac_ext >&5
2814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2816 ac_cpp
='$CPP $CPPFLAGS'
2817 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2824 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
2825 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
2826 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 ac_check_lib_save_LIBS
=$LIBS
2830 LIBS
="-lcrypt $LIBS"
2831 cat >conftest.
$ac_ext <<_ACEOF
2834 cat confdefs.h
>>conftest.
$ac_ext
2835 cat >>conftest.
$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2838 /* Override any gcc2 internal prototype to avoid an error. */
2842 /* We use char because int might match the return type of a gcc2
2843 builtin and then its argument prototype would still apply. */
2853 rm -f conftest.
$ac_objext conftest
$ac_exeext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2855 (eval $ac_link) 2>conftest.er1
2857 grep -v '^ *+' conftest.er1
>conftest.err
2859 cat conftest.err
>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try
='test -z "$ac_c_werror_flag"
2863 || test ! -s conftest.err'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; } &&
2869 { ac_try
='test -s conftest$ac_exeext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 ac_cv_lib_crypt_crypt
=yes
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.
$ac_ext >&5
2880 ac_cv_lib_crypt_crypt
=no
2882 rm -f conftest.err conftest.
$ac_objext \
2883 conftest
$ac_exeext conftest.
$ac_ext
2884 LIBS
=$ac_check_lib_save_LIBS
2886 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
2887 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
2888 if test $ac_cv_lib_crypt_crypt = yes; then
2889 cat >>confdefs.h
<<_ACEOF
2890 #define HAVE_LIBCRYPT 1
2893 LIBS
="-lcrypt $LIBS"
2899 ac_cpp
='$CPP $CPPFLAGS'
2900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2909 if test -z "$CPP"; then
2910 if test "${ac_cv_prog_CPP+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 # Double quotes because CPP needs to be expanded
2914 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2917 for ac_c_preproc_warn_flag
in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.
$ac_ext <<_ACEOF
2928 cat confdefs.h
>>conftest.
$ac_ext
2929 cat >>conftest.
$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 # include <limits.h>
2934 # include <assert.h>
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2941 grep -v '^ *+' conftest.er1
>conftest.err
2943 cat conftest.err
>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } >/dev
/null
; then
2946 if test -s conftest.err
; then
2947 ac_cpp_err
=$ac_c_preproc_warn_flag
2948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2955 if test -z "$ac_cpp_err"; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.
$ac_ext >&5
2961 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.
$ac_ext
2966 # OK, works on sane cases. Now check whether non-existent headers
2967 # can be detected and how.
2968 cat >conftest.
$ac_ext <<_ACEOF
2971 cat confdefs.h
>>conftest.
$ac_ext
2972 cat >>conftest.
$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1
>conftest.err
2981 cat conftest.err
>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev
/null
; then
2984 if test -s conftest.err
; then
2985 ac_cpp_err
=$ac_c_preproc_warn_flag
2986 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2993 if test -z "$ac_cpp_err"; then
2994 # Broken: success on invalid input.
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.
$ac_ext >&5
3000 # Passes both tests.
3004 rm -f conftest.err conftest.
$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.
$ac_ext
3009 if $ac_preproc_ok; then
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3024 for ac_c_preproc_warn_flag
in '' yes
3026 # Use a header file that comes with gcc, so configuring glibc
3027 # with a fresh cross-compiler works.
3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029 # <limits.h> exists even on freestanding compilers.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.
$ac_ext <<_ACEOF
3035 cat confdefs.h
>>conftest.
$ac_ext
3036 cat >>conftest.
$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3039 # include <limits.h>
3041 # include <assert.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1
>conftest.err
3050 cat conftest.err
>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev
/null
; then
3053 if test -s conftest.err
; then
3054 ac_cpp_err
=$ac_c_preproc_warn_flag
3055 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.
$ac_ext >&5
3068 # Broken: fails on valid input.
3071 rm -f conftest.err conftest.
$ac_ext
3073 # OK, works on sane cases. Now check whether non-existent headers
3074 # can be detected and how.
3075 cat >conftest.
$ac_ext <<_ACEOF
3078 cat confdefs.h
>>conftest.
$ac_ext
3079 cat >>conftest.
$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #include <ac_nonexistent.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1
>conftest.err
3088 cat conftest.err
>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev
/null
; then
3091 if test -s conftest.err
; then
3092 ac_cpp_err
=$ac_c_preproc_warn_flag
3093 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3101 # Broken: success on invalid input.
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.
$ac_ext >&5
3107 # Passes both tests.
3111 rm -f conftest.err conftest.
$ac_ext
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.
$ac_ext
3116 if $ac_preproc_ok; then
3119 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3127 ac_cpp
='$CPP $CPPFLAGS'
3128 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if echo a
| (grep -E '(a|b)') >/dev
/null
2>&1
3139 then ac_cv_prog_egrep
='grep -E'
3140 else ac_cv_prog_egrep
='egrep'
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145 EGREP
=$ac_cv_prog_egrep
3148 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3150 if test "${ac_cv_header_stdc+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 cat >conftest.
$ac_ext <<_ACEOF
3156 cat confdefs.h
>>conftest.
$ac_ext
3157 cat >>conftest.
$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3172 rm -f conftest.
$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1
>conftest.err
3178 cat conftest.err
>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try
='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try
='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_cv_header_stdc
=yes
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.
$ac_ext >&5
3199 ac_cv_header_stdc
=no
3201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3203 if test $ac_cv_header_stdc = yes; then
3204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3205 cat >conftest.
$ac_ext <<_ACEOF
3208 cat confdefs.h
>>conftest.
$ac_ext
3209 cat >>conftest.
$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3215 $EGREP "memchr" >/dev
/null
2>&1; then
3218 ac_cv_header_stdc
=no
3224 if test $ac_cv_header_stdc = yes; then
3225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3226 cat >conftest.
$ac_ext <<_ACEOF
3229 cat confdefs.h
>>conftest.
$ac_ext
3230 cat >>conftest.
$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3236 $EGREP "free" >/dev
/null
2>&1; then
3239 ac_cv_header_stdc
=no
3245 if test $ac_cv_header_stdc = yes; then
3246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3247 if test "$cross_compiling" = yes; then
3250 cat >conftest.
$ac_ext <<_ACEOF
3253 cat confdefs.h
>>conftest.
$ac_ext
3254 cat >>conftest.
$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3257 #if ((' ' & 0x0FF) == 0x020)
3258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3261 # define ISLOWER(c) \
3262 (('a' <= (c) && (c) <= 'i') \
3263 || ('j' <= (c) && (c) <= 'r') \
3264 || ('s' <= (c) && (c) <= 'z'))
3265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3273 for (i = 0; i < 256; i++)
3274 if (XOR (islower (i), ISLOWER (i))
3275 || toupper (i) != TOUPPER (i))
3280 rm -f conftest
$ac_exeext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3282 (eval $ac_link) 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3293 echo "$as_me: program exited with status $ac_status" >&5
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.
$ac_ext >&5
3298 ac_cv_header_stdc
=no
3300 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3304 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3305 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3306 if test $ac_cv_header_stdc = yes; then
3308 cat >>confdefs.h
<<\_ACEOF
3309 #define STDC_HEADERS 1
3314 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3315 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3316 if test "${ac_cv_header_time+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 cat >conftest.
$ac_ext <<_ACEOF
3322 cat confdefs.h
>>conftest.
$ac_ext
3323 cat >>conftest.
$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 #include <sys/types.h>
3326 #include <sys/time.h>
3332 if ((struct tm *) 0)
3338 rm -f conftest.
$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3342 grep -v '^ *+' conftest.er1
>conftest.err
3344 cat conftest.err
>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try
='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try
='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_header_time
=yes
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.
$ac_ext >&5
3365 ac_cv_header_time
=no
3367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3369 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3370 echo "${ECHO_T}$ac_cv_header_time" >&6
3371 if test $ac_cv_header_time = yes; then
3373 cat >>confdefs.h
<<\_ACEOF
3374 #define TIME_WITH_SYS_TIME 1
3379 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3389 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3390 inttypes.h stdint.h unistd.h
3392 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3393 echo "$as_me:$LINENO: checking for $ac_header" >&5
3394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 cat >conftest.
$ac_ext <<_ACEOF
3401 cat confdefs.h
>>conftest.
$ac_ext
3402 cat >>conftest.
$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404 $ac_includes_default
3406 #include <$ac_header>
3408 rm -f conftest.
$ac_objext
3409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3410 (eval $ac_compile) 2>conftest.er1
3412 grep -v '^ *+' conftest.er1
>conftest.err
3414 cat conftest.err
>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try
='test -z "$ac_c_werror_flag"
3418 || test ! -s conftest.err'
3419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; } &&
3424 { ac_try
='test -s conftest.$ac_objext'
3425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; }; then
3430 eval "$as_ac_Header=yes"
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.
$ac_ext >&5
3435 eval "$as_ac_Header=no"
3437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3442 cat >>confdefs.h
<<_ACEOF
3443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3454 for ac_header
in limits.h unistd.h
crypt.h
3456 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3458 echo "$as_me:$LINENO: checking for $ac_header" >&5
3459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3466 # Is the header compilable?
3467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3469 cat >conftest.
$ac_ext <<_ACEOF
3472 cat confdefs.h
>>conftest.
$ac_ext
3473 cat >>conftest.
$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 $ac_includes_default
3476 #include <$ac_header>
3478 rm -f conftest.
$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3482 grep -v '^ *+' conftest.er1
>conftest.err
3484 cat conftest.err
>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try
='test -z "$ac_c_werror_flag"
3488 || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try
='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 ac_header_compiler
=yes
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.
$ac_ext >&5
3505 ac_header_compiler
=no
3507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3509 echo "${ECHO_T}$ac_header_compiler" >&6
3511 # Is the header present?
3512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3514 cat >conftest.
$ac_ext <<_ACEOF
3517 cat confdefs.h
>>conftest.
$ac_ext
3518 cat >>conftest.
$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <$ac_header>
3522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3523 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } >/dev
/null
; then
3530 if test -s conftest.err
; then
3531 ac_cpp_err
=$ac_c_preproc_warn_flag
3532 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3539 if test -z "$ac_cpp_err"; then
3540 ac_header_preproc
=yes
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.
$ac_ext >&5
3545 ac_header_preproc
=no
3547 rm -f conftest.err conftest.
$ac_ext
3548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3549 echo "${ECHO_T}$ac_header_preproc" >&6
3551 # So? What about this header?
3552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3558 ac_header_preproc
=yes
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3575 ## ------------------------------------------ ##
3576 ## Report this to the AC_PACKAGE_NAME lists. ##
3577 ## ------------------------------------------ ##
3580 sed "s/^/$as_me: WARNING: /" >&2
3583 echo "$as_me:$LINENO: checking for $ac_header" >&5
3584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 eval "$as_ac_Header=\$ac_header_preproc"
3590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3595 cat >>confdefs.h
<<_ACEOF
3596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3605 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3606 if test "${ac_cv_c_const+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 cat >conftest.
$ac_ext <<_ACEOF
3612 cat confdefs.h
>>conftest.
$ac_ext
3613 cat >>conftest.
$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3619 /* FIXME: Include the comments suggested by Paul. */
3621 /* Ultrix mips cc rejects this. */
3622 typedef int charset[2];
3624 /* SunOS 4.1.1 cc rejects this. */
3625 char const *const *ccp;
3627 /* NEC SVR4.0.2 mips cc rejects this. */
3628 struct point {int x, y;};
3629 static struct point const zero = {0,0};
3630 /* AIX XL C 1.02.0.0 rejects this.
3631 It does not let you subtract one const X* pointer from another in
3632 an arm of an if-expression whose if-part is not a constant
3634 const char *g = "string";
3635 ccp = &g + (g ? g-g : 0);
3636 /* HPUX 7.0 cc rejects these. */
3639 ccp = (char const *const *) p;
3640 { /* SCO 3.2v4 cc rejects this. */
3642 char const *s = 0 ? (char *) 0 : (char const *) 0;
3646 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3648 const int *foo = &x[0];
3651 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3652 typedef const int *iptr;
3656 { /* AIX XL C 1.02.0.0 rejects this saying
3657 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3658 struct s { int j; const int *ap[3]; };
3659 struct s *b; b->j = 5;
3661 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3670 rm -f conftest.
$ac_objext
3671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672 (eval $ac_compile) 2>conftest.er1
3674 grep -v '^ *+' conftest.er1
>conftest.err
3676 cat conftest.err
>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try
='test -z "$ac_c_werror_flag"
3680 || test ! -s conftest.err'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; } &&
3686 { ac_try
='test -s conftest.$ac_objext'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; }; then
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.
$ac_ext >&5
3699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3701 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3702 echo "${ECHO_T}$ac_cv_c_const" >&6
3703 if test $ac_cv_c_const = no
; then
3705 cat >>confdefs.h
<<\_ACEOF
3711 echo "$as_me:$LINENO: checking for size_t" >&5
3712 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3713 if test "${ac_cv_type_size_t+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 cat >conftest.
$ac_ext <<_ACEOF
3719 cat confdefs.h
>>conftest.
$ac_ext
3720 cat >>conftest.
$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 $ac_includes_default
3728 if (sizeof (size_t))
3734 rm -f conftest.
$ac_objext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736 (eval $ac_compile) 2>conftest.er1
3738 grep -v '^ *+' conftest.er1
>conftest.err
3740 cat conftest.err
>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try
='test -z "$ac_c_werror_flag"
3744 || test ! -s conftest.err'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; } &&
3750 { ac_try
='test -s conftest.$ac_objext'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; }; then
3756 ac_cv_type_size_t
=yes
3758 echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.
$ac_ext >&5
3761 ac_cv_type_size_t
=no
3763 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3765 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3766 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3767 if test $ac_cv_type_size_t = yes; then
3771 cat >>confdefs.h
<<_ACEOF
3772 #define size_t unsigned
3784 for ac_func
in socket strcspn strspn strtol strtok gethostbyname
3786 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3787 echo "$as_me:$LINENO: checking for $ac_func" >&5
3788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3789 if eval "test \"\${$as_ac_var+set}\" = set"; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 cat >conftest.
$ac_ext <<_ACEOF
3795 cat confdefs.h
>>conftest.
$ac_ext
3796 cat >>conftest.
$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3800 #define $ac_func innocuous_$ac_func
3802 /* System header to define __stub macros and hopefully few prototypes,
3803 which can conflict with char $ac_func (); below.
3804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3805 <limits.h> exists even on freestanding compilers. */
3808 # include <limits.h>
3810 # include <assert.h>
3815 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3823 /* The GNU C library defines this for functions which it implements
3824 to always fail with ENOSYS. Some functions are actually named
3825 something starting with __ and the normal name is an alias. */
3826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829 char (*f) () = $ac_func;
3838 return f != $ac_func;
3843 rm -f conftest.
$ac_objext conftest
$ac_exeext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 (eval $ac_link) 2>conftest.er1
3847 grep -v '^ *+' conftest.er1
>conftest.err
3849 cat conftest.err
>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try
='test -z "$ac_c_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try
='test -s conftest$ac_exeext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 eval "$as_ac_var=yes"
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3870 eval "$as_ac_var=no"
3872 rm -f conftest.err conftest.
$ac_objext \
3873 conftest
$ac_exeext conftest.
$ac_ext
3875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3877 if test `eval echo '${'$as_ac_var'}'` = yes; then
3878 cat >>confdefs.h
<<_ACEOF
3879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3885 ac_config_files
="$ac_config_files Makefile"
3886 cat >confcache
<<\_ACEOF
3887 # This file is a shell script that caches the results of configure
3888 # tests run on this system so they can be shared between configure
3889 # scripts and configure runs, see configure's option --config-cache.
3890 # It is not useful on other systems. If it contains results you don't
3891 # want to keep, you may remove or edit it.
3893 # config.status only pays attention to the cache file if you give it
3894 # the --recheck option to rerun configure.
3896 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3897 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3902 # The following way of writing the cache mishandles newlines in values,
3903 # but we know of no workaround that is simple, portable, and efficient.
3904 # So, don't put newlines in cache variables' values.
3905 # Ultrix sh set writes to stderr and can't be redirected directly,
3906 # and sets the high bit in the cache file unless we assign to the vars.
3909 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3911 # `set' does not quote correctly, so add quotes (double-quote
3912 # substitution turns \\\\ into \\, and sed turns \\ into \).
3915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3918 # `set' quotes correctly as required by POSIX, so do not add quotes.
3920 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3929 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3931 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
3932 if test -w $cache_file; then
3933 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3934 cat confcache
>$cache_file
3936 echo "not updating unwritable cache $cache_file"
3941 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3942 # Let make expand exec_prefix.
3943 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3947 # trailing colons and then remove the whole line if VPATH becomes empty
3948 # (actually we leave an empty line to preserve line numbers).
3949 if test "x$srcdir" = x.
; then
3950 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
3951 s/:*\$(srcdir):*/:/;
3952 s/:*\${srcdir}:*/:/;
3954 s/^\([^=]*=[ ]*\):*/\1/;
3960 DEFS
=-DHAVE_CONFIG_H
3964 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
3965 # 1. Remove the extension, and $U if already installed.
3966 ac_i
=`echo "$ac_i" |
3967 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3969 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
3970 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
3974 LTLIBOBJS
=$ac_ltlibobjs
3978 : ${CONFIG_STATUS=./config.status}
3979 ac_clean_files_save
=$ac_clean_files
3980 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
3981 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3982 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3983 cat >$CONFIG_STATUS <<_ACEOF
3985 # Generated by $as_me.
3986 # Run this file to recreate the current configuration.
3987 # Compiler output produced by configure, useful for debugging
3988 # configure, is in config.log if it exists.
3993 SHELL=\${CONFIG_SHELL-$SHELL}
3996 cat >>$CONFIG_STATUS <<\_ACEOF
3997 ## --------------------- ##
3998 ## M4sh Initialization. ##
3999 ## --------------------- ##
4001 # Be Bourne compatible
4002 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
4005 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4006 # is contrary to our usage. Disable this feature.
4007 alias -g '${1+"$@"}'='"$@"'
4008 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
4011 DUALCASE
=1; export DUALCASE
# for MKS sh
4013 # Support unset when possible.
4014 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
4021 # Work around bugs in pre-3.0 UWIN ksh.
4022 $as_unset ENV MAIL MAILPATH
4029 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4030 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4031 LC_TELEPHONE LC_TIME
4033 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4034 eval $as_var=C
; export $as_var
4040 # Required to use basename.
4041 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4047 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4048 as_basename
=basename
4054 # Name of the executable.
4055 as_me
=`$as_basename "$0" ||
4056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4057 X"$0" : 'X\(//\)$' \| \
4058 X"$0" : 'X\(/\)$' \| \
4059 . : '\(.\)' 2>/dev/null ||
4061 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4062 /^X\/\(\/\/\)$/{ s//\1/; q; }
4063 /^X\/\(\/\).*/{ s//\1/; q; }
4067 # PATH needs CR, and LINENO needs CR and PATH.
4068 # Avoid depending upon Character Ranges.
4069 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4070 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4071 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4072 as_cr_digits
='0123456789'
4073 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4075 # The user is always right.
4076 if test "${PATH_SEPARATOR+set}" != set; then
4077 echo "#! /bin/sh" >conf$$.sh
4078 echo "exit 0" >>conf$$.sh
4080 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4091 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4092 test "x$as_lineno_1" != "x$as_lineno_2" &&
4093 test "x$as_lineno_3" = "x$as_lineno_2" || {
4094 # Find who we are. Look in the path if we contain no path at all
4097 *[\\/]* ) as_myself
=$0 ;;
4098 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir
=.
4103 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4108 # We did not find ourselves, most probably we were run as `sh COMMAND'
4109 # in which case we are not to be found in the path.
4110 if test "x$as_myself" = x
; then
4113 if test ! -f "$as_myself"; then
4114 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4115 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4116 { (exit 1); exit 1; }; }
4118 case $CONFIG_SHELL in
4120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4121 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4124 test -z "$as_dir" && as_dir
=.
4125 for as_base
in sh bash ksh sh5
; do
4128 if ("$as_dir/$as_base" -c '
4131 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4132 test "x$as_lineno_1" != "x$as_lineno_2" &&
4133 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4134 $as_unset BASH_ENV
|| test "${BASH_ENV+set}" != set || { BASH_ENV
=; export BASH_ENV
; }
4135 $as_unset ENV
|| test "${ENV+set}" != set || { ENV
=; export ENV
; }
4136 CONFIG_SHELL
=$as_dir/$as_base
4138 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4146 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4147 # uniformly replaced by the line number. The first 'sed' inserts a
4148 # line-number line before each line; the second 'sed' does the real
4149 # work. The second script uses 'N' to pair each line-number line
4150 # with the numbered line, and appends trailing '-' during
4151 # substitution so that $LINENO is not a special case at line end.
4152 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4153 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4154 sed '=' <$as_myself |
4159 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4162 s,^['$as_cr_digits']*\n,,
4164 chmod +x
$as_me.lineno
||
4165 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4166 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4167 { (exit 1); exit 1; }; }
4169 # Don't try to exec as it changes $[0], causing all sort of problems
4170 # (the dirname of $[0] is not the place where we might find the
4171 # original and so on. Autoconf is especially sensible to this).
4173 # Exit status is that of the last command.
4178 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4179 *c
*,-n*) ECHO_N
= ECHO_C
='
4181 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4182 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4185 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4191 rm -f conf$$ conf$$.exe conf$$.
file
4193 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4194 # We could just check for DJGPP; but this test a) works b) is more generic
4195 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4196 if test -f conf$$.exe
; then
4197 # Don't use ln at all; we don't have any links
4202 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4207 rm -f conf$$ conf$$.exe conf$$.
file
4209 if mkdir -p .
2>/dev
/null
; then
4212 test -d .
/-p && rmdir .
/-p
4216 as_executable_p
="test -f"
4218 # Sed expression to map a string onto a valid CPP name.
4219 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4221 # Sed expression to map a string onto a valid variable name.
4222 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4226 # We need space, tab and new line, in precisely that order.
4236 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4237 # report actual input values of CONFIG_FILES etc. instead of their
4238 # values after options handling. Logging --version etc. is OK.
4242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4243 ## Running $as_me. ##
4248 This file was extended by $as_me, which was
4249 generated by GNU Autoconf 2.59. Invocation command line was
4251 CONFIG_FILES = $CONFIG_FILES
4252 CONFIG_HEADERS = $CONFIG_HEADERS
4253 CONFIG_LINKS = $CONFIG_LINKS
4254 CONFIG_COMMANDS = $CONFIG_COMMANDS
4258 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4262 # Files that config.status was made for.
4263 if test -n "$ac_config_files"; then
4264 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4267 if test -n "$ac_config_headers"; then
4268 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4271 if test -n "$ac_config_links"; then
4272 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4275 if test -n "$ac_config_commands"; then
4276 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4279 cat >>$CONFIG_STATUS <<\_ACEOF
4282 \`$as_me' instantiates files from templates according to the
4283 current configuration.
4285 Usage: $0 [OPTIONS] [FILE]...
4287 -h, --help print this help, then exit
4288 -V, --version print version number, then exit
4289 -q, --quiet do not print progress messages
4290 -d, --debug don't remove temporary files
4291 --recheck update $as_me by reconfiguring in the same conditions
4292 --file=FILE[:TEMPLATE]
4293 instantiate the configuration file FILE
4294 --header=FILE[:TEMPLATE]
4295 instantiate the configuration header FILE
4297 Configuration files:
4300 Configuration headers:
4303 Report bugs to <bug-autoconf@gnu.org>."
4306 cat >>$CONFIG_STATUS <<_ACEOF
4309 configured by $0, generated by GNU Autoconf 2.59,
4310 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4312 Copyright (C) 2003 Free Software Foundation, Inc.
4313 This config.status script is free software; the Free Software Foundation
4314 gives unlimited permission to copy, distribute and modify it."
4318 cat >>$CONFIG_STATUS <<\_ACEOF
4319 # If no file are specified by the user, then we need to provide default
4320 # value. By we need to know if files were specified by the user.
4326 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
4327 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
4335 *) # This is not an option, so the user has probably given explicit
4338 ac_need_defaults
=false
;;
4342 # Handling of the options.
4344 cat >>$CONFIG_STATUS <<\_ACEOF
4345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4347 --version | --vers* | -V )
4348 echo "$ac_cs_version"; exit 0 ;;
4350 # Conflict between --help and --header
4351 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4352 Try \`$0 --help' for more information." >&5
4353 echo "$as_me: error: ambiguous option: $1
4354 Try \`$0 --help' for more information." >&2;}
4355 { (exit 1); exit 1; }; };;
4356 --help | --hel | -h )
4357 echo "$ac_cs_usage"; exit 0 ;;
4358 --debug | --d* | -d )
4360 --file | --fil | --fi | --f )
4362 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
4363 ac_need_defaults
=false
;;
4364 --header | --heade | --head | --hea )
4366 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
4367 ac_need_defaults
=false
;;
4368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4369 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4373 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4374 Try \`$0 --help' for more information." >&5
4375 echo "$as_me: error: unrecognized option: $1
4376 Try \`$0 --help' for more information." >&2;}
4377 { (exit 1); exit 1; }; } ;;
4379 *) ac_config_targets
="$ac_config_targets $1" ;;
4385 ac_configure_extra_args
=
4387 if $ac_cs_silent; then
4389 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4393 cat >>$CONFIG_STATUS <<_ACEOF
4394 if \$ac_cs_recheck; then
4395 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4396 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4405 cat >>$CONFIG_STATUS <<\_ACEOF
4406 for ac_config_target
in $ac_config_targets
4408 case "$ac_config_target" in
4409 # Handling of arguments.
4410 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4411 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
4412 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4413 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4414 { (exit 1); exit 1; }; };;
4418 # If the user did not use the arguments to specify the items to instantiate,
4419 # then the envvar interface is used. Set only those that are not.
4420 # We use the long form for the default assignment because of an extremely
4421 # bizarre bug on SunOS 4.1.3.
4422 if $ac_need_defaults; then
4423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4427 # Have a temporary directory for convenience. Make it in the build tree
4428 # simply because there is no reason to put it here, and in addition,
4429 # creating and moving files from /tmp can sometimes cause problems.
4430 # Create a temporary directory, and hook for its removal unless debugging.
4433 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4434 trap '{ (exit 1); exit 1; }' 1 2 13 15
4437 # Create a (secure) tmp directory for tmp files.
4440 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4441 test -n "$tmp" && test -d "$tmp"
4444 tmp
=.
/confstat$$
-$RANDOM
4445 (umask 077 && mkdir $tmp)
4448 echo "$me: cannot create a temporary directory in ." >&2
4449 { (exit 1); exit 1; }
4454 cat >>$CONFIG_STATUS <<_ACEOF
4457 # CONFIG_FILES section.
4460 # No need to generate the scripts if there are no CONFIG_FILES.
4461 # This happens for instance when ./config.status config.h
4462 if test -n "\$CONFIG_FILES"; then
4463 # Protect against being on the right side of a sed subst in config.status.
4464 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4465 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4466 s,@SHELL@,$SHELL,;t t
4467 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4468 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4469 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4470 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4471 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4472 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4473 s,@exec_prefix@,$exec_prefix,;t t
4474 s,@prefix@,$prefix,;t t
4475 s,@program_transform_name@,$program_transform_name,;t t
4476 s,@bindir@,$bindir,;t t
4477 s,@sbindir@,$sbindir,;t t
4478 s,@libexecdir@,$libexecdir,;t t
4479 s,@datadir@,$datadir,;t t
4480 s,@sysconfdir@,$sysconfdir,;t t
4481 s,@sharedstatedir@,$sharedstatedir,;t t
4482 s,@localstatedir@,$localstatedir,;t t
4483 s,@libdir@,$libdir,;t t
4484 s,@includedir@,$includedir,;t t
4485 s,@oldincludedir@,$oldincludedir,;t t
4486 s,@infodir@,$infodir,;t t
4487 s,@mandir@,$mandir,;t t
4488 s,@build_alias@,$build_alias,;t t
4489 s,@host_alias@,$host_alias,;t t
4490 s,@target_alias@,$target_alias,;t t
4492 s,@ECHO_C@,$ECHO_C,;t t
4493 s,@ECHO_N@,$ECHO_N,;t t
4494 s,@ECHO_T@,$ECHO_T,;t t
4497 s,@CXXFLAGS@,$CXXFLAGS,;t t
4498 s,@LDFLAGS@,$LDFLAGS,;t t
4499 s,@CPPFLAGS@,$CPPFLAGS,;t t
4500 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4501 s,@EXEEXT@,$EXEEXT,;t t
4502 s,@OBJEXT@,$OBJEXT,;t t
4503 s,@CXXCPP@,$CXXCPP,;t t
4505 s,@CFLAGS@,$CFLAGS,;t t
4506 s,@ac_ct_CC@,$ac_ct_CC,;t t
4508 s,@EGREP@,$EGREP,;t t
4509 s,@LIBOBJS@,$LIBOBJS,;t t
4510 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4515 cat >>$CONFIG_STATUS <<\_ACEOF
4516 # Split the substitutions into bite-sized pieces for seds with
4517 # small command number limits, like on Digital OSF/1 and HP-UX.
4519 ac_sed_frag
=1 # Number of current file.
4520 ac_beg
=1 # First line for current file.
4521 ac_end
=$ac_max_sed_lines # Line after last line for current file.
4524 while $ac_more_lines; do
4525 if test $ac_beg -gt 1; then
4526 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
4528 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
4530 if test ! -s $tmp/subs.frag
; then
4533 # The purpose of the label and of the branching condition is to
4534 # speed up the sed processing (if there are no `@' at all, there
4535 # is no need to browse any of the substitutions).
4536 # These are the two extra sed commands mentioned above.
4538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
4539 if test -z "$ac_sed_cmds"; then
4540 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
4542 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4544 ac_sed_frag
=`expr $ac_sed_frag + 1`
4546 ac_end
=`expr $ac_end + $ac_max_sed_lines`
4549 if test -z "$ac_sed_cmds"; then
4552 fi # test -n "$CONFIG_FILES"
4555 cat >>$CONFIG_STATUS <<\_ACEOF
4556 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
4557 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4559 - | *:- | *:-:* ) # input from stdin
4561 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4562 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4563 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4564 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4565 * ) ac_file_in
=$ac_file.
in ;;
4568 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4569 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
4570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4571 X"$ac_file" : 'X\(//\)[^/]' \| \
4572 X"$ac_file" : 'X\(//\)$' \| \
4573 X"$ac_file" : 'X\(/\)' \| \
4574 . : '\(.\)' 2>/dev/null ||
4576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4578 /^X\(\/\/\)$/{ s//\1/; q; }
4579 /^X\(\/\).*/{ s//\1/; q; }
4581 { if $as_mkdir_p; then
4586 while test ! -d "$as_dir"; do
4587 as_dirs
="$as_dir $as_dirs"
4588 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
4589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4590 X"$as_dir" : 'X\(//\)[^/]' \| \
4591 X"$as_dir" : 'X\(//\)$' \| \
4592 X"$as_dir" : 'X\(/\)' \| \
4593 . : '\(.\)' 2>/dev/null ||
4595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4597 /^X\(\/\/\)$/{ s//\1/; q; }
4598 /^X\(\/\).*/{ s//\1/; q; }
4601 test ! -n "$as_dirs" || mkdir $as_dirs
4602 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4604 { (exit 1); exit 1; }; }; }
4608 if test "$ac_dir" != .
; then
4609 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4610 # A "../" for each directory in $ac_dir_suffix.
4611 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4613 ac_dir_suffix
= ac_top_builddir
=
4617 .
) # No --srcdir option. We are building in place.
4619 if test -z "$ac_top_builddir"; then
4622 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
4624 [\\/]* | ?
:[\\/]* ) # Absolute path.
4625 ac_srcdir
=$srcdir$ac_dir_suffix;
4626 ac_top_srcdir
=$srcdir ;;
4628 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
4629 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
4632 # Do not use `cd foo && pwd` to compute absolute paths, because
4633 # the directories may not exist.
4635 .
) ac_abs_builddir
="$ac_dir";;
4638 .
) ac_abs_builddir
=`pwd`;;
4639 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
4640 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
4643 case $ac_abs_builddir in
4644 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
4646 case ${ac_top_builddir}.
in
4647 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
4648 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
4649 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
4652 case $ac_abs_builddir in
4653 .
) ac_abs_srcdir
=$ac_srcdir;;
4656 .
) ac_abs_srcdir
=$ac_abs_builddir;;
4657 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
4658 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
4661 case $ac_abs_builddir in
4662 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
4664 case $ac_top_srcdir in
4665 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
4666 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
4667 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
4673 if test x
"$ac_file" != x
-; then
4674 { echo "$as_me:$LINENO: creating $ac_file" >&5
4675 echo "$as_me: creating $ac_file" >&6;}
4678 # Let's still pretend it is `configure' which instantiates (i.e., don't
4679 # use $as_me), people would be surprised to read:
4680 # /* config.h. Generated by config.status. */
4681 if test x
"$ac_file" = x
-; then
4684 configure_input
="$ac_file. "
4686 configure_input
=$configure_input"Generated from `echo $ac_file_in |
4687 sed 's,.*/,,'` by configure."
4689 # First look for the input files in the build tree, otherwise in the
4691 ac_file_inputs
=`IFS=:
4692 for f in $ac_file_in; do
4694 -) echo $tmp/stdin ;;
4696 # Absolute (can't be DOS-style, as IFS=:)
4697 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4698 echo "$as_me: error: cannot find input file: $f" >&2;}
4699 { (exit 1); exit 1; }; }
4702 if test -f "$f"; then
4705 elif test -f "$srcdir/$f"; then
4710 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4711 echo "$as_me: error: cannot find input file: $f" >&2;}
4712 { (exit 1); exit 1; }; }
4715 done` || { (exit 1); exit 1; }
4717 cat >>$CONFIG_STATUS <<_ACEOF
4721 cat >>$CONFIG_STATUS <<\_ACEOF
4723 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
4724 s
,@configure_input@
,$configure_input,;t t
4725 s
,@srcdir@
,$ac_srcdir,;t t
4726 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
4727 s
,@top_srcdir@
,$ac_top_srcdir,;t t
4728 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
4729 s
,@builddir@
,$ac_builddir,;t t
4730 s
,@abs_builddir@
,$ac_abs_builddir,;t t
4731 s
,@top_builddir@
,$ac_top_builddir,;t t
4732 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
4733 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4735 if test x"$ac_file" != x-; then
4736 mv $tmp/out $ac_file
4744 cat >>$CONFIG_STATUS <<\_ACEOF
4747 # CONFIG_HEADER section.
4750 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
4751 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4753 # ac_d sets the value in "#define NAME VALUE" lines.
4754 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4755 ac_dB
='[ ].*$,\1#\2'
4758 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4759 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4760 ac_uB
='$,\1#\2define\3'
4764 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
4765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4767 - | *:- | *:-:* ) # input from stdin
4769 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4770 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4771 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4772 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4773 * ) ac_file_in
=$ac_file.
in ;;
4776 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4777 echo "$as_me: creating $ac_file" >&6;}
4779 # First look for the input files in the build tree, otherwise in the
4781 ac_file_inputs
=`IFS=:
4782 for f in $ac_file_in; do
4784 -) echo $tmp/stdin ;;
4786 # Absolute (can't be DOS-style, as IFS=:)
4787 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4788 echo "$as_me: error: cannot find input file: $f" >&2;}
4789 { (exit 1); exit 1; }; }
4790 # Do quote $f, to prevent DOS paths from being IFS'd.
4793 if test -f "$f"; then
4796 elif test -f "$srcdir/$f"; then
4801 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4802 echo "$as_me: error: cannot find input file: $f" >&2;}
4803 { (exit 1); exit 1; }; }
4806 done` || { (exit 1); exit 1; }
4807 # Remove the trailing spaces.
4808 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4812 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4813 # `conftest.undefs', that substitutes the proper values into
4814 # config.h.in to produce config.h. The first handles `#define'
4815 # templates, and the second `#undef' templates.
4816 # And first: Protect against being on the right side of a sed subst in
4817 # config.status. Protect against being in an unquoted here document
4819 rm -f conftest.defines conftest.undefs
4820 # Using a here document instead of a string reduces the quoting nightmare.
4821 # Putting comments in sed scripts is not portable.
4823 # `end' is used to avoid that the second main sed command (meant for
4824 # 0-ary CPP macros) applies to n-ary macro definitions.
4825 # See the Autoconf documentation for `clear'.
4826 cat >confdef2sed.
sed <<\_ACEOF
4831 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4833 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4836 # If some macros were called several times there might be several times
4837 # the same #defines, which is useless. Nevertheless, we may not want to
4838 # sort them, since we want the *last* AC-DEFINE to be honored.
4839 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4840 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4841 rm -f confdef2sed.sed
4843 # This sed command replaces #undef with comments. This is necessary, for
4844 # example, in the case of _POSIX_SOURCE, which is predefined and required
4845 # on some systems where configure will not decide to define it.
4846 cat >>conftest.undefs <<\_ACEOF
4847 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4850 # Break up conftest.defines because some shells have a limit on the size
4851 # of here documents, and old seds have small limits too (100 cmds).
4852 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4853 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4854 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4855 echo ' :' >>$CONFIG_STATUS
4857 while grep . conftest.defines >/dev/null
4859 # Write a limited-size here document to $tmp/defines.sed.
4860 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4861 # Speed up: don't consider the non `#define' lines.
4862 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4863 # Work around the forget-to-reset-the-flag bug.
4864 echo 't clr' >>$CONFIG_STATUS
4865 echo ': clr' >>$CONFIG_STATUS
4866 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
4868 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4872 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
4873 rm -f conftest.defines
4874 mv conftest.
tail conftest.defines
4876 rm -f conftest.defines
4877 echo ' fi # grep' >>$CONFIG_STATUS
4878 echo >>$CONFIG_STATUS
4880 # Break up conftest.undefs because some shells have a limit on the size
4881 # of here documents, and old seds have small limits too (100 cmds).
4882 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4884 while grep . conftest.undefs
>/dev
/null
4886 # Write a limited-size here document to $tmp/undefs.sed.
4887 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4888 # Speed up: don't consider the non
`#undef'
4889 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4890 # Work around the forget-to-reset-the-flag bug.
4891 echo 't clr' >>$CONFIG_STATUS
4892 echo ': clr' >>$CONFIG_STATUS
4893 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4895 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4899 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4900 rm -f conftest.undefs
4901 mv conftest.tail conftest.undefs
4903 rm -f conftest.undefs
4905 cat >>$CONFIG_STATUS <<\_ACEOF
4906 # Let's still pretend it is `configure
' which instantiates (i.e., don't
4907 # use $as_me), people would be surprised to read:
4908 # /* config.h. Generated by config.status. */
4909 if test x
"$ac_file" = x
-; then
4910 echo "/* Generated by configure. */" >$tmp/config.h
4912 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4914 cat $tmp/in >>$tmp/config.h
4916 if test x
"$ac_file" != x
-; then
4917 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
4918 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4919 echo "$as_me: $ac_file is unchanged" >&6;}
4921 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
4922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4923 X"$ac_file" : 'X\(//\)[^/]' \| \
4924 X"$ac_file" : 'X\(//\)$' \| \
4925 X"$ac_file" : 'X\(/\)' \| \
4926 . : '\(.\)' 2>/dev/null ||
4928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4930 /^X\(\/\/\)$/{ s//\1/; q; }
4931 /^X\(\/\).*/{ s//\1/; q; }
4933 { if $as_mkdir_p; then
4938 while test ! -d "$as_dir"; do
4939 as_dirs
="$as_dir $as_dirs"
4940 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
4941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4942 X"$as_dir" : 'X\(//\)[^/]' \| \
4943 X"$as_dir" : 'X\(//\)$' \| \
4944 X"$as_dir" : 'X\(/\)' \| \
4945 . : '\(.\)' 2>/dev/null ||
4947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4949 /^X\(\/\/\)$/{ s//\1/; q; }
4950 /^X\(\/\).*/{ s//\1/; q; }
4953 test ! -n "$as_dirs" || mkdir $as_dirs
4954 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4956 { (exit 1); exit 1; }; }; }
4959 mv $tmp/config.h
$ac_file
4968 cat >>$CONFIG_STATUS <<\_ACEOF
4970 { (exit 0); exit 0; }
4972 chmod +x
$CONFIG_STATUS
4973 ac_clean_files
=$ac_clean_files_save
4976 # configure is writing to config.log, and then calls config.status.
4977 # config.status does its own redirection, appending to config.log.
4978 # Unfortunately, on DOS this fails, as config.log is still kept open
4979 # by configure, so config.status won't be able to write to it; its
4980 # output is simply discarded. So we exec the FD to /dev/null,
4981 # effectively closing config.log, so it can be properly (re)opened and
4982 # appended to by config.status. When coming back to configure, we
4983 # need to make the FD available again.
4984 if test "$no_create" != yes; then
4986 ac_config_status_args
=
4987 test "$silent" = yes &&
4988 ac_config_status_args
="$ac_config_status_args --quiet"
4990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
4992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4993 # would make configure fail if this is the last instruction.
4994 $ac_cs_success || { (exit 1); exit 1; }