2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-endian=endian Specify target byte endian orientation.
862 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify
host byte endian orientation.
864 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
865 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
866 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
867 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
868 --enable-sim-inline=inlines Specify
which functions should be inlined.
869 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
872 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
873 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
874 --with-included-gettext use the GNU
gettext library included here
876 Some influential environment variables
:
877 CC C compiler
command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
880 nonstandard directory
<lib dir
>
881 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
882 headers
in a nonstandard directory
<include dir
>
885 Use these variables to override the choices made by
`configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
903 ac_dir_suffix= ac_top_builddir=
907 .) # No --srcdir option. We are building in place.
909 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 # Do not use `cd foo
&& pwd` to compute absolute paths, because
923 # the directories may not exist.
925 .) ac_abs_builddir="$ac_dir";;
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
1007 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1008 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1009 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1010 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1011 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1013 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1014 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1016 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1017 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1018 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1019 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1020 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1021 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1022 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_must_keep_next=false
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 -* ) ac_must_keep_next=true ;;
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close
' the trap.
1102 trap 'exit_status
=$?
1103 # Save into config.log some information that might help in debugging.
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1113 # The following way of writing the cache mishandles newlines in values,
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1136 for ac_var
in $ac_subst_vars
1138 eval ac_val
=$
`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -n "$ac_subst_files"; then
1150 for ac_var
in $ac_subst_files
1152 eval ac_val
=$
`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -s confdefs.h
; then
1165 sed "/^$/d" confdefs.h |
sort
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1172 rm -f core
*.core
&&
1173 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 # Predefined preprocessor variables.
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's
/^
/|
/' "$ac_site_file" >&5
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1248 # Check that the precious variables saved in the cache have kept the same
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1261 ac_cache_corrupted=: ;;
1263 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1270 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1295 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1302 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324 # Make sure we can run config.sub.
1325 $ac_config_sub sun4 >/dev/null 2>&1 ||
1326 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1327 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1328 { (exit 1); exit 1; }; }
1330 echo "$as_me:$LINENO: checking build system type" >&5
1331 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1332 if test "${ac_cv_build+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 ac_cv_build_alias=$build_alias
1336 test -z "$ac_cv_build_alias" &&
1337 ac_cv_build_alias=`$ac_config_guess`
1338 test -z "$ac_cv_build_alias" &&
1339 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1340 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1341 { (exit 1); exit 1; }; }
1342 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1343 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1344 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1345 { (exit 1); exit 1; }; }
1348 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1349 echo "${ECHO_T}$ac_cv_build" >&6
1351 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1352 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1353 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1356 echo "$as_me:$LINENO: checking host system type" >&5
1357 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1358 if test "${ac_cv_host+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 ac_cv_host_alias=$host_alias
1362 test -z "$ac_cv_host_alias" &&
1363 ac_cv_host_alias=$ac_cv_build_alias
1364 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1370 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1371 echo "${ECHO_T}$ac_cv_host" >&6
1373 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1374 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1375 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1378 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1379 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1380 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y
,:.
/+-,___p_
,'`
1381 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 cat >conftest.make <<\_ACEOF
1386 @echo 'ac_maketemp
="$(MAKE)"'
1388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1389 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1390 if test -n "$ac_maketemp"; then
1391 eval ac_cv_prog_make_${ac_make}_set=yes
1393 eval ac_cv_prog_make_${ac_make}_set=no
1397 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1398 echo "$as_me:$LINENO: result: yes" >&5
1399 echo "${ECHO_T}yes" >&6
1402 echo "$as_me:$LINENO: result: no" >&5
1403 echo "${ECHO_T}no" >&6
1404 SET_MAKE="MAKE=${MAKE-make}"
1408 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1409 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1410 if test "${ac_cv_search_strerror+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_func_search_save_LIBS=$LIBS
1414 ac_cv_search_strerror=no
1415 cat >conftest.$ac_ext <<_ACEOF
1418 cat confdefs.h >>conftest.$ac_ext
1419 cat >>conftest.$ac_ext <<_ACEOF
1420 /* end confdefs.h. */
1422 /* Override any gcc2 internal prototype to avoid an error. */
1426 /* We use char because int might match the return type of a gcc2
1427 builtin and then its argument prototype would still apply. */
1437 rm -f conftest.$ac_objext conftest$ac_exeext
1438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1439 (eval $ac_link) 2>conftest.er1
1441 grep -v '^
*+' conftest.er1 >conftest.err
1443 cat conftest.err >&5
1444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1445 (exit $ac_status); } &&
1446 { ac_try='test -z "$ac_c_werror_flag"
1447 ||
test ! -s conftest.err
'
1448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1452 (exit $ac_status); }; } &&
1453 { ac_try='test -s conftest
$ac_exeext'
1454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1458 (exit $ac_status); }; }; then
1459 ac_cv_search_strerror="none required"
1461 echo "$as_me: failed program was:" >&5
1462 sed 's
/^
/|
/' conftest.$ac_ext >&5
1465 rm -f conftest.err conftest.$ac_objext \
1466 conftest$ac_exeext conftest.$ac_ext
1467 if test "$ac_cv_search_strerror" = no; then
1468 for ac_lib in cposix; do
1469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1470 cat >conftest.$ac_ext <<_ACEOF
1473 cat confdefs.h >>conftest.$ac_ext
1474 cat >>conftest.$ac_ext <<_ACEOF
1475 /* end confdefs.h. */
1477 /* Override any gcc2 internal prototype to avoid an error. */
1481 /* We use char because int might match the return type of a gcc2
1482 builtin and then its argument prototype would still apply. */
1492 rm -f conftest.$ac_objext conftest$ac_exeext
1493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1494 (eval $ac_link) 2>conftest.er1
1496 grep -v '^
*+' conftest.er1 >conftest.err
1498 cat conftest.err >&5
1499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1500 (exit $ac_status); } &&
1501 { ac_try='test -z "$ac_c_werror_flag"
1502 ||
test ! -s conftest.err
'
1503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1507 (exit $ac_status); }; } &&
1508 { ac_try='test -s conftest
$ac_exeext'
1509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1513 (exit $ac_status); }; }; then
1514 ac_cv_search_strerror="-l$ac_lib"
1517 echo "$as_me: failed program was:" >&5
1518 sed 's
/^
/|
/' conftest.$ac_ext >&5
1521 rm -f conftest.err conftest.$ac_objext \
1522 conftest$ac_exeext conftest.$ac_ext
1525 LIBS=$ac_func_search_save_LIBS
1527 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1528 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1529 if test "$ac_cv_search_strerror" != no; then
1530 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1537 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1540 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1541 # On Suns, sometimes $CPP names a directory.
1542 if test -n "$CPP" && test -d "$CPP"; then
1545 if test -z "$CPP"; then
1546 if test "${ac_cv_prog_CPP+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 # Double quotes because CPP needs to be expanded
1550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1553 for ac_c_preproc_warn_flag in '' yes
1555 # Use a header file that comes with gcc, so configuring glibc
1556 # with a fresh cross-compiler works.
1557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1558 # <limits.h> exists even on freestanding compilers.
1559 # On the NeXT, cc -E runs the code through the compiler's parser
,
1560 # not just through cpp. "Syntax error" is here to catch this case.
1561 cat >conftest.
$ac_ext <<_ACEOF
1564 cat confdefs.h
>>conftest.
$ac_ext
1565 cat >>conftest.
$ac_ext <<_ACEOF
1566 /* end confdefs.h. */
1568 # include <limits.h>
1570 # include <assert.h>
1574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1575 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1577 grep -v '^ *+' conftest.er1
>conftest.err
1579 cat conftest.err
>&5
1580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1581 (exit $ac_status); } >/dev
/null
; then
1582 if test -s conftest.err
; then
1583 ac_cpp_err
=$ac_c_preproc_warn_flag
1584 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
1591 if test -z "$ac_cpp_err"; then
1594 echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.
$ac_ext >&5
1597 # Broken: fails on valid input.
1600 rm -f conftest.err conftest.
$ac_ext
1602 # OK, works on sane cases. Now check whether non-existent headers
1603 # can be detected and how.
1604 cat >conftest.
$ac_ext <<_ACEOF
1607 cat confdefs.h
>>conftest.
$ac_ext
1608 cat >>conftest.
$ac_ext <<_ACEOF
1609 /* end confdefs.h. */
1610 #include <ac_nonexistent.h>
1612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1613 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1615 grep -v '^ *+' conftest.er1
>conftest.err
1617 cat conftest.err
>&5
1618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1619 (exit $ac_status); } >/dev
/null
; then
1620 if test -s conftest.err
; then
1621 ac_cpp_err
=$ac_c_preproc_warn_flag
1622 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
1629 if test -z "$ac_cpp_err"; then
1630 # Broken: success on invalid input.
1633 echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.
$ac_ext >&5
1636 # Passes both tests.
1640 rm -f conftest.err conftest.
$ac_ext
1643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1644 rm -f conftest.err conftest.
$ac_ext
1645 if $ac_preproc_ok; then
1657 echo "$as_me:$LINENO: result: $CPP" >&5
1658 echo "${ECHO_T}$CPP" >&6
1660 for ac_c_preproc_warn_flag
in '' yes
1662 # Use a header file that comes with gcc, so configuring glibc
1663 # with a fresh cross-compiler works.
1664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1665 # <limits.h> exists even on freestanding compilers.
1666 # On the NeXT, cc -E runs the code through the compiler's parser,
1667 # not just through cpp. "Syntax error" is here to catch this case.
1668 cat >conftest.
$ac_ext <<_ACEOF
1671 cat confdefs.h
>>conftest.
$ac_ext
1672 cat >>conftest.
$ac_ext <<_ACEOF
1673 /* end confdefs.h. */
1675 # include <limits.h>
1677 # include <assert.h>
1681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1682 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1684 grep -v '^ *+' conftest.er1
>conftest.err
1686 cat conftest.err
>&5
1687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688 (exit $ac_status); } >/dev
/null
; then
1689 if test -s conftest.err
; then
1690 ac_cpp_err
=$ac_c_preproc_warn_flag
1691 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
1698 if test -z "$ac_cpp_err"; then
1701 echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.
$ac_ext >&5
1704 # Broken: fails on valid input.
1707 rm -f conftest.err conftest.
$ac_ext
1709 # OK, works on sane cases. Now check whether non-existent headers
1710 # can be detected and how.
1711 cat >conftest.
$ac_ext <<_ACEOF
1714 cat confdefs.h
>>conftest.
$ac_ext
1715 cat >>conftest.
$ac_ext <<_ACEOF
1716 /* end confdefs.h. */
1717 #include <ac_nonexistent.h>
1719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1720 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1722 grep -v '^ *+' conftest.er1
>conftest.err
1724 cat conftest.err
>&5
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); } >/dev
/null
; then
1727 if test -s conftest.err
; then
1728 ac_cpp_err
=$ac_c_preproc_warn_flag
1729 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
1736 if test -z "$ac_cpp_err"; then
1737 # Broken: success on invalid input.
1740 echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.
$ac_ext >&5
1743 # Passes both tests.
1747 rm -f conftest.err conftest.
$ac_ext
1750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1751 rm -f conftest.err conftest.
$ac_ext
1752 if $ac_preproc_ok; then
1755 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1756 See \`config.log' for more details." >&5
1757 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1758 See \`config.log' for more details." >&2;}
1759 { (exit 1); exit 1; }; }
1763 ac_cpp
='$CPP $CPPFLAGS'
1764 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1769 echo "$as_me:$LINENO: checking for egrep" >&5
1770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1771 if test "${ac_cv_prog_egrep+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
1775 then ac_cv_prog_egrep
='grep -E'
1776 else ac_cv_prog_egrep
='egrep'
1779 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1780 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1781 EGREP
=$ac_cv_prog_egrep
1784 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1785 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1786 if test "${ac_cv_header_stdc+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 cat >conftest.
$ac_ext <<_ACEOF
1792 cat confdefs.h
>>conftest.
$ac_ext
1793 cat >>conftest.
$ac_ext <<_ACEOF
1794 /* end confdefs.h. */
1808 rm -f conftest.
$ac_objext
1809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1810 (eval $ac_compile) 2>conftest.er1
1812 grep -v '^ *+' conftest.er1
>conftest.err
1814 cat conftest.err
>&5
1815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 (exit $ac_status); } &&
1817 { ac_try
='test -z "$ac_c_werror_flag"
1818 || test ! -s conftest.err'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; } &&
1824 { ac_try
='test -s conftest.$ac_objext'
1825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }; }; then
1830 ac_cv_header_stdc
=yes
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.
$ac_ext >&5
1835 ac_cv_header_stdc
=no
1837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1839 if test $ac_cv_header_stdc = yes; then
1840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1841 cat >conftest.
$ac_ext <<_ACEOF
1844 cat confdefs.h
>>conftest.
$ac_ext
1845 cat >>conftest.
$ac_ext <<_ACEOF
1846 /* end confdefs.h. */
1850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1851 $EGREP "memchr" >/dev
/null
2>&1; then
1854 ac_cv_header_stdc
=no
1860 if test $ac_cv_header_stdc = yes; then
1861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1862 cat >conftest.
$ac_ext <<_ACEOF
1865 cat confdefs.h
>>conftest.
$ac_ext
1866 cat >>conftest.
$ac_ext <<_ACEOF
1867 /* end confdefs.h. */
1871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1872 $EGREP "free" >/dev
/null
2>&1; then
1875 ac_cv_header_stdc
=no
1881 if test $ac_cv_header_stdc = yes; then
1882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1883 if test "$cross_compiling" = yes; then
1886 cat >conftest.
$ac_ext <<_ACEOF
1889 cat confdefs.h
>>conftest.
$ac_ext
1890 cat >>conftest.
$ac_ext <<_ACEOF
1891 /* end confdefs.h. */
1893 #if ((' ' & 0x0FF) == 0x020)
1894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1897 # define ISLOWER(c) \
1898 (('a' <= (c) && (c) <= 'i') \
1899 || ('j' <= (c) && (c) <= 'r') \
1900 || ('s' <= (c) && (c) <= 'z'))
1901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1909 for (i = 0; i < 256; i++)
1910 if (XOR (islower (i), ISLOWER (i))
1911 || toupper (i) != TOUPPER (i))
1916 rm -f conftest
$ac_exeext
1917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918 (eval $ac_link) 2>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
1922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; }; then
1929 echo "$as_me: program exited with status $ac_status" >&5
1930 echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.
$ac_ext >&5
1934 ac_cv_header_stdc
=no
1936 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
1940 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1941 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1942 if test $ac_cv_header_stdc = yes; then
1944 cat >>confdefs.h
<<\_ACEOF
1945 #define STDC_HEADERS 1
1950 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1951 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1952 if test "${ac_cv_c_const+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 cat >conftest.
$ac_ext <<_ACEOF
1958 cat confdefs.h
>>conftest.
$ac_ext
1959 cat >>conftest.
$ac_ext <<_ACEOF
1960 /* end confdefs.h. */
1965 /* FIXME: Include the comments suggested by Paul. */
1967 /* Ultrix mips cc rejects this. */
1968 typedef int charset[2];
1970 /* SunOS 4.1.1 cc rejects this. */
1971 char const *const *ccp;
1973 /* NEC SVR4.0.2 mips cc rejects this. */
1974 struct point {int x, y;};
1975 static struct point const zero = {0,0};
1976 /* AIX XL C 1.02.0.0 rejects this.
1977 It does not let you subtract one const X* pointer from another in
1978 an arm of an if-expression whose if-part is not a constant
1980 const char *g = "string";
1981 ccp = &g + (g ? g-g : 0);
1982 /* HPUX 7.0 cc rejects these. */
1985 ccp = (char const *const *) p;
1986 { /* SCO 3.2v4 cc rejects this. */
1988 char const *s = 0 ? (char *) 0 : (char const *) 0;
1992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1994 const int *foo = &x[0];
1997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1998 typedef const int *iptr;
2002 { /* AIX XL C 1.02.0.0 rejects this saying
2003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2004 struct s { int j; const int *ap[3]; };
2005 struct s *b; b->j = 5;
2007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2016 rm -f conftest.
$ac_objext
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>conftest.er1
2020 grep -v '^ *+' conftest.er1
>conftest.err
2022 cat conftest.err
>&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); } &&
2025 { ac_try
='test -z "$ac_c_werror_flag"
2026 || test ! -s conftest.err'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; } &&
2032 { ac_try
='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.
$ac_ext >&5
2045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2047 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2048 echo "${ECHO_T}$ac_cv_c_const" >&6
2049 if test $ac_cv_c_const = no
; then
2051 cat >>confdefs.h
<<\_ACEOF
2057 echo "$as_me:$LINENO: checking for inline" >&5
2058 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2059 if test "${ac_cv_c_inline+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 for ac_kw
in inline __inline__ __inline
; do
2064 cat >conftest.
$ac_ext <<_ACEOF
2067 cat confdefs.h
>>conftest.
$ac_ext
2068 cat >>conftest.
$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2072 static $ac_kw foo_t static_foo () {return 0; }
2073 $ac_kw foo_t foo () {return 0; }
2077 rm -f conftest.
$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>conftest.er1
2081 grep -v '^ *+' conftest.er1
>conftest.err
2083 cat conftest.err
>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try
='test -z "$ac_c_werror_flag"
2087 || test ! -s conftest.err'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; } &&
2093 { ac_try
='test -s conftest.$ac_objext'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; }; then
2099 ac_cv_c_inline
=$ac_kw; break
2101 echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.
$ac_ext >&5
2105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2109 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2110 echo "${ECHO_T}$ac_cv_c_inline" >&6
2113 case $ac_cv_c_inline in
2116 case $ac_cv_c_inline in
2118 *) ac_val
=$ac_cv_c_inline;;
2120 cat >>confdefs.h
<<_ACEOF
2122 #define inline $ac_val
2128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2138 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2139 inttypes.h stdint.h unistd.h
2141 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2142 echo "$as_me:$LINENO: checking for $ac_header" >&5
2143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 cat >conftest.
$ac_ext <<_ACEOF
2150 cat confdefs.h
>>conftest.
$ac_ext
2151 cat >>conftest.
$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2153 $ac_includes_default
2155 #include <$ac_header>
2157 rm -f conftest.
$ac_objext
2158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>conftest.er1
2161 grep -v '^ *+' conftest.er1
>conftest.err
2163 cat conftest.err
>&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try
='test -z "$ac_c_werror_flag"
2167 || test ! -s conftest.err'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; } &&
2173 { ac_try
='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 eval "$as_ac_Header=yes"
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.
$ac_ext >&5
2184 eval "$as_ac_Header=no"
2186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2191 cat >>confdefs.h
<<_ACEOF
2192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2200 echo "$as_me:$LINENO: checking for off_t" >&5
2201 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2202 if test "${ac_cv_type_off_t+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 cat >conftest.
$ac_ext <<_ACEOF
2208 cat confdefs.h
>>conftest.
$ac_ext
2209 cat >>conftest.
$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2211 $ac_includes_default
2223 rm -f conftest.
$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2227 grep -v '^ *+' conftest.er1
>conftest.err
2229 cat conftest.err
>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try
='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try
='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 ac_cv_type_off_t
=yes
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.
$ac_ext >&5
2252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2254 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2255 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2256 if test $ac_cv_type_off_t = yes; then
2260 cat >>confdefs.h
<<_ACEOF
2266 echo "$as_me:$LINENO: checking for size_t" >&5
2267 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2268 if test "${ac_cv_type_size_t+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 cat >conftest.
$ac_ext <<_ACEOF
2274 cat confdefs.h
>>conftest.
$ac_ext
2275 cat >>conftest.
$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2277 $ac_includes_default
2283 if (sizeof (size_t))
2289 rm -f conftest.
$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>conftest.er1
2293 grep -v '^ *+' conftest.er1
>conftest.err
2295 cat conftest.err
>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); } &&
2298 { ac_try
='test -z "$ac_c_werror_flag"
2299 || test ! -s conftest.err'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; } &&
2305 { ac_try
='test -s conftest.$ac_objext'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
2311 ac_cv_type_size_t
=yes
2313 echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.
$ac_ext >&5
2316 ac_cv_type_size_t
=no
2318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2320 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2321 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2322 if test $ac_cv_type_size_t = yes; then
2326 cat >>confdefs.h
<<_ACEOF
2327 #define size_t unsigned
2332 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2333 # for constant arguments. Useless!
2334 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2335 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2336 if test "${ac_cv_working_alloca_h+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 cat >conftest.
$ac_ext <<_ACEOF
2342 cat confdefs.h
>>conftest.
$ac_ext
2343 cat >>conftest.
$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2349 char *p = (char *) alloca (2 * sizeof (int));
2354 rm -f conftest.
$ac_objext conftest
$ac_exeext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2356 (eval $ac_link) 2>conftest.er1
2358 grep -v '^ *+' conftest.er1
>conftest.err
2360 cat conftest.err
>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try
='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try
='test -s conftest$ac_exeext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_working_alloca_h
=yes
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.
$ac_ext >&5
2381 ac_cv_working_alloca_h
=no
2383 rm -f conftest.err conftest.
$ac_objext \
2384 conftest
$ac_exeext conftest.
$ac_ext
2386 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2387 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2388 if test $ac_cv_working_alloca_h = yes; then
2390 cat >>confdefs.h
<<\_ACEOF
2391 #define HAVE_ALLOCA_H 1
2396 echo "$as_me:$LINENO: checking for alloca" >&5
2397 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2398 if test "${ac_cv_func_alloca_works+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 cat >conftest.
$ac_ext <<_ACEOF
2404 cat confdefs.h
>>conftest.
$ac_ext
2405 cat >>conftest.
$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2408 # define alloca __builtin_alloca
2411 # include <malloc.h>
2412 # define alloca _alloca
2415 # include <alloca.h>
2420 # ifndef alloca /* predefined by HP cc +Olibcalls */
2431 char *p = (char *) alloca (1);
2436 rm -f conftest.
$ac_objext conftest
$ac_exeext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2438 (eval $ac_link) 2>conftest.er1
2440 grep -v '^ *+' conftest.er1
>conftest.err
2442 cat conftest.err
>&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } &&
2445 { ac_try
='test -z "$ac_c_werror_flag"
2446 || test ! -s conftest.err'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; } &&
2452 { ac_try
='test -s conftest$ac_exeext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 ac_cv_func_alloca_works
=yes
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.
$ac_ext >&5
2463 ac_cv_func_alloca_works
=no
2465 rm -f conftest.err conftest.
$ac_objext \
2466 conftest
$ac_exeext conftest.
$ac_ext
2468 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2469 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2471 if test $ac_cv_func_alloca_works = yes; then
2473 cat >>confdefs.h
<<\_ACEOF
2474 #define HAVE_ALLOCA 1
2478 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2479 # that cause trouble. Some versions do not even contain alloca or
2480 # contain a buggy version. If you still want to use their alloca,
2481 # use ar to extract alloca.o from them instead of compiling alloca.c.
2483 ALLOCA
=alloca.
$ac_objext
2485 cat >>confdefs.h
<<\_ACEOF
2490 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2491 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2492 if test "${ac_cv_os_cray+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 cat >conftest.
$ac_ext <<_ACEOF
2498 cat confdefs.h
>>conftest.
$ac_ext
2499 cat >>conftest.
$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2501 #if defined(CRAY) && ! defined(CRAY2)
2508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2509 $EGREP "webecray" >/dev
/null
2>&1; then
2517 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2518 echo "${ECHO_T}$ac_cv_os_cray" >&6
2519 if test $ac_cv_os_cray = yes; then
2520 for ac_func
in _getb67 GETB67 getb67
; do
2521 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2522 echo "$as_me:$LINENO: checking for $ac_func" >&5
2523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2524 if eval "test \"\${$as_ac_var+set}\" = set"; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 cat >conftest.
$ac_ext <<_ACEOF
2530 cat confdefs.h
>>conftest.
$ac_ext
2531 cat >>conftest.
$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2535 #define $ac_func innocuous_$ac_func
2537 /* System header to define __stub macros and hopefully few prototypes,
2538 which can conflict with char $ac_func (); below.
2539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2540 <limits.h> exists even on freestanding compilers. */
2543 # include <limits.h>
2545 # include <assert.h>
2550 /* Override any gcc2 internal prototype to avoid an error. */
2555 /* We use char because int might match the return type of a gcc2
2556 builtin and then its argument prototype would still apply. */
2558 /* The GNU C library defines this for functions which it implements
2559 to always fail with ENOSYS. Some functions are actually named
2560 something starting with __ and the normal name is an alias. */
2561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2564 char (*f) () = $ac_func;
2573 return f != $ac_func;
2578 rm -f conftest.
$ac_objext conftest
$ac_exeext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1
>conftest.err
2584 cat conftest.err
>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try
='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try
='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 eval "$as_ac_var=yes"
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.
$ac_ext >&5
2605 eval "$as_ac_var=no"
2607 rm -f conftest.err conftest.
$ac_objext \
2608 conftest
$ac_exeext conftest.
$ac_ext
2610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2612 if test `eval echo '${'$as_ac_var'}'` = yes; then
2614 cat >>confdefs.h
<<_ACEOF
2615 #define CRAY_STACKSEG_END $ac_func
2624 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2625 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2626 if test "${ac_cv_c_stack_direction+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 if test "$cross_compiling" = yes; then
2630 ac_cv_c_stack_direction
=0
2632 cat >conftest.
$ac_ext <<_ACEOF
2635 cat confdefs.h
>>conftest.
$ac_ext
2636 cat >>conftest.
$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2639 find_stack_direction ()
2641 static char *addr = 0;
2646 return find_stack_direction ();
2649 return (&dummy > addr) ? 1 : -1;
2655 exit (find_stack_direction () < 0);
2658 rm -f conftest
$ac_exeext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660 (eval $ac_link) 2>&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 ac_cv_c_stack_direction
=1
2671 echo "$as_me: program exited with status $ac_status" >&5
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.
$ac_ext >&5
2676 ac_cv_c_stack_direction
=-1
2678 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2681 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2682 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2684 cat >>confdefs.h
<<_ACEOF
2685 #define STACK_DIRECTION $ac_cv_c_stack_direction
2693 for ac_header
in stdlib.h unistd.h
2695 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2697 echo "$as_me:$LINENO: checking for $ac_header" >&5
2698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2705 # Is the header compilable?
2706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2708 cat >conftest.
$ac_ext <<_ACEOF
2711 cat confdefs.h
>>conftest.
$ac_ext
2712 cat >>conftest.
$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2714 $ac_includes_default
2715 #include <$ac_header>
2717 rm -f conftest.
$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1
>conftest.err
2723 cat conftest.err
>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try
='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try
='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 ac_header_compiler
=yes
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.
$ac_ext >&5
2744 ac_header_compiler
=no
2746 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2748 echo "${ECHO_T}$ac_header_compiler" >&6
2750 # Is the header present?
2751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2753 cat >conftest.
$ac_ext <<_ACEOF
2756 cat confdefs.h
>>conftest.
$ac_ext
2757 cat >>conftest.
$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2759 #include <$ac_header>
2761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2762 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2764 grep -v '^ *+' conftest.er1
>conftest.err
2766 cat conftest.err
>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } >/dev
/null
; then
2769 if test -s conftest.err
; then
2770 ac_cpp_err
=$ac_c_preproc_warn_flag
2771 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2778 if test -z "$ac_cpp_err"; then
2779 ac_header_preproc
=yes
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.
$ac_ext >&5
2784 ac_header_preproc
=no
2786 rm -f conftest.err conftest.
$ac_ext
2787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2788 echo "${ECHO_T}$ac_header_preproc" >&6
2790 # So? What about this header?
2791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2797 ac_header_preproc
=yes
2800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2814 ## ------------------------------------------ ##
2815 ## Report this to the AC_PACKAGE_NAME lists. ##
2816 ## ------------------------------------------ ##
2819 sed "s/^/$as_me: WARNING: /" >&2
2822 echo "$as_me:$LINENO: checking for $ac_header" >&5
2823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 eval "$as_ac_Header=\$ac_header_preproc"
2829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2834 cat >>confdefs.h
<<_ACEOF
2835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2843 for ac_func
in getpagesize
2845 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2846 echo "$as_me:$LINENO: checking for $ac_func" >&5
2847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2848 if eval "test \"\${$as_ac_var+set}\" = set"; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 cat >conftest.
$ac_ext <<_ACEOF
2854 cat confdefs.h
>>conftest.
$ac_ext
2855 cat >>conftest.
$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2859 #define $ac_func innocuous_$ac_func
2861 /* System header to define __stub macros and hopefully few prototypes,
2862 which can conflict with char $ac_func (); below.
2863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2864 <limits.h> exists even on freestanding compilers. */
2867 # include <limits.h>
2869 # include <assert.h>
2874 /* Override any gcc2 internal prototype to avoid an error. */
2879 /* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
2882 /* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2888 char (*f) () = $ac_func;
2897 return f != $ac_func;
2902 rm -f conftest.
$ac_objext conftest
$ac_exeext
2903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2904 (eval $ac_link) 2>conftest.er1
2906 grep -v '^ *+' conftest.er1
>conftest.err
2908 cat conftest.err
>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try
='test -z "$ac_c_werror_flag"
2912 || test ! -s conftest.err'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; } &&
2918 { ac_try
='test -s conftest$ac_exeext'
2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2924 eval "$as_ac_var=yes"
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.
$ac_ext >&5
2929 eval "$as_ac_var=no"
2931 rm -f conftest.err conftest.
$ac_objext \
2932 conftest
$ac_exeext conftest.
$ac_ext
2934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2936 if test `eval echo '${'$as_ac_var'}'` = yes; then
2937 cat >>confdefs.h
<<_ACEOF
2938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2944 echo "$as_me:$LINENO: checking for working mmap" >&5
2945 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2946 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test "$cross_compiling" = yes; then
2950 ac_cv_func_mmap_fixed_mapped
=no
2952 cat >conftest.
$ac_ext <<_ACEOF
2955 cat confdefs.h
>>conftest.
$ac_ext
2956 cat >>conftest.
$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958 $ac_includes_default
2959 /* malloc might have been renamed as rpl_malloc. */
2962 /* Thanks to Mike Haertel and Jim Avera for this test.
2963 Here is a matrix of mmap possibilities:
2964 mmap private not fixed
2965 mmap private fixed at somewhere currently unmapped
2966 mmap private fixed at somewhere already mapped
2967 mmap shared not fixed
2968 mmap shared fixed at somewhere currently unmapped
2969 mmap shared fixed at somewhere already mapped
2970 For private mappings, we should verify that changes cannot be read()
2971 back from the file, nor mmap's back from the file at a different
2972 address. (There have been systems where private was not correctly
2973 implemented like the infamous i386 svr4.0, and systems where the
2974 VM page cache was not coherent with the file system buffer cache
2975 like early versions of FreeBSD and possibly contemporary NetBSD.)
2976 For shared mappings, we should conversely verify that changes get
2977 propagated back to all the places they're supposed to be.
2979 Grep wants private fixed already mapped.
2980 The main things grep needs to know about mmap are:
2981 * does it exist and is it safe to write into the mmap'd area
2982 * how to use it (BSD variants) */
2985 #include <sys/mman.h>
2987 #if !STDC_HEADERS && !HAVE_STDLIB_H
2991 /* This mess was copied from the GNU getpagesize.h. */
2992 #if !HAVE_GETPAGESIZE
2993 /* Assume that all systems that can run configure have sys/param.h. */
2994 # if !HAVE_SYS_PARAM_H
2995 # define HAVE_SYS_PARAM_H 1
2998 # ifdef _SC_PAGESIZE
2999 # define getpagesize() sysconf(_SC_PAGESIZE)
3000 # else /* no _SC_PAGESIZE */
3001 # if HAVE_SYS_PARAM_H
3002 # include <sys/param.h>
3003 # ifdef EXEC_PAGESIZE
3004 # define getpagesize() EXEC_PAGESIZE
3005 # else /* no EXEC_PAGESIZE */
3007 # define getpagesize() NBPG * CLSIZE
3010 # endif /* no CLSIZE */
3011 # else /* no NBPG */
3013 # define getpagesize() NBPC
3014 # else /* no NBPC */
3016 # define getpagesize() PAGESIZE
3017 # endif /* PAGESIZE */
3018 # endif /* no NBPC */
3019 # endif /* no NBPG */
3020 # endif /* no EXEC_PAGESIZE */
3021 # else /* no HAVE_SYS_PARAM_H */
3022 # define getpagesize() 8192 /* punt totally */
3023 # endif /* no HAVE_SYS_PARAM_H */
3024 # endif /* no _SC_PAGESIZE */
3026 #endif /* no HAVE_GETPAGESIZE */
3031 char *data, *data2, *data3;
3035 pagesize = getpagesize ();
3037 /* First, make a file with some known garbage in it. */
3038 data = (char *) malloc (pagesize);
3041 for (i = 0; i < pagesize; ++i)
3042 *(data + i) = rand ();
3044 fd = creat ("conftest.mmap", 0600);
3047 if (write (fd, data, pagesize) != pagesize)
3051 /* Next, try to mmap the file at a fixed address which already has
3052 something else allocated at it. If we can, also make sure that
3053 we see the same garbage. */
3054 fd = open ("conftest.mmap", O_RDWR);
3057 data2 = (char *) malloc (2 * pagesize);
3060 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3061 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3062 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3064 for (i = 0; i < pagesize; ++i)
3065 if (*(data + i) != *(data2 + i))
3068 /* Finally, make sure that changes to the mapped area do not
3069 percolate back to the file as seen by read(). (This is a bug on
3070 some variants of i386 svr4.0.) */
3071 for (i = 0; i < pagesize; ++i)
3072 *(data2 + i) = *(data2 + i) + 1;
3073 data3 = (char *) malloc (pagesize);
3076 if (read (fd, data3, pagesize) != pagesize)
3078 for (i = 0; i < pagesize; ++i)
3079 if (*(data + i) != *(data3 + i))
3085 rm -f conftest
$ac_exeext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087 (eval $ac_link) 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 ac_cv_func_mmap_fixed_mapped
=yes
3098 echo "$as_me: program exited with status $ac_status" >&5
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.
$ac_ext >&5
3103 ac_cv_func_mmap_fixed_mapped
=no
3105 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3108 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3109 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3110 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3112 cat >>confdefs.h
<<\_ACEOF
3120 # autoconf.info says this should be called right after AC_INIT.
3121 ac_config_headers
="$ac_config_headers config.h:config.in"
3125 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
3126 if test -f $ac_dir/install-sh
; then
3128 ac_install_sh
="$ac_aux_dir/install-sh -c"
3130 elif test -f $ac_dir/install.sh
; then
3132 ac_install_sh
="$ac_aux_dir/install.sh -c"
3134 elif test -f $ac_dir/shtool
; then
3136 ac_install_sh
="$ac_aux_dir/shtool install -c"
3140 if test -z "$ac_aux_dir"; then
3141 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5
3142 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;}
3143 { (exit 1); exit 1; }; }
3145 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3146 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3147 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3149 echo "$as_me:$LINENO: checking target system type" >&5
3150 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3151 if test "${ac_cv_target+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 ac_cv_target_alias
=$target_alias
3155 test "x$ac_cv_target_alias" = "x" &&
3156 ac_cv_target_alias
=$ac_cv_host_alias
3157 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3158 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3159 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3160 { (exit 1); exit 1; }; }
3163 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3164 echo "${ECHO_T}$ac_cv_target" >&6
3165 target
=$ac_cv_target
3166 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3167 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3168 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3171 # The aliases save the names the user supplied, while $host etc.
3172 # will get canonicalized.
3173 test -n "$target_alias" &&
3174 test "$program_prefix$program_suffix$program_transform_name" = \
3176 program_prefix
=${target_alias}-
3177 test "$program_prefix" != NONE
&&
3178 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3179 # Use a double $ so make ignores it.
3180 test "$program_suffix" != NONE
&&
3181 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3182 # Double any \ or $. echo might interpret backslashes.
3183 # By default was `s,x,x', remove it if useless.
3184 cat <<\_ACEOF
>conftest.
sed
3185 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3187 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3191 ac_cpp
='$CPP $CPPFLAGS'
3192 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3197 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC
="$CC" # Let the user override the test.
3206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir
=.
3211 for ac_exec_ext
in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 if test -n "$CC"; then
3224 echo "$as_me:$LINENO: result: $CC" >&5
3225 echo "${ECHO_T}$CC" >&6
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3232 if test -z "$ac_cv_prog_CC"; then
3234 # Extract the first word of "gcc", so it can be a program name with args.
3235 set dummy gcc
; ac_word
=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 if test -n "$ac_ct_CC"; then
3242 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir
=.
3249 for ac_exec_ext
in '' $ac_executable_extensions; do
3250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_ac_ct_CC
="gcc"
3252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3261 if test -n "$ac_ct_CC"; then
3262 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3263 echo "${ECHO_T}$ac_ct_CC" >&6
3265 echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3274 if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3277 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC
="$CC" # Let the user override the test.
3286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir
=.
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 if test -n "$CC"; then
3304 echo "$as_me:$LINENO: result: $CC" >&5
3305 echo "${ECHO_T}$CC" >&6
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3312 if test -z "$ac_cv_prog_CC"; then
3314 # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc
; ac_word
=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir
=.
3329 for ac_exec_ext
in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC
="cc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3355 if test -z "$CC"; then
3356 # Extract the first word of "cc", so it can be a program name with args.
3357 set dummy cc
; ac_word
=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_CC+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC
="$CC" # Let the user override the test.
3367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir
=.
3372 for ac_exec_ext
in '' $ac_executable_extensions; do
3373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3375 ac_prog_rejected
=yes
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 if test $ac_prog_rejected = yes; then
3386 # We found a bogon in the path, so make sure we never use it.
3387 set dummy
$ac_cv_prog_CC
3389 if test $# != 0; then
3390 # We chose a different compiler from the bogus one.
3391 # However, it has the same basename, so the bogon will be chosen
3392 # first if we set CC to just the basename; use the full file name.
3394 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3400 if test -n "$CC"; then
3401 echo "$as_me:$LINENO: result: $CC" >&5
3402 echo "${ECHO_T}$CC" >&6
3404 echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3409 if test -z "$CC"; then
3410 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_prog_CC+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC
="$CC" # Let the user override the test.
3423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir
=.
3428 for ac_exec_ext
in '' $ac_executable_extensions; do
3429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 if test -n "$CC"; then
3441 echo "$as_me:$LINENO: result: $CC" >&5
3442 echo "${ECHO_T}$CC" >&6
3444 echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3448 test -n "$CC" && break
3451 if test -z "$CC"; then
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy
$ac_prog; ac_word
=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir
=.
3470 for ac_exec_ext
in '' $ac_executable_extensions; do
3471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_ac_ct_CC
="$ac_prog"
3473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3482 if test -n "$ac_ct_CC"; then
3483 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3484 echo "${ECHO_T}$ac_ct_CC" >&6
3486 echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3490 test -n "$ac_ct_CC" && break
3499 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3500 See \`config.log' for more details." >&5
3501 echo "$as_me: error: no acceptable C compiler found in \$PATH
3502 See \`config.log' for more details." >&2;}
3503 { (exit 1); exit 1; }; }
3505 # Provide some information about the compiler.
3506 echo "$as_me:$LINENO:" \
3507 "checking for C compiler version" >&5
3508 ac_compiler
=`set X $ac_compile; echo $2`
3509 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3510 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }
3514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3515 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }
3519 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3520 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }
3525 cat >conftest.
$ac_ext <<_ACEOF
3528 cat confdefs.h
>>conftest.
$ac_ext
3529 cat >>conftest.
$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3540 ac_clean_files_save
=$ac_clean_files
3541 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3542 # Try to create an executable without -o first, disregard a.out.
3543 # It will help us diagnose broken compilers, and finding out an intuition
3545 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3546 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3547 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3548 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3549 (eval $ac_link_default) 2>&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; then
3553 # Find the output, starting from the most likely. This scheme is
3554 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3557 # Be careful to initialize this variable, since it used to be cached.
3558 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3560 # b.out is created by i960 compilers.
3561 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3563 test -f "$ac_file" ||
continue
3565 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3568 # This is the source file.
3571 # We found the default executable, but exeext='' is most
3575 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3576 # FIXME: I believe we export ac_cv_exeext for Libtool,
3577 # but it would be cool to find out if it's true. Does anybody
3578 # maintain Libtool? --akim.
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.
$ac_ext >&5
3589 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3590 See \`config.log' for more details." >&5
3591 echo "$as_me: error: C compiler cannot create executables
3592 See \`config.log' for more details." >&2;}
3593 { (exit 77); exit 77; }; }
3596 ac_exeext
=$ac_cv_exeext
3597 echo "$as_me:$LINENO: result: $ac_file" >&5
3598 echo "${ECHO_T}$ac_file" >&6
3600 # Check the compiler produces executables we can run. If not, either
3601 # the compiler is broken, or we cross compile.
3602 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3603 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3604 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3605 # If not cross compiling, check that we can run a simple program.
3606 if test "$cross_compiling" != yes; then
3607 if { ac_try
='./$ac_file'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3615 if test "$cross_compiling" = maybe
; then
3618 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3619 If you meant to cross compile, use \`--host'.
3620 See \`config.log' for more details." >&5
3621 echo "$as_me: error: cannot run C compiled programs.
3622 If you meant to cross compile, use \`--host'.
3623 See \`config.log' for more details." >&2;}
3624 { (exit 1); exit 1; }; }
3628 echo "$as_me:$LINENO: result: yes" >&5
3629 echo "${ECHO_T}yes" >&6
3631 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3632 ac_clean_files
=$ac_clean_files_save
3633 # Check the compiler produces executables we can run. If not, either
3634 # the compiler is broken, or we cross compile.
3635 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3636 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3637 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3638 echo "${ECHO_T}$cross_compiling" >&6
3640 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3641 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643 (eval $ac_link) 2>&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; then
3647 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3648 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3649 # work properly (i.e., refer to `conftest.exe'), while it won't with
3651 for ac_file
in conftest.exe conftest conftest.
*; do
3652 test -f "$ac_file" ||
continue
3654 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3655 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3663 See \`config.log' for more details." >&5
3664 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3665 See \`config.log' for more details." >&2;}
3666 { (exit 1); exit 1; }; }
3669 rm -f conftest
$ac_cv_exeext
3670 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3671 echo "${ECHO_T}$ac_cv_exeext" >&6
3673 rm -f conftest.
$ac_ext
3674 EXEEXT
=$ac_cv_exeext
3676 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3677 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3678 if test "${ac_cv_objext+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 cat >conftest.
$ac_ext <<_ACEOF
3684 cat confdefs.h
>>conftest.
$ac_ext
3685 cat >>conftest.
$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3696 rm -f conftest.o conftest.obj
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; then
3702 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3704 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3705 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.
$ac_ext >&5
3713 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3714 See \`config.log' for more details." >&5
3715 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3716 See \`config.log' for more details." >&2;}
3717 { (exit 1); exit 1; }; }
3720 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3722 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3723 echo "${ECHO_T}$ac_cv_objext" >&6
3724 OBJEXT
=$ac_cv_objext
3726 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3727 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3728 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3749 rm -f conftest.
$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>conftest.er1
3753 grep -v '^ *+' conftest.er1
>conftest.err
3755 cat conftest.err
>&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
3758 { ac_try
='test -z "$ac_c_werror_flag"
3759 || test ! -s conftest.err'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; } &&
3765 { ac_try
='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.
$ac_ext >&5
3778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3779 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3782 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3783 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3784 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3785 ac_test_CFLAGS
=${CFLAGS+set}
3786 ac_save_CFLAGS
=$CFLAGS
3788 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3789 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3790 if test "${ac_cv_prog_cc_g+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 cat >conftest.
$ac_ext <<_ACEOF
3796 cat confdefs.h
>>conftest.
$ac_ext
3797 cat >>conftest.
$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3808 rm -f conftest.
$ac_objext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>conftest.er1
3812 grep -v '^ *+' conftest.er1
>conftest.err
3814 cat conftest.err
>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try
='test -z "$ac_c_werror_flag"
3818 || test ! -s conftest.err'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try
='test -s conftest.$ac_objext'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.
$ac_ext >&5
3837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3839 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3840 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS
=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3850 if test "$GCC" = yes; then
3856 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3857 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3858 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 ac_cv_prog_cc_stdc
=no
3863 cat >conftest.
$ac_ext <<_ACEOF
3866 cat confdefs.h
>>conftest.
$ac_ext
3867 cat >>conftest.
$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3871 #include <sys/types.h>
3872 #include <sys/stat.h>
3873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3874 struct buf { int x; };
3875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3876 static char *e (p, i)
3882 static char *f (char * (*g) (char **, int), char **p, ...)
3887 s = g (p, va_arg (v,int));
3892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3893 function prototypes and stuff, but not '\xHH' hex character constants.
3894 These don't provoke an error unfortunately, instead are silently treated
3895 as 'x'. The following induces an error, until -std1 is added to get
3896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3897 array size at least. It's necessary to write '\x00'==0 to get something
3898 that's true only with -std1. */
3899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3901 int test (int i, double x);
3902 struct s1 {int (*f) (int a);};
3903 struct s2 {int (*f) (double a);};
3904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3915 # Don't try gcc -ansi; that turns off useful extensions and
3916 # breaks some systems' header files.
3917 # AIX -qlanglvl=ansi
3918 # Ultrix and OSF/1 -std1
3919 # HP-UX 10.20 and later -Ae
3920 # HP-UX older versions -Aa -D_HPUX_SOURCE
3921 # SVR4 -Xc -D__EXTENSIONS__
3922 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924 CC
="$ac_save_CC $ac_arg"
3925 rm -f conftest.
$ac_objext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>conftest.er1
3929 grep -v '^ *+' conftest.er1
>conftest.err
3931 cat conftest.err
>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try
='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try
='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_prog_cc_stdc
=$ac_arg
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.
$ac_ext >&5
3954 rm -f conftest.err conftest.
$ac_objext
3956 rm -f conftest.
$ac_ext conftest.
$ac_objext
3961 case "x$ac_cv_prog_cc_stdc" in
3963 echo "$as_me:$LINENO: result: none needed" >&5
3964 echo "${ECHO_T}none needed" >&6 ;;
3966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3967 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3968 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3971 # Some people use a C++ compiler to compile C. Since we use `exit',
3972 # in C++ we need to declare it. In case someone uses the same compiler
3973 # for both compiling C and C++ we need to have the C++ compiler decide
3974 # the declaration of exit, since it's the most demanding environment.
3975 cat >conftest.
$ac_ext <<_ACEOF
3980 rm -f conftest.
$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>conftest.er1
3984 grep -v '^ *+' conftest.er1
>conftest.err
3986 cat conftest.err
>&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try
='test -z "$ac_c_werror_flag"
3990 || test ! -s conftest.err'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; } &&
3996 { ac_try
='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 for ac_declaration
in \
4004 'extern "C" void std::exit (int) throw (); using std::exit;' \
4005 'extern "C" void std::exit (int); using std::exit;' \
4006 'extern "C" void exit (int) throw ();' \
4007 'extern "C" void exit (int);' \
4010 cat >conftest.
$ac_ext <<_ACEOF
4013 cat confdefs.h
>>conftest.
$ac_ext
4014 cat >>conftest.
$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4026 rm -f conftest.
$ac_objext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>conftest.er1
4030 grep -v '^ *+' conftest.er1
>conftest.err
4032 cat conftest.err
>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try
='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try
='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.
$ac_ext >&5
4055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4056 cat >conftest.
$ac_ext <<_ACEOF
4059 cat confdefs.h
>>conftest.
$ac_ext
4060 cat >>conftest.
$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4071 rm -f conftest.
$ac_objext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4075 grep -v '^ *+' conftest.er1
>conftest.err
4077 cat conftest.err
>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try
='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try
='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.
$ac_ext >&5
4099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4102 if test -n "$ac_declaration"; then
4103 echo '#ifdef __cplusplus' >>confdefs.h
4104 echo $ac_declaration >>confdefs.h
4105 echo '#endif' >>confdefs.h
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.
$ac_ext >&5
4113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4115 ac_cpp
='$CPP $CPPFLAGS'
4116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4120 # Find a good install program. We prefer a C program (faster),
4121 # so one script is as good as another. But avoid the broken or
4122 # incompatible versions:
4123 # SysV /etc/install, /usr/sbin/install
4124 # SunOS /usr/etc/install
4125 # IRIX /sbin/install
4127 # AmigaOS /C/install, which installs bootblocks on floppy discs
4128 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4129 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4130 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4131 # OS/2's system install, which has a completely different semantic
4132 # ./install, which can be erroneously created by make from ./install.sh.
4133 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4134 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4135 if test -z "$INSTALL"; then
4136 if test "${ac_cv_path_install+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4143 test -z "$as_dir" && as_dir
=.
4144 # Account for people who put trailing slashes in PATH elements.
4146 .
/ | .
// |
/cC
/* | \
4147 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4148 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4151 # OSF1 and SCO ODT 3.0 have their own names for install.
4152 # Don't use installbsd from OSF since it installs stuff as root
4154 for ac_prog
in ginstall scoinst
install; do
4155 for ac_exec_ext
in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4157 if test $ac_prog = install &&
4158 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4159 # AIX install. It has an incompatible calling convention.
4161 elif test $ac_prog = install &&
4162 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4163 # program-specific install script used by HP pwplus--don't use.
4166 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4178 if test "${ac_cv_path_install+set}" = set; then
4179 INSTALL
=$ac_cv_path_install
4181 # As a last resort, use the slow shell script. We don't cache a
4182 # path for INSTALL within a source directory, because that will
4183 # break other packages using the cache if that directory is
4184 # removed, or if the path is relative.
4185 INSTALL
=$ac_install_sh
4188 echo "$as_me:$LINENO: result: $INSTALL" >&5
4189 echo "${ECHO_T}$INSTALL" >&6
4191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4192 # It thinks the first close brace ends the variable substitution.
4193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4197 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4200 # Put a plausible default for CC_FOR_BUILD in Makefile.
4201 if test "x$cross_compiling" = "xno"; then
4202 CC_FOR_BUILD
='$(CC)'
4212 if test -n "$ac_tool_prefix"; then
4213 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4214 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_RANLIB+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test -n "$RANLIB"; then
4221 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir
=.
4228 for ac_exec_ext
in '' $ac_executable_extensions; do
4229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 RANLIB
=$ac_cv_prog_RANLIB
4240 if test -n "$RANLIB"; then
4241 echo "$as_me:$LINENO: result: $RANLIB" >&5
4242 echo "${ECHO_T}$RANLIB" >&6
4244 echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6
4249 if test -z "$ac_cv_prog_RANLIB"; then
4250 ac_ct_RANLIB
=$RANLIB
4251 # Extract the first word of "ranlib", so it can be a program name with args.
4252 set dummy ranlib
; ac_word
=$2
4253 echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test -n "$ac_ct_RANLIB"; then
4259 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir
=.
4266 for ac_exec_ext
in '' $ac_executable_extensions; do
4267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4278 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4279 if test -n "$ac_ct_RANLIB"; then
4280 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4281 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4287 RANLIB
=$ac_ct_RANLIB
4289 RANLIB
="$ac_cv_prog_RANLIB"
4304 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4305 unistd.h values.h sys
/param.h
4307 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309 echo "$as_me:$LINENO: checking for $ac_header" >&5
4310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4317 # Is the header compilable?
4318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4320 cat >conftest.
$ac_ext <<_ACEOF
4323 cat confdefs.h
>>conftest.
$ac_ext
4324 cat >>conftest.
$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4327 #include <$ac_header>
4329 rm -f conftest.
$ac_objext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>conftest.er1
4333 grep -v '^ *+' conftest.er1
>conftest.err
4335 cat conftest.err
>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try
='test -z "$ac_c_werror_flag"
4339 || test ! -s conftest.err'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; } &&
4345 { ac_try
='test -s conftest.$ac_objext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_header_compiler
=yes
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.
$ac_ext >&5
4356 ac_header_compiler
=no
4358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4360 echo "${ECHO_T}$ac_header_compiler" >&6
4362 # Is the header present?
4363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4365 cat >conftest.
$ac_ext <<_ACEOF
4368 cat confdefs.h
>>conftest.
$ac_ext
4369 cat >>conftest.
$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <$ac_header>
4373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4374 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1
>conftest.err
4378 cat conftest.err
>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } >/dev
/null
; then
4381 if test -s conftest.err
; then
4382 ac_cpp_err
=$ac_c_preproc_warn_flag
4383 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4390 if test -z "$ac_cpp_err"; then
4391 ac_header_preproc
=yes
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.
$ac_ext >&5
4396 ac_header_preproc
=no
4398 rm -f conftest.err conftest.
$ac_ext
4399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4400 echo "${ECHO_T}$ac_header_preproc" >&6
4402 # So? What about this header?
4403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4409 ac_header_preproc
=yes
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4426 ## ------------------------------------------ ##
4427 ## Report this to the AC_PACKAGE_NAME lists. ##
4428 ## ------------------------------------------ ##
4431 sed "s/^/$as_me: WARNING: /" >&2
4434 echo "$as_me:$LINENO: checking for $ac_header" >&5
4435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 eval "$as_ac_Header=\$ac_header_preproc"
4441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4446 cat >>confdefs.h
<<_ACEOF
4447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4464 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4465 __argz_count __argz_stringify __argz_next
4467 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4468 echo "$as_me:$LINENO: checking for $ac_func" >&5
4469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4470 if eval "test \"\${$as_ac_var+set}\" = set"; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 cat >conftest.
$ac_ext <<_ACEOF
4476 cat confdefs.h
>>conftest.
$ac_ext
4477 cat >>conftest.
$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4481 #define $ac_func innocuous_$ac_func
4483 /* System header to define __stub macros and hopefully few prototypes,
4484 which can conflict with char $ac_func (); below.
4485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4486 <limits.h> exists even on freestanding compilers. */
4489 # include <limits.h>
4491 # include <assert.h>
4496 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4504 /* The GNU C library defines this for functions which it implements
4505 to always fail with ENOSYS. Some functions are actually named
4506 something starting with __ and the normal name is an alias. */
4507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4510 char (*f) () = $ac_func;
4519 return f != $ac_func;
4524 rm -f conftest.
$ac_objext conftest
$ac_exeext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4526 (eval $ac_link) 2>conftest.er1
4528 grep -v '^ *+' conftest.er1
>conftest.err
4530 cat conftest.err
>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try
='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try
='test -s conftest$ac_exeext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 eval "$as_ac_var=yes"
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.
$ac_ext >&5
4551 eval "$as_ac_var=no"
4553 rm -f conftest.err conftest.
$ac_objext \
4554 conftest
$ac_exeext conftest.
$ac_ext
4556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4558 if test `eval echo '${'$as_ac_var'}'` = yes; then
4559 cat >>confdefs.h
<<_ACEOF
4560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4567 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4569 for ac_func
in stpcpy
4571 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4572 echo "$as_me:$LINENO: checking for $ac_func" >&5
4573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4574 if eval "test \"\${$as_ac_var+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 cat >conftest.
$ac_ext <<_ACEOF
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4585 #define $ac_func innocuous_$ac_func
4587 /* System header to define __stub macros and hopefully few prototypes,
4588 which can conflict with char $ac_func (); below.
4589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4590 <limits.h> exists even on freestanding compilers. */
4593 # include <limits.h>
4595 # include <assert.h>
4600 /* Override any gcc2 internal prototype to avoid an error. */
4605 /* We use char because int might match the return type of a gcc2
4606 builtin and then its argument prototype would still apply. */
4608 /* The GNU C library defines this for functions which it implements
4609 to always fail with ENOSYS. Some functions are actually named
4610 something starting with __ and the normal name is an alias. */
4611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4614 char (*f) () = $ac_func;
4623 return f != $ac_func;
4628 rm -f conftest.
$ac_objext conftest
$ac_exeext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630 (eval $ac_link) 2>conftest.er1
4632 grep -v '^ *+' conftest.er1
>conftest.err
4634 cat conftest.err
>&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try
='test -z "$ac_c_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try
='test -s conftest$ac_exeext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 eval "$as_ac_var=yes"
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.
$ac_ext >&5
4655 eval "$as_ac_var=no"
4657 rm -f conftest.err conftest.
$ac_objext \
4658 conftest
$ac_exeext conftest.
$ac_ext
4660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4662 if test `eval echo '${'$as_ac_var'}'` = yes; then
4663 cat >>confdefs.h
<<_ACEOF
4664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4671 if test "${ac_cv_func_stpcpy}" = "yes"; then
4672 cat >>confdefs.h
<<\_ACEOF
4673 #define HAVE_STPCPY 1
4678 if test $ac_cv_header_locale_h = yes; then
4679 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4680 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4681 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 cat >conftest.
$ac_ext <<_ACEOF
4687 cat confdefs.h
>>conftest.
$ac_ext
4688 cat >>conftest.
$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4699 rm -f conftest.
$ac_objext conftest
$ac_exeext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>conftest.er1
4703 grep -v '^ *+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try
='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try
='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 am_cv_val_LC_MESSAGES
=yes
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.
$ac_ext >&5
4726 am_cv_val_LC_MESSAGES
=no
4728 rm -f conftest.err conftest.
$ac_objext \
4729 conftest
$ac_exeext conftest.
$ac_ext
4731 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4732 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4733 if test $am_cv_val_LC_MESSAGES = yes; then
4734 cat >>confdefs.h
<<\_ACEOF
4735 #define HAVE_LC_MESSAGES 1
4740 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4741 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4742 # Check whether --enable-nls or --disable-nls was given.
4743 if test "${enable_nls+set}" = set; then
4744 enableval
="$enable_nls"
4749 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4750 echo "${ECHO_T}$USE_NLS" >&6
4753 USE_INCLUDED_LIBINTL
=no
4755 if test "$USE_NLS" = "yes"; then
4756 cat >>confdefs.h
<<\_ACEOF
4757 #define ENABLE_NLS 1
4760 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4761 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4763 # Check whether --with-included-gettext or --without-included-gettext was given.
4764 if test "${with_included_gettext+set}" = set; then
4765 withval
="$with_included_gettext"
4766 nls_cv_force_use_gnu_gettext
=$withval
4768 nls_cv_force_use_gnu_gettext
=no
4770 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4771 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4773 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4774 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4776 nls_cv_header_libgt
=
4779 if test "${ac_cv_header_libintl_h+set}" = set; then
4780 echo "$as_me:$LINENO: checking for libintl.h" >&5
4781 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4782 if test "${ac_cv_header_libintl_h+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4786 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4788 # Is the header compilable?
4789 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4790 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4791 cat >conftest.
$ac_ext <<_ACEOF
4794 cat confdefs.h
>>conftest.
$ac_ext
4795 cat >>conftest.
$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4798 #include <libintl.h>
4800 rm -f conftest.
$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4804 grep -v '^ *+' conftest.er1
>conftest.err
4806 cat conftest.err
>&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try
='test -z "$ac_c_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try
='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_header_compiler
=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.
$ac_ext >&5
4827 ac_header_compiler
=no
4829 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831 echo "${ECHO_T}$ac_header_compiler" >&6
4833 # Is the header present?
4834 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4835 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4836 cat >conftest.
$ac_ext <<_ACEOF
4839 cat confdefs.h
>>conftest.
$ac_ext
4840 cat >>conftest.
$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <libintl.h>
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4847 grep -v '^ *+' conftest.er1
>conftest.err
4849 cat conftest.err
>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev
/null
; then
4852 if test -s conftest.err
; then
4853 ac_cpp_err
=$ac_c_preproc_warn_flag
4854 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4861 if test -z "$ac_cpp_err"; then
4862 ac_header_preproc
=yes
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.
$ac_ext >&5
4867 ac_header_preproc
=no
4869 rm -f conftest.err conftest.
$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871 echo "${ECHO_T}$ac_header_preproc" >&6
4873 # So? What about this header?
4874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4876 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4877 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4879 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4880 ac_header_preproc
=yes
4883 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4884 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4886 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4888 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4890 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4892 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4894 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4897 ## ------------------------------------------ ##
4898 ## Report this to the AC_PACKAGE_NAME lists. ##
4899 ## ------------------------------------------ ##
4902 sed "s/^/$as_me: WARNING: /" >&2
4905 echo "$as_me:$LINENO: checking for libintl.h" >&5
4906 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4907 if test "${ac_cv_header_libintl_h+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 ac_cv_header_libintl_h
=$ac_header_preproc
4912 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4913 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4916 if test $ac_cv_header_libintl_h = yes; then
4917 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4918 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4919 if test "${gt_cv_func_gettext_libc+set}" = set; then
4920 echo $ECHO_N "(cached) $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. */
4928 #include <libintl.h>
4932 return (int) gettext ("")
4937 rm -f conftest.
$ac_objext conftest
$ac_exeext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4939 (eval $ac_link) 2>conftest.er1
4941 grep -v '^ *+' conftest.er1
>conftest.err
4943 cat conftest.err
>&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } &&
4946 { ac_try
='test -z "$ac_c_werror_flag"
4947 || test ! -s conftest.err'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; } &&
4953 { ac_try
='test -s conftest$ac_exeext'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4959 gt_cv_func_gettext_libc
=yes
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.
$ac_ext >&5
4964 gt_cv_func_gettext_libc
=no
4966 rm -f conftest.err conftest.
$ac_objext \
4967 conftest
$ac_exeext conftest.
$ac_ext
4969 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4970 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4972 if test "$gt_cv_func_gettext_libc" != "yes"; then
4973 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4974 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4975 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 ac_check_lib_save_LIBS
=$LIBS
4980 cat >conftest.
$ac_ext <<_ACEOF
4983 cat confdefs.h
>>conftest.
$ac_ext
4984 cat >>conftest.
$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4993 char bindtextdomain ();
5002 rm -f conftest.
$ac_objext conftest
$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1
>conftest.err
5008 cat conftest.err
>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try
='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_lib_intl_bindtextdomain
=yes
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5029 ac_cv_lib_intl_bindtextdomain
=no
5031 rm -f conftest.err conftest.
$ac_objext \
5032 conftest
$ac_exeext conftest.
$ac_ext
5033 LIBS
=$ac_check_lib_save_LIBS
5035 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5036 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5037 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5038 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5039 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5040 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 cat >conftest.
$ac_ext <<_ACEOF
5046 cat confdefs.h
>>conftest.
$ac_ext
5047 cat >>conftest.
$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5053 return (int) gettext ("")
5058 rm -f conftest.
$ac_objext conftest
$ac_exeext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060 (eval $ac_link) 2>conftest.er1
5062 grep -v '^ *+' conftest.er1
>conftest.err
5064 cat conftest.err
>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try
='test -z "$ac_c_werror_flag"
5068 || test ! -s conftest.err'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try
='test -s conftest$ac_exeext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 gt_cv_func_gettext_libintl
=yes
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.
$ac_ext >&5
5085 gt_cv_func_gettext_libintl
=no
5087 rm -f conftest.err conftest.
$ac_objext \
5088 conftest
$ac_exeext conftest.
$ac_ext
5090 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5091 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5096 if test "$gt_cv_func_gettext_libc" = "yes" \
5097 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5098 cat >>confdefs.h
<<\_ACEOF
5099 #define HAVE_GETTEXT 1
5102 # Extract the first word of "msgfmt", so it can be a program name with args.
5103 set dummy msgfmt
; ac_word
=$2
5104 echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106 if test "${ac_cv_path_MSGFMT+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5115 for ac_dir
in $PATH; do
5116 test -z "$ac_dir" && ac_dir
=.
5117 if test -f $ac_dir/$ac_word; then
5118 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5119 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5125 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5129 MSGFMT
="$ac_cv_path_MSGFMT"
5130 if test -n "$MSGFMT"; then
5131 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5132 echo "${ECHO_T}$MSGFMT" >&6
5134 echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5137 if test "$MSGFMT" != "no"; then
5139 for ac_func
in dcgettext
5141 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5142 echo "$as_me:$LINENO: checking for $ac_func" >&5
5143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5144 if eval "test \"\${$as_ac_var+set}\" = set"; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat >conftest.
$ac_ext <<_ACEOF
5150 cat confdefs.h
>>conftest.
$ac_ext
5151 cat >>conftest.
$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5155 #define $ac_func innocuous_$ac_func
5157 /* System header to define __stub macros and hopefully few prototypes,
5158 which can conflict with char $ac_func (); below.
5159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160 <limits.h> exists even on freestanding compilers. */
5163 # include <limits.h>
5165 # include <assert.h>
5170 /* Override any gcc2 internal prototype to avoid an error. */
5175 /* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */
5178 /* The GNU C library defines this for functions which it implements
5179 to always fail with ENOSYS. Some functions are actually named
5180 something starting with __ and the normal name is an alias. */
5181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5184 char (*f) () = $ac_func;
5193 return f != $ac_func;
5198 rm -f conftest.
$ac_objext conftest
$ac_exeext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200 (eval $ac_link) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1
>conftest.err
5204 cat conftest.err
>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try
='test -z "$ac_c_werror_flag"
5208 || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try
='test -s conftest$ac_exeext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 eval "$as_ac_var=yes"
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.
$ac_ext >&5
5225 eval "$as_ac_var=no"
5227 rm -f conftest.err conftest.
$ac_objext \
5228 conftest
$ac_exeext conftest.
$ac_ext
5230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5232 if test `eval echo '${'$as_ac_var'}'` = yes; then
5233 cat >>confdefs.h
<<_ACEOF
5234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5240 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5241 set dummy gmsgfmt
; ac_word
=$2
5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5270 GMSGFMT
=$ac_cv_path_GMSGFMT
5272 if test -n "$GMSGFMT"; then
5273 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5274 echo "${ECHO_T}$GMSGFMT" >&6
5276 echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6
5280 # Extract the first word of "xgettext", so it can be a program name with args.
5281 set dummy xgettext
; ac_word
=$2
5282 echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5284 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5292 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5293 for ac_dir
in $PATH; do
5294 test -z "$ac_dir" && ac_dir
=.
5295 if test -f $ac_dir/$ac_word; then
5296 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5297 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5303 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5307 XGETTEXT
="$ac_cv_path_XGETTEXT"
5308 if test -n "$XGETTEXT"; then
5309 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5310 echo "${ECHO_T}$XGETTEXT" >&6
5312 echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6
5316 cat >conftest.
$ac_ext <<_ACEOF
5319 cat confdefs.h
>>conftest.
$ac_ext
5320 cat >>conftest.
$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5326 extern int _nl_msg_cat_cntr;
5327 return _nl_msg_cat_cntr
5332 rm -f conftest.
$ac_objext conftest
$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>conftest.er1
5336 grep -v '^ *+' conftest.er1
>conftest.err
5338 cat conftest.err
>&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try
='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try
='test -s conftest$ac_exeext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.
$ac_ext >&5
5363 rm -f conftest.err conftest.
$ac_objext \
5364 conftest
$ac_exeext conftest.
$ac_ext
5374 if test "$CATOBJEXT" = "NONE"; then
5375 nls_cv_use_gnu_gettext
=yes
5379 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5380 INTLOBJS
="\$(GETTOBJS)"
5381 # Extract the first word of "msgfmt", so it can be a program name with args.
5382 set dummy msgfmt
; ac_word
=$2
5383 echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 if test "${ac_cv_path_MSGFMT+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5393 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5394 for ac_dir
in $PATH; do
5395 test -z "$ac_dir" && ac_dir
=.
5396 if test -f $ac_dir/$ac_word; then
5397 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5398 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5404 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5408 MSGFMT
="$ac_cv_path_MSGFMT"
5409 if test -n "$MSGFMT"; then
5410 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5411 echo "${ECHO_T}$MSGFMT" >&6
5413 echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5417 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5418 set dummy gmsgfmt
; ac_word
=$2
5419 echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir
=.
5434 for ac_exec_ext
in '' $ac_executable_extensions; do
5435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5447 GMSGFMT
=$ac_cv_path_GMSGFMT
5449 if test -n "$GMSGFMT"; then
5450 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5451 echo "${ECHO_T}$GMSGFMT" >&6
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5457 # Extract the first word of "xgettext", so it can be a program name with args.
5458 set dummy xgettext
; ac_word
=$2
5459 echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5469 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5470 for ac_dir
in $PATH; do
5471 test -z "$ac_dir" && ac_dir
=.
5472 if test -f $ac_dir/$ac_word; then
5473 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5474 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5480 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5484 XGETTEXT
="$ac_cv_path_XGETTEXT"
5485 if test -n "$XGETTEXT"; then
5486 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5487 echo "${ECHO_T}$XGETTEXT" >&6
5489 echo "$as_me:$LINENO: result: no" >&5
5490 echo "${ECHO_T}no" >&6
5494 USE_INCLUDED_LIBINTL
=yes
5498 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5500 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5501 nls_cv_header_intl
=libintl.h
5502 nls_cv_header_libgt
=libgettext.h
5505 if test "$XGETTEXT" != ":"; then
5506 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5509 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5510 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5515 # We need to process the po/ directory.
5519 nls_cv_header_intl
=libintl.h
5520 nls_cv_header_libgt
=libgettext.h
5523 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5524 # because some of the sources are only built for this goal.
5525 if test "$PACKAGE" = gettext; then
5527 USE_INCLUDED_LIBINTL
=yes
5530 for lang
in $ALL_LINGUAS; do
5531 GMOFILES
="$GMOFILES $lang.gmo"
5532 POFILES
="$POFILES $lang.po"
5548 if test "x$CATOBJEXT" != "x"; then
5549 if test "x$ALL_LINGUAS" = "x"; then
5552 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5553 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5555 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5556 case "$ALL_LINGUAS" in
5557 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5560 LINGUAS
=$NEW_LINGUAS
5561 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5562 echo "${ECHO_T}$LINGUAS" >&6
5565 if test -n "$LINGUAS"; then
5566 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5570 if test $ac_cv_header_locale_h = yes; then
5571 INCLUDE_LOCALE_H
="#include <locale.h>"
5574 /* The system does not provide the header <locale.h>. Take care yourself. */"
5578 if test -f $srcdir/po2tbl.
sed.
in; then
5579 if test "$CATOBJEXT" = ".cat"; then
5580 if test "${ac_cv_header_linux_version_h+set}" = set; then
5581 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5582 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5583 if test "${ac_cv_header_linux_version_h+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5587 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5589 # Is the header compilable?
5590 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5591 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5592 cat >conftest.
$ac_ext <<_ACEOF
5595 cat confdefs.h
>>conftest.
$ac_ext
5596 cat >>conftest.
$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 $ac_includes_default
5599 #include <linux/version.h>
5601 rm -f conftest.
$ac_objext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>conftest.er1
5605 grep -v '^ *+' conftest.er1
>conftest.err
5607 cat conftest.err
>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try
='test -z "$ac_c_werror_flag"
5611 || test ! -s conftest.err'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; } &&
5617 { ac_try
='test -s conftest.$ac_objext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_header_compiler
=yes
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.
$ac_ext >&5
5628 ac_header_compiler
=no
5630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5632 echo "${ECHO_T}$ac_header_compiler" >&6
5634 # Is the header present?
5635 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5636 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5637 cat >conftest.
$ac_ext <<_ACEOF
5640 cat confdefs.h
>>conftest.
$ac_ext
5641 cat >>conftest.
$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #include <linux/version.h>
5645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5646 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5648 grep -v '^ *+' conftest.er1
>conftest.err
5650 cat conftest.err
>&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev
/null
; then
5653 if test -s conftest.err
; then
5654 ac_cpp_err
=$ac_c_preproc_warn_flag
5655 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5662 if test -z "$ac_cpp_err"; then
5663 ac_header_preproc
=yes
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.
$ac_ext >&5
5668 ac_header_preproc
=no
5670 rm -f conftest.err conftest.
$ac_ext
5671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5672 echo "${ECHO_T}$ac_header_preproc" >&6
5674 # So? What about this header?
5675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5677 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5678 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5680 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5681 ac_header_preproc
=yes
5684 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5685 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5686 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5687 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5689 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5691 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5693 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5695 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5698 ## ------------------------------------------ ##
5699 ## Report this to the AC_PACKAGE_NAME lists. ##
5700 ## ------------------------------------------ ##
5703 sed "s/^/$as_me: WARNING: /" >&2
5706 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5707 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5708 if test "${ac_cv_header_linux_version_h+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 ac_cv_header_linux_version_h
=$ac_header_preproc
5713 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5714 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5717 if test $ac_cv_header_linux_version_h = yes; then
5725 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5727 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5728 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5731 if test "$PACKAGE" = "gettext"; then
5741 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5747 if test -d $srcdir/po
; then
5748 test -d po || mkdir po
5749 if test "x$srcdir" != "x."; then
5750 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5751 posrcprefix
="$srcdir/"
5753 posrcprefix
="../$srcdir/"
5759 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5760 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5764 # Check for common headers.
5765 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5766 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5772 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5776 echo "$as_me:$LINENO: checking for $ac_header" >&5
5777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5784 # Is the header compilable?
5785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5787 cat >conftest.
$ac_ext <<_ACEOF
5790 cat confdefs.h
>>conftest.
$ac_ext
5791 cat >>conftest.
$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5794 #include <$ac_header>
5796 rm -f conftest.
$ac_objext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>conftest.er1
5800 grep -v '^ *+' conftest.er1
>conftest.err
5802 cat conftest.err
>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try
='test -z "$ac_c_werror_flag"
5806 || test ! -s conftest.err'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try
='test -s conftest.$ac_objext'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5818 ac_header_compiler
=yes
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.
$ac_ext >&5
5823 ac_header_compiler
=no
5825 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5827 echo "${ECHO_T}$ac_header_compiler" >&6
5829 # Is the header present?
5830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5832 cat >conftest.
$ac_ext <<_ACEOF
5835 cat confdefs.h
>>conftest.
$ac_ext
5836 cat >>conftest.
$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #include <$ac_header>
5840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5841 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5843 grep -v '^ *+' conftest.er1
>conftest.err
5845 cat conftest.err
>&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } >/dev
/null
; then
5848 if test -s conftest.err
; then
5849 ac_cpp_err
=$ac_c_preproc_warn_flag
5850 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5857 if test -z "$ac_cpp_err"; then
5858 ac_header_preproc
=yes
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.
$ac_ext >&5
5863 ac_header_preproc
=no
5865 rm -f conftest.err conftest.
$ac_ext
5866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5867 echo "${ECHO_T}$ac_header_preproc" >&6
5869 # So? What about this header?
5870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5876 ac_header_preproc
=yes
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5893 ## ------------------------------------------ ##
5894 ## Report this to the AC_PACKAGE_NAME lists. ##
5895 ## ------------------------------------------ ##
5898 sed "s/^/$as_me: WARNING: /" >&2
5901 echo "$as_me:$LINENO: checking for $ac_header" >&5
5902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 eval "$as_ac_Header=\$ac_header_preproc"
5908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5913 cat >>confdefs.h
<<_ACEOF
5914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5923 for ac_header
in sys
/time.h sys
/resource.h
5925 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927 echo "$as_me:$LINENO: checking for $ac_header" >&5
5928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5935 # Is the header compilable?
5936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5938 cat >conftest.
$ac_ext <<_ACEOF
5941 cat confdefs.h
>>conftest.
$ac_ext
5942 cat >>conftest.
$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 $ac_includes_default
5945 #include <$ac_header>
5947 rm -f conftest.
$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5951 grep -v '^ *+' conftest.er1
>conftest.err
5953 cat conftest.err
>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try
='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try
='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_header_compiler
=yes
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.
$ac_ext >&5
5974 ac_header_compiler
=no
5976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5978 echo "${ECHO_T}$ac_header_compiler" >&6
5980 # Is the header present?
5981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5983 cat >conftest.
$ac_ext <<_ACEOF
5986 cat confdefs.h
>>conftest.
$ac_ext
5987 cat >>conftest.
$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <$ac_header>
5991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5992 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1
>conftest.err
5996 cat conftest.err
>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } >/dev
/null
; then
5999 if test -s conftest.err
; then
6000 ac_cpp_err
=$ac_c_preproc_warn_flag
6001 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6008 if test -z "$ac_cpp_err"; then
6009 ac_header_preproc
=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.
$ac_ext >&5
6014 ac_header_preproc
=no
6016 rm -f conftest.err conftest.
$ac_ext
6017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6018 echo "${ECHO_T}$ac_header_preproc" >&6
6020 # So? What about this header?
6021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6027 ac_header_preproc
=yes
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6044 ## ------------------------------------------ ##
6045 ## Report this to the AC_PACKAGE_NAME lists. ##
6046 ## ------------------------------------------ ##
6049 sed "s/^/$as_me: WARNING: /" >&2
6052 echo "$as_me:$LINENO: checking for $ac_header" >&5
6053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 eval "$as_ac_Header=\$ac_header_preproc"
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6064 cat >>confdefs.h
<<_ACEOF
6065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6074 for ac_header
in fcntl.h fpu_control.h
6076 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6078 echo "$as_me:$LINENO: checking for $ac_header" >&5
6079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6086 # Is the header compilable?
6087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6089 cat >conftest.
$ac_ext <<_ACEOF
6092 cat confdefs.h
>>conftest.
$ac_ext
6093 cat >>conftest.
$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 $ac_includes_default
6096 #include <$ac_header>
6098 rm -f conftest.
$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100 (eval $ac_compile) 2>conftest.er1
6102 grep -v '^ *+' conftest.er1
>conftest.err
6104 cat conftest.err
>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try
='test -z "$ac_c_werror_flag"
6108 || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try
='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_header_compiler
=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.
$ac_ext >&5
6125 ac_header_compiler
=no
6127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6129 echo "${ECHO_T}$ac_header_compiler" >&6
6131 # Is the header present?
6132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6134 cat >conftest.
$ac_ext <<_ACEOF
6137 cat confdefs.h
>>conftest.
$ac_ext
6138 cat >>conftest.
$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 #include <$ac_header>
6142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6143 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6145 grep -v '^ *+' conftest.er1
>conftest.err
6147 cat conftest.err
>&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } >/dev
/null
; then
6150 if test -s conftest.err
; then
6151 ac_cpp_err
=$ac_c_preproc_warn_flag
6152 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6159 if test -z "$ac_cpp_err"; then
6160 ac_header_preproc
=yes
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.
$ac_ext >&5
6165 ac_header_preproc
=no
6167 rm -f conftest.err conftest.
$ac_ext
6168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6169 echo "${ECHO_T}$ac_header_preproc" >&6
6171 # So? What about this header?
6172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6178 ac_header_preproc
=yes
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6195 ## ------------------------------------------ ##
6196 ## Report this to the AC_PACKAGE_NAME lists. ##
6197 ## ------------------------------------------ ##
6200 sed "s/^/$as_me: WARNING: /" >&2
6203 echo "$as_me:$LINENO: checking for $ac_header" >&5
6204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 eval "$as_ac_Header=\$ac_header_preproc"
6210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6215 cat >>confdefs.h
<<_ACEOF
6216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226 for ac_header
in dlfcn.h errno.h sys
/stat.h
6228 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6230 echo "$as_me:$LINENO: checking for $ac_header" >&5
6231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6238 # Is the header compilable?
6239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6241 cat >conftest.
$ac_ext <<_ACEOF
6244 cat confdefs.h
>>conftest.
$ac_ext
6245 cat >>conftest.
$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 $ac_includes_default
6248 #include <$ac_header>
6250 rm -f conftest.
$ac_objext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>conftest.er1
6254 grep -v '^ *+' conftest.er1
>conftest.err
6256 cat conftest.err
>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try
='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try
='test -s conftest.$ac_objext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 ac_header_compiler
=yes
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.
$ac_ext >&5
6277 ac_header_compiler
=no
6279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6281 echo "${ECHO_T}$ac_header_compiler" >&6
6283 # Is the header present?
6284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6286 cat >conftest.
$ac_ext <<_ACEOF
6289 cat confdefs.h
>>conftest.
$ac_ext
6290 cat >>conftest.
$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 #include <$ac_header>
6294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6295 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6297 grep -v '^ *+' conftest.er1
>conftest.err
6299 cat conftest.err
>&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } >/dev
/null
; then
6302 if test -s conftest.err
; then
6303 ac_cpp_err
=$ac_c_preproc_warn_flag
6304 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6311 if test -z "$ac_cpp_err"; then
6312 ac_header_preproc
=yes
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.
$ac_ext >&5
6317 ac_header_preproc
=no
6319 rm -f conftest.err conftest.
$ac_ext
6320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6321 echo "${ECHO_T}$ac_header_preproc" >&6
6323 # So? What about this header?
6324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6330 ac_header_preproc
=yes
6333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6347 ## ------------------------------------------ ##
6348 ## Report this to the AC_PACKAGE_NAME lists. ##
6349 ## ------------------------------------------ ##
6352 sed "s/^/$as_me: WARNING: /" >&2
6355 echo "$as_me:$LINENO: checking for $ac_header" >&5
6356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 eval "$as_ac_Header=\$ac_header_preproc"
6362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6367 cat >>confdefs.h
<<_ACEOF
6368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6379 for ac_func
in getrusage
time sigaction __setfpucw
6381 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6382 echo "$as_me:$LINENO: checking for $ac_func" >&5
6383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6384 if eval "test \"\${$as_ac_var+set}\" = set"; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 cat >conftest.
$ac_ext <<_ACEOF
6390 cat confdefs.h
>>conftest.
$ac_ext
6391 cat >>conftest.
$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6395 #define $ac_func innocuous_$ac_func
6397 /* System header to define __stub macros and hopefully few prototypes,
6398 which can conflict with char $ac_func (); below.
6399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 <limits.h> exists even on freestanding compilers. */
6403 # include <limits.h>
6405 # include <assert.h>
6410 /* Override any gcc2 internal prototype to avoid an error. */
6415 /* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6418 /* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6424 char (*f) () = $ac_func;
6433 return f != $ac_func;
6438 rm -f conftest.
$ac_objext conftest
$ac_exeext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>conftest.er1
6442 grep -v '^ *+' conftest.er1
>conftest.err
6444 cat conftest.err
>&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try
='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try
='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 eval "$as_ac_var=yes"
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.
$ac_ext >&5
6465 eval "$as_ac_var=no"
6467 rm -f conftest.err conftest.
$ac_objext \
6468 conftest
$ac_exeext conftest.
$ac_ext
6470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6472 if test `eval echo '${'$as_ac_var'}'` = yes; then
6473 cat >>confdefs.h
<<_ACEOF
6474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6481 # Check for socket libraries
6483 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6484 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6485 if test "${ac_cv_lib_socket_bind+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_check_lib_save_LIBS
=$LIBS
6489 LIBS
="-lsocket $LIBS"
6490 cat >conftest.
$ac_ext <<_ACEOF
6493 cat confdefs.h
>>conftest.
$ac_ext
6494 cat >>conftest.
$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6497 /* Override any gcc2 internal prototype to avoid an error. */
6501 /* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6512 rm -f conftest.
$ac_objext conftest
$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>conftest.er1
6516 grep -v '^ *+' conftest.er1
>conftest.err
6518 cat conftest.err
>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try
='test -z "$ac_c_werror_flag"
6522 || test ! -s conftest.err'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; } &&
6528 { ac_try
='test -s conftest$ac_exeext'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 ac_cv_lib_socket_bind
=yes
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.
$ac_ext >&5
6539 ac_cv_lib_socket_bind
=no
6541 rm -f conftest.err conftest.
$ac_objext \
6542 conftest
$ac_exeext conftest.
$ac_ext
6543 LIBS
=$ac_check_lib_save_LIBS
6545 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6546 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6547 if test $ac_cv_lib_socket_bind = yes; then
6548 cat >>confdefs.h
<<_ACEOF
6549 #define HAVE_LIBSOCKET 1
6552 LIBS
="-lsocket $LIBS"
6557 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6558 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6559 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 ac_check_lib_save_LIBS
=$LIBS
6564 cat >conftest.
$ac_ext <<_ACEOF
6567 cat confdefs.h
>>conftest.
$ac_ext
6568 cat >>conftest.
$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6571 /* Override any gcc2 internal prototype to avoid an error. */
6575 /* We use char because int might match the return type of a gcc2
6576 builtin and then its argument prototype would still apply. */
6577 char gethostbyname ();
6586 rm -f conftest.
$ac_objext conftest
$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1
>conftest.err
6592 cat conftest.err
>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try
='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try
='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_lib_nsl_gethostbyname
=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 ac_cv_lib_nsl_gethostbyname
=no
6615 rm -f conftest.err conftest.
$ac_objext \
6616 conftest
$ac_exeext conftest.
$ac_ext
6617 LIBS
=$ac_check_lib_save_LIBS
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6620 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6621 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6622 cat >>confdefs.h
<<_ACEOF
6623 #define HAVE_LIBNSL 1
6631 .
${srcdir}/..
/..
/bfd
/configure.
host
6635 USE_MAINTAINER_MODE
=no
6636 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6637 if test "${enable_maintainer_mode+set}" = set; then
6638 enableval
="$enable_maintainer_mode"
6639 case "${enableval}" in
6640 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6642 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6643 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6644 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6646 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6647 echo "Setting maintainer mode" 6>&1
6654 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6655 if test "${enable_sim_bswap+set}" = set; then
6656 enableval
="$enable_sim_bswap"
6657 case "${enableval}" in
6658 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6659 no
) sim_bswap
="-DWITH_BSWAP=0";;
6660 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6661 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6662 { (exit 1); exit 1; }; }; sim_bswap
="";;
6664 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6665 echo "Setting bswap flags = $sim_bswap" 6>&1
6672 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6673 if test "${enable_sim_cflags+set}" = set; then
6674 enableval
="$enable_sim_cflags"
6675 case "${enableval}" in
6676 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6677 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6678 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6679 { (exit 1); exit 1; }; }; sim_cflags
="";;
6681 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6683 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6684 echo "Setting sim cflags = $sim_cflags" 6>&1
6691 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6692 if test "${enable_sim_debug+set}" = set; then
6693 enableval
="$enable_sim_debug"
6694 case "${enableval}" in
6695 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6696 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6697 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6699 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6700 echo "Setting sim debug = $sim_debug" 6>&1
6707 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6708 if test "${enable_sim_stdio+set}" = set; then
6709 enableval
="$enable_sim_stdio"
6710 case "${enableval}" in
6711 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6712 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6713 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6714 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6715 { (exit 1); exit 1; }; }; sim_stdio
="";;
6717 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6718 echo "Setting stdio flags = $sim_stdio" 6>&1
6725 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6726 if test "${enable_sim_trace+set}" = set; then
6727 enableval
="$enable_sim_trace"
6728 case "${enableval}" in
6729 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6730 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6732 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6735 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6736 if test x
"$sim_trace" = x
; then
6737 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6739 sim_trace
="${sim_trace}|TRACE_$x"
6742 sim_trace
="$sim_trace)'" ;;
6744 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6745 echo "Setting sim trace = $sim_trace" 6>&1
6752 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6753 if test "${enable_sim_profile+set}" = set; then
6754 enableval
="$enable_sim_profile"
6755 case "${enableval}" in
6756 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6757 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6759 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6762 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6763 if test x
"$sim_profile" = x
; then
6764 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6766 sim_profile
="${sim_profile}|PROFILE_$x"
6769 sim_profile
="$sim_profile)'" ;;
6771 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6772 echo "Setting sim profile = $sim_profile" 6>&1
6775 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6779 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6780 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6781 if test "${ac_cv_type_signal+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 cat >conftest.
$ac_ext <<_ACEOF
6787 cat confdefs.h
>>conftest.
$ac_ext
6788 cat >>conftest.
$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 #include <sys/types.h>
6796 extern "C" void (*signal (int, void (*)(int)))(int);
6798 void (*signal ()) ();
6809 rm -f conftest.
$ac_objext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811 (eval $ac_compile) 2>conftest.er1
6813 grep -v '^ *+' conftest.er1
>conftest.err
6815 cat conftest.err
>&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try
='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try
='test -s conftest.$ac_objext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 ac_cv_type_signal
=void
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.
$ac_ext >&5
6836 ac_cv_type_signal
=int
6838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6840 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6841 echo "${ECHO_T}$ac_cv_type_signal" >&6
6843 cat >>confdefs.h
<<_ACEOF
6844 #define RETSIGTYPE $ac_cv_type_signal
6854 sim_link_links
=tconfig.h
6855 if test -f ${srcdir}/tconfig.
in
6857 sim_link_files
=tconfig.
in
6859 sim_link_files
=..
/common
/tconfig.
in
6862 # targ-vals.def points to the libc macro description file.
6864 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
6866 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
6867 sim_link_links
="${sim_link_links} targ-vals.def"
6872 wire_endian
="LITTLE_ENDIAN"
6874 # Check whether --enable-sim-endian or --disable-sim-endian was given.
6875 if test "${enable_sim_endian+set}" = set; then
6876 enableval
="$enable_sim_endian"
6877 case "${enableval}" in
6878 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
6879 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
6880 yes) if test x
"$wire_endian" != x
; then
6881 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
6883 if test x
"$default_endian" != x
; then
6884 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
6886 echo "No hard-wired endian for target $target" 1>&6
6887 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
6890 no
) if test x
"$default_endian" != x
; then
6891 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
6893 if test x
"$wire_endian" != x
; then
6894 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
6896 echo "No default endian for target $target" 1>&6
6897 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
6900 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
6901 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
6902 { (exit 1); exit 1; }; }; sim_endian
="";;
6904 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
6905 echo "Setting endian flags = $sim_endian" 6>&1
6908 if test x
"$default_endian" != x
; then
6909 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
6911 if test x
"$wire_endian" != x
; then
6912 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
6918 wire_alignment
="NONSTRICT_ALIGNMENT"
6919 default_alignment
=""
6921 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6922 if test "${enable_sim_alignment+set}" = set; then
6923 enableval
="$enable_sim_alignment"
6924 case "${enableval}" in
6925 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6926 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6927 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6928 yes) if test x
"$wire_alignment" != x
; then
6929 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
6931 if test x
"$default_alignment" != x
; then
6932 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
6934 echo "No hard-wired alignment for target $target" 1>&6
6935 sim_alignment
="-DWITH_ALIGNMENT=0"
6938 no
) if test x
"$default_alignment" != x
; then
6939 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6941 if test x
"$wire_alignment" != x
; then
6942 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6944 echo "No default alignment for target $target" 1>&6
6945 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
6948 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6949 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6950 { (exit 1); exit 1; }; }; sim_alignment
="";;
6952 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
6953 echo "Setting alignment flags = $sim_alignment" 6>&1
6956 if test x
"$default_alignment" != x
; then
6957 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6959 if test x
"$wire_alignment" != x
; then
6960 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
6967 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6968 if test "${enable_sim_hostendian+set}" = set; then
6969 enableval
="$enable_sim_hostendian"
6970 case "${enableval}" in
6971 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
6972 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6973 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6974 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6975 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6976 { (exit 1); exit 1; }; }; sim_hostendian
="";;
6978 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
6979 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6983 if test "x$cross_compiling" = "xno"; then
6984 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6985 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6986 if test "${ac_cv_c_bigendian+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 # See if sys/param.h defines the BYTE_ORDER macro.
6990 cat >conftest.
$ac_ext <<_ACEOF
6993 cat confdefs.h
>>conftest.
$ac_ext
6994 cat >>conftest.
$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996 #include <sys/types.h>
6997 #include <sys/param.h>
7002 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7010 rm -f conftest.
$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>conftest.er1
7014 grep -v '^ *+' conftest.er1
>conftest.err
7016 cat conftest.err
>&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try
='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try
='test -s conftest.$ac_objext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 # It does; now see whether it defined to BIG_ENDIAN or not.
7033 cat >conftest.
$ac_ext <<_ACEOF
7036 cat confdefs.h
>>conftest.
$ac_ext
7037 cat >>conftest.
$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <sys/types.h>
7040 #include <sys/param.h>
7045 #if BYTE_ORDER != BIG_ENDIAN
7053 rm -f conftest.
$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7057 grep -v '^ *+' conftest.er1
>conftest.err
7059 cat conftest.err
>&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try
='test -z "$ac_c_werror_flag"
7063 || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try
='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_c_bigendian
=yes
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.
$ac_ext >&5
7080 ac_cv_c_bigendian
=no
7082 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.
$ac_ext >&5
7087 # It does not; compile a test program.
7088 if test "$cross_compiling" = yes; then
7089 # try to guess the endianness by grepping values into an object file
7090 ac_cv_c_bigendian
=unknown
7091 cat >conftest.
$ac_ext <<_ACEOF
7094 cat confdefs.h
>>conftest.
$ac_ext
7095 cat >>conftest.
$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7098 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7099 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7100 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7101 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7102 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7106 _ascii (); _ebcdic ();
7111 rm -f conftest.
$ac_objext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7113 (eval $ac_compile) 2>conftest.er1
7115 grep -v '^ *+' conftest.er1
>conftest.err
7117 cat conftest.err
>&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try
='test -z "$ac_c_werror_flag"
7121 || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try
='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7134 ac_cv_c_bigendian
=yes
7136 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7137 if test "$ac_cv_c_bigendian" = unknown
; then
7138 ac_cv_c_bigendian
=no
7140 # finding both strings is unlikely to happen, but who knows?
7141 ac_cv_c_bigendian
=unknown
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.
$ac_ext >&5
7149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7151 cat >conftest.
$ac_ext <<_ACEOF
7154 cat confdefs.h
>>conftest.
$ac_ext
7155 cat >>conftest.
$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7160 /* Are we little or big endian? From Harbison&Steele. */
7164 char c[sizeof (long)];
7167 exit (u.c[sizeof (long) - 1] == 1);
7170 rm -f conftest
$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; }; then
7181 ac_cv_c_bigendian
=no
7183 echo "$as_me: program exited with status $ac_status" >&5
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.
$ac_ext >&5
7188 ac_cv_c_bigendian
=yes
7190 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7193 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7195 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7196 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7197 case $ac_cv_c_bigendian in
7200 cat >>confdefs.h
<<\_ACEOF
7201 #define WORDS_BIGENDIAN 1
7207 { { echo "$as_me:$LINENO: error: unknown endianness
7208 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7209 echo "$as_me: error: unknown endianness
7210 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7211 { (exit 1); exit 1; }; } ;;
7214 if test $ac_cv_c_bigendian = yes; then
7215 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7217 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7220 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7224 # NOTE: Don't add -Wall or -Wunused, they both include
7225 # -Wunused-parameter which reports bogus warnings.
7226 # NOTE: If you add to this list, remember to update
7227 # gdb/doc/gdbint.texinfo.
7228 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7229 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7230 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7231 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7232 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7233 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7234 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7235 # -Woverloaded-virtual -Winline -Werror"
7236 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7237 if test "${enable_build_warnings+set}" = set; then
7238 enableval
="$enable_build_warnings"
7239 case "${enableval}" in
7241 no
) build_warnings
="-w";;
7242 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7243 build_warnings
="${build_warnings} ${t}";;
7244 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7245 build_warnings
="${t} ${build_warnings}";;
7246 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7248 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7249 echo "Setting compiler warning flags = $build_warnings" 6>&1
7251 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7252 if test "${enable_sim_build_warnings+set}" = set; then
7253 enableval
="$enable_sim_build_warnings"
7254 case "${enableval}" in
7256 no
) build_warnings
="-w";;
7257 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7258 build_warnings
="${build_warnings} ${t}";;
7259 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7260 build_warnings
="${t} ${build_warnings}";;
7261 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7263 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7264 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7268 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7270 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7271 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7272 # Separate out the -Werror flag as some files just cannot be
7273 # compiled with it enabled.
7274 for w
in ${build_warnings}; do
7276 -Werr*) WERROR_CFLAGS
=-Werror ;;
7277 *) # Check that GCC accepts it
7278 saved_CFLAGS
="$CFLAGS"
7280 cat >conftest.
$ac_ext <<_ACEOF
7283 cat confdefs.h
>>conftest.
$ac_ext
7284 cat >>conftest.
$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7295 rm -f conftest.
$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>conftest.er1
7299 grep -v '^ *+' conftest.er1
>conftest.err
7301 cat conftest.err
>&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try
='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try
='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.
$ac_ext >&5
7323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7324 CFLAGS
="$saved_CFLAGS"
7327 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7328 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7332 default_sim_reserved_bits
="1"
7333 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7334 if test "${enable_sim_reserved_bits+set}" = set; then
7335 enableval
="$enable_sim_reserved_bits"
7336 case "${enableval}" in
7337 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
7338 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
7339 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7340 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7341 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
7343 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
7344 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7347 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7349 wire_word_bitsize
="32"
7351 wire_address_bitsize
=""
7352 wire_cell_bitsize
=""
7353 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7354 if test "${enable_sim_bitsize+set}" = set; then
7355 enableval
="$enable_sim_bitsize"
7357 case "${enableval}" in
7358 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7359 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7360 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7361 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7362 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7363 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7365 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7367 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7368 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7370 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7372 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7373 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7374 { (exit 1); exit 1; }; } ;;
7377 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7380 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7381 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7382 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7383 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7384 { (exit 1); exit 1; }; } ;;
7387 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7390 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7391 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7392 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7393 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7394 { (exit 1); exit 1; }; } ;;
7396 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
7397 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7401 if test x
"$wire_word_bitsize" != x
; then
7402 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7404 if test x
"$wire_word_msb" != x
; then
7405 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7407 if test x
"$wire_address_bitsize" != x
; then
7408 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7410 if test x
"$wire_cell_bitsize" != x
; then
7411 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7415 default_sim_inline
=""
7416 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7417 if test "${enable_sim_inline+set}" = set; then
7418 enableval
="$enable_sim_inline"
7420 case "$enableval" in
7421 no
) sim_inline
="-DDEFAULT_INLINE=0";;
7422 0) sim_inline
="-DDEFAULT_INLINE=0";;
7423 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
7424 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
7425 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
7428 *_INLINE
=*) new_flag
="-D$x";;
7429 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7430 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
7431 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
7433 if test x
"$sim_inline" = x
""; then
7434 sim_inline
="$new_flag"
7436 sim_inline
="$sim_inline $new_flag"
7440 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
7441 echo "Setting inline flags = $sim_inline" 6>&1
7445 if test "x$cross_compiling" = "xno"; then
7446 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
7447 sim_inline
="${default_sim_inline}"
7448 if test x
"$silent" != x
"yes"; then
7449 echo "Setting inline flags = $sim_inline" 6>&1
7455 sim_inline
="-DDEFAULT_INLINE=0"
7459 if test x
"yes" = x
"yes"; then
7465 hardware
="core pal glue"
7467 hardware
="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop"
7469 sim_hw_cflags
="-DWITH_HW=1"
7471 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7472 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7473 if test "${enable_sim_hardware+set}" = set; then
7474 enableval
="$enable_sim_hardware"
7476 case "${enableval}" in
7479 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7480 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7481 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7483 if test "$sim_hw_p" != yes; then
7485 sim_hw_cflags
="-DWITH_HW=0"
7488 sim_hw_cflags
="-DWITH_HW=1"
7491 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
7492 for i
in x
$hardware ; do
7496 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
7500 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
7501 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7505 if test "$sim_hw_p" != yes; then
7507 sim_hw_cflags
="-DWITH_HW=0"
7510 if test x
"$silent" != x
"yes"; then
7511 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7522 for ac_func
in time chmod utime fork execve execv chown
7524 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7525 echo "$as_me:$LINENO: checking for $ac_func" >&5
7526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7527 if eval "test \"\${$as_ac_var+set}\" = set"; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 cat >conftest.
$ac_ext <<_ACEOF
7533 cat confdefs.h
>>conftest.
$ac_ext
7534 cat >>conftest.
$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7538 #define $ac_func innocuous_$ac_func
7540 /* System header to define __stub macros and hopefully few prototypes,
7541 which can conflict with char $ac_func (); below.
7542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7543 <limits.h> exists even on freestanding compilers. */
7546 # include <limits.h>
7548 # include <assert.h>
7553 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7561 /* The GNU C library defines this for functions which it implements
7562 to always fail with ENOSYS. Some functions are actually named
7563 something starting with __ and the normal name is an alias. */
7564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7567 char (*f) () = $ac_func;
7576 return f != $ac_func;
7581 rm -f conftest.
$ac_objext conftest
$ac_exeext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>conftest.er1
7585 grep -v '^ *+' conftest.er1
>conftest.err
7587 cat conftest.err
>&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try
='test -z "$ac_c_werror_flag"
7591 || test ! -s conftest.err'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; } &&
7597 { ac_try
='test -s conftest$ac_exeext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 eval "$as_ac_var=yes"
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.
$ac_ext >&5
7608 eval "$as_ac_var=no"
7610 rm -f conftest.err conftest.
$ac_objext \
7611 conftest
$ac_exeext conftest.
$ac_ext
7613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7615 if test `eval echo '${'$as_ac_var'}'` = yes; then
7616 cat >>confdefs.h
<<_ACEOF
7617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7629 for ac_header
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
7631 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633 echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7641 # Is the header compilable?
7642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7644 cat >conftest.
$ac_ext <<_ACEOF
7647 cat confdefs.h
>>conftest.
$ac_ext
7648 cat >>conftest.
$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 $ac_includes_default
7651 #include <$ac_header>
7653 rm -f conftest.
$ac_objext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>conftest.er1
7657 grep -v '^ *+' conftest.er1
>conftest.err
7659 cat conftest.err
>&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try
='test -z "$ac_c_werror_flag"
7663 || test ! -s conftest.err'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try
='test -s conftest.$ac_objext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_header_compiler
=yes
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.
$ac_ext >&5
7680 ac_header_compiler
=no
7682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684 echo "${ECHO_T}$ac_header_compiler" >&6
7686 # Is the header present?
7687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7689 cat >conftest.
$ac_ext <<_ACEOF
7692 cat confdefs.h
>>conftest.
$ac_ext
7693 cat >>conftest.
$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <$ac_header>
7697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7698 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7700 grep -v '^ *+' conftest.er1
>conftest.err
7702 cat conftest.err
>&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } >/dev
/null
; then
7705 if test -s conftest.err
; then
7706 ac_cpp_err
=$ac_c_preproc_warn_flag
7707 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7714 if test -z "$ac_cpp_err"; then
7715 ac_header_preproc
=yes
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.
$ac_ext >&5
7720 ac_header_preproc
=no
7722 rm -f conftest.err conftest.
$ac_ext
7723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724 echo "${ECHO_T}$ac_header_preproc" >&6
7726 # So? What about this header?
7727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7733 ac_header_preproc
=yes
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7750 ## ------------------------------------------ ##
7751 ## Report this to the AC_PACKAGE_NAME lists. ##
7752 ## ------------------------------------------ ##
7755 sed "s/^/$as_me: WARNING: /" >&2
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 eval "$as_ac_Header=\$ac_header_preproc"
7765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7770 cat >>confdefs.h
<<_ACEOF
7771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7780 ac_sources
="$sim_link_files"
7781 ac_dests
="$sim_link_links"
7782 while test -n "$ac_sources"; do
7783 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
7784 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
7785 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
7787 ac_config_links
="$ac_config_links $ac_config_links_1"
7790 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
7791 cgen_breaks
="break cgen_rtx_error";
7794 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"
7795 ac_config_commands
="$ac_config_commands default"
7796 cat >confcache
<<\_ACEOF
7797 # This file is a shell script that caches the results of configure
7798 # tests run on this system so they can be shared between configure
7799 # scripts and configure runs, see configure's option --config-cache.
7800 # It is not useful on other systems. If it contains results you don't
7801 # want to keep, you may remove or edit it.
7803 # config.status only pays attention to the cache file if you give it
7804 # the --recheck option to rerun configure.
7806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7812 # The following way of writing the cache mishandles newlines in values,
7813 # but we know of no workaround that is simple, portable, and efficient.
7814 # So, don't put newlines in cache variables' values.
7815 # Ultrix sh set writes to stderr and can't be redirected directly,
7816 # and sets the high bit in the cache file unless we assign to the vars.
7819 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7821 # `set' does not quote correctly, so add quotes (double-quote
7822 # substitution turns \\\\ into \\, and sed turns \\ into \).
7825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7828 # `set' quotes correctly as required by POSIX, so do not add quotes.
7830 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7839 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7841 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7842 if test -w $cache_file; then
7843 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7844 cat confcache
>$cache_file
7846 echo "not updating unwritable cache $cache_file"
7851 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7852 # Let make expand exec_prefix.
7853 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7857 # trailing colons and then remove the whole line if VPATH becomes empty
7858 # (actually we leave an empty line to preserve line numbers).
7859 if test "x$srcdir" = x.
; then
7860 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7861 s/:*\$(srcdir):*/:/;
7862 s/:*\${srcdir}:*/:/;
7864 s/^\([^=]*=[ ]*\):*/\1/;
7870 DEFS
=-DHAVE_CONFIG_H
7874 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7875 # 1. Remove the extension, and $U if already installed.
7876 ac_i
=`echo "$ac_i" |
7877 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7879 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7880 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7884 LTLIBOBJS
=$ac_ltlibobjs
7888 : ${CONFIG_STATUS=./config.status}
7889 ac_clean_files_save
=$ac_clean_files
7890 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7891 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7892 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7893 cat >$CONFIG_STATUS <<_ACEOF
7895 # Generated by $as_me.
7896 # Run this file to recreate the current configuration.
7897 # Compiler output produced by configure, useful for debugging
7898 # configure, is in config.log if it exists.
7903 SHELL=\${CONFIG_SHELL-$SHELL}
7906 cat >>$CONFIG_STATUS <<\_ACEOF
7907 ## --------------------- ##
7908 ## M4sh Initialization. ##
7909 ## --------------------- ##
7911 # Be Bourne compatible
7912 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7915 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7916 # is contrary to our usage. Disable this feature.
7917 alias -g '${1+"$@"}'='"$@"'
7918 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7921 DUALCASE
=1; export DUALCASE
# for MKS sh
7923 # Support unset when possible.
7924 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7931 # Work around bugs in pre-3.0 UWIN ksh.
7932 $as_unset ENV MAIL MAILPATH
7939 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7940 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7941 LC_TELEPHONE LC_TIME
7943 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7944 eval $as_var=C
; export $as_var
7950 # Required to use basename.
7951 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7957 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7958 as_basename
=basename
7964 # Name of the executable.
7965 as_me
=`$as_basename "$0" ||
7966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7967 X"$0" : 'X\(//\)$' \| \
7968 X"$0" : 'X\(/\)$' \| \
7969 . : '\(.\)' 2>/dev/null ||
7971 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7972 /^X\/\(\/\/\)$/{ s//\1/; q; }
7973 /^X\/\(\/\).*/{ s//\1/; q; }
7977 # PATH needs CR, and LINENO needs CR and PATH.
7978 # Avoid depending upon Character Ranges.
7979 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7980 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7981 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7982 as_cr_digits
='0123456789'
7983 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7985 # The user is always right.
7986 if test "${PATH_SEPARATOR+set}" != set; then
7987 echo "#! /bin/sh" >conf$$.sh
7988 echo "exit 0" >>conf$$.sh
7990 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8001 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8002 test "x$as_lineno_1" != "x$as_lineno_2" &&
8003 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8004 # Find who we are. Look in the path if we contain no path at all
8007 *[\\/]* ) as_myself
=$0 ;;
8008 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8012 test -z "$as_dir" && as_dir
=.
8013 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8018 # We did not find ourselves, most probably we were run as `sh COMMAND'
8019 # in which case we are not to be found in the path.
8020 if test "x$as_myself" = x
; then
8023 if test ! -f "$as_myself"; then
8024 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8025 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8026 { (exit 1); exit 1; }; }
8028 case $CONFIG_SHELL in
8030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8031 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8034 test -z "$as_dir" && as_dir
=.
8035 for as_base
in sh bash ksh sh5
; do
8038 if ("$as_dir/$as_base" -c '
8041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8042 test "x$as_lineno_1" != "x$as_lineno_2" &&
8043 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8044 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8045 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8046 CONFIG_SHELL
=$as_dir/$as_base
8048 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8056 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8057 # uniformly replaced by the line number. The first 'sed' inserts a
8058 # line-number line before each line; the second 'sed' does the real
8059 # work. The second script uses 'N' to pair each line-number line
8060 # with the numbered line, and appends trailing '-' during
8061 # substitution so that $LINENO is not a special case at line end.
8062 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8063 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8064 sed '=' <$as_myself |
8069 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8072 s,^['$as_cr_digits']*\n,,
8074 chmod +x
$as_me.lineno ||
8075 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8076 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8077 { (exit 1); exit 1; }; }
8079 # Don't try to exec as it changes $[0], causing all sort of problems
8080 # (the dirname of $[0] is not the place where we might find the
8081 # original and so on. Autoconf is especially sensible to this).
8083 # Exit status is that of the last command.
8088 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8089 *c
*,-n*) ECHO_N
= ECHO_C
='
8091 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8092 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8095 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8101 rm -f conf$$ conf$$.exe conf$$.
file
8103 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8104 # We could just check for DJGPP; but this test a) works b) is more generic
8105 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8106 if test -f conf$$.exe
; then
8107 # Don't use ln at all; we don't have any links
8112 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8117 rm -f conf$$ conf$$.exe conf$$.
file
8119 if mkdir
-p .
2>/dev
/null
; then
8122 test -d .
/-p && rmdir .
/-p
8126 as_executable_p
="test -f"
8128 # Sed expression to map a string onto a valid CPP name.
8129 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8131 # Sed expression to map a string onto a valid variable name.
8132 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8136 # We need space, tab and new line, in precisely that order.
8146 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8147 # report actual input values of CONFIG_FILES etc. instead of their
8148 # values after options handling. Logging --version etc. is OK.
8152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8153 ## Running $as_me. ##
8158 This file was extended by $as_me, which was
8159 generated by GNU Autoconf 2.59. Invocation command line was
8161 CONFIG_FILES = $CONFIG_FILES
8162 CONFIG_HEADERS = $CONFIG_HEADERS
8163 CONFIG_LINKS = $CONFIG_LINKS
8164 CONFIG_COMMANDS = $CONFIG_COMMANDS
8168 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8172 # Files that config.status was made for.
8173 if test -n "$ac_config_files"; then
8174 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8177 if test -n "$ac_config_headers"; then
8178 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8181 if test -n "$ac_config_links"; then
8182 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8185 if test -n "$ac_config_commands"; then
8186 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8189 cat >>$CONFIG_STATUS <<\_ACEOF
8192 \`$as_me' instantiates files from templates according to the
8193 current configuration.
8195 Usage: $0 [OPTIONS] [FILE]...
8197 -h, --help print this help, then exit
8198 -V, --version print version number, then exit
8199 -q, --quiet do not print progress messages
8200 -d, --debug don't remove temporary files
8201 --recheck update $as_me by reconfiguring in the same conditions
8202 --file=FILE[:TEMPLATE]
8203 instantiate the configuration file FILE
8204 --header=FILE[:TEMPLATE]
8205 instantiate the configuration header FILE
8207 Configuration files:
8210 Configuration headers:
8213 Configuration links:
8216 Configuration commands:
8219 Report bugs to <bug-autoconf@gnu.org>."
8222 cat >>$CONFIG_STATUS <<_ACEOF
8225 configured by $0, generated by GNU Autoconf 2.59,
8226 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8228 Copyright (C) 2003 Free Software Foundation, Inc.
8229 This config.status script is free software; the Free Software Foundation
8230 gives unlimited permission to copy, distribute and modify it."
8235 cat >>$CONFIG_STATUS <<\_ACEOF
8236 # If no file are specified by the user, then we need to provide default
8237 # value. By we need to know if files were specified by the user.
8243 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8244 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8252 *) # This is not an option, so the user has probably given explicit
8255 ac_need_defaults
=false
;;
8259 # Handling of the options.
8261 cat >>$CONFIG_STATUS <<\_ACEOF
8262 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8264 --version |
--vers* |
-V )
8265 echo "$ac_cs_version"; exit 0 ;;
8267 # Conflict between --help and --header
8268 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8269 Try \`$0 --help' for more information." >&5
8270 echo "$as_me: error: ambiguous option: $1
8271 Try \`$0 --help' for more information." >&2;}
8272 { (exit 1); exit 1; }; };;
8273 --help |
--hel |
-h )
8274 echo "$ac_cs_usage"; exit 0 ;;
8275 --debug |
--d* |
-d )
8277 --file |
--fil |
--fi |
--f )
8279 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8280 ac_need_defaults
=false
;;
8281 --header |
--heade |
--head |
--hea )
8283 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8284 ac_need_defaults
=false
;;
8285 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8286 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8290 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8291 Try \`$0 --help' for more information." >&5
8292 echo "$as_me: error: unrecognized option: $1
8293 Try \`$0 --help' for more information." >&2;}
8294 { (exit 1); exit 1; }; } ;;
8296 *) ac_config_targets
="$ac_config_targets $1" ;;
8302 ac_configure_extra_args
=
8304 if $ac_cs_silent; then
8306 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8310 cat >>$CONFIG_STATUS <<_ACEOF
8311 if \$ac_cs_recheck; then
8312 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8313 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8322 cat >>$CONFIG_STATUS <<\_ACEOF
8323 for ac_config_target
in $ac_config_targets
8325 case "$ac_config_target" in
8326 # Handling of arguments.
8327 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8328 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8329 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8330 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
8331 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8332 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8333 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8334 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8335 { (exit 1); exit 1; }; };;
8339 # If the user did not use the arguments to specify the items to instantiate,
8340 # then the envvar interface is used. Set only those that are not.
8341 # We use the long form for the default assignment because of an extremely
8342 # bizarre bug on SunOS 4.1.3.
8343 if $ac_need_defaults; then
8344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8346 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8347 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8350 # Have a temporary directory for convenience. Make it in the build tree
8351 # simply because there is no reason to put it here, and in addition,
8352 # creating and moving files from /tmp can sometimes cause problems.
8353 # Create a temporary directory, and hook for its removal unless debugging.
8356 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8357 trap '{ (exit 1); exit 1; }' 1 2 13 15
8360 # Create a (secure) tmp directory for tmp files.
8363 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8364 test -n "$tmp" && test -d "$tmp"
8367 tmp
=.
/confstat$$
-$RANDOM
8368 (umask 077 && mkdir
$tmp)
8371 echo "$me: cannot create a temporary directory in ." >&2
8372 { (exit 1); exit 1; }
8377 cat >>$CONFIG_STATUS <<_ACEOF
8380 # CONFIG_FILES section.
8383 # No need to generate the scripts if there are no CONFIG_FILES.
8384 # This happens for instance when ./config.status config.h
8385 if test -n "\$CONFIG_FILES"; then
8386 # Protect against being on the right side of a sed subst in config.status.
8387 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8388 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8389 s,@sim_environment@,$sim_environment,;t t
8390 s,@sim_alignment@,$sim_alignment,;t t
8391 s,@sim_assert@,$sim_assert,;t t
8392 s,@sim_bitsize@,$sim_bitsize,;t t
8393 s,@sim_endian@,$sim_endian,;t t
8394 s,@sim_hostendian@,$sim_hostendian,;t t
8395 s,@sim_float@,$sim_float,;t t
8396 s,@sim_scache@,$sim_scache,;t t
8397 s,@sim_default_model@,$sim_default_model,;t t
8398 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8399 s,@sim_hw_objs@,$sim_hw_objs,;t t
8400 s,@sim_hw@,$sim_hw,;t t
8401 s,@sim_inline@,$sim_inline,;t t
8402 s,@sim_packages@,$sim_packages,;t t
8403 s,@sim_regparm@,$sim_regparm,;t t
8404 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8405 s,@sim_smp@,$sim_smp,;t t
8406 s,@sim_stdcall@,$sim_stdcall,;t t
8407 s,@sim_xor_endian@,$sim_xor_endian,;t t
8408 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8409 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8410 s,@SHELL@,$SHELL,;t t
8411 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8412 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8413 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8414 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8415 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8416 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8417 s,@exec_prefix@,$exec_prefix,;t t
8418 s,@prefix@,$prefix,;t t
8419 s,@program_transform_name@,$program_transform_name,;t t
8420 s,@bindir@,$bindir,;t t
8421 s,@sbindir@,$sbindir,;t t
8422 s,@libexecdir@,$libexecdir,;t t
8423 s,@datadir@,$datadir,;t t
8424 s,@sysconfdir@,$sysconfdir,;t t
8425 s,@sharedstatedir@,$sharedstatedir,;t t
8426 s,@localstatedir@,$localstatedir,;t t
8427 s,@libdir@,$libdir,;t t
8428 s,@includedir@,$includedir,;t t
8429 s,@oldincludedir@,$oldincludedir,;t t
8430 s,@infodir@,$infodir,;t t
8431 s,@mandir@,$mandir,;t t
8432 s,@build_alias@,$build_alias,;t t
8433 s,@host_alias@,$host_alias,;t t
8434 s,@target_alias@,$target_alias,;t t
8436 s,@ECHO_C@,$ECHO_C,;t t
8437 s,@ECHO_N@,$ECHO_N,;t t
8438 s,@ECHO_T@,$ECHO_T,;t t
8440 s,@build@,$build,;t t
8441 s,@build_cpu@,$build_cpu,;t t
8442 s,@build_vendor@,$build_vendor,;t t
8443 s,@build_os@,$build_os,;t t
8445 s,@host_cpu@,$host_cpu,;t t
8446 s,@host_vendor@,$host_vendor,;t t
8447 s,@host_os@,$host_os,;t t
8448 s,@target@,$target,;t t
8449 s,@target_cpu@,$target_cpu,;t t
8450 s,@target_vendor@,$target_vendor,;t t
8451 s,@target_os@,$target_os,;t t
8453 s,@CFLAGS@,$CFLAGS,;t t
8454 s,@LDFLAGS@,$LDFLAGS,;t t
8455 s,@CPPFLAGS@,$CPPFLAGS,;t t
8456 s,@ac_ct_CC@,$ac_ct_CC,;t t
8457 s,@EXEEXT@,$EXEEXT,;t t
8458 s,@OBJEXT@,$OBJEXT,;t t
8459 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8460 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8461 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8462 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8463 s,@HDEFINES@,$HDEFINES,;t t
8465 s,@RANLIB@,$RANLIB,;t t
8466 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8467 s,@SET_MAKE@,$SET_MAKE,;t t
8469 s,@EGREP@,$EGREP,;t t
8470 s,@ALLOCA@,$ALLOCA,;t t
8471 s,@USE_NLS@,$USE_NLS,;t t
8472 s,@MSGFMT@,$MSGFMT,;t t
8473 s,@GMSGFMT@,$GMSGFMT,;t t
8474 s,@XGETTEXT@,$XGETTEXT,;t t
8475 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8476 s,@CATALOGS@,$CATALOGS,;t t
8477 s,@CATOBJEXT@,$CATOBJEXT,;t t
8478 s,@DATADIRNAME@,$DATADIRNAME,;t t
8479 s,@GMOFILES@,$GMOFILES,;t t
8480 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8481 s,@INTLDEPS@,$INTLDEPS,;t t
8482 s,@INTLLIBS@,$INTLLIBS,;t t
8483 s,@INTLOBJS@,$INTLOBJS,;t t
8484 s,@POFILES@,$POFILES,;t t
8485 s,@POSUB@,$POSUB,;t t
8486 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8487 s,@GT_NO@,$GT_NO,;t t
8488 s,@GT_YES@,$GT_YES,;t t
8489 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8491 s,@MAINT@,$MAINT,;t t
8492 s,@sim_bswap@,$sim_bswap,;t t
8493 s,@sim_cflags@,$sim_cflags,;t t
8494 s,@sim_debug@,$sim_debug,;t t
8495 s,@sim_stdio@,$sim_stdio,;t t
8496 s,@sim_trace@,$sim_trace,;t t
8497 s,@sim_profile@,$sim_profile,;t t
8498 s,@cgen_breaks@,$cgen_breaks,;t t
8499 s,@LIBOBJS@,$LIBOBJS,;t t
8500 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8505 cat >>$CONFIG_STATUS <<\_ACEOF
8506 # Split the substitutions into bite-sized pieces for seds with
8507 # small command number limits, like on Digital OSF/1 and HP-UX.
8509 ac_sed_frag
=1 # Number of current file.
8510 ac_beg
=1 # First line for current file.
8511 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8514 while $ac_more_lines; do
8515 if test $ac_beg -gt 1; then
8516 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8518 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8520 if test ! -s $tmp/subs.frag
; then
8523 # The purpose of the label and of the branching condition is to
8524 # speed up the sed processing (if there are no `@' at all, there
8525 # is no need to browse any of the substitutions).
8526 # These are the two extra sed commands mentioned above.
8528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8529 if test -z "$ac_sed_cmds"; then
8530 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8532 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8534 ac_sed_frag
=`expr $ac_sed_frag + 1`
8536 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8539 if test -z "$ac_sed_cmds"; then
8542 fi # test -n "$CONFIG_FILES"
8545 cat >>$CONFIG_STATUS <<\_ACEOF
8546 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8549 - |
*:- |
*:-:* ) # input from stdin
8551 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8552 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8553 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8554 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8555 * ) ac_file_in
=$ac_file.
in ;;
8558 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8559 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8561 X"$ac_file" : 'X\(//\)[^/]' \| \
8562 X"$ac_file" : 'X\(//\)$' \| \
8563 X"$ac_file" : 'X\(/\)' \| \
8564 . : '\(.\)' 2>/dev/null ||
8566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8568 /^X\(\/\/\)$/{ s//\1/; q; }
8569 /^X\(\/\).*/{ s//\1/; q; }
8571 { if $as_mkdir_p; then
8576 while test ! -d "$as_dir"; do
8577 as_dirs
="$as_dir $as_dirs"
8578 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8580 X"$as_dir" : 'X\(//\)[^/]' \| \
8581 X"$as_dir" : 'X\(//\)$' \| \
8582 X"$as_dir" : 'X\(/\)' \| \
8583 . : '\(.\)' 2>/dev/null ||
8585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8587 /^X\(\/\/\)$/{ s//\1/; q; }
8588 /^X\(\/\).*/{ s//\1/; q; }
8591 test ! -n "$as_dirs" || mkdir
$as_dirs
8592 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8593 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8594 { (exit 1); exit 1; }; }; }
8598 if test "$ac_dir" != .
; then
8599 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8600 # A "../" for each directory in $ac_dir_suffix.
8601 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8603 ac_dir_suffix
= ac_top_builddir
=
8607 .
) # No --srcdir option. We are building in place.
8609 if test -z "$ac_top_builddir"; then
8612 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8614 [\\/]* | ?
:[\\/]* ) # Absolute path.
8615 ac_srcdir
=$srcdir$ac_dir_suffix;
8616 ac_top_srcdir
=$srcdir ;;
8618 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8619 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8622 # Do not use `cd foo && pwd` to compute absolute paths, because
8623 # the directories may not exist.
8625 .
) ac_abs_builddir
="$ac_dir";;
8628 .
) ac_abs_builddir
=`pwd`;;
8629 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8630 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8633 case $ac_abs_builddir in
8634 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8636 case ${ac_top_builddir}.
in
8637 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8638 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8639 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8642 case $ac_abs_builddir in
8643 .
) ac_abs_srcdir
=$ac_srcdir;;
8646 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8647 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8648 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8651 case $ac_abs_builddir in
8652 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8654 case $ac_top_srcdir in
8655 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8656 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8657 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8663 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8664 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8667 if test x
"$ac_file" != x-
; then
8668 { echo "$as_me:$LINENO: creating $ac_file" >&5
8669 echo "$as_me: creating $ac_file" >&6;}
8672 # Let's still pretend it is `configure' which instantiates (i.e., don't
8673 # use $as_me), people would be surprised to read:
8674 # /* config.h. Generated by config.status. */
8675 if test x
"$ac_file" = x-
; then
8678 configure_input
="$ac_file. "
8680 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8681 sed 's,.*/,,'` by configure."
8683 # First look for the input files in the build tree, otherwise in the
8685 ac_file_inputs
=`IFS=:
8686 for f in $ac_file_in; do
8688 -) echo $tmp/stdin ;;
8690 # Absolute (can't be DOS-style, as IFS=:)
8691 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8692 echo "$as_me: error: cannot find input file: $f" >&2;}
8693 { (exit 1); exit 1; }; }
8696 if test -f "$f"; then
8699 elif test -f "$srcdir/$f"; then
8704 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8705 echo "$as_me: error: cannot find input file: $f" >&2;}
8706 { (exit 1); exit 1; }; }
8709 done` ||
{ (exit 1); exit 1; }
8711 cat >>$CONFIG_STATUS <<_ACEOF
8715 cat >>$CONFIG_STATUS <<\_ACEOF
8717 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8718 s
,@configure_input@
,$configure_input,;t t
8719 s
,@srcdir@
,$ac_srcdir,;t t
8720 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8721 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8722 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8723 s
,@builddir@
,$ac_builddir,;t t
8724 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8725 s
,@top_builddir@
,$ac_top_builddir,;t t
8726 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8727 s
,@INSTALL@
,$ac_INSTALL,;t t
8728 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8730 if test x"$ac_file" != x-; then
8731 mv $tmp/out $ac_file
8739 cat >>$CONFIG_STATUS <<\_ACEOF
8742 # CONFIG_HEADER section.
8745 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8746 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8748 # ac_d sets the value in "#define NAME VALUE" lines.
8749 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8750 ac_dB
='[ ].*$,\1#\2'
8753 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8754 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8755 ac_uB
='$,\1#\2define\3'
8759 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8760 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8762 - |
*:- |
*:-:* ) # input from stdin
8764 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8765 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8766 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8767 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8768 * ) ac_file_in
=$ac_file.
in ;;
8771 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8772 echo "$as_me: creating $ac_file" >&6;}
8774 # First look for the input files in the build tree, otherwise in the
8776 ac_file_inputs
=`IFS=:
8777 for f in $ac_file_in; do
8779 -) echo $tmp/stdin ;;
8781 # Absolute (can't be DOS-style, as IFS=:)
8782 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8783 echo "$as_me: error: cannot find input file: $f" >&2;}
8784 { (exit 1); exit 1; }; }
8785 # Do quote $f, to prevent DOS paths from being IFS'd.
8788 if test -f "$f"; then
8791 elif test -f "$srcdir/$f"; then
8796 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8797 echo "$as_me: error: cannot find input file: $f" >&2;}
8798 { (exit 1); exit 1; }; }
8801 done` ||
{ (exit 1); exit 1; }
8802 # Remove the trailing spaces.
8803 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8807 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8808 # `conftest.undefs', that substitutes the proper values into
8809 # config.h.in to produce config.h. The first handles `#define'
8810 # templates, and the second `#undef' templates.
8811 # And first: Protect against being on the right side of a sed subst in
8812 # config.status. Protect against being in an unquoted here document
8814 rm -f conftest.defines conftest.undefs
8815 # Using a here document instead of a string reduces the quoting nightmare.
8816 # Putting comments in sed scripts is not portable.
8818 # `end' is used to avoid that the second main sed command (meant for
8819 # 0-ary CPP macros) applies to n-ary macro definitions.
8820 # See the Autoconf documentation for `clear'.
8821 cat >confdef2sed.
sed <<\_ACEOF
8826 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8828 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8831 # If some macros were called several times there might be several times
8832 # the same #defines, which is useless. Nevertheless, we may not want to
8833 # sort them, since we want the *last* AC-DEFINE to be honored.
8834 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8835 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8836 rm -f confdef2sed.sed
8838 # This sed command replaces #undef with comments. This is necessary, for
8839 # example, in the case of _POSIX_SOURCE, which is predefined and required
8840 # on some systems where configure will not decide to define it.
8841 cat >>conftest.undefs <<\_ACEOF
8842 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8845 # Break up conftest.defines because some shells have a limit on the size
8846 # of here documents, and old seds have small limits too (100 cmds).
8847 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8848 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8849 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8850 echo ' :' >>$CONFIG_STATUS
8852 while grep . conftest.defines >/dev/null
8854 # Write a limited-size here document to $tmp/defines.sed.
8855 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8856 # Speed up: don't consider the non `#define' lines.
8857 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8858 # Work around the forget-to-reset-the-flag bug.
8859 echo 't clr' >>$CONFIG_STATUS
8860 echo ': clr' >>$CONFIG_STATUS
8861 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8863 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8867 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8868 rm -f conftest.defines
8869 mv conftest.
tail conftest.defines
8871 rm -f conftest.defines
8872 echo ' fi # grep' >>$CONFIG_STATUS
8873 echo >>$CONFIG_STATUS
8875 # Break up conftest.undefs because some shells have a limit on the size
8876 # of here documents, and old seds have small limits too (100 cmds).
8877 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8879 while grep . conftest.undefs
>/dev
/null
8881 # Write a limited-size here document to $tmp/undefs.sed.
8882 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8883 # Speed up: don't consider the non
`#undef'
8884 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8885 # Work around the forget-to-reset-the-flag bug.
8886 echo 't clr' >>$CONFIG_STATUS
8887 echo ': clr' >>$CONFIG_STATUS
8888 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8890 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8894 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8895 rm -f conftest.undefs
8896 mv conftest.tail conftest.undefs
8898 rm -f conftest.undefs
8900 cat >>$CONFIG_STATUS <<\_ACEOF
8901 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8902 # use $as_me), people would be surprised to read:
8903 # /* config.h. Generated by config.status. */
8904 if test x
"$ac_file" = x-
; then
8905 echo "/* Generated by configure. */" >$tmp/config.h
8907 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8909 cat $tmp/in >>$tmp/config.h
8911 if test x
"$ac_file" != x-
; then
8912 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8913 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8914 echo "$as_me: $ac_file is unchanged" >&6;}
8916 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8917 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8918 X"$ac_file" : 'X\(//\)[^/]' \| \
8919 X"$ac_file" : 'X\(//\)$' \| \
8920 X"$ac_file" : 'X\(/\)' \| \
8921 . : '\(.\)' 2>/dev/null ||
8923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8925 /^X\(\/\/\)$/{ s//\1/; q; }
8926 /^X\(\/\).*/{ s//\1/; q; }
8928 { if $as_mkdir_p; then
8933 while test ! -d "$as_dir"; do
8934 as_dirs
="$as_dir $as_dirs"
8935 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8937 X"$as_dir" : 'X\(//\)[^/]' \| \
8938 X"$as_dir" : 'X\(//\)$' \| \
8939 X"$as_dir" : 'X\(/\)' \| \
8940 . : '\(.\)' 2>/dev/null ||
8942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8944 /^X\(\/\/\)$/{ s//\1/; q; }
8945 /^X\(\/\).*/{ s//\1/; q; }
8948 test ! -n "$as_dirs" || mkdir
$as_dirs
8949 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8950 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8951 { (exit 1); exit 1; }; }; }
8954 mv $tmp/config.h
$ac_file
8962 cat >>$CONFIG_STATUS <<\_ACEOF
8965 # CONFIG_LINKS section.
8968 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
8969 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8970 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8972 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8973 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8975 if test ! -r $srcdir/$ac_source; then
8976 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8977 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8978 { (exit 1); exit 1; }; }
8982 # Make relative symlinks.
8983 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8984 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8985 X"$ac_dest" : 'X\(//\)[^/]' \| \
8986 X"$ac_dest" : 'X\(//\)$' \| \
8987 X"$ac_dest" : 'X\(/\)' \| \
8988 . : '\(.\)' 2>/dev/null ||
8990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8992 /^X\(\/\/\)$/{ s//\1/; q; }
8993 /^X\(\/\).*/{ s//\1/; q; }
8995 { if $as_mkdir_p; then
8996 mkdir
-p "$ac_dest_dir"
8998 as_dir
="$ac_dest_dir"
9000 while test ! -d "$as_dir"; do
9001 as_dirs
="$as_dir $as_dirs"
9002 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9004 X"$as_dir" : 'X\(//\)[^/]' \| \
9005 X"$as_dir" : 'X\(//\)$' \| \
9006 X"$as_dir" : 'X\(/\)' \| \
9007 . : '\(.\)' 2>/dev/null ||
9009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9011 /^X\(\/\/\)$/{ s//\1/; q; }
9012 /^X\(\/\).*/{ s//\1/; q; }
9015 test ! -n "$as_dirs" || mkdir
$as_dirs
9016 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9017 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9018 { (exit 1); exit 1; }; }; }
9022 if test "$ac_dest_dir" != .
; then
9023 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9024 # A "../" for each directory in $ac_dir_suffix.
9025 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9027 ac_dir_suffix
= ac_top_builddir
=
9031 .
) # No --srcdir option. We are building in place.
9033 if test -z "$ac_top_builddir"; then
9036 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9038 [\\/]* | ?
:[\\/]* ) # Absolute path.
9039 ac_srcdir
=$srcdir$ac_dir_suffix;
9040 ac_top_srcdir
=$srcdir ;;
9042 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9043 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9046 # Do not use `cd foo && pwd` to compute absolute paths, because
9047 # the directories may not exist.
9049 .
) ac_abs_builddir
="$ac_dest_dir";;
9051 case "$ac_dest_dir" in
9052 .
) ac_abs_builddir
=`pwd`;;
9053 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
9054 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
9057 case $ac_abs_builddir in
9058 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9060 case ${ac_top_builddir}.
in
9061 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9062 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9063 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9066 case $ac_abs_builddir in
9067 .
) ac_abs_srcdir
=$ac_srcdir;;
9070 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9071 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9072 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9075 case $ac_abs_builddir in
9076 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9078 case $ac_top_srcdir in
9079 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9080 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9081 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9087 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9088 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
9091 # Try a symlink, then a hard link, then a copy.
9092 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
9093 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
9094 cp -p $srcdir/$ac_source $ac_dest ||
9095 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9096 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9097 { (exit 1); exit 1; }; }
9100 cat >>$CONFIG_STATUS <<\_ACEOF
9103 # CONFIG_COMMANDS section.
9105 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9106 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9107 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9108 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9109 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9110 X"$ac_dest" : 'X\(//\)[^/]' \| \
9111 X"$ac_dest" : 'X\(//\)$' \| \
9112 X"$ac_dest" : 'X\(/\)' \| \
9113 . : '\(.\)' 2>/dev/null ||
9115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9117 /^X\(\/\/\)$/{ s//\1/; q; }
9118 /^X\(\/\).*/{ s//\1/; q; }
9120 { if $as_mkdir_p; then
9125 while test ! -d "$as_dir"; do
9126 as_dirs
="$as_dir $as_dirs"
9127 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9129 X"$as_dir" : 'X\(//\)[^/]' \| \
9130 X"$as_dir" : 'X\(//\)$' \| \
9131 X"$as_dir" : 'X\(/\)' \| \
9132 . : '\(.\)' 2>/dev/null ||
9134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9136 /^X\(\/\/\)$/{ s//\1/; q; }
9137 /^X\(\/\).*/{ s//\1/; q; }
9140 test ! -n "$as_dirs" || mkdir
$as_dirs
9141 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9143 { (exit 1); exit 1; }; }; }
9147 if test "$ac_dir" != .
; then
9148 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9149 # A "../" for each directory in $ac_dir_suffix.
9150 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9152 ac_dir_suffix
= ac_top_builddir
=
9156 .
) # No --srcdir option. We are building in place.
9158 if test -z "$ac_top_builddir"; then
9161 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9163 [\\/]* | ?
:[\\/]* ) # Absolute path.
9164 ac_srcdir
=$srcdir$ac_dir_suffix;
9165 ac_top_srcdir
=$srcdir ;;
9167 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9168 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9171 # Do not use `cd foo && pwd` to compute absolute paths, because
9172 # the directories may not exist.
9174 .
) ac_abs_builddir
="$ac_dir";;
9177 .
) ac_abs_builddir
=`pwd`;;
9178 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9179 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9182 case $ac_abs_builddir in
9183 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9185 case ${ac_top_builddir}.
in
9186 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9187 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9188 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9191 case $ac_abs_builddir in
9192 .
) ac_abs_srcdir
=$ac_srcdir;;
9195 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9196 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9197 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9200 case $ac_abs_builddir in
9201 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9203 case $ac_top_srcdir in
9204 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9205 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9206 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9211 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9212 echo "$as_me: executing $ac_dest commands" >&6;}
9214 default
) case "x$CONFIG_FILES" in
9216 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9217 rm -f Makesim1.tmp Makesim2.tmp Makefile
9218 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
9219 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
9220 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9221 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9222 <Makefile.sim
>Makefile
9223 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9226 case "x$CONFIG_HEADERS" in xconfig.h
:config.
in) echo > stamp-h
;; esac
9232 cat >>$CONFIG_STATUS <<\_ACEOF
9234 { (exit 0); exit 0; }
9236 chmod +x
$CONFIG_STATUS
9237 ac_clean_files
=$ac_clean_files_save
9240 # configure is writing to config.log, and then calls config.status.
9241 # config.status does its own redirection, appending to config.log.
9242 # Unfortunately, on DOS this fails, as config.log is still kept open
9243 # by configure, so config.status won't be able to write to it; its
9244 # output is simply discarded. So we exec the FD to /dev/null,
9245 # effectively closing config.log, so it can be properly (re)opened and
9246 # appended to by config.status. When coming back to configure, we
9247 # need to make the FD available again.
9248 if test "$no_create" != yes; then
9250 ac_config_status_args
=
9251 test "$silent" = yes &&
9252 ac_config_status_args
="$ac_config_status_args --quiet"
9254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9257 # would make configure fail if this is the last instruction.
9258 $ac_cs_success ||
{ (exit 1); exit 1; }