2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU M4 1.4.2a.
5 # Report bugs to <bug-m4@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix
=/usr
/local
257 ac_config_libobj_dir
=.
262 SHELL
=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME
='GNU M4'
272 PACKAGE_VERSION
='1.4.2a'
273 PACKAGE_STRING
='GNU M4 1.4.2a'
274 PACKAGE_BUGREPORT
='bug-m4@gnu.org'
276 ac_unique_file
="src/m4.h"
277 # Factoring default headers for most tests.
278 ac_includes_default
="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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 PACKAGE VERSION AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STACKOVF LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CC_set
=${CC+set}
757 ac_cv_env_CC_set
=${CC+set}
758 ac_cv_env_CC_value
=$CC
759 ac_env_CFLAGS_set
=${CFLAGS+set}
760 ac_env_CFLAGS_value
=$CFLAGS
761 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value
=$CFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CPP_set
=${CPP+set}
772 ac_env_CPP_value
=$CPP
773 ac_cv_env_CPP_set
=${CPP+set}
774 ac_cv_env_CPP_value
=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures GNU M4 1.4.2a to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive
) echo "Configuration of GNU M4 1.4.2a:";;
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-changeword enable -W and changeword
() builtin
855 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
856 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
857 --with-dmalloc use dmalloc
, as
in dmalloc.
tar.gz from
858 @
/ftp.antaire.com
:antaire
/src
/dmalloc.
860 Some influential environment variables
:
861 CC C compiler
command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
864 nonstandard directory
<lib dir
>
865 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
866 headers
in a nonstandard directory
<include dir
>
869 Use these variables to override the choices made by
`configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
872 Report bugs to <bug-m4@gnu.org>.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo
&& pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .) ac_abs_builddir="$ac_dir";;
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
968 GNU M4 configure 1.4.2a
969 generated by GNU Autoconf 2.59
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by GNU M4 $as_me 1.4.2a, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
994 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
995 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
996 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
997 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
998 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1000 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1001 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1003 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1004 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1005 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1006 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1007 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1008 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1009 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next=false
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next=true ;;
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close
' the trap.
1089 trap 'exit_status
=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var
in $ac_subst_vars
1125 eval ac_val
=$
`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var
in $ac_subst_files
1139 eval ac_val
=$
`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h
; then
1152 sed "/^$/d" confdefs.h |
sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core
*.core
&&
1160 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's
/^
/|
/' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1248 ac_cache_corrupted=: ;;
1250 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1257 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1282 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1289 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318 PACKAGE=$PACKAGE_TARNAME;
1319 VERSION=$PACKAGE_VERSION;
1322 ac_config_headers="$ac_config_headers config.h:config-h.in"
1324 test "$program_prefix" != NONE &&
1325 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1326 # Use a double $ so make ignores it.
1327 test "$program_suffix" != NONE &&
1328 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1329 # Double any \ or $. echo might interpret backslashes.
1330 # By default was `s,x,x', remove it
if useless.
1331 cat <<\_ACEOF
>conftest.
sed
1332 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1334 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1338 for ac_prog
in gawk mawk nawk
awk
1340 # Extract the first word of "$ac_prog", so it can be a program name with args.
1341 set dummy
$ac_prog; ac_word
=$2
1342 echo "$as_me:$LINENO: checking for $ac_word" >&5
1343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1344 if test "${ac_cv_prog_AWK+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1347 if test -n "$AWK"; then
1348 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1354 test -z "$as_dir" && as_dir
=.
1355 for ac_exec_ext
in '' $ac_executable_extensions; do
1356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1357 ac_cv_prog_AWK
="$ac_prog"
1358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1367 if test -n "$AWK"; then
1368 echo "$as_me:$LINENO: result: $AWK" >&5
1369 echo "${ECHO_T}$AWK" >&6
1371 echo "$as_me:$LINENO: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1375 test -n "$AWK" && break
1379 ac_cpp
='$CPP $CPPFLAGS'
1380 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1381 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1382 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1383 if test -n "$ac_tool_prefix"; then
1384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1385 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1386 echo "$as_me:$LINENO: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 if test -n "$CC"; then
1392 ac_cv_prog_CC
="$CC" # Let the user override the test.
1394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1398 test -z "$as_dir" && as_dir
=.
1399 for ac_exec_ext
in '' $ac_executable_extensions; do
1400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1401 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411 if test -n "$CC"; then
1412 echo "$as_me:$LINENO: result: $CC" >&5
1413 echo "${ECHO_T}$CC" >&6
1415 echo "$as_me:$LINENO: result: no" >&5
1416 echo "${ECHO_T}no" >&6
1420 if test -z "$ac_cv_prog_CC"; then
1422 # Extract the first word of "gcc", so it can be a program name with args.
1423 set dummy gcc
; ac_word
=$2
1424 echo "$as_me:$LINENO: checking for $ac_word" >&5
1425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 if test -n "$ac_ct_CC"; then
1430 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1436 test -z "$as_dir" && as_dir
=.
1437 for ac_exec_ext
in '' $ac_executable_extensions; do
1438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1439 ac_cv_prog_ac_ct_CC
="gcc"
1440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1449 if test -n "$ac_ct_CC"; then
1450 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1451 echo "${ECHO_T}$ac_ct_CC" >&6
1453 echo "$as_me:$LINENO: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1462 if test -z "$CC"; then
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1465 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC
="$CC" # Let the user override the test.
1474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir
=.
1479 for ac_exec_ext
in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1500 if test -z "$ac_cv_prog_CC"; then
1502 # Extract the first word of "cc", so it can be a program name with args.
1503 set dummy cc
; ac_word
=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir
=.
1517 for ac_exec_ext
in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC
="cc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1543 if test -z "$CC"; then
1544 # Extract the first word of "cc", so it can be a program name with args.
1545 set dummy cc
; ac_word
=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC
="$CC" # Let the user override the test.
1555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir
=.
1560 for ac_exec_ext
in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1563 ac_prog_rejected
=yes
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 if test $ac_prog_rejected = yes; then
1574 # We found a bogon in the path, so make sure we never use it.
1575 set dummy
$ac_cv_prog_CC
1577 if test $# != 0; then
1578 # We chose a different compiler from the bogus one.
1579 # However, it has the same basename, so the bogon will be chosen
1580 # first if we set CC to just the basename; use the full file name.
1582 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1588 if test -n "$CC"; then
1589 echo "$as_me:$LINENO: result: $CC" >&5
1590 echo "${ECHO_T}$CC" >&6
1592 echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1597 if test -z "$CC"; then
1598 if test -n "$ac_tool_prefix"; then
1601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC
="$CC" # Let the user override the test.
1611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir
=.
1616 for ac_exec_ext
in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1632 echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1636 test -n "$CC" && break
1639 if test -z "$CC"; then
1643 # Extract the first word of "$ac_prog", so it can be a program name with args.
1644 set dummy
$ac_prog; ac_word
=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir
=.
1658 for ac_exec_ext
in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC
="$ac_prog"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1678 test -n "$ac_ct_CC" && break
1687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1688 See \`config.log' for more details." >&5
1689 echo "$as_me: error: no acceptable C compiler found in \$PATH
1690 See \`config.log' for more details." >&2;}
1691 { (exit 1); exit 1; }; }
1693 # Provide some information about the compiler.
1694 echo "$as_me:$LINENO:" \
1695 "checking for C compiler version" >&5
1696 ac_compiler
=`set X $ac_compile; echo $2`
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1698 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1703 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1708 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1713 cat >conftest.
$ac_ext <<_ACEOF
1716 cat confdefs.h
>>conftest.
$ac_ext
1717 cat >>conftest.
$ac_ext <<_ACEOF
1718 /* end confdefs.h. */
1728 ac_clean_files_save
=$ac_clean_files
1729 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1730 # Try to create an executable without -o first, disregard a.out.
1731 # It will help us diagnose broken compilers, and finding out an intuition
1733 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1734 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1735 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1736 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1737 (eval $ac_link_default) 2>&5
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 # Find the output, starting from the most likely. This scheme is
1742 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1745 # Be careful to initialize this variable, since it used to be cached.
1746 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1748 # b.out is created by i960 compilers.
1749 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1751 test -f "$ac_file" ||
continue
1753 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1756 # This is the source file.
1759 # We found the default executable, but exeext='' is most
1763 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1764 # FIXME: I believe we export ac_cv_exeext for Libtool,
1765 # but it would be cool to find out if it's true. Does anybody
1766 # maintain Libtool? --akim.
1774 echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.
$ac_ext >&5
1777 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: C compiler cannot create executables
1780 See \`config.log' for more details." >&2;}
1781 { (exit 77); exit 77; }; }
1784 ac_exeext
=$ac_cv_exeext
1785 echo "$as_me:$LINENO: result: $ac_file" >&5
1786 echo "${ECHO_T}$ac_file" >&6
1788 # Check the compiler produces executables we can run. If not, either
1789 # the compiler is broken, or we cross compile.
1790 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1791 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1792 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1793 # If not cross compiling, check that we can run a simple program.
1794 if test "$cross_compiling" != yes; then
1795 if { ac_try
='./$ac_file'
1796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }; }; then
1803 if test "$cross_compiling" = maybe
; then
1806 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1807 If you meant to cross compile, use \`--host'.
1808 See \`config.log' for more details." >&5
1809 echo "$as_me: error: cannot run C compiled programs.
1810 If you meant to cross compile, use \`--host'.
1811 See \`config.log' for more details." >&2;}
1812 { (exit 1); exit 1; }; }
1816 echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1819 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1820 ac_clean_files
=$ac_clean_files_save
1821 # Check the compiler produces executables we can run. If not, either
1822 # the compiler is broken, or we cross compile.
1823 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1824 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1825 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1826 echo "${ECHO_T}$cross_compiling" >&6
1828 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1829 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1831 (eval $ac_link) 2>&5
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; then
1835 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1836 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1837 # work properly (i.e., refer to `conftest.exe'), while it won't with
1839 for ac_file
in conftest.exe conftest conftest.
*; do
1840 test -f "$ac_file" ||
continue
1842 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1843 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1850 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1853 See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }
1857 rm -f conftest
$ac_cv_exeext
1858 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1859 echo "${ECHO_T}$ac_cv_exeext" >&6
1861 rm -f conftest.
$ac_ext
1862 EXEEXT
=$ac_cv_exeext
1864 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1866 if test "${ac_cv_objext+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.
$ac_ext <<_ACEOF
1872 cat confdefs.h
>>conftest.
$ac_ext
1873 cat >>conftest.
$ac_ext <<_ACEOF
1874 /* end confdefs.h. */
1884 rm -f conftest.o conftest.obj
1885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1892 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1893 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1898 echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.
$ac_ext >&5
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1908 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1910 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1911 echo "${ECHO_T}$ac_cv_objext" >&6
1912 OBJEXT
=$ac_cv_objext
1914 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1915 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1916 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 cat >conftest.
$ac_ext <<_ACEOF
1922 cat confdefs.h
>>conftest.
$ac_ext
1923 cat >>conftest.
$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1937 rm -f conftest.
$ac_objext
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>conftest.er1
1941 grep -v '^ *+' conftest.er1
>conftest.err
1943 cat conftest.err
>&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); } &&
1946 { ac_try
='test -z "$ac_c_werror_flag"
1947 || test ! -s conftest.err'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; } &&
1953 { ac_try
='test -s conftest.$ac_objext'
1954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; }; then
1961 echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.
$ac_ext >&5
1966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1967 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1970 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1971 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1972 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1973 ac_test_CFLAGS
=${CFLAGS+set}
1974 ac_save_CFLAGS
=$CFLAGS
1976 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1977 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1978 if test "${ac_cv_prog_cc_g+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 cat >conftest.
$ac_ext <<_ACEOF
1984 cat confdefs.h
>>conftest.
$ac_ext
1985 cat >>conftest.
$ac_ext <<_ACEOF
1986 /* end confdefs.h. */
1996 rm -f conftest.
$ac_objext
1997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>conftest.er1
2000 grep -v '^ *+' conftest.er1
>conftest.err
2002 cat conftest.err
>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); } &&
2005 { ac_try
='test -z "$ac_c_werror_flag"
2006 || test ! -s conftest.err'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; } &&
2012 { ac_try
='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2020 echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.
$ac_ext >&5
2025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2027 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2028 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2029 if test "$ac_test_CFLAGS" = set; then
2030 CFLAGS
=$ac_save_CFLAGS
2031 elif test $ac_cv_prog_cc_g = yes; then
2032 if test "$GCC" = yes; then
2038 if test "$GCC" = yes; then
2044 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2045 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2046 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 ac_cv_prog_cc_stdc
=no
2051 cat >conftest.
$ac_ext <<_ACEOF
2054 cat confdefs.h
>>conftest.
$ac_ext
2055 cat >>conftest.
$ac_ext <<_ACEOF
2056 /* end confdefs.h. */
2059 #include <sys/types.h>
2060 #include <sys/stat.h>
2061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2062 struct buf { int x; };
2063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2064 static char *e (p, i)
2070 static char *f (char * (*g) (char **, int), char **p, ...)
2075 s = g (p, va_arg (v,int));
2080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2081 function prototypes and stuff, but not '\xHH' hex character constants.
2082 These don't provoke an error unfortunately, instead are silently treated
2083 as 'x'. The following induces an error, until -std1 is added to get
2084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2085 array size at least. It's necessary to write '\x00'==0 to get something
2086 that's true only with -std1. */
2087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2089 int test (int i, double x);
2090 struct s1 {int (*f) (int a);};
2091 struct s2 {int (*f) (double a);};
2092 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2098 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2103 # Don't try gcc -ansi; that turns off useful extensions and
2104 # breaks some systems' header files.
2105 # AIX -qlanglvl=ansi
2106 # Ultrix and OSF/1 -std1
2107 # HP-UX 10.20 and later -Ae
2108 # HP-UX older versions -Aa -D_HPUX_SOURCE
2109 # SVR4 -Xc -D__EXTENSIONS__
2110 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2112 CC
="$ac_save_CC $ac_arg"
2113 rm -f conftest.
$ac_objext
2114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>conftest.er1
2117 grep -v '^ *+' conftest.er1
>conftest.err
2119 cat conftest.err
>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); } &&
2122 { ac_try
='test -z "$ac_c_werror_flag"
2123 || test ! -s conftest.err'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; } &&
2129 { ac_try
='test -s conftest.$ac_objext'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; }; then
2135 ac_cv_prog_cc_stdc
=$ac_arg
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.
$ac_ext >&5
2142 rm -f conftest.err conftest.
$ac_objext
2144 rm -f conftest.
$ac_ext conftest.
$ac_objext
2149 case "x$ac_cv_prog_cc_stdc" in
2151 echo "$as_me:$LINENO: result: none needed" >&5
2152 echo "${ECHO_T}none needed" >&6 ;;
2154 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2155 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2156 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2159 # Some people use a C++ compiler to compile C. Since we use `exit',
2160 # in C++ we need to declare it. In case someone uses the same compiler
2161 # for both compiling C and C++ we need to have the C++ compiler decide
2162 # the declaration of exit, since it's the most demanding environment.
2163 cat >conftest.
$ac_ext <<_ACEOF
2168 rm -f conftest.
$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2172 grep -v '^ *+' conftest.er1
>conftest.err
2174 cat conftest.err
>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try
='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try
='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 for ac_declaration
in \
2192 'extern "C" void std::exit (int) throw (); using std::exit;' \
2193 'extern "C" void std::exit (int); using std::exit;' \
2194 'extern "C" void exit (int) throw ();' \
2195 'extern "C" void exit (int);' \
2198 cat >conftest.
$ac_ext <<_ACEOF
2201 cat confdefs.h
>>conftest.
$ac_ext
2202 cat >>conftest.
$ac_ext <<_ACEOF
2203 /* end confdefs.h. */
2214 rm -f conftest.
$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2218 grep -v '^ *+' conftest.er1
>conftest.err
2220 cat conftest.err
>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try
='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try
='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.
$ac_ext >&5
2243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2244 cat >conftest.
$ac_ext <<_ACEOF
2247 cat confdefs.h
>>conftest.
$ac_ext
2248 cat >>conftest.
$ac_ext <<_ACEOF
2249 /* end confdefs.h. */
2259 rm -f conftest.
$ac_objext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>conftest.er1
2263 grep -v '^ *+' conftest.er1
>conftest.err
2265 cat conftest.err
>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try
='test -z "$ac_c_werror_flag"
2269 || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try
='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.
$ac_ext >&5
2287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2290 if test -n "$ac_declaration"; then
2291 echo '#ifdef __cplusplus' >>confdefs.h
2292 echo $ac_declaration >>confdefs.h
2293 echo '#endif' >>confdefs.h
2297 echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.
$ac_ext >&5
2301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2303 ac_cpp
='$CPP $CPPFLAGS'
2304 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2309 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2310 if test -f $ac_dir/install-sh
; then
2312 ac_install_sh
="$ac_aux_dir/install-sh -c"
2314 elif test -f $ac_dir/install.sh
; then
2316 ac_install_sh
="$ac_aux_dir/install.sh -c"
2318 elif test -f $ac_dir/shtool
; then
2320 ac_install_sh
="$ac_aux_dir/shtool install -c"
2324 if test -z "$ac_aux_dir"; then
2325 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2326 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2327 { (exit 1); exit 1; }; }
2329 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2330 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2331 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2333 # Find a good install program. We prefer a C program (faster),
2334 # so one script is as good as another. But avoid the broken or
2335 # incompatible versions:
2336 # SysV /etc/install, /usr/sbin/install
2337 # SunOS /usr/etc/install
2338 # IRIX /sbin/install
2340 # AmigaOS /C/install, which installs bootblocks on floppy discs
2341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2344 # OS/2's system install, which has a completely different semantic
2345 # ./install, which can be erroneously created by make from ./install.sh.
2346 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2347 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2348 if test -z "$INSTALL"; then
2349 if test "${ac_cv_path_install+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir
=.
2357 # Account for people who put trailing slashes in PATH elements.
2359 .
/ | .
// |
/cC
/* | \
2360 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2361 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2364 # OSF1 and SCO ODT 3.0 have their own names for install.
2365 # Don't use installbsd from OSF since it installs stuff as root
2367 for ac_prog
in ginstall scoinst
install; do
2368 for ac_exec_ext
in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2370 if test $ac_prog = install &&
2371 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2372 # AIX install. It has an incompatible calling convention.
2374 elif test $ac_prog = install &&
2375 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2376 # program-specific install script used by HP pwplus--don't use.
2379 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2391 if test "${ac_cv_path_install+set}" = set; then
2392 INSTALL
=$ac_cv_path_install
2394 # As a last resort, use the slow shell script. We don't cache a
2395 # path for INSTALL within a source directory, because that will
2396 # break other packages using the cache if that directory is
2397 # removed, or if the path is relative.
2398 INSTALL
=$ac_install_sh
2401 echo "$as_me:$LINENO: result: $INSTALL" >&5
2402 echo "${ECHO_T}$INSTALL" >&6
2404 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2405 # It thinks the first close brace ends the variable substitution.
2406 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2408 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2410 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2412 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2413 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2414 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2415 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 cat >conftest.
make <<\_ACEOF
2420 @
echo 'ac_maketemp="$(MAKE)"'
2422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2423 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2424 if test -n "$ac_maketemp"; then
2425 eval ac_cv_prog_make_
${ac_make}_set
=yes
2427 eval ac_cv_prog_make_
${ac_make}_set
=no
2431 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2432 echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6
2436 echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2438 SET_MAKE
="MAKE=${MAKE-make}"
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2443 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_RANLIB+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$RANLIB"; then
2450 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir
=.
2457 for ac_exec_ext
in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 RANLIB
=$ac_cv_prog_RANLIB
2469 if test -n "$RANLIB"; then
2470 echo "$as_me:$LINENO: result: $RANLIB" >&5
2471 echo "${ECHO_T}$RANLIB" >&6
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2478 if test -z "$ac_cv_prog_RANLIB"; then
2479 ac_ct_RANLIB
=$RANLIB
2480 # Extract the first word of "ranlib", so it can be a program name with args.
2481 set dummy ranlib
; ac_word
=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$ac_ct_RANLIB"; then
2488 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir
=.
2495 for ac_exec_ext
in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2507 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2508 if test -n "$ac_ct_RANLIB"; then
2509 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2510 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2512 echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2516 RANLIB
=$ac_ct_RANLIB
2518 RANLIB
="$ac_cv_prog_RANLIB"
2524 ac_cpp
='$CPP $CPPFLAGS'
2525 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2528 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2529 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2530 # On Suns, sometimes $CPP names a directory.
2531 if test -n "$CPP" && test -d "$CPP"; then
2534 if test -z "$CPP"; then
2535 if test "${ac_cv_prog_CPP+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 # Double quotes because CPP needs to be expanded
2539 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2542 for ac_c_preproc_warn_flag
in '' yes
2544 # Use a header file that comes with gcc, so configuring glibc
2545 # with a fresh cross-compiler works.
2546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2547 # <limits.h> exists even on freestanding compilers.
2548 # On the NeXT, cc -E runs the code through the compiler's parser,
2549 # not just through cpp. "Syntax error" is here to catch this case.
2550 cat >conftest.
$ac_ext <<_ACEOF
2553 cat confdefs.h
>>conftest.
$ac_ext
2554 cat >>conftest.
$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2557 # include <limits.h>
2559 # include <assert.h>
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2566 grep -v '^ *+' conftest.er1
>conftest.err
2568 cat conftest.err
>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } >/dev
/null
; then
2571 if test -s conftest.err
; then
2572 ac_cpp_err
=$ac_c_preproc_warn_flag
2573 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2580 if test -z "$ac_cpp_err"; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.
$ac_ext >&5
2586 # Broken: fails on valid input.
2589 rm -f conftest.err conftest.
$ac_ext
2591 # OK, works on sane cases. Now check whether non-existent headers
2592 # can be detected and how.
2593 cat >conftest.
$ac_ext <<_ACEOF
2596 cat confdefs.h
>>conftest.
$ac_ext
2597 cat >>conftest.
$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2599 #include <ac_nonexistent.h>
2601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2602 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2604 grep -v '^ *+' conftest.er1
>conftest.err
2606 cat conftest.err
>&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } >/dev
/null
; then
2609 if test -s conftest.err
; then
2610 ac_cpp_err
=$ac_c_preproc_warn_flag
2611 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2618 if test -z "$ac_cpp_err"; then
2619 # Broken: success on invalid input.
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.
$ac_ext >&5
2625 # Passes both tests.
2629 rm -f conftest.err conftest.
$ac_ext
2632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2633 rm -f conftest.err conftest.
$ac_ext
2634 if $ac_preproc_ok; then
2646 echo "$as_me:$LINENO: result: $CPP" >&5
2647 echo "${ECHO_T}$CPP" >&6
2649 for ac_c_preproc_warn_flag
in '' yes
2651 # Use a header file that comes with gcc, so configuring glibc
2652 # with a fresh cross-compiler works.
2653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654 # <limits.h> exists even on freestanding compilers.
2655 # On the NeXT, cc -E runs the code through the compiler's parser,
2656 # not just through cpp. "Syntax error" is here to catch this case.
2657 cat >conftest.
$ac_ext <<_ACEOF
2660 cat confdefs.h
>>conftest.
$ac_ext
2661 cat >>conftest.
$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2664 # include <limits.h>
2666 # include <assert.h>
2670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2671 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2673 grep -v '^ *+' conftest.er1
>conftest.err
2675 cat conftest.err
>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } >/dev
/null
; then
2678 if test -s conftest.err
; then
2679 ac_cpp_err
=$ac_c_preproc_warn_flag
2680 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2687 if test -z "$ac_cpp_err"; then
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.
$ac_ext >&5
2693 # Broken: fails on valid input.
2696 rm -f conftest.err conftest.
$ac_ext
2698 # OK, works on sane cases. Now check whether non-existent headers
2699 # can be detected and how.
2700 cat >conftest.
$ac_ext <<_ACEOF
2703 cat confdefs.h
>>conftest.
$ac_ext
2704 cat >>conftest.
$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2706 #include <ac_nonexistent.h>
2708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2709 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2711 grep -v '^ *+' conftest.er1
>conftest.err
2713 cat conftest.err
>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } >/dev
/null
; then
2716 if test -s conftest.err
; then
2717 ac_cpp_err
=$ac_c_preproc_warn_flag
2718 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2725 if test -z "$ac_cpp_err"; then
2726 # Broken: success on invalid input.
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.
$ac_ext >&5
2732 # Passes both tests.
2736 rm -f conftest.err conftest.
$ac_ext
2739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2740 rm -f conftest.err conftest.
$ac_ext
2741 if $ac_preproc_ok; then
2744 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2747 See \`config.log' for more details." >&2;}
2748 { (exit 1); exit 1; }; }
2752 ac_cpp
='$CPP $CPPFLAGS'
2753 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2758 echo "$as_me:$LINENO: checking for egrep" >&5
2759 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2760 if test "${ac_cv_prog_egrep+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2764 then ac_cv_prog_egrep
='grep -E'
2765 else ac_cv_prog_egrep
='egrep'
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2769 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2770 EGREP
=$ac_cv_prog_egrep
2774 echo "$as_me:$LINENO: checking for AIX" >&5
2775 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2776 cat >conftest.
$ac_ext <<_ACEOF
2779 cat confdefs.h
>>conftest.
$ac_ext
2780 cat >>conftest.
$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2788 $EGREP "yes" >/dev
/null
2>&1; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2791 cat >>confdefs.h
<<\_ACEOF
2792 #define _ALL_SOURCE 1
2796 echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6
2802 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2803 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2804 if test "${ac_cv_search_strerror+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 ac_func_search_save_LIBS
=$LIBS
2808 ac_cv_search_strerror
=no
2809 cat >conftest.
$ac_ext <<_ACEOF
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2816 /* Override any gcc2 internal prototype to avoid an error. */
2820 /* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2831 rm -f conftest.
$ac_objext conftest
$ac_exeext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2833 (eval $ac_link) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1
>conftest.err
2837 cat conftest.err
>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try
='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try
='test -s conftest$ac_exeext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_search_strerror
="none required"
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.
$ac_ext >&5
2859 rm -f conftest.err conftest.
$ac_objext \
2860 conftest
$ac_exeext conftest.
$ac_ext
2861 if test "$ac_cv_search_strerror" = no
; then
2862 for ac_lib
in cposix
; do
2863 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2864 cat >conftest.
$ac_ext <<_ACEOF
2867 cat confdefs.h
>>conftest.
$ac_ext
2868 cat >>conftest.
$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2871 /* Override any gcc2 internal prototype to avoid an error. */
2875 /* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2886 rm -f conftest.
$ac_objext conftest
$ac_exeext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2888 (eval $ac_link) 2>conftest.er1
2890 grep -v '^ *+' conftest.er1
>conftest.err
2892 cat conftest.err
>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try
='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try
='test -s conftest$ac_exeext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 ac_cv_search_strerror
="-l$ac_lib"
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2915 rm -f conftest.err conftest.
$ac_objext \
2916 conftest
$ac_exeext conftest.
$ac_ext
2919 LIBS
=$ac_func_search_save_LIBS
2921 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2922 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2923 if test "$ac_cv_search_strerror" != no
; then
2924 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2928 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2929 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2930 if test "${ac_cv_header_stdc+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 cat >conftest.
$ac_ext <<_ACEOF
2936 cat confdefs.h
>>conftest.
$ac_ext
2937 cat >>conftest.
$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2952 rm -f conftest.
$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954 (eval $ac_compile) 2>conftest.er1
2956 grep -v '^ *+' conftest.er1
>conftest.err
2958 cat conftest.err
>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try
='test -z "$ac_c_werror_flag"
2962 || test ! -s conftest.err'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try
='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 ac_cv_header_stdc
=yes
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.
$ac_ext >&5
2979 ac_cv_header_stdc
=no
2981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2983 if test $ac_cv_header_stdc = yes; then
2984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2985 cat >conftest.
$ac_ext <<_ACEOF
2988 cat confdefs.h
>>conftest.
$ac_ext
2989 cat >>conftest.
$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2995 $EGREP "memchr" >/dev
/null
2>&1; then
2998 ac_cv_header_stdc
=no
3004 if test $ac_cv_header_stdc = yes; then
3005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3006 cat >conftest.
$ac_ext <<_ACEOF
3009 cat confdefs.h
>>conftest.
$ac_ext
3010 cat >>conftest.
$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016 $EGREP "free" >/dev
/null
2>&1; then
3019 ac_cv_header_stdc
=no
3025 if test $ac_cv_header_stdc = yes; then
3026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3027 if test "$cross_compiling" = yes; then
3030 cat >conftest.
$ac_ext <<_ACEOF
3033 cat confdefs.h
>>conftest.
$ac_ext
3034 cat >>conftest.
$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3037 #if ((' ' & 0x0FF) == 0x020)
3038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3041 # define ISLOWER(c) \
3042 (('a' <= (c) && (c) <= 'i') \
3043 || ('j' <= (c) && (c) <= 'r') \
3044 || ('s' <= (c) && (c) <= 'z'))
3045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3053 for (i = 0; i < 256; i++)
3054 if (XOR (islower (i), ISLOWER (i))
3055 || toupper (i) != TOUPPER (i))
3060 rm -f conftest
$ac_exeext
3061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3062 (eval $ac_link) 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3073 echo "$as_me: program exited with status $ac_status" >&5
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.
$ac_ext >&5
3078 ac_cv_header_stdc
=no
3080 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3084 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3085 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3086 if test $ac_cv_header_stdc = yes; then
3088 cat >>confdefs.h
<<\_ACEOF
3089 #define STDC_HEADERS 1
3094 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3104 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3105 inttypes.h stdint.h unistd.h
3107 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3108 echo "$as_me:$LINENO: checking for $ac_header" >&5
3109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 cat >conftest.
$ac_ext <<_ACEOF
3116 cat confdefs.h
>>conftest.
$ac_ext
3117 cat >>conftest.
$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 $ac_includes_default
3121 #include <$ac_header>
3123 rm -f conftest.
$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1
>conftest.err
3129 cat conftest.err
>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try
='test -z "$ac_c_werror_flag"
3133 || test ! -s conftest.err'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try
='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 eval "$as_ac_Header=yes"
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.
$ac_ext >&5
3150 eval "$as_ac_Header=no"
3152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3157 cat >>confdefs.h
<<_ACEOF
3158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3166 if test "${ac_cv_header_minix_config_h+set}" = set; then
3167 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3168 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3169 if test "${ac_cv_header_minix_config_h+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3173 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3175 # Is the header compilable?
3176 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3177 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3178 cat >conftest.
$ac_ext <<_ACEOF
3181 cat confdefs.h
>>conftest.
$ac_ext
3182 cat >>conftest.
$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3184 $ac_includes_default
3185 #include <minix/config.h>
3187 rm -f conftest.
$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>conftest.er1
3191 grep -v '^ *+' conftest.er1
>conftest.err
3193 cat conftest.err
>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try
='test -z "$ac_c_werror_flag"
3197 || test ! -s conftest.err'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try
='test -s conftest.$ac_objext'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_header_compiler
=yes
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.
$ac_ext >&5
3214 ac_header_compiler
=no
3216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3218 echo "${ECHO_T}$ac_header_compiler" >&6
3220 # Is the header present?
3221 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3222 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3223 cat >conftest.
$ac_ext <<_ACEOF
3226 cat confdefs.h
>>conftest.
$ac_ext
3227 cat >>conftest.
$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 #include <minix/config.h>
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3234 grep -v '^ *+' conftest.er1
>conftest.err
3236 cat conftest.err
>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev
/null
; then
3239 if test -s conftest.err
; then
3240 ac_cpp_err
=$ac_c_preproc_warn_flag
3241 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3248 if test -z "$ac_cpp_err"; then
3249 ac_header_preproc
=yes
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.
$ac_ext >&5
3254 ac_header_preproc
=no
3256 rm -f conftest.err conftest.
$ac_ext
3257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3258 echo "${ECHO_T}$ac_header_preproc" >&6
3260 # So? What about this header?
3261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3263 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3264 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3265 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3266 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3267 ac_header_preproc
=yes
3270 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3271 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3272 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3273 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3274 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3275 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3276 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3277 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3278 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3279 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3280 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3281 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3284 ## ----------------------------- ##
3285 ## Report this to bug-m4@gnu.org ##
3286 ## ----------------------------- ##
3289 sed "s/^/$as_me: WARNING: /" >&2
3292 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3293 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3294 if test "${ac_cv_header_minix_config_h+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 ac_cv_header_minix_config_h
=$ac_header_preproc
3299 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3300 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3303 if test $ac_cv_header_minix_config_h = yes; then
3310 if test "$MINIX" = yes; then
3312 cat >>confdefs.h
<<\_ACEOF
3313 #define _POSIX_SOURCE 1
3317 cat >>confdefs.h
<<\_ACEOF
3318 #define _POSIX_1_SOURCE 2
3322 cat >>confdefs.h
<<\_ACEOF
3328 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3329 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 ac_cv_prog_cc_stdc
=no
3334 ac_save_CFLAGS
="$CFLAGS"
3335 # Don't try gcc -ansi; that turns off useful extensions and
3336 # breaks some systems' header files.
3337 # AIX -qlanglvl=ansi
3338 # Ultrix and OSF/1 -std1
3339 # HP-UX -Aa -D_HPUX_SOURCE
3341 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" -Xc
3343 CFLAGS
="$ac_save_CFLAGS $ac_arg"
3344 cat >conftest.
$ac_ext <<_ACEOF
3347 cat confdefs.h
>>conftest.
$ac_ext
3348 cat >>conftest.
$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350 #if !defined(__STDC__) || __STDC__ != 1
3357 int test (int i, double x);
3358 struct s1 {int (*f) (int a);};
3359 struct s2 {int (*f) (double a);};
3364 rm -f conftest.
$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>conftest.er1
3368 grep -v '^ *+' conftest.er1
>conftest.err
3370 cat conftest.err
>&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try
='test -z "$ac_c_werror_flag"
3374 || test ! -s conftest.err'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try
='test -s conftest.$ac_objext'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_prog_cc_stdc
="$ac_arg"; break
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.
$ac_ext >&5
3392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3394 CFLAGS
="$ac_save_CFLAGS"
3398 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3399 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3400 case "x$ac_cv_prog_cc_stdc" in
3402 *) CC
="$CC $ac_cv_prog_cc_stdc" ;;
3406 echo "$as_me:$LINENO: checking for function prototypes" >&5
3407 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3408 if test "$ac_cv_prog_cc_stdc" != no
; then
3409 echo "$as_me:$LINENO: result: yes" >&5
3410 echo "${ECHO_T}yes" >&6
3412 cat >>confdefs.h
<<\_ACEOF
3413 #define PROTOTYPES 1
3418 echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3420 U
=_ ANSI2KNR
=ansi2knr
3423 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3424 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3425 if test "${ac_cv_c_const+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 cat >conftest.
$ac_ext <<_ACEOF
3431 cat confdefs.h
>>conftest.
$ac_ext
3432 cat >>conftest.
$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3438 /* FIXME: Include the comments suggested by Paul. */
3440 /* Ultrix mips cc rejects this. */
3441 typedef int charset[2];
3443 /* SunOS 4.1.1 cc rejects this. */
3444 char const *const *ccp;
3446 /* NEC SVR4.0.2 mips cc rejects this. */
3447 struct point {int x, y;};
3448 static struct point const zero = {0,0};
3449 /* AIX XL C 1.02.0.0 rejects this.
3450 It does not let you subtract one const X* pointer from another in
3451 an arm of an if-expression whose if-part is not a constant
3453 const char *g = "string";
3454 ccp = &g + (g ? g-g : 0);
3455 /* HPUX 7.0 cc rejects these. */
3458 ccp = (char const *const *) p;
3459 { /* SCO 3.2v4 cc rejects this. */
3461 char const *s = 0 ? (char *) 0 : (char const *) 0;
3465 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3467 const int *foo = &x[0];
3470 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3471 typedef const int *iptr;
3475 { /* AIX XL C 1.02.0.0 rejects this saying
3476 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3477 struct s { int j; const int *ap[3]; };
3478 struct s *b; b->j = 5;
3480 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3489 rm -f conftest.
$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3493 grep -v '^ *+' conftest.er1
>conftest.err
3495 cat conftest.err
>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try
='test -z "$ac_c_werror_flag"
3499 || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try
='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.
$ac_ext >&5
3518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3520 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3521 echo "${ECHO_T}$ac_cv_c_const" >&6
3522 if test $ac_cv_c_const = no
; then
3524 cat >>confdefs.h
<<\_ACEOF
3536 for ac_header
in limits.h memory.h siginfo.h string.h unistd.h
3538 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3540 echo "$as_me:$LINENO: checking for $ac_header" >&5
3541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3548 # Is the header compilable?
3549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3551 cat >conftest.
$ac_ext <<_ACEOF
3554 cat confdefs.h
>>conftest.
$ac_ext
3555 cat >>conftest.
$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 $ac_includes_default
3558 #include <$ac_header>
3560 rm -f conftest.
$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3564 grep -v '^ *+' conftest.er1
>conftest.err
3566 cat conftest.err
>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try
='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try
='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_header_compiler
=yes
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.
$ac_ext >&5
3587 ac_header_compiler
=no
3589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3591 echo "${ECHO_T}$ac_header_compiler" >&6
3593 # Is the header present?
3594 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3596 cat >conftest.
$ac_ext <<_ACEOF
3599 cat confdefs.h
>>conftest.
$ac_ext
3600 cat >>conftest.
$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 #include <$ac_header>
3604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3605 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3607 grep -v '^ *+' conftest.er1
>conftest.err
3609 cat conftest.err
>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev
/null
; then
3612 if test -s conftest.err
; then
3613 ac_cpp_err
=$ac_c_preproc_warn_flag
3614 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3621 if test -z "$ac_cpp_err"; then
3622 ac_header_preproc
=yes
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.
$ac_ext >&5
3627 ac_header_preproc
=no
3629 rm -f conftest.err conftest.
$ac_ext
3630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3631 echo "${ECHO_T}$ac_header_preproc" >&6
3633 # So? What about this header?
3634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3640 ac_header_preproc
=yes
3643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3657 ## ----------------------------- ##
3658 ## Report this to bug-m4@gnu.org ##
3659 ## ----------------------------- ##
3662 sed "s/^/$as_me: WARNING: /" >&2
3665 echo "$as_me:$LINENO: checking for $ac_header" >&5
3666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 eval "$as_ac_Header=\$ac_header_preproc"
3672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3677 cat >>confdefs.h
<<_ACEOF
3678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3687 for ac_header
in signal.h sys
/signal.h
3689 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3691 echo "$as_me:$LINENO: checking for $ac_header" >&5
3692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3699 # Is the header compilable?
3700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3702 cat >conftest.
$ac_ext <<_ACEOF
3705 cat confdefs.h
>>conftest.
$ac_ext
3706 cat >>conftest.
$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 $ac_includes_default
3709 #include <$ac_header>
3711 rm -f conftest.
$ac_objext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>conftest.er1
3715 grep -v '^ *+' conftest.er1
>conftest.err
3717 cat conftest.err
>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try
='test -z "$ac_c_werror_flag"
3721 || test ! -s conftest.err'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; } &&
3727 { ac_try
='test -s conftest.$ac_objext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 ac_header_compiler
=yes
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.
$ac_ext >&5
3738 ac_header_compiler
=no
3740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3742 echo "${ECHO_T}$ac_header_compiler" >&6
3744 # Is the header present?
3745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3747 cat >conftest.
$ac_ext <<_ACEOF
3750 cat confdefs.h
>>conftest.
$ac_ext
3751 cat >>conftest.
$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <$ac_header>
3755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3756 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3758 grep -v '^ *+' conftest.er1
>conftest.err
3760 cat conftest.err
>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } >/dev
/null
; then
3763 if test -s conftest.err
; then
3764 ac_cpp_err
=$ac_c_preproc_warn_flag
3765 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3772 if test -z "$ac_cpp_err"; then
3773 ac_header_preproc
=yes
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.
$ac_ext >&5
3778 ac_header_preproc
=no
3780 rm -f conftest.err conftest.
$ac_ext
3781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3782 echo "${ECHO_T}$ac_header_preproc" >&6
3784 # So? What about this header?
3785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3791 ac_header_preproc
=yes
3794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3808 ## ----------------------------- ##
3809 ## Report this to bug-m4@gnu.org ##
3810 ## ----------------------------- ##
3813 sed "s/^/$as_me: WARNING: /" >&2
3816 echo "$as_me:$LINENO: checking for $ac_header" >&5
3817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 eval "$as_ac_Header=\$ac_header_preproc"
3823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3828 cat >>confdefs.h
<<_ACEOF
3829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3836 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3838 if test "${ac_cv_header_stdc+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 cat >conftest.
$ac_ext <<_ACEOF
3844 cat confdefs.h
>>conftest.
$ac_ext
3845 cat >>conftest.
$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3860 rm -f conftest.
$ac_objext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3864 grep -v '^ *+' conftest.er1
>conftest.err
3866 cat conftest.err
>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try
='test -z "$ac_c_werror_flag"
3870 || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try
='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 ac_cv_header_stdc
=yes
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.
$ac_ext >&5
3887 ac_cv_header_stdc
=no
3889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3891 if test $ac_cv_header_stdc = yes; then
3892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3893 cat >conftest.
$ac_ext <<_ACEOF
3896 cat confdefs.h
>>conftest.
$ac_ext
3897 cat >>conftest.
$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3903 $EGREP "memchr" >/dev
/null
2>&1; then
3906 ac_cv_header_stdc
=no
3912 if test $ac_cv_header_stdc = yes; then
3913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3914 cat >conftest.
$ac_ext <<_ACEOF
3917 cat confdefs.h
>>conftest.
$ac_ext
3918 cat >>conftest.
$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "free" >/dev
/null
2>&1; then
3927 ac_cv_header_stdc
=no
3933 if test $ac_cv_header_stdc = yes; then
3934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3935 if test "$cross_compiling" = yes; then
3938 cat >conftest.
$ac_ext <<_ACEOF
3941 cat confdefs.h
>>conftest.
$ac_ext
3942 cat >>conftest.
$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3945 #if ((' ' & 0x0FF) == 0x020)
3946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3949 # define ISLOWER(c) \
3950 (('a' <= (c) && (c) <= 'i') \
3951 || ('j' <= (c) && (c) <= 'r') \
3952 || ('s' <= (c) && (c) <= 'z'))
3953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3961 for (i = 0; i < 256; i++)
3962 if (XOR (islower (i), ISLOWER (i))
3963 || toupper (i) != TOUPPER (i))
3968 rm -f conftest
$ac_exeext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3970 (eval $ac_link) 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3981 echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.
$ac_ext >&5
3986 ac_cv_header_stdc
=no
3988 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3992 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3994 if test $ac_cv_header_stdc = yes; then
3996 cat >>confdefs.h
<<\_ACEOF
3997 #define STDC_HEADERS 1
4002 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4003 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4004 if test "${ac_cv_type_signal+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 cat >conftest.
$ac_ext <<_ACEOF
4010 cat confdefs.h
>>conftest.
$ac_ext
4011 cat >>conftest.
$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 #include <sys/types.h>
4019 extern "C" void (*signal (int, void (*)(int)))(int);
4021 void (*signal ()) ();
4032 rm -f conftest.
$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1
>conftest.err
4038 cat conftest.err
>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try
='test -z "$ac_c_werror_flag"
4042 || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try
='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_cv_type_signal
=void
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.
$ac_ext >&5
4059 ac_cv_type_signal
=int
4061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4063 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4064 echo "${ECHO_T}$ac_cv_type_signal" >&6
4066 cat >>confdefs.h
<<_ACEOF
4067 #define RETSIGTYPE $ac_cv_type_signal
4071 echo "$as_me:$LINENO: checking for size_t" >&5
4072 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4073 if test "${ac_cv_type_size_t+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 cat >conftest.
$ac_ext <<_ACEOF
4079 cat confdefs.h
>>conftest.
$ac_ext
4080 cat >>conftest.
$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4088 if (sizeof (size_t))
4094 rm -f conftest.
$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>conftest.er1
4098 grep -v '^ *+' conftest.er1
>conftest.err
4100 cat conftest.err
>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } &&
4103 { ac_try
='test -z "$ac_c_werror_flag"
4104 || test ! -s conftest.err'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; } &&
4110 { ac_try
='test -s conftest.$ac_objext'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 ac_cv_type_size_t
=yes
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.
$ac_ext >&5
4121 ac_cv_type_size_t
=no
4123 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4125 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4126 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4127 if test $ac_cv_type_size_t = yes; then
4131 cat >>confdefs.h
<<_ACEOF
4132 #define size_t unsigned
4145 for ac_func
in mkstemp sigaction sigaltstack sigstack sigvec strerror tmpfile
4147 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4148 echo "$as_me:$LINENO: checking for $ac_func" >&5
4149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4150 if eval "test \"\${$as_ac_var+set}\" = set"; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 cat >conftest.
$ac_ext <<_ACEOF
4156 cat confdefs.h
>>conftest.
$ac_ext
4157 cat >>conftest.
$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4161 #define $ac_func innocuous_$ac_func
4163 /* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char $ac_func (); below.
4165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166 <limits.h> exists even on freestanding compilers. */
4169 # include <limits.h>
4171 # include <assert.h>
4176 /* Override any gcc2 internal prototype to avoid an error. */
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4184 /* The GNU C library defines this for functions which it implements
4185 to always fail with ENOSYS. Some functions are actually named
4186 something starting with __ and the normal name is an alias. */
4187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4190 char (*f) () = $ac_func;
4199 return f != $ac_func;
4204 rm -f conftest.
$ac_objext conftest
$ac_exeext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206 (eval $ac_link) 2>conftest.er1
4208 grep -v '^ *+' conftest.er1
>conftest.err
4210 cat conftest.err
>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try
='test -z "$ac_c_werror_flag"
4214 || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try
='test -s conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 eval "$as_ac_var=yes"
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.
$ac_ext >&5
4231 eval "$as_ac_var=no"
4233 rm -f conftest.err conftest.
$ac_objext \
4234 conftest
$ac_exeext conftest.
$ac_ext
4236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4238 if test `eval echo '${'$as_ac_var'}'` = yes; then
4239 cat >>confdefs.h
<<_ACEOF
4240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4246 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4247 # for constant arguments. Useless!
4248 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4249 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4250 if test "${ac_cv_working_alloca_h+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 cat >conftest.
$ac_ext <<_ACEOF
4256 cat confdefs.h
>>conftest.
$ac_ext
4257 cat >>conftest.
$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4263 char *p = (char *) alloca (2 * sizeof (int));
4268 rm -f conftest.
$ac_objext conftest
$ac_exeext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270 (eval $ac_link) 2>conftest.er1
4272 grep -v '^ *+' conftest.er1
>conftest.err
4274 cat conftest.err
>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try
='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try
='test -s conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_working_alloca_h
=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.
$ac_ext >&5
4295 ac_cv_working_alloca_h
=no
4297 rm -f conftest.err conftest.
$ac_objext \
4298 conftest
$ac_exeext conftest.
$ac_ext
4300 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4301 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4302 if test $ac_cv_working_alloca_h = yes; then
4304 cat >>confdefs.h
<<\_ACEOF
4305 #define HAVE_ALLOCA_H 1
4310 echo "$as_me:$LINENO: checking for alloca" >&5
4311 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4312 if test "${ac_cv_func_alloca_works+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 cat >conftest.
$ac_ext <<_ACEOF
4318 cat confdefs.h
>>conftest.
$ac_ext
4319 cat >>conftest.
$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4322 # define alloca __builtin_alloca
4325 # include <malloc.h>
4326 # define alloca _alloca
4329 # include <alloca.h>
4334 # ifndef alloca /* predefined by HP cc +Olibcalls */
4345 char *p = (char *) alloca (1);
4350 rm -f conftest.
$ac_objext conftest
$ac_exeext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352 (eval $ac_link) 2>conftest.er1
4354 grep -v '^ *+' conftest.er1
>conftest.err
4356 cat conftest.err
>&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try
='test -z "$ac_c_werror_flag"
4360 || test ! -s conftest.err'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try
='test -s conftest$ac_exeext'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 ac_cv_func_alloca_works
=yes
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.
$ac_ext >&5
4377 ac_cv_func_alloca_works
=no
4379 rm -f conftest.err conftest.
$ac_objext \
4380 conftest
$ac_exeext conftest.
$ac_ext
4382 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4383 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4385 if test $ac_cv_func_alloca_works = yes; then
4387 cat >>confdefs.h
<<\_ACEOF
4388 #define HAVE_ALLOCA 1
4392 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4393 # that cause trouble. Some versions do not even contain alloca or
4394 # contain a buggy version. If you still want to use their alloca,
4395 # use ar to extract alloca.o from them instead of compiling alloca.c.
4397 ALLOCA
=alloca.
$ac_objext
4399 cat >>confdefs.h
<<\_ACEOF
4404 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4405 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4406 if test "${ac_cv_os_cray+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 cat >conftest.
$ac_ext <<_ACEOF
4412 cat confdefs.h
>>conftest.
$ac_ext
4413 cat >>conftest.
$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #if defined(CRAY) && ! defined(CRAY2)
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "webecray" >/dev
/null
2>&1; then
4431 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4432 echo "${ECHO_T}$ac_cv_os_cray" >&6
4433 if test $ac_cv_os_cray = yes; then
4434 for ac_func
in _getb67 GETB67 getb67
; do
4435 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4436 echo "$as_me:$LINENO: checking for $ac_func" >&5
4437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4438 if eval "test \"\${$as_ac_var+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 cat >conftest.
$ac_ext <<_ACEOF
4444 cat confdefs.h
>>conftest.
$ac_ext
4445 cat >>conftest.
$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4449 #define $ac_func innocuous_$ac_func
4451 /* System header to define __stub macros and hopefully few prototypes,
4452 which can conflict with char $ac_func (); below.
4453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454 <limits.h> exists even on freestanding compilers. */
4457 # include <limits.h>
4459 # include <assert.h>
4464 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4472 /* The GNU C library defines this for functions which it implements
4473 to always fail with ENOSYS. Some functions are actually named
4474 something starting with __ and the normal name is an alias. */
4475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4478 char (*f) () = $ac_func;
4487 return f != $ac_func;
4492 rm -f conftest.
$ac_objext conftest
$ac_exeext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4494 (eval $ac_link) 2>conftest.er1
4496 grep -v '^ *+' conftest.er1
>conftest.err
4498 cat conftest.err
>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try
='test -z "$ac_c_werror_flag"
4502 || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try
='test -s conftest$ac_exeext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 eval "$as_ac_var=yes"
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.
$ac_ext >&5
4519 eval "$as_ac_var=no"
4521 rm -f conftest.err conftest.
$ac_objext \
4522 conftest
$ac_exeext conftest.
$ac_ext
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4526 if test `eval echo '${'$as_ac_var'}'` = yes; then
4528 cat >>confdefs.h
<<_ACEOF
4529 #define CRAY_STACKSEG_END $ac_func
4538 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4539 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4540 if test "${ac_cv_c_stack_direction+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 if test "$cross_compiling" = yes; then
4544 ac_cv_c_stack_direction
=0
4546 cat >conftest.
$ac_ext <<_ACEOF
4549 cat confdefs.h
>>conftest.
$ac_ext
4550 cat >>conftest.
$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4553 find_stack_direction ()
4555 static char *addr = 0;
4560 return find_stack_direction ();
4563 return (&dummy > addr) ? 1 : -1;
4569 exit (find_stack_direction () < 0);
4572 rm -f conftest
$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 ac_cv_c_stack_direction
=1
4585 echo "$as_me: program exited with status $ac_status" >&5
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.
$ac_ext >&5
4590 ac_cv_c_stack_direction
=-1
4592 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4595 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4596 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4598 cat >>confdefs.h
<<_ACEOF
4599 #define STACK_DIRECTION $ac_cv_c_stack_direction
4606 for ac_func
in vprintf
4608 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4609 echo "$as_me:$LINENO: checking for $ac_func" >&5
4610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4611 if eval "test \"\${$as_ac_var+set}\" = set"; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 cat >conftest.
$ac_ext <<_ACEOF
4617 cat confdefs.h
>>conftest.
$ac_ext
4618 cat >>conftest.
$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4622 #define $ac_func innocuous_$ac_func
4624 /* System header to define __stub macros and hopefully few prototypes,
4625 which can conflict with char $ac_func (); below.
4626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4627 <limits.h> exists even on freestanding compilers. */
4630 # include <limits.h>
4632 # include <assert.h>
4637 /* Override any gcc2 internal prototype to avoid an error. */
4642 /* We use char because int might match the return type of a gcc2
4643 builtin and then its argument prototype would still apply. */
4645 /* The GNU C library defines this for functions which it implements
4646 to always fail with ENOSYS. Some functions are actually named
4647 something starting with __ and the normal name is an alias. */
4648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4651 char (*f) () = $ac_func;
4660 return f != $ac_func;
4665 rm -f conftest.
$ac_objext conftest
$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>conftest.er1
4669 grep -v '^ *+' conftest.er1
>conftest.err
4671 cat conftest.err
>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try
='test -z "$ac_c_werror_flag"
4675 || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try
='test -s conftest$ac_exeext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 eval "$as_ac_var=yes"
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.
$ac_ext >&5
4692 eval "$as_ac_var=no"
4694 rm -f conftest.err conftest.
$ac_objext \
4695 conftest
$ac_exeext conftest.
$ac_ext
4697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4699 if test `eval echo '${'$as_ac_var'}'` = yes; then
4700 cat >>confdefs.h
<<_ACEOF
4701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4704 echo "$as_me:$LINENO: checking for _doprnt" >&5
4705 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4706 if test "${ac_cv_func__doprnt+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 cat >conftest.
$ac_ext <<_ACEOF
4712 cat confdefs.h
>>conftest.
$ac_ext
4713 cat >>conftest.
$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4717 #define _doprnt innocuous__doprnt
4719 /* System header to define __stub macros and hopefully few prototypes,
4720 which can conflict with char _doprnt (); below.
4721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4722 <limits.h> exists even on freestanding compilers. */
4725 # include <limits.h>
4727 # include <assert.h>
4732 /* Override any gcc2 internal prototype to avoid an error. */
4737 /* We use char because int might match the return type of a gcc2
4738 builtin and then its argument prototype would still apply. */
4740 /* The GNU C library defines this for functions which it implements
4741 to always fail with ENOSYS. Some functions are actually named
4742 something starting with __ and the normal name is an alias. */
4743 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4746 char (*f) () = _doprnt;
4755 return f != _doprnt;
4760 rm -f conftest.
$ac_objext conftest
$ac_exeext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762 (eval $ac_link) 2>conftest.er1
4764 grep -v '^ *+' conftest.er1
>conftest.err
4766 cat conftest.err
>&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try
='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try
='test -s conftest$ac_exeext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_func__doprnt
=yes
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.
$ac_ext >&5
4787 ac_cv_func__doprnt
=no
4789 rm -f conftest.err conftest.
$ac_objext \
4790 conftest
$ac_exeext conftest.
$ac_ext
4792 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4793 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4794 if test $ac_cv_func__doprnt = yes; then
4796 cat >>confdefs.h
<<\_ACEOF
4797 #define HAVE_DOPRNT 1
4807 for ac_func
in strtol
4809 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4810 echo "$as_me:$LINENO: checking for $ac_func" >&5
4811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4812 if eval "test \"\${$as_ac_var+set}\" = set"; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 cat >conftest.
$ac_ext <<_ACEOF
4818 cat confdefs.h
>>conftest.
$ac_ext
4819 cat >>conftest.
$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4823 #define $ac_func innocuous_$ac_func
4825 /* System header to define __stub macros and hopefully few prototypes,
4826 which can conflict with char $ac_func (); below.
4827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828 <limits.h> exists even on freestanding compilers. */
4831 # include <limits.h>
4833 # include <assert.h>
4838 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4852 char (*f) () = $ac_func;
4861 return f != $ac_func;
4866 rm -f conftest.
$ac_objext conftest
$ac_exeext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4868 (eval $ac_link) 2>conftest.er1
4870 grep -v '^ *+' conftest.er1
>conftest.err
4872 cat conftest.err
>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try
='test -z "$ac_c_werror_flag"
4876 || test ! -s conftest.err'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try
='test -s conftest$ac_exeext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 eval "$as_ac_var=yes"
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.
$ac_ext >&5
4893 eval "$as_ac_var=no"
4895 rm -f conftest.err conftest.
$ac_objext \
4896 conftest
$ac_exeext conftest.
$ac_ext
4898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4900 if test `eval echo '${'$as_ac_var'}'` = yes; then
4901 cat >>confdefs.h
<<_ACEOF
4902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4907 "$ac_func.$ac_objext" | \
4908 *" $ac_func.$ac_objext" | \
4909 "$ac_func.$ac_objext "* | \
4910 *" $ac_func.$ac_objext "* ) ;;
4911 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
4920 echo "$as_me:$LINENO: checking ecvt declaration" >&5
4921 echo $ECHO_N "checking ecvt declaration... $ECHO_C" >&6
4922 cat >conftest.
$ac_ext <<_ACEOF
4925 cat confdefs.h
>>conftest.
$ac_ext
4926 cat >>conftest.
$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4932 $EGREP "ecvt" >/dev
/null
2>&1; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934 echo "${ECHO_T}yes" >&6
4936 cat >>confdefs.h
<<\_ACEOF
4937 #define HAVE_EFGCVT 2
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6;
4946 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4947 echo "$as_me:$LINENO: checking for $ac_func" >&5
4948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4949 if eval "test \"\${$as_ac_var+set}\" = set"; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 cat >conftest.
$ac_ext <<_ACEOF
4955 cat confdefs.h
>>conftest.
$ac_ext
4956 cat >>conftest.
$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4960 #define $ac_func innocuous_$ac_func
4962 /* System header to define __stub macros and hopefully few prototypes,
4963 which can conflict with char $ac_func (); below.
4964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965 <limits.h> exists even on freestanding compilers. */
4968 # include <limits.h>
4970 # include <assert.h>
4975 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4983 /* The GNU C library defines this for functions which it implements
4984 to always fail with ENOSYS. Some functions are actually named
4985 something starting with __ and the normal name is an alias. */
4986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4989 char (*f) () = $ac_func;
4998 return f != $ac_func;
5003 rm -f conftest.
$ac_objext conftest
$ac_exeext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>conftest.er1
5007 grep -v '^ *+' conftest.er1
>conftest.err
5009 cat conftest.err
>&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try
='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try
='test -s conftest$ac_exeext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 eval "$as_ac_var=yes"
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.
$ac_ext >&5
5030 eval "$as_ac_var=no"
5032 rm -f conftest.err conftest.
$ac_objext \
5033 conftest
$ac_exeext conftest.
$ac_ext
5035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5037 if test `eval echo '${'$as_ac_var'}'` = yes; then
5038 cat >>confdefs.h
<<_ACEOF
5039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5050 echo "$as_me:$LINENO: checking if stack overflow is detectable" >&5
5051 echo $ECHO_N "checking if stack overflow is detectable... $ECHO_C" >&6
5052 # Code from Jim Avera <jima@netcom.com>.
5053 # stackovf.c requires:
5054 # 1. Either sigaction with SA_ONSTACK, or sigvec with SV_ONSTACK
5055 # 2. Either sigaltstack or sigstack
5056 # 3. getrlimit, including support for RLIMIT_STACK
5058 if test "$ac_cv_func_sigaction" = yes ||
test "$ac_cv_func_sigvec" = yes; then
5059 if test "$ac_cv_func_sigaltstack" = yes ||
test "$ac_cv_func_sigstack" = yes; then
5060 cat >conftest.
$ac_ext <<_ACEOF
5063 cat confdefs.h
>>conftest.
$ac_ext
5064 cat >>conftest.
$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 #include <sys/time.h>
5067 #include <sys/resource.h>
5072 struct rlimit r; int i; getrlimit (RLIMIT_STACK, &r)
5073 #if (!defined(HAVE_SIGACTION) || !defined(SA_ONSTACK)) \
5074 && (!defined(HAVE_SIGVEC) || !defined(SV_ONSTACK))
5075 choke me /* SA_ONSTACK and/or SV_ONSTACK are not defined */
5081 rm -f conftest.
$ac_objext conftest
$ac_exeext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083 (eval $ac_link) 2>conftest.er1
5085 grep -v '^ *+' conftest.er1
>conftest.err
5087 cat conftest.err
>&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try
='test -z "$ac_c_werror_flag"
5091 || test ! -s conftest.err'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try
='test -s conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.
$ac_ext >&5
5109 rm -f conftest.err conftest.
$ac_objext \
5110 conftest
$ac_exeext conftest.
$ac_ext
5113 echo "$as_me:$LINENO: result: $use_stackovf" >&5
5114 echo "${ECHO_T}$use_stackovf" >&6
5115 if test "$use_stackovf" = yes; then
5117 cat >>confdefs.h
<<\_ACEOF
5118 #define USE_STACKOVF 1
5121 STACKOVF
=stackovf.
${U}o
5123 cat >conftest.
$ac_ext <<_ACEOF
5126 cat confdefs.h
>>conftest.
$ac_ext
5127 cat >>conftest.
$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 #include <sys/resource.h>
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133 $EGREP "rlim_t" >/dev
/null
2>&1; then
5137 cat >>confdefs.h
<<\_ACEOF
5145 cat >conftest.
$ac_ext <<_ACEOF
5148 cat confdefs.h
>>conftest.
$ac_ext
5149 cat >>conftest.
$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155 $EGREP "stack_t" >/dev
/null
2>&1; then
5159 cat >>confdefs.h
<<\_ACEOF
5160 #define stack_t struct sigaltstack
5167 cat >conftest.
$ac_ext <<_ACEOF
5170 cat confdefs.h
>>conftest.
$ac_ext
5171 cat >>conftest.
$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5177 $EGREP "sigcontext" >/dev
/null
2>&1; then
5179 cat >>confdefs.h
<<\_ACEOF
5180 #define HAVE_SIGCONTEXT 1
5189 echo "$as_me:$LINENO: checking if changeword is wanted" >&5
5190 echo $ECHO_N "checking if changeword is wanted... $ECHO_C" >&6
5191 # Check whether --enable-changeword or --disable-changeword was given.
5192 if test "${enable_changeword+set}" = set; then
5193 enableval
="$enable_changeword"
5194 if test "$enableval" = yes; then
5195 echo "$as_me:$LINENO: result: yes" >&5
5196 echo "${ECHO_T}yes" >&6
5198 cat >>confdefs.h
<<\_ACEOF
5199 #define ENABLE_CHANGEWORD 1
5203 echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6
5207 echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6
5211 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
5212 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
5214 # Check whether --with-dmalloc or --without-dmalloc was given.
5215 if test "${with_dmalloc+set}" = set; then
5216 withval
="$with_dmalloc"
5217 if test "$withval" = yes; then
5218 echo "$as_me:$LINENO: result: yes" >&5
5219 echo "${ECHO_T}yes" >&6
5221 cat >>confdefs.h
<<\_ACEOF
5222 #define WITH_DMALLOC 1
5225 LIBS
="$LIBS -ldmalloc"
5226 LDFLAGS
="$LDFLAGS -g"
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5232 echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5236 ac_config_files
="$ac_config_files stamp-h"
5239 ac_config_files
="$ac_config_files Makefile doc/Makefile lib/Makefile src/Makefile checks/Makefile examples/Makefile"
5242 cat >confcache
<<\_ACEOF
5243 # This file is a shell script that caches the results of configure
5244 # tests run on this system so they can be shared between configure
5245 # scripts and configure runs, see configure's option --config-cache.
5246 # It is not useful on other systems. If it contains results you don't
5247 # want to keep, you may remove or edit it.
5249 # config.status only pays attention to the cache file if you give it
5250 # the --recheck option to rerun configure.
5252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5258 # The following way of writing the cache mishandles newlines in values,
5259 # but we know of no workaround that is simple, portable, and efficient.
5260 # So, don't put newlines in cache variables' values.
5261 # Ultrix sh set writes to stderr and can't be redirected directly,
5262 # and sets the high bit in the cache file unless we assign to the vars.
5265 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5267 # `set' does not quote correctly, so add quotes (double-quote
5268 # substitution turns \\\\ into \\, and sed turns \\ into \).
5271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5274 # `set' quotes correctly as required by POSIX, so do not add quotes.
5276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5285 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5287 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5288 if test -w $cache_file; then
5289 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5290 cat confcache
>$cache_file
5292 echo "not updating unwritable cache $cache_file"
5297 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5298 # Let make expand exec_prefix.
5299 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5301 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5302 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5303 # trailing colons and then remove the whole line if VPATH becomes empty
5304 # (actually we leave an empty line to preserve line numbers).
5305 if test "x$srcdir" = x.
; then
5306 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5307 s/:*\$(srcdir):*/:/;
5308 s/:*\${srcdir}:*/:/;
5310 s/^\([^=]*=[ ]*\):*/\1/;
5316 DEFS
=-DHAVE_CONFIG_H
5320 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5321 # 1. Remove the extension, and $U if already installed.
5322 ac_i
=`echo "$ac_i" |
5323 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5325 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
5326 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
5330 LTLIBOBJS
=$ac_ltlibobjs
5334 : ${CONFIG_STATUS=./config.status}
5335 ac_clean_files_save
=$ac_clean_files
5336 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5337 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5339 cat >$CONFIG_STATUS <<_ACEOF
5341 # Generated by $as_me.
5342 # Run this file to recreate the current configuration.
5343 # Compiler output produced by configure, useful for debugging
5344 # configure, is in config.log if it exists.
5349 SHELL=\${CONFIG_SHELL-$SHELL}
5352 cat >>$CONFIG_STATUS <<\_ACEOF
5353 ## --------------------- ##
5354 ## M4sh Initialization. ##
5355 ## --------------------- ##
5357 # Be Bourne compatible
5358 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
5361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5362 # is contrary to our usage. Disable this feature.
5363 alias -g '${1+"$@"}'='"$@"'
5364 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
5367 DUALCASE
=1; export DUALCASE
# for MKS sh
5369 # Support unset when possible.
5370 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5377 # Work around bugs in pre-3.0 UWIN ksh.
5378 $as_unset ENV MAIL MAILPATH
5385 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5386 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5387 LC_TELEPHONE LC_TIME
5389 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5390 eval $as_var=C
; export $as_var
5396 # Required to use basename.
5397 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5403 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
5404 as_basename
=basename
5410 # Name of the executable.
5411 as_me
=`$as_basename "$0" ||
5412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5413 X"$0" : 'X\(//\)$' \| \
5414 X"$0" : 'X\(/\)$' \| \
5415 . : '\(.\)' 2>/dev/null ||
5417 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5418 /^X\/\(\/\/\)$/{ s//\1/; q; }
5419 /^X\/\(\/\).*/{ s//\1/; q; }
5423 # PATH needs CR, and LINENO needs CR and PATH.
5424 # Avoid depending upon Character Ranges.
5425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5428 as_cr_digits
='0123456789'
5429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5431 # The user is always right.
5432 if test "${PATH_SEPARATOR+set}" != set; then
5433 echo "#! /bin/sh" >conf$$.sh
5434 echo "exit 0" >>conf$$.sh
5436 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5447 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
5448 test "x$as_lineno_1" != "x$as_lineno_2" &&
5449 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
5450 # Find who we are. Look in the path if we contain no path at all
5453 *[\\/]* ) as_myself
=$0 ;;
5454 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5458 test -z "$as_dir" && as_dir
=.
5459 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
5464 # We did not find ourselves, most probably we were run as `sh COMMAND'
5465 # in which case we are not to be found in the path.
5466 if test "x$as_myself" = x
; then
5469 if test ! -f "$as_myself"; then
5470 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5471 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5472 { (exit 1); exit 1; }; }
5474 case $CONFIG_SHELL in
5476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5477 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
5480 test -z "$as_dir" && as_dir
=.
5481 for as_base
in sh bash ksh sh5
; do
5484 if ("$as_dir/$as_base" -c '
5487 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5488 test "x$as_lineno_1" != "x$as_lineno_2" &&
5489 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
5490 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
5491 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
5492 CONFIG_SHELL
=$as_dir/$as_base
5494 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5502 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5503 # uniformly replaced by the line number. The first 'sed' inserts a
5504 # line-number line before each line; the second 'sed' does the real
5505 # work. The second script uses 'N' to pair each line-number line
5506 # with the numbered line, and appends trailing '-' during
5507 # substitution so that $LINENO is not a special case at line end.
5508 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5509 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5510 sed '=' <$as_myself |
5515 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5518 s,^['$as_cr_digits']*\n,,
5520 chmod +x
$as_me.lineno ||
5521 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5522 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5523 { (exit 1); exit 1; }; }
5525 # Don't try to exec as it changes $[0], causing all sort of problems
5526 # (the dirname of $[0] is not the place where we might find the
5527 # original and so on. Autoconf is especially sensible to this).
5529 # Exit status is that of the last command.
5534 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5535 *c
*,-n*) ECHO_N
= ECHO_C
='
5537 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
5538 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
5541 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5547 rm -f conf$$ conf$$.exe conf$$.
file
5549 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5550 # We could just check for DJGPP; but this test a) works b) is more generic
5551 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5552 if test -f conf$$.exe
; then
5553 # Don't use ln at all; we don't have any links
5558 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5563 rm -f conf$$ conf$$.exe conf$$.
file
5565 if mkdir
-p .
2>/dev
/null
; then
5568 test -d .
/-p && rmdir .
/-p
5572 as_executable_p
="test -f"
5574 # Sed expression to map a string onto a valid CPP name.
5575 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5577 # Sed expression to map a string onto a valid variable name.
5578 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5582 # We need space, tab and new line, in precisely that order.
5592 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5593 # report actual input values of CONFIG_FILES etc. instead of their
5594 # values after options handling. Logging --version etc. is OK.
5598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5599 ## Running $as_me. ##
5604 This file was extended by GNU M4 $as_me 1.4.2a, which was
5605 generated by GNU Autoconf 2.59. Invocation command line was
5607 CONFIG_FILES = $CONFIG_FILES
5608 CONFIG_HEADERS = $CONFIG_HEADERS
5609 CONFIG_LINKS = $CONFIG_LINKS
5610 CONFIG_COMMANDS = $CONFIG_COMMANDS
5614 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5618 # Files that config.status was made for.
5619 if test -n "$ac_config_files"; then
5620 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5623 if test -n "$ac_config_headers"; then
5624 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5627 if test -n "$ac_config_links"; then
5628 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5631 if test -n "$ac_config_commands"; then
5632 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5635 cat >>$CONFIG_STATUS <<\_ACEOF
5638 \`$as_me' instantiates files from templates according to the
5639 current configuration.
5641 Usage: $0 [OPTIONS] [FILE]...
5643 -h, --help print this help, then exit
5644 -V, --version print version number, then exit
5645 -q, --quiet do not print progress messages
5646 -d, --debug don't remove temporary files
5647 --recheck update $as_me by reconfiguring in the same conditions
5648 --file=FILE[:TEMPLATE]
5649 instantiate the configuration file FILE
5650 --header=FILE[:TEMPLATE]
5651 instantiate the configuration header FILE
5653 Configuration files:
5656 Configuration headers:
5659 Report bugs to <bug-autoconf@gnu.org>."
5662 cat >>$CONFIG_STATUS <<_ACEOF
5664 GNU M4 config.status 1.4.2a
5665 configured by $0, generated by GNU Autoconf 2.59,
5666 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5668 Copyright (C) 2003 Free Software Foundation, Inc.
5669 This config.status script is free software; the Free Software Foundation
5670 gives unlimited permission to copy, distribute and modify it."
5675 cat >>$CONFIG_STATUS <<\_ACEOF
5676 # If no file are specified by the user, then we need to provide default
5677 # value. By we need to know if files were specified by the user.
5683 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5684 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5692 *) # This is not an option, so the user has probably given explicit
5695 ac_need_defaults
=false
;;
5699 # Handling of the options.
5701 cat >>$CONFIG_STATUS <<\_ACEOF
5702 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5704 --version |
--vers* |
-V )
5705 echo "$ac_cs_version"; exit 0 ;;
5707 # Conflict between --help and --header
5708 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5709 Try \`$0 --help' for more information." >&5
5710 echo "$as_me: error: ambiguous option: $1
5711 Try \`$0 --help' for more information." >&2;}
5712 { (exit 1); exit 1; }; };;
5713 --help |
--hel |
-h )
5714 echo "$ac_cs_usage"; exit 0 ;;
5715 --debug |
--d* |
-d )
5717 --file |
--fil |
--fi |
--f )
5719 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
5720 ac_need_defaults
=false
;;
5721 --header |
--heade |
--head |
--hea )
5723 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
5724 ac_need_defaults
=false
;;
5725 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5726 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5730 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5731 Try \`$0 --help' for more information." >&5
5732 echo "$as_me: error: unrecognized option: $1
5733 Try \`$0 --help' for more information." >&2;}
5734 { (exit 1); exit 1; }; } ;;
5736 *) ac_config_targets
="$ac_config_targets $1" ;;
5742 ac_configure_extra_args
=
5744 if $ac_cs_silent; then
5746 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5750 cat >>$CONFIG_STATUS <<_ACEOF
5751 if \$ac_cs_recheck; then
5752 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5753 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5762 cat >>$CONFIG_STATUS <<\_ACEOF
5763 for ac_config_target
in $ac_config_targets
5765 case "$ac_config_target" in
5766 # Handling of arguments.
5767 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
5768 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5769 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
5770 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
5771 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
5772 "checks/Makefile" ) CONFIG_FILES
="$CONFIG_FILES checks/Makefile" ;;
5773 "examples/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
5774 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config-h.in" ;;
5775 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5777 { (exit 1); exit 1; }; };;
5781 # If the user did not use the arguments to specify the items to instantiate,
5782 # then the envvar interface is used. Set only those that are not.
5783 # We use the long form for the default assignment because of an extremely
5784 # bizarre bug on SunOS 4.1.3.
5785 if $ac_need_defaults; then
5786 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5787 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5790 # Have a temporary directory for convenience. Make it in the build tree
5791 # simply because there is no reason to put it here, and in addition,
5792 # creating and moving files from /tmp can sometimes cause problems.
5793 # Create a temporary directory, and hook for its removal unless debugging.
5796 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5797 trap '{ (exit 1); exit 1; }' 1 2 13 15
5800 # Create a (secure) tmp directory for tmp files.
5803 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5804 test -n "$tmp" && test -d "$tmp"
5807 tmp
=.
/confstat$$
-$RANDOM
5808 (umask 077 && mkdir
$tmp)
5811 echo "$me: cannot create a temporary directory in ." >&2
5812 { (exit 1); exit 1; }
5817 cat >>$CONFIG_STATUS <<_ACEOF
5820 # CONFIG_FILES section.
5823 # No need to generate the scripts if there are no CONFIG_FILES.
5824 # This happens for instance when ./config.status config.h
5825 if test -n "\$CONFIG_FILES"; then
5826 # Protect against being on the right side of a sed subst in config.status.
5827 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5828 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5829 s,@SHELL@,$SHELL,;t t
5830 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5831 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5832 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5833 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5834 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5835 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5836 s,@exec_prefix@,$exec_prefix,;t t
5837 s,@prefix@,$prefix,;t t
5838 s,@program_transform_name@,$program_transform_name,;t t
5839 s,@bindir@,$bindir,;t t
5840 s,@sbindir@,$sbindir,;t t
5841 s,@libexecdir@,$libexecdir,;t t
5842 s,@datadir@,$datadir,;t t
5843 s,@sysconfdir@,$sysconfdir,;t t
5844 s,@sharedstatedir@,$sharedstatedir,;t t
5845 s,@localstatedir@,$localstatedir,;t t
5846 s,@libdir@,$libdir,;t t
5847 s,@includedir@,$includedir,;t t
5848 s,@oldincludedir@,$oldincludedir,;t t
5849 s,@infodir@,$infodir,;t t
5850 s,@mandir@,$mandir,;t t
5851 s,@build_alias@,$build_alias,;t t
5852 s,@host_alias@,$host_alias,;t t
5853 s,@target_alias@,$target_alias,;t t
5855 s,@ECHO_C@,$ECHO_C,;t t
5856 s,@ECHO_N@,$ECHO_N,;t t
5857 s,@ECHO_T@,$ECHO_T,;t t
5859 s,@PACKAGE@,$PACKAGE,;t t
5860 s,@VERSION@,$VERSION,;t t
5863 s,@CFLAGS@,$CFLAGS,;t t
5864 s,@LDFLAGS@,$LDFLAGS,;t t
5865 s,@CPPFLAGS@,$CPPFLAGS,;t t
5866 s,@ac_ct_CC@,$ac_ct_CC,;t t
5867 s,@EXEEXT@,$EXEEXT,;t t
5868 s,@OBJEXT@,$OBJEXT,;t t
5869 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5870 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5871 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5872 s,@SET_MAKE@,$SET_MAKE,;t t
5873 s,@RANLIB@,$RANLIB,;t t
5874 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5876 s,@EGREP@,$EGREP,;t t
5878 s,@ANSI2KNR@,$ANSI2KNR,;t t
5879 s,@ALLOCA@,$ALLOCA,;t t
5880 s,@LIBOBJS@,$LIBOBJS,;t t
5881 s,@STACKOVF@,$STACKOVF,;t t
5882 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5887 cat >>$CONFIG_STATUS <<\_ACEOF
5888 # Split the substitutions into bite-sized pieces for seds with
5889 # small command number limits, like on Digital OSF/1 and HP-UX.
5891 ac_sed_frag
=1 # Number of current file.
5892 ac_beg
=1 # First line for current file.
5893 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5896 while $ac_more_lines; do
5897 if test $ac_beg -gt 1; then
5898 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5900 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5902 if test ! -s $tmp/subs.frag
; then
5905 # The purpose of the label and of the branching condition is to
5906 # speed up the sed processing (if there are no `@' at all, there
5907 # is no need to browse any of the substitutions).
5908 # These are the two extra sed commands mentioned above.
5910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5911 if test -z "$ac_sed_cmds"; then
5912 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5914 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5916 ac_sed_frag
=`expr $ac_sed_frag + 1`
5918 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5921 if test -z "$ac_sed_cmds"; then
5924 fi # test -n "$CONFIG_FILES"
5927 cat >>$CONFIG_STATUS <<\_ACEOF
5928 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5931 - |
*:- |
*:-:* ) # input from stdin
5933 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5934 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5935 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5936 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5937 * ) ac_file_in
=$ac_file.
in ;;
5940 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5941 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5943 X"$ac_file" : 'X\(//\)[^/]' \| \
5944 X"$ac_file" : 'X\(//\)$' \| \
5945 X"$ac_file" : 'X\(/\)' \| \
5946 . : '\(.\)' 2>/dev/null ||
5948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5950 /^X\(\/\/\)$/{ s//\1/; q; }
5951 /^X\(\/\).*/{ s//\1/; q; }
5953 { if $as_mkdir_p; then
5958 while test ! -d "$as_dir"; do
5959 as_dirs
="$as_dir $as_dirs"
5960 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5962 X"$as_dir" : 'X\(//\)[^/]' \| \
5963 X"$as_dir" : 'X\(//\)$' \| \
5964 X"$as_dir" : 'X\(/\)' \| \
5965 . : '\(.\)' 2>/dev/null ||
5967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5969 /^X\(\/\/\)$/{ s//\1/; q; }
5970 /^X\(\/\).*/{ s//\1/; q; }
5973 test ! -n "$as_dirs" || mkdir
$as_dirs
5974 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5976 { (exit 1); exit 1; }; }; }
5980 if test "$ac_dir" != .
; then
5981 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5982 # A "../" for each directory in $ac_dir_suffix.
5983 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5985 ac_dir_suffix
= ac_top_builddir
=
5989 .
) # No --srcdir option. We are building in place.
5991 if test -z "$ac_top_builddir"; then
5994 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5996 [\\/]* | ?
:[\\/]* ) # Absolute path.
5997 ac_srcdir
=$srcdir$ac_dir_suffix;
5998 ac_top_srcdir
=$srcdir ;;
6000 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6001 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6004 # Do not use `cd foo && pwd` to compute absolute paths, because
6005 # the directories may not exist.
6007 .
) ac_abs_builddir
="$ac_dir";;
6010 .
) ac_abs_builddir
=`pwd`;;
6011 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
6012 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
6015 case $ac_abs_builddir in
6016 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6018 case ${ac_top_builddir}.
in
6019 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6020 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6021 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6024 case $ac_abs_builddir in
6025 .
) ac_abs_srcdir
=$ac_srcdir;;
6028 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6029 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6030 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6033 case $ac_abs_builddir in
6034 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6036 case $ac_top_srcdir in
6037 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6038 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6039 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6045 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6046 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
6049 if test x
"$ac_file" != x-
; then
6050 { echo "$as_me:$LINENO: creating $ac_file" >&5
6051 echo "$as_me: creating $ac_file" >&6;}
6054 # Let's still pretend it is `configure' which instantiates (i.e., don't
6055 # use $as_me), people would be surprised to read:
6056 # /* config.h. Generated by config.status. */
6057 if test x
"$ac_file" = x-
; then
6060 configure_input
="$ac_file. "
6062 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6063 sed 's,.*/,,'` by configure."
6065 # First look for the input files in the build tree, otherwise in the
6067 ac_file_inputs
=`IFS=:
6068 for f in $ac_file_in; do
6070 -) echo $tmp/stdin ;;
6072 # Absolute (can't be DOS-style, as IFS=:)
6073 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6074 echo "$as_me: error: cannot find input file: $f" >&2;}
6075 { (exit 1); exit 1; }; }
6078 if test -f "$f"; then
6081 elif test -f "$srcdir/$f"; then
6086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6087 echo "$as_me: error: cannot find input file: $f" >&2;}
6088 { (exit 1); exit 1; }; }
6091 done` ||
{ (exit 1); exit 1; }
6093 cat >>$CONFIG_STATUS <<_ACEOF
6097 cat >>$CONFIG_STATUS <<\_ACEOF
6099 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6100 s
,@configure_input@
,$configure_input,;t t
6101 s
,@srcdir@
,$ac_srcdir,;t t
6102 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6103 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6104 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6105 s
,@builddir@
,$ac_builddir,;t t
6106 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6107 s
,@top_builddir@
,$ac_top_builddir,;t t
6108 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6109 s
,@INSTALL@
,$ac_INSTALL,;t t
6110 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6112 if test x"$ac_file" != x-; then
6113 mv $tmp/out $ac_file
6119 # Run the commands associated with the file.
6121 stamp-h ) test -z "$CONFIG_HEADERS" || date > stamp-h ;;
6125 cat >>$CONFIG_STATUS <<\_ACEOF
6128 # CONFIG_HEADER section.
6131 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6132 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6134 # ac_d sets the value in "#define NAME VALUE" lines.
6135 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6136 ac_dB
='[ ].*$,\1#\2'
6139 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6140 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6141 ac_uB
='$,\1#\2define\3'
6145 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6146 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6148 - |
*:- |
*:-:* ) # input from stdin
6150 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6151 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6152 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6153 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6154 * ) ac_file_in
=$ac_file.
in ;;
6157 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6158 echo "$as_me: creating $ac_file" >&6;}
6160 # First look for the input files in the build tree, otherwise in the
6162 ac_file_inputs
=`IFS=:
6163 for f in $ac_file_in; do
6165 -) echo $tmp/stdin ;;
6167 # Absolute (can't be DOS-style, as IFS=:)
6168 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6169 echo "$as_me: error: cannot find input file: $f" >&2;}
6170 { (exit 1); exit 1; }; }
6171 # Do quote $f, to prevent DOS paths from being IFS'd.
6174 if test -f "$f"; then
6177 elif test -f "$srcdir/$f"; then
6182 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6183 echo "$as_me: error: cannot find input file: $f" >&2;}
6184 { (exit 1); exit 1; }; }
6187 done` ||
{ (exit 1); exit 1; }
6188 # Remove the trailing spaces.
6189 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6193 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6194 # `conftest.undefs', that substitutes the proper values into
6195 # config.h.in to produce config.h. The first handles `#define'
6196 # templates, and the second `#undef' templates.
6197 # And first: Protect against being on the right side of a sed subst in
6198 # config.status. Protect against being in an unquoted here document
6200 rm -f conftest.defines conftest.undefs
6201 # Using a here document instead of a string reduces the quoting nightmare.
6202 # Putting comments in sed scripts is not portable.
6204 # `end' is used to avoid that the second main sed command (meant for
6205 # 0-ary CPP macros) applies to n-ary macro definitions.
6206 # See the Autoconf documentation for `clear'.
6207 cat >confdef2sed.
sed <<\_ACEOF
6212 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6214 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6217 # If some macros were called several times there might be several times
6218 # the same #defines, which is useless. Nevertheless, we may not want to
6219 # sort them, since we want the *last* AC-DEFINE to be honored.
6220 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6221 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6222 rm -f confdef2sed.sed
6224 # This sed command replaces #undef with comments. This is necessary, for
6225 # example, in the case of _POSIX_SOURCE, which is predefined and required
6226 # on some systems where configure will not decide to define it.
6227 cat >>conftest.undefs <<\_ACEOF
6228 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6231 # Break up conftest.defines because some shells have a limit on the size
6232 # of here documents, and old seds have small limits too (100 cmds).
6233 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6234 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6235 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6236 echo ' :' >>$CONFIG_STATUS
6238 while grep . conftest.defines >/dev/null
6240 # Write a limited-size here document to $tmp/defines.sed.
6241 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6242 # Speed up: don't consider the non `#define' lines.
6243 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6244 # Work around the forget-to-reset-the-flag bug.
6245 echo 't clr' >>$CONFIG_STATUS
6246 echo ': clr' >>$CONFIG_STATUS
6247 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
6249 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6253 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6254 rm -f conftest.defines
6255 mv conftest.
tail conftest.defines
6257 rm -f conftest.defines
6258 echo ' fi # grep' >>$CONFIG_STATUS
6259 echo >>$CONFIG_STATUS
6261 # Break up conftest.undefs because some shells have a limit on the size
6262 # of here documents, and old seds have small limits too (100 cmds).
6263 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6265 while grep . conftest.undefs
>/dev
/null
6267 # Write a limited-size here document to $tmp/undefs.sed.
6268 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6269 # Speed up: don't consider the non
`#undef'
6270 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6271 # Work around the forget-to-reset-the-flag bug.
6272 echo 't clr' >>$CONFIG_STATUS
6273 echo ': clr' >>$CONFIG_STATUS
6274 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6276 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6280 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6281 rm -f conftest.undefs
6282 mv conftest.tail conftest.undefs
6284 rm -f conftest.undefs
6286 cat >>$CONFIG_STATUS <<\_ACEOF
6287 # Let's still pretend it is `configure
' which instantiates (i.e., don't
6288 # use $as_me), people would be surprised to read:
6289 # /* config.h. Generated by config.status. */
6290 if test x
"$ac_file" = x-
; then
6291 echo "/* Generated by configure. */" >$tmp/config.h
6293 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6295 cat $tmp/in >>$tmp/config.h
6297 if test x
"$ac_file" != x-
; then
6298 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
6299 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6300 echo "$as_me: $ac_file is unchanged" >&6;}
6302 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6304 X"$ac_file" : 'X\(//\)[^/]' \| \
6305 X"$ac_file" : 'X\(//\)$' \| \
6306 X"$ac_file" : 'X\(/\)' \| \
6307 . : '\(.\)' 2>/dev/null ||
6309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6311 /^X\(\/\/\)$/{ s//\1/; q; }
6312 /^X\(\/\).*/{ s//\1/; q; }
6314 { if $as_mkdir_p; then
6319 while test ! -d "$as_dir"; do
6320 as_dirs
="$as_dir $as_dirs"
6321 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6323 X"$as_dir" : 'X\(//\)[^/]' \| \
6324 X"$as_dir" : 'X\(//\)$' \| \
6325 X"$as_dir" : 'X\(/\)' \| \
6326 . : '\(.\)' 2>/dev/null ||
6328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6330 /^X\(\/\/\)$/{ s//\1/; q; }
6331 /^X\(\/\).*/{ s//\1/; q; }
6334 test ! -n "$as_dirs" || mkdir
$as_dirs
6335 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6337 { (exit 1); exit 1; }; }; }
6340 mv $tmp/config.h
$ac_file
6349 cat >>$CONFIG_STATUS <<\_ACEOF
6351 { (exit 0); exit 0; }
6353 chmod +x
$CONFIG_STATUS
6354 ac_clean_files
=$ac_clean_files_save
6357 # configure is writing to config.log, and then calls config.status.
6358 # config.status does its own redirection, appending to config.log.
6359 # Unfortunately, on DOS this fails, as config.log is still kept open
6360 # by configure, so config.status won't be able to write to it; its
6361 # output is simply discarded. So we exec the FD to /dev/null,
6362 # effectively closing config.log, so it can be properly (re)opened and
6363 # appended to by config.status. When coming back to configure, we
6364 # need to make the FD available again.
6365 if test "$no_create" != yes; then
6367 ac_config_status_args
=
6368 test "$silent" = yes &&
6369 ac_config_status_args
="$ac_config_status_args --quiet"
6371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6374 # would make configure fail if this is the last instruction.
6375 $ac_cs_success ||
{ (exit 1); exit 1; }