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
1325 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1326 if test -f $ac_dir/install-sh; then
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 elif test -f $ac_dir/install.sh; then
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 elif test -f $ac_dir/shtool; then
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1343 { (exit 1); exit 1; }; }
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349 # Make sure we can run config.sub.
1350 $ac_config_sub sun4 >/dev/null 2>&1 ||
1351 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1352 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1353 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: checking build system type" >&5
1356 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1357 if test "${ac_cv_build+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 ac_cv_build_alias=$build_alias
1361 test -z "$ac_cv_build_alias" &&
1362 ac_cv_build_alias=`$ac_config_guess`
1363 test -z "$ac_cv_build_alias" &&
1364 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1365 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1366 { (exit 1); exit 1; }; }
1367 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1370 { (exit 1); exit 1; }; }
1373 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1374 echo "${ECHO_T}$ac_cv_build" >&6
1376 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1377 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1378 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1381 echo "$as_me:$LINENO: checking host system type" >&5
1382 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1383 if test "${ac_cv_host+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 ac_cv_host_alias=$host_alias
1387 test -z "$ac_cv_host_alias" &&
1388 ac_cv_host_alias=$ac_cv_build_alias
1389 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1390 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1391 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1392 { (exit 1); exit 1; }; }
1395 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1396 echo "${ECHO_T}$ac_cv_host" >&6
1398 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1399 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1400 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1403 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1404 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1405 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y
,:.
/+-,___p_
,'`
1406 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 cat >conftest.make <<\_ACEOF
1411 @echo 'ac_maketemp
="$(MAKE)"'
1413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1414 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1415 if test -n "$ac_maketemp"; then
1416 eval ac_cv_prog_make_${ac_make}_set=yes
1418 eval ac_cv_prog_make_${ac_make}_set=no
1422 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1423 echo "$as_me:$LINENO: result: yes" >&5
1424 echo "${ECHO_T}yes" >&6
1427 echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1429 SET_MAKE="MAKE=${MAKE-make}"
1433 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1434 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1435 if test "${ac_cv_search_strerror+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 ac_func_search_save_LIBS=$LIBS
1439 ac_cv_search_strerror=no
1440 cat >conftest.$ac_ext <<_ACEOF
1443 cat confdefs.h >>conftest.$ac_ext
1444 cat >>conftest.$ac_ext <<_ACEOF
1445 /* end confdefs.h. */
1447 /* Override any gcc2 internal prototype to avoid an error. */
1451 /* We use char because int might match the return type of a gcc2
1452 builtin and then its argument prototype would still apply. */
1462 rm -f conftest.$ac_objext conftest$ac_exeext
1463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1464 (eval $ac_link) 2>conftest.er1
1466 grep -v '^
*+' conftest.er1 >conftest.err
1468 cat conftest.err >&5
1469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1470 (exit $ac_status); } &&
1471 { ac_try='test -z "$ac_c_werror_flag"
1472 ||
test ! -s conftest.err
'
1473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1477 (exit $ac_status); }; } &&
1478 { ac_try='test -s conftest
$ac_exeext'
1479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1483 (exit $ac_status); }; }; then
1484 ac_cv_search_strerror="none required"
1486 echo "$as_me: failed program was:" >&5
1487 sed 's
/^
/|
/' conftest.$ac_ext >&5
1490 rm -f conftest.err conftest.$ac_objext \
1491 conftest$ac_exeext conftest.$ac_ext
1492 if test "$ac_cv_search_strerror" = no; then
1493 for ac_lib in cposix; do
1494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1495 cat >conftest.$ac_ext <<_ACEOF
1498 cat confdefs.h >>conftest.$ac_ext
1499 cat >>conftest.$ac_ext <<_ACEOF
1500 /* end confdefs.h. */
1502 /* Override any gcc2 internal prototype to avoid an error. */
1506 /* We use char because int might match the return type of a gcc2
1507 builtin and then its argument prototype would still apply. */
1517 rm -f conftest.$ac_objext conftest$ac_exeext
1518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1519 (eval $ac_link) 2>conftest.er1
1521 grep -v '^
*+' conftest.er1 >conftest.err
1523 cat conftest.err >&5
1524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1525 (exit $ac_status); } &&
1526 { ac_try='test -z "$ac_c_werror_flag"
1527 ||
test ! -s conftest.err
'
1528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1532 (exit $ac_status); }; } &&
1533 { ac_try='test -s conftest
$ac_exeext'
1534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1538 (exit $ac_status); }; }; then
1539 ac_cv_search_strerror="-l$ac_lib"
1542 echo "$as_me: failed program was:" >&5
1543 sed 's
/^
/|
/' conftest.$ac_ext >&5
1546 rm -f conftest.err conftest.$ac_objext \
1547 conftest$ac_exeext conftest.$ac_ext
1550 LIBS=$ac_func_search_save_LIBS
1552 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1553 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1554 if test "$ac_cv_search_strerror" != no; then
1555 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1560 ac_cpp='$CPP $CPPFLAGS'
1561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1562 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1565 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1566 # On Suns, sometimes $CPP names a directory.
1567 if test -n "$CPP" && test -d "$CPP"; then
1570 if test -z "$CPP"; then
1571 if test "${ac_cv_prog_CPP+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 # Double quotes because CPP needs to be expanded
1575 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1578 for ac_c_preproc_warn_flag in '' yes
1580 # Use a header file that comes with gcc, so configuring glibc
1581 # with a fresh cross-compiler works.
1582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1583 # <limits.h> exists even on freestanding compilers.
1584 # On the NeXT, cc -E runs the code through the compiler's parser
,
1585 # not just through cpp. "Syntax error" is here to catch this case.
1586 cat >conftest.
$ac_ext <<_ACEOF
1589 cat confdefs.h
>>conftest.
$ac_ext
1590 cat >>conftest.
$ac_ext <<_ACEOF
1591 /* end confdefs.h. */
1593 # include <limits.h>
1595 # include <assert.h>
1599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1600 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1602 grep -v '^ *+' conftest.er1
>conftest.err
1604 cat conftest.err
>&5
1605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1606 (exit $ac_status); } >/dev
/null
; then
1607 if test -s conftest.err
; then
1608 ac_cpp_err
=$ac_c_preproc_warn_flag
1609 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
1616 if test -z "$ac_cpp_err"; then
1619 echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.
$ac_ext >&5
1622 # Broken: fails on valid input.
1625 rm -f conftest.err conftest.
$ac_ext
1627 # OK, works on sane cases. Now check whether non-existent headers
1628 # can be detected and how.
1629 cat >conftest.
$ac_ext <<_ACEOF
1632 cat confdefs.h
>>conftest.
$ac_ext
1633 cat >>conftest.
$ac_ext <<_ACEOF
1634 /* end confdefs.h. */
1635 #include <ac_nonexistent.h>
1637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1638 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1640 grep -v '^ *+' conftest.er1
>conftest.err
1642 cat conftest.err
>&5
1643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1644 (exit $ac_status); } >/dev
/null
; then
1645 if test -s conftest.err
; then
1646 ac_cpp_err
=$ac_c_preproc_warn_flag
1647 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
1654 if test -z "$ac_cpp_err"; then
1655 # Broken: success on invalid input.
1658 echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.
$ac_ext >&5
1661 # Passes both tests.
1665 rm -f conftest.err conftest.
$ac_ext
1668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1669 rm -f conftest.err conftest.
$ac_ext
1670 if $ac_preproc_ok; then
1682 echo "$as_me:$LINENO: result: $CPP" >&5
1683 echo "${ECHO_T}$CPP" >&6
1685 for ac_c_preproc_warn_flag
in '' yes
1687 # Use a header file that comes with gcc, so configuring glibc
1688 # with a fresh cross-compiler works.
1689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1690 # <limits.h> exists even on freestanding compilers.
1691 # On the NeXT, cc -E runs the code through the compiler's parser,
1692 # not just through cpp. "Syntax error" is here to catch this case.
1693 cat >conftest.
$ac_ext <<_ACEOF
1696 cat confdefs.h
>>conftest.
$ac_ext
1697 cat >>conftest.
$ac_ext <<_ACEOF
1698 /* end confdefs.h. */
1700 # include <limits.h>
1702 # include <assert.h>
1706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1707 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1709 grep -v '^ *+' conftest.er1
>conftest.err
1711 cat conftest.err
>&5
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); } >/dev
/null
; then
1714 if test -s conftest.err
; then
1715 ac_cpp_err
=$ac_c_preproc_warn_flag
1716 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
1723 if test -z "$ac_cpp_err"; then
1726 echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.
$ac_ext >&5
1729 # Broken: fails on valid input.
1732 rm -f conftest.err conftest.
$ac_ext
1734 # OK, works on sane cases. Now check whether non-existent headers
1735 # can be detected and how.
1736 cat >conftest.
$ac_ext <<_ACEOF
1739 cat confdefs.h
>>conftest.
$ac_ext
1740 cat >>conftest.
$ac_ext <<_ACEOF
1741 /* end confdefs.h. */
1742 #include <ac_nonexistent.h>
1744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1745 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
1747 grep -v '^ *+' conftest.er1
>conftest.err
1749 cat conftest.err
>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); } >/dev
/null
; then
1752 if test -s conftest.err
; then
1753 ac_cpp_err
=$ac_c_preproc_warn_flag
1754 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
1761 if test -z "$ac_cpp_err"; then
1762 # Broken: success on invalid input.
1765 echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.
$ac_ext >&5
1768 # Passes both tests.
1772 rm -f conftest.err conftest.
$ac_ext
1775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1776 rm -f conftest.err conftest.
$ac_ext
1777 if $ac_preproc_ok; then
1780 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1781 See \`config.log' for more details." >&5
1782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1783 See \`config.log' for more details." >&2;}
1784 { (exit 1); exit 1; }; }
1788 ac_cpp
='$CPP $CPPFLAGS'
1789 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1794 echo "$as_me:$LINENO: checking for egrep" >&5
1795 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1796 if test "${ac_cv_prog_egrep+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
1800 then ac_cv_prog_egrep
='grep -E'
1801 else ac_cv_prog_egrep
='egrep'
1804 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1805 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1806 EGREP
=$ac_cv_prog_egrep
1809 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1811 if test "${ac_cv_header_stdc+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 cat >conftest.
$ac_ext <<_ACEOF
1817 cat confdefs.h
>>conftest.
$ac_ext
1818 cat >>conftest.
$ac_ext <<_ACEOF
1819 /* end confdefs.h. */
1833 rm -f conftest.
$ac_objext
1834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1835 (eval $ac_compile) 2>conftest.er1
1837 grep -v '^ *+' conftest.er1
>conftest.err
1839 cat conftest.err
>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); } &&
1842 { ac_try
='test -z "$ac_c_werror_flag"
1843 || test ! -s conftest.err'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; } &&
1849 { ac_try
='test -s conftest.$ac_objext'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 ac_cv_header_stdc
=yes
1857 echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.
$ac_ext >&5
1860 ac_cv_header_stdc
=no
1862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1864 if test $ac_cv_header_stdc = yes; then
1865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1866 cat >conftest.
$ac_ext <<_ACEOF
1869 cat confdefs.h
>>conftest.
$ac_ext
1870 cat >>conftest.
$ac_ext <<_ACEOF
1871 /* end confdefs.h. */
1875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1876 $EGREP "memchr" >/dev
/null
2>&1; then
1879 ac_cv_header_stdc
=no
1885 if test $ac_cv_header_stdc = yes; then
1886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1887 cat >conftest.
$ac_ext <<_ACEOF
1890 cat confdefs.h
>>conftest.
$ac_ext
1891 cat >>conftest.
$ac_ext <<_ACEOF
1892 /* end confdefs.h. */
1896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1897 $EGREP "free" >/dev
/null
2>&1; then
1900 ac_cv_header_stdc
=no
1906 if test $ac_cv_header_stdc = yes; then
1907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1908 if test "$cross_compiling" = yes; then
1911 cat >conftest.
$ac_ext <<_ACEOF
1914 cat confdefs.h
>>conftest.
$ac_ext
1915 cat >>conftest.
$ac_ext <<_ACEOF
1916 /* end confdefs.h. */
1918 #if ((' ' & 0x0FF) == 0x020)
1919 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1920 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1922 # define ISLOWER(c) \
1923 (('a' <= (c) && (c) <= 'i') \
1924 || ('j' <= (c) && (c) <= 'r') \
1925 || ('s' <= (c) && (c) <= 'z'))
1926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1934 for (i = 0; i < 256; i++)
1935 if (XOR (islower (i), ISLOWER (i))
1936 || toupper (i) != TOUPPER (i))
1941 rm -f conftest
$ac_exeext
1942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1943 (eval $ac_link) 2>&5
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
1947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; }; then
1954 echo "$as_me: program exited with status $ac_status" >&5
1955 echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.
$ac_ext >&5
1959 ac_cv_header_stdc
=no
1961 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
1965 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1966 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1967 if test $ac_cv_header_stdc = yes; then
1969 cat >>confdefs.h
<<\_ACEOF
1970 #define STDC_HEADERS 1
1975 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1976 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1977 if test "${ac_cv_c_const+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 cat >conftest.
$ac_ext <<_ACEOF
1983 cat confdefs.h
>>conftest.
$ac_ext
1984 cat >>conftest.
$ac_ext <<_ACEOF
1985 /* end confdefs.h. */
1990 /* FIXME: Include the comments suggested by Paul. */
1992 /* Ultrix mips cc rejects this. */
1993 typedef int charset[2];
1995 /* SunOS 4.1.1 cc rejects this. */
1996 char const *const *ccp;
1998 /* NEC SVR4.0.2 mips cc rejects this. */
1999 struct point {int x, y;};
2000 static struct point const zero = {0,0};
2001 /* AIX XL C 1.02.0.0 rejects this.
2002 It does not let you subtract one const X* pointer from another in
2003 an arm of an if-expression whose if-part is not a constant
2005 const char *g = "string";
2006 ccp = &g + (g ? g-g : 0);
2007 /* HPUX 7.0 cc rejects these. */
2010 ccp = (char const *const *) p;
2011 { /* SCO 3.2v4 cc rejects this. */
2013 char const *s = 0 ? (char *) 0 : (char const *) 0;
2017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2019 const int *foo = &x[0];
2022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2023 typedef const int *iptr;
2027 { /* AIX XL C 1.02.0.0 rejects this saying
2028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2029 struct s { int j; const int *ap[3]; };
2030 struct s *b; b->j = 5;
2032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2041 rm -f conftest.
$ac_objext
2042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>conftest.er1
2045 grep -v '^ *+' conftest.er1
>conftest.err
2047 cat conftest.err
>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); } &&
2050 { ac_try
='test -z "$ac_c_werror_flag"
2051 || test ! -s conftest.err'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; } &&
2057 { ac_try
='test -s conftest.$ac_objext'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2065 echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.
$ac_ext >&5
2070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2072 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2073 echo "${ECHO_T}$ac_cv_c_const" >&6
2074 if test $ac_cv_c_const = no
; then
2076 cat >>confdefs.h
<<\_ACEOF
2082 echo "$as_me:$LINENO: checking for inline" >&5
2083 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2084 if test "${ac_cv_c_inline+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 for ac_kw
in inline __inline__ __inline
; do
2089 cat >conftest.
$ac_ext <<_ACEOF
2092 cat confdefs.h
>>conftest.
$ac_ext
2093 cat >>conftest.
$ac_ext <<_ACEOF
2094 /* end confdefs.h. */
2097 static $ac_kw foo_t static_foo () {return 0; }
2098 $ac_kw foo_t foo () {return 0; }
2102 rm -f conftest.
$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>conftest.er1
2106 grep -v '^ *+' conftest.er1
>conftest.err
2108 cat conftest.err
>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); } &&
2111 { ac_try
='test -z "$ac_c_werror_flag"
2112 || test ! -s conftest.err'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; } &&
2118 { ac_try
='test -s conftest.$ac_objext'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2124 ac_cv_c_inline
=$ac_kw; break
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.
$ac_ext >&5
2130 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2134 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2135 echo "${ECHO_T}$ac_cv_c_inline" >&6
2138 case $ac_cv_c_inline in
2141 case $ac_cv_c_inline in
2143 *) ac_val
=$ac_cv_c_inline;;
2145 cat >>confdefs.h
<<_ACEOF
2147 #define inline $ac_val
2153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2163 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2164 inttypes.h stdint.h unistd.h
2166 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2167 echo "$as_me:$LINENO: checking for $ac_header" >&5
2168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 cat >conftest.
$ac_ext <<_ACEOF
2175 cat confdefs.h
>>conftest.
$ac_ext
2176 cat >>conftest.
$ac_ext <<_ACEOF
2177 /* end confdefs.h. */
2178 $ac_includes_default
2180 #include <$ac_header>
2182 rm -f conftest.
$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2186 grep -v '^ *+' conftest.er1
>conftest.err
2188 cat conftest.err
>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try
='test -z "$ac_c_werror_flag"
2192 || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try
='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 eval "$as_ac_Header=yes"
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.
$ac_ext >&5
2209 eval "$as_ac_Header=no"
2211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2216 cat >>confdefs.h
<<_ACEOF
2217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2225 echo "$as_me:$LINENO: checking for off_t" >&5
2226 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2227 if test "${ac_cv_type_off_t+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 cat >conftest.
$ac_ext <<_ACEOF
2233 cat confdefs.h
>>conftest.
$ac_ext
2234 cat >>conftest.
$ac_ext <<_ACEOF
2235 /* end confdefs.h. */
2236 $ac_includes_default
2248 rm -f conftest.
$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2252 grep -v '^ *+' conftest.er1
>conftest.err
2254 cat conftest.err
>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try
='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try
='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 ac_cv_type_off_t
=yes
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.
$ac_ext >&5
2277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2279 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2280 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2281 if test $ac_cv_type_off_t = yes; then
2285 cat >>confdefs.h
<<_ACEOF
2291 echo "$as_me:$LINENO: checking for size_t" >&5
2292 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2293 if test "${ac_cv_type_size_t+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 cat >conftest.
$ac_ext <<_ACEOF
2299 cat confdefs.h
>>conftest.
$ac_ext
2300 cat >>conftest.
$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 $ac_includes_default
2308 if (sizeof (size_t))
2314 rm -f conftest.
$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2318 grep -v '^ *+' conftest.er1
>conftest.err
2320 cat conftest.err
>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
2323 { ac_try
='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try
='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 ac_cv_type_size_t
=yes
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.
$ac_ext >&5
2341 ac_cv_type_size_t
=no
2343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2345 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2346 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2347 if test $ac_cv_type_size_t = yes; then
2351 cat >>confdefs.h
<<_ACEOF
2352 #define size_t unsigned
2357 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2358 # for constant arguments. Useless!
2359 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2360 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2361 if test "${ac_cv_working_alloca_h+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.
$ac_ext <<_ACEOF
2367 cat confdefs.h
>>conftest.
$ac_ext
2368 cat >>conftest.
$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2374 char *p = (char *) alloca (2 * sizeof (int));
2379 rm -f conftest.
$ac_objext conftest
$ac_exeext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2381 (eval $ac_link) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1
>conftest.err
2385 cat conftest.err
>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try
='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try
='test -s conftest$ac_exeext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_cv_working_alloca_h
=yes
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.
$ac_ext >&5
2406 ac_cv_working_alloca_h
=no
2408 rm -f conftest.err conftest.
$ac_objext \
2409 conftest
$ac_exeext conftest.
$ac_ext
2411 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2412 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2413 if test $ac_cv_working_alloca_h = yes; then
2415 cat >>confdefs.h
<<\_ACEOF
2416 #define HAVE_ALLOCA_H 1
2421 echo "$as_me:$LINENO: checking for alloca" >&5
2422 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2423 if test "${ac_cv_func_alloca_works+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 cat >conftest.
$ac_ext <<_ACEOF
2429 cat confdefs.h
>>conftest.
$ac_ext
2430 cat >>conftest.
$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2433 # define alloca __builtin_alloca
2436 # include <malloc.h>
2437 # define alloca _alloca
2440 # include <alloca.h>
2445 # ifndef alloca /* predefined by HP cc +Olibcalls */
2456 char *p = (char *) alloca (1);
2461 rm -f conftest.
$ac_objext conftest
$ac_exeext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2463 (eval $ac_link) 2>conftest.er1
2465 grep -v '^ *+' conftest.er1
>conftest.err
2467 cat conftest.err
>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try
='test -z "$ac_c_werror_flag"
2471 || test ! -s conftest.err'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try
='test -s conftest$ac_exeext'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
2483 ac_cv_func_alloca_works
=yes
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.
$ac_ext >&5
2488 ac_cv_func_alloca_works
=no
2490 rm -f conftest.err conftest.
$ac_objext \
2491 conftest
$ac_exeext conftest.
$ac_ext
2493 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2494 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2496 if test $ac_cv_func_alloca_works = yes; then
2498 cat >>confdefs.h
<<\_ACEOF
2499 #define HAVE_ALLOCA 1
2503 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2504 # that cause trouble. Some versions do not even contain alloca or
2505 # contain a buggy version. If you still want to use their alloca,
2506 # use ar to extract alloca.o from them instead of compiling alloca.c.
2508 ALLOCA
=alloca.
$ac_objext
2510 cat >>confdefs.h
<<\_ACEOF
2515 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2516 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2517 if test "${ac_cv_os_cray+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 cat >conftest.
$ac_ext <<_ACEOF
2523 cat confdefs.h
>>conftest.
$ac_ext
2524 cat >>conftest.
$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2526 #if defined(CRAY) && ! defined(CRAY2)
2533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2534 $EGREP "webecray" >/dev
/null
2>&1; then
2542 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2543 echo "${ECHO_T}$ac_cv_os_cray" >&6
2544 if test $ac_cv_os_cray = yes; then
2545 for ac_func
in _getb67 GETB67 getb67
; do
2546 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2547 echo "$as_me:$LINENO: checking for $ac_func" >&5
2548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2549 if eval "test \"\${$as_ac_var+set}\" = set"; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2552 cat >conftest.
$ac_ext <<_ACEOF
2555 cat confdefs.h
>>conftest.
$ac_ext
2556 cat >>conftest.
$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2560 #define $ac_func innocuous_$ac_func
2562 /* System header to define __stub macros and hopefully few prototypes,
2563 which can conflict with char $ac_func (); below.
2564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2565 <limits.h> exists even on freestanding compilers. */
2568 # include <limits.h>
2570 # include <assert.h>
2575 /* Override any gcc2 internal prototype to avoid an error. */
2580 /* We use char because int might match the return type of a gcc2
2581 builtin and then its argument prototype would still apply. */
2583 /* The GNU C library defines this for functions which it implements
2584 to always fail with ENOSYS. Some functions are actually named
2585 something starting with __ and the normal name is an alias. */
2586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2589 char (*f) () = $ac_func;
2598 return f != $ac_func;
2603 rm -f conftest.
$ac_objext conftest
$ac_exeext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2605 (eval $ac_link) 2>conftest.er1
2607 grep -v '^ *+' conftest.er1
>conftest.err
2609 cat conftest.err
>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try
='test -z "$ac_c_werror_flag"
2613 || test ! -s conftest.err'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try
='test -s conftest$ac_exeext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 eval "$as_ac_var=yes"
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.
$ac_ext >&5
2630 eval "$as_ac_var=no"
2632 rm -f conftest.err conftest.
$ac_objext \
2633 conftest
$ac_exeext conftest.
$ac_ext
2635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2637 if test `eval echo '${'$as_ac_var'}'` = yes; then
2639 cat >>confdefs.h
<<_ACEOF
2640 #define CRAY_STACKSEG_END $ac_func
2649 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2650 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2651 if test "${ac_cv_c_stack_direction+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 if test "$cross_compiling" = yes; then
2655 ac_cv_c_stack_direction
=0
2657 cat >conftest.
$ac_ext <<_ACEOF
2660 cat confdefs.h
>>conftest.
$ac_ext
2661 cat >>conftest.
$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2664 find_stack_direction ()
2666 static char *addr = 0;
2671 return find_stack_direction ();
2674 return (&dummy > addr) ? 1 : -1;
2680 exit (find_stack_direction () < 0);
2683 rm -f conftest
$ac_exeext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2685 (eval $ac_link) 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_c_stack_direction
=1
2696 echo "$as_me: program exited with status $ac_status" >&5
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.
$ac_ext >&5
2701 ac_cv_c_stack_direction
=-1
2703 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2706 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2707 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2709 cat >>confdefs.h
<<_ACEOF
2710 #define STACK_DIRECTION $ac_cv_c_stack_direction
2718 for ac_header
in stdlib.h unistd.h
2720 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2722 echo "$as_me:$LINENO: checking for $ac_header" >&5
2723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2730 # Is the header compilable?
2731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2733 cat >conftest.
$ac_ext <<_ACEOF
2736 cat confdefs.h
>>conftest.
$ac_ext
2737 cat >>conftest.
$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2739 $ac_includes_default
2740 #include <$ac_header>
2742 rm -f conftest.
$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>conftest.er1
2746 grep -v '^ *+' conftest.er1
>conftest.err
2748 cat conftest.err
>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try
='test -z "$ac_c_werror_flag"
2752 || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try
='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 ac_header_compiler
=yes
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.
$ac_ext >&5
2769 ac_header_compiler
=no
2771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2773 echo "${ECHO_T}$ac_header_compiler" >&6
2775 # Is the header present?
2776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2778 cat >conftest.
$ac_ext <<_ACEOF
2781 cat confdefs.h
>>conftest.
$ac_ext
2782 cat >>conftest.
$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2784 #include <$ac_header>
2786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2787 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2789 grep -v '^ *+' conftest.er1
>conftest.err
2791 cat conftest.err
>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } >/dev
/null
; then
2794 if test -s conftest.err
; then
2795 ac_cpp_err
=$ac_c_preproc_warn_flag
2796 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2803 if test -z "$ac_cpp_err"; then
2804 ac_header_preproc
=yes
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.
$ac_ext >&5
2809 ac_header_preproc
=no
2811 rm -f conftest.err conftest.
$ac_ext
2812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2813 echo "${ECHO_T}$ac_header_preproc" >&6
2815 # So? What about this header?
2816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2822 ac_header_preproc
=yes
2825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2839 ## ------------------------------------------ ##
2840 ## Report this to the AC_PACKAGE_NAME lists. ##
2841 ## ------------------------------------------ ##
2844 sed "s/^/$as_me: WARNING: /" >&2
2847 echo "$as_me:$LINENO: checking for $ac_header" >&5
2848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 eval "$as_ac_Header=\$ac_header_preproc"
2854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2859 cat >>confdefs.h
<<_ACEOF
2860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2868 for ac_func
in getpagesize
2870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2871 echo "$as_me:$LINENO: checking for $ac_func" >&5
2872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2873 if eval "test \"\${$as_ac_var+set}\" = set"; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 cat >conftest.
$ac_ext <<_ACEOF
2879 cat confdefs.h
>>conftest.
$ac_ext
2880 cat >>conftest.
$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2884 #define $ac_func innocuous_$ac_func
2886 /* System header to define __stub macros and hopefully few prototypes,
2887 which can conflict with char $ac_func (); below.
2888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2889 <limits.h> exists even on freestanding compilers. */
2892 # include <limits.h>
2894 # include <assert.h>
2899 /* Override any gcc2 internal prototype to avoid an error. */
2904 /* We use char because int might match the return type of a gcc2
2905 builtin and then its argument prototype would still apply. */
2907 /* The GNU C library defines this for functions which it implements
2908 to always fail with ENOSYS. Some functions are actually named
2909 something starting with __ and the normal name is an alias. */
2910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2913 char (*f) () = $ac_func;
2922 return f != $ac_func;
2927 rm -f conftest.
$ac_objext conftest
$ac_exeext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929 (eval $ac_link) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1
>conftest.err
2933 cat conftest.err
>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try
='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try
='test -s conftest$ac_exeext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 eval "$as_ac_var=yes"
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.
$ac_ext >&5
2954 eval "$as_ac_var=no"
2956 rm -f conftest.err conftest.
$ac_objext \
2957 conftest
$ac_exeext conftest.
$ac_ext
2959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2961 if test `eval echo '${'$as_ac_var'}'` = yes; then
2962 cat >>confdefs.h
<<_ACEOF
2963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2969 echo "$as_me:$LINENO: checking for working mmap" >&5
2970 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2971 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 if test "$cross_compiling" = yes; then
2975 ac_cv_func_mmap_fixed_mapped
=no
2977 cat >conftest.
$ac_ext <<_ACEOF
2980 cat confdefs.h
>>conftest.
$ac_ext
2981 cat >>conftest.
$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 $ac_includes_default
2984 /* malloc might have been renamed as rpl_malloc. */
2987 /* Thanks to Mike Haertel and Jim Avera for this test.
2988 Here is a matrix of mmap possibilities:
2989 mmap private not fixed
2990 mmap private fixed at somewhere currently unmapped
2991 mmap private fixed at somewhere already mapped
2992 mmap shared not fixed
2993 mmap shared fixed at somewhere currently unmapped
2994 mmap shared fixed at somewhere already mapped
2995 For private mappings, we should verify that changes cannot be read()
2996 back from the file, nor mmap's back from the file at a different
2997 address. (There have been systems where private was not correctly
2998 implemented like the infamous i386 svr4.0, and systems where the
2999 VM page cache was not coherent with the file system buffer cache
3000 like early versions of FreeBSD and possibly contemporary NetBSD.)
3001 For shared mappings, we should conversely verify that changes get
3002 propagated back to all the places they're supposed to be.
3004 Grep wants private fixed already mapped.
3005 The main things grep needs to know about mmap are:
3006 * does it exist and is it safe to write into the mmap'd area
3007 * how to use it (BSD variants) */
3010 #include <sys/mman.h>
3012 #if !STDC_HEADERS && !HAVE_STDLIB_H
3016 /* This mess was copied from the GNU getpagesize.h. */
3017 #if !HAVE_GETPAGESIZE
3018 /* Assume that all systems that can run configure have sys/param.h. */
3019 # if !HAVE_SYS_PARAM_H
3020 # define HAVE_SYS_PARAM_H 1
3023 # ifdef _SC_PAGESIZE
3024 # define getpagesize() sysconf(_SC_PAGESIZE)
3025 # else /* no _SC_PAGESIZE */
3026 # if HAVE_SYS_PARAM_H
3027 # include <sys/param.h>
3028 # ifdef EXEC_PAGESIZE
3029 # define getpagesize() EXEC_PAGESIZE
3030 # else /* no EXEC_PAGESIZE */
3032 # define getpagesize() NBPG * CLSIZE
3035 # endif /* no CLSIZE */
3036 # else /* no NBPG */
3038 # define getpagesize() NBPC
3039 # else /* no NBPC */
3041 # define getpagesize() PAGESIZE
3042 # endif /* PAGESIZE */
3043 # endif /* no NBPC */
3044 # endif /* no NBPG */
3045 # endif /* no EXEC_PAGESIZE */
3046 # else /* no HAVE_SYS_PARAM_H */
3047 # define getpagesize() 8192 /* punt totally */
3048 # endif /* no HAVE_SYS_PARAM_H */
3049 # endif /* no _SC_PAGESIZE */
3051 #endif /* no HAVE_GETPAGESIZE */
3056 char *data, *data2, *data3;
3060 pagesize = getpagesize ();
3062 /* First, make a file with some known garbage in it. */
3063 data = (char *) malloc (pagesize);
3066 for (i = 0; i < pagesize; ++i)
3067 *(data + i) = rand ();
3069 fd = creat ("conftest.mmap", 0600);
3072 if (write (fd, data, pagesize) != pagesize)
3076 /* Next, try to mmap the file at a fixed address which already has
3077 something else allocated at it. If we can, also make sure that
3078 we see the same garbage. */
3079 fd = open ("conftest.mmap", O_RDWR);
3082 data2 = (char *) malloc (2 * pagesize);
3085 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3086 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3087 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3089 for (i = 0; i < pagesize; ++i)
3090 if (*(data + i) != *(data2 + i))
3093 /* Finally, make sure that changes to the mapped area do not
3094 percolate back to the file as seen by read(). (This is a bug on
3095 some variants of i386 svr4.0.) */
3096 for (i = 0; i < pagesize; ++i)
3097 *(data2 + i) = *(data2 + i) + 1;
3098 data3 = (char *) malloc (pagesize);
3101 if (read (fd, data3, pagesize) != pagesize)
3103 for (i = 0; i < pagesize; ++i)
3104 if (*(data + i) != *(data3 + i))
3110 rm -f conftest
$ac_exeext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3112 (eval $ac_link) 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 ac_cv_func_mmap_fixed_mapped
=yes
3123 echo "$as_me: program exited with status $ac_status" >&5
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.
$ac_ext >&5
3128 ac_cv_func_mmap_fixed_mapped
=no
3130 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3133 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3134 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3135 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3137 cat >>confdefs.h
<<\_ACEOF
3145 # autoconf.info says this should be called right after AC_INIT.
3146 ac_config_headers
="$ac_config_headers config.h:config.in"
3148 echo "$as_me:$LINENO: checking target system type" >&5
3149 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3150 if test "${ac_cv_target+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 ac_cv_target_alias
=$target_alias
3154 test "x$ac_cv_target_alias" = "x" &&
3155 ac_cv_target_alias
=$ac_cv_host_alias
3156 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3157 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3158 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3159 { (exit 1); exit 1; }; }
3162 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3163 echo "${ECHO_T}$ac_cv_target" >&6
3164 target
=$ac_cv_target
3165 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3166 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3167 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3170 # The aliases save the names the user supplied, while $host etc.
3171 # will get canonicalized.
3172 test -n "$target_alias" &&
3173 test "$program_prefix$program_suffix$program_transform_name" = \
3175 program_prefix
=${target_alias}-
3176 test "$program_prefix" != NONE
&&
3177 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3178 # Use a double $ so make ignores it.
3179 test "$program_suffix" != NONE
&&
3180 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3181 # Double any \ or $. echo might interpret backslashes.
3182 # By default was `s,x,x', remove it if useless.
3183 cat <<\_ACEOF
>conftest.
sed
3184 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3186 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3190 ac_cpp
='$CPP $CPPFLAGS'
3191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3194 if test -n "$ac_tool_prefix"; then
3195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3196 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3197 echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_prog_CC+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC
="$CC" # Let the user override the test.
3205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir
=.
3210 for ac_exec_ext
in '' $ac_executable_extensions; do
3211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 if test -n "$CC"; then
3223 echo "$as_me:$LINENO: result: $CC" >&5
3224 echo "${ECHO_T}$CC" >&6
3226 echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3231 if test -z "$ac_cv_prog_CC"; then
3233 # Extract the first word of "gcc", so it can be a program name with args.
3234 set dummy gcc
; ac_word
=$2
3235 echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 if test -n "$ac_ct_CC"; then
3241 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir
=.
3248 for ac_exec_ext
in '' $ac_executable_extensions; do
3249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_ac_ct_CC
="gcc"
3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3262 echo "${ECHO_T}$ac_ct_CC" >&6
3264 echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3273 if test -z "$CC"; then
3274 if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3276 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3277 echo "$as_me:$LINENO: checking for $ac_word" >&5
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279 if test "${ac_cv_prog_CC+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC
="$CC" # Let the user override the test.
3285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir
=.
3290 for ac_exec_ext
in '' $ac_executable_extensions; do
3291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 echo "$as_me:$LINENO: result: $CC" >&5
3304 echo "${ECHO_T}$CC" >&6
3306 echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3311 if test -z "$ac_cv_prog_CC"; then
3313 # Extract the first word of "cc", so it can be a program name with args.
3314 set dummy cc
; ac_word
=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_exec_ext
in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC
="cc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3340 if test -n "$ac_ct_CC"; then
3341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3342 echo "${ECHO_T}$ac_ct_CC" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3354 if test -z "$CC"; then
3355 # Extract the first word of "cc", so it can be a program name with args.
3356 set dummy cc
; ac_word
=$2
3357 echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_CC+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC
="$CC" # Let the user override the test.
3366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir
=.
3371 for ac_exec_ext
in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3374 ac_prog_rejected
=yes
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 if test $ac_prog_rejected = yes; then
3385 # We found a bogon in the path, so make sure we never use it.
3386 set dummy
$ac_cv_prog_CC
3388 if test $# != 0; then
3389 # We chose a different compiler from the bogus one.
3390 # However, it has the same basename, so the bogon will be chosen
3391 # first if we set CC to just the basename; use the full file name.
3393 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3399 if test -n "$CC"; then
3400 echo "$as_me:$LINENO: result: $CC" >&5
3401 echo "${ECHO_T}$CC" >&6
3403 echo "$as_me:$LINENO: result: no" >&5
3404 echo "${ECHO_T}no" >&6
3408 if test -z "$CC"; then
3409 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3413 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3414 echo "$as_me:$LINENO: checking for $ac_word" >&5
3415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3416 if test "${ac_cv_prog_CC+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC
="$CC" # Let the user override the test.
3422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir
=.
3427 for ac_exec_ext
in '' $ac_executable_extensions; do
3428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 if test -n "$CC"; then
3440 echo "$as_me:$LINENO: result: $CC" >&5
3441 echo "${ECHO_T}$CC" >&6
3443 echo "$as_me:$LINENO: result: no" >&5
3444 echo "${ECHO_T}no" >&6
3447 test -n "$CC" && break
3450 if test -z "$CC"; then
3454 # Extract the first word of "$ac_prog", so it can be a program name with args.
3455 set dummy
$ac_prog; ac_word
=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 if test -n "$ac_ct_CC"; then
3462 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir
=.
3469 for ac_exec_ext
in '' $ac_executable_extensions; do
3470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_ac_ct_CC
="$ac_prog"
3472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3483 echo "${ECHO_T}$ac_ct_CC" >&6
3485 echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3489 test -n "$ac_ct_CC" && break
3498 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3499 See \`config.log' for more details." >&5
3500 echo "$as_me: error: no acceptable C compiler found in \$PATH
3501 See \`config.log' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3504 # Provide some information about the compiler.
3505 echo "$as_me:$LINENO:" \
3506 "checking for C compiler version" >&5
3507 ac_compiler
=`set X $ac_compile; echo $2`
3508 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3509 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }
3513 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3514 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }
3518 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3519 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }
3524 cat >conftest.
$ac_ext <<_ACEOF
3527 cat confdefs.h
>>conftest.
$ac_ext
3528 cat >>conftest.
$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3539 ac_clean_files_save
=$ac_clean_files
3540 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3541 # Try to create an executable without -o first, disregard a.out.
3542 # It will help us diagnose broken compilers, and finding out an intuition
3544 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3545 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3546 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3547 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3548 (eval $ac_link_default) 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; then
3552 # Find the output, starting from the most likely. This scheme is
3553 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3556 # Be careful to initialize this variable, since it used to be cached.
3557 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3559 # b.out is created by i960 compilers.
3560 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3562 test -f "$ac_file" ||
continue
3564 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3567 # This is the source file.
3570 # We found the default executable, but exeext='' is most
3574 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3575 # FIXME: I believe we export ac_cv_exeext for Libtool,
3576 # but it would be cool to find out if it's true. Does anybody
3577 # maintain Libtool? --akim.
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.
$ac_ext >&5
3588 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3589 See \`config.log' for more details." >&5
3590 echo "$as_me: error: C compiler cannot create executables
3591 See \`config.log' for more details." >&2;}
3592 { (exit 77); exit 77; }; }
3595 ac_exeext
=$ac_cv_exeext
3596 echo "$as_me:$LINENO: result: $ac_file" >&5
3597 echo "${ECHO_T}$ac_file" >&6
3599 # Check the compiler produces executables we can run. If not, either
3600 # the compiler is broken, or we cross compile.
3601 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3602 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3603 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3604 # If not cross compiling, check that we can run a simple program.
3605 if test "$cross_compiling" != yes; then
3606 if { ac_try
='./$ac_file'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3614 if test "$cross_compiling" = maybe
; then
3617 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&5
3620 echo "$as_me: error: cannot run C compiled programs.
3621 If you meant to cross compile, use \`--host'.
3622 See \`config.log' for more details." >&2;}
3623 { (exit 1); exit 1; }; }
3627 echo "$as_me:$LINENO: result: yes" >&5
3628 echo "${ECHO_T}yes" >&6
3630 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3631 ac_clean_files
=$ac_clean_files_save
3632 # Check the compiler produces executables we can run. If not, either
3633 # the compiler is broken, or we cross compile.
3634 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3635 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3636 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3637 echo "${ECHO_T}$cross_compiling" >&6
3639 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3640 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; then
3646 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3647 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3648 # work properly (i.e., refer to `conftest.exe'), while it won't with
3650 for ac_file
in conftest.exe conftest conftest.
*; do
3651 test -f "$ac_file" ||
continue
3653 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3654 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3662 See \`config.log' for more details." >&5
3663 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3664 See \`config.log' for more details." >&2;}
3665 { (exit 1); exit 1; }; }
3668 rm -f conftest
$ac_cv_exeext
3669 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3670 echo "${ECHO_T}$ac_cv_exeext" >&6
3672 rm -f conftest.
$ac_ext
3673 EXEEXT
=$ac_cv_exeext
3675 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3676 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3677 if test "${ac_cv_objext+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 cat >conftest.
$ac_ext <<_ACEOF
3683 cat confdefs.h
>>conftest.
$ac_ext
3684 cat >>conftest.
$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3695 rm -f conftest.o conftest.obj
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; then
3701 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3703 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3704 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.
$ac_ext >&5
3712 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3713 See \`config.log' for more details." >&5
3714 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3715 See \`config.log' for more details." >&2;}
3716 { (exit 1); exit 1; }; }
3719 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3721 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3722 echo "${ECHO_T}$ac_cv_objext" >&6
3723 OBJEXT
=$ac_cv_objext
3725 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3726 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3727 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 cat >conftest.
$ac_ext <<_ACEOF
3733 cat confdefs.h
>>conftest.
$ac_ext
3734 cat >>conftest.
$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3748 rm -f conftest.
$ac_objext
3749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3750 (eval $ac_compile) 2>conftest.er1
3752 grep -v '^ *+' conftest.er1
>conftest.err
3754 cat conftest.err
>&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } &&
3757 { ac_try
='test -z "$ac_c_werror_flag"
3758 || test ! -s conftest.err'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; } &&
3764 { ac_try
='test -s conftest.$ac_objext'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; }; then
3772 echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.
$ac_ext >&5
3777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3778 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3781 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3783 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3784 ac_test_CFLAGS
=${CFLAGS+set}
3785 ac_save_CFLAGS
=$CFLAGS
3787 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3788 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3789 if test "${ac_cv_prog_cc_g+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 cat >conftest.
$ac_ext <<_ACEOF
3795 cat confdefs.h
>>conftest.
$ac_ext
3796 cat >>conftest.
$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3807 rm -f conftest.
$ac_objext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>conftest.er1
3811 grep -v '^ *+' conftest.er1
>conftest.err
3813 cat conftest.err
>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try
='test -z "$ac_c_werror_flag"
3817 || test ! -s conftest.err'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try
='test -s conftest.$ac_objext'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.
$ac_ext >&5
3836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3838 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3839 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3840 if test "$ac_test_CFLAGS" = set; then
3841 CFLAGS
=$ac_save_CFLAGS
3842 elif test $ac_cv_prog_cc_g = yes; then
3843 if test "$GCC" = yes; then
3849 if test "$GCC" = yes; then
3855 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3856 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3857 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 ac_cv_prog_cc_stdc
=no
3862 cat >conftest.
$ac_ext <<_ACEOF
3865 cat confdefs.h
>>conftest.
$ac_ext
3866 cat >>conftest.
$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3870 #include <sys/types.h>
3871 #include <sys/stat.h>
3872 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3873 struct buf { int x; };
3874 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3875 static char *e (p, i)
3881 static char *f (char * (*g) (char **, int), char **p, ...)
3886 s = g (p, va_arg (v,int));
3891 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3892 function prototypes and stuff, but not '\xHH' hex character constants.
3893 These don't provoke an error unfortunately, instead are silently treated
3894 as 'x'. The following induces an error, until -std1 is added to get
3895 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3896 array size at least. It's necessary to write '\x00'==0 to get something
3897 that's true only with -std1. */
3898 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3900 int test (int i, double x);
3901 struct s1 {int (*f) (int a);};
3902 struct s2 {int (*f) (double a);};
3903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3914 # Don't try gcc -ansi; that turns off useful extensions and
3915 # breaks some systems' header files.
3916 # AIX -qlanglvl=ansi
3917 # Ultrix and OSF/1 -std1
3918 # HP-UX 10.20 and later -Ae
3919 # HP-UX older versions -Aa -D_HPUX_SOURCE
3920 # SVR4 -Xc -D__EXTENSIONS__
3921 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923 CC
="$ac_save_CC $ac_arg"
3924 rm -f conftest.
$ac_objext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>conftest.er1
3928 grep -v '^ *+' conftest.er1
>conftest.err
3930 cat conftest.err
>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try
='test -z "$ac_c_werror_flag"
3934 || test ! -s conftest.err'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; } &&
3940 { ac_try
='test -s conftest.$ac_objext'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 ac_cv_prog_cc_stdc
=$ac_arg
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.
$ac_ext >&5
3953 rm -f conftest.err conftest.
$ac_objext
3955 rm -f conftest.
$ac_ext conftest.
$ac_objext
3960 case "x$ac_cv_prog_cc_stdc" in
3962 echo "$as_me:$LINENO: result: none needed" >&5
3963 echo "${ECHO_T}none needed" >&6 ;;
3965 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3966 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3967 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3970 # Some people use a C++ compiler to compile C. Since we use `exit',
3971 # in C++ we need to declare it. In case someone uses the same compiler
3972 # for both compiling C and C++ we need to have the C++ compiler decide
3973 # the declaration of exit, since it's the most demanding environment.
3974 cat >conftest.
$ac_ext <<_ACEOF
3979 rm -f conftest.
$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>conftest.er1
3983 grep -v '^ *+' conftest.er1
>conftest.err
3985 cat conftest.err
>&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try
='test -z "$ac_c_werror_flag"
3989 || test ! -s conftest.err'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; } &&
3995 { ac_try
='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 for ac_declaration
in \
4003 'extern "C" void std::exit (int) throw (); using std::exit;' \
4004 'extern "C" void std::exit (int); using std::exit;' \
4005 'extern "C" void exit (int) throw ();' \
4006 'extern "C" void exit (int);' \
4009 cat >conftest.
$ac_ext <<_ACEOF
4012 cat confdefs.h
>>conftest.
$ac_ext
4013 cat >>conftest.
$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4025 rm -f conftest.
$ac_objext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>conftest.er1
4029 grep -v '^ *+' conftest.er1
>conftest.err
4031 cat conftest.err
>&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try
='test -z "$ac_c_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try
='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.
$ac_ext >&5
4054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4055 cat >conftest.
$ac_ext <<_ACEOF
4058 cat confdefs.h
>>conftest.
$ac_ext
4059 cat >>conftest.
$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4070 rm -f conftest.
$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>conftest.er1
4074 grep -v '^ *+' conftest.er1
>conftest.err
4076 cat conftest.err
>&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try
='test -z "$ac_c_werror_flag"
4080 || test ! -s conftest.err'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try
='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.
$ac_ext >&5
4098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4101 if test -n "$ac_declaration"; then
4102 echo '#ifdef __cplusplus' >>confdefs.h
4103 echo $ac_declaration >>confdefs.h
4104 echo '#endif' >>confdefs.h
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.
$ac_ext >&5
4112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4114 ac_cpp
='$CPP $CPPFLAGS'
4115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4119 # Find a good install program. We prefer a C program (faster),
4120 # so one script is as good as another. But avoid the broken or
4121 # incompatible versions:
4122 # SysV /etc/install, /usr/sbin/install
4123 # SunOS /usr/etc/install
4124 # IRIX /sbin/install
4126 # AmigaOS /C/install, which installs bootblocks on floppy discs
4127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4130 # OS/2's system install, which has a completely different semantic
4131 # ./install, which can be erroneously created by make from ./install.sh.
4132 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4134 if test -z "$INSTALL"; then
4135 if test "${ac_cv_path_install+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir
=.
4143 # Account for people who put trailing slashes in PATH elements.
4145 .
/ | .
// |
/cC
/* | \
4146 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4147 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4150 # OSF1 and SCO ODT 3.0 have their own names for install.
4151 # Don't use installbsd from OSF since it installs stuff as root
4153 for ac_prog
in ginstall scoinst
install; do
4154 for ac_exec_ext
in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4156 if test $ac_prog = install &&
4157 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4158 # AIX install. It has an incompatible calling convention.
4160 elif test $ac_prog = install &&
4161 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4162 # program-specific install script used by HP pwplus--don't use.
4165 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4177 if test "${ac_cv_path_install+set}" = set; then
4178 INSTALL
=$ac_cv_path_install
4180 # As a last resort, use the slow shell script. We don't cache a
4181 # path for INSTALL within a source directory, because that will
4182 # break other packages using the cache if that directory is
4183 # removed, or if the path is relative.
4184 INSTALL
=$ac_install_sh
4187 echo "$as_me:$LINENO: result: $INSTALL" >&5
4188 echo "${ECHO_T}$INSTALL" >&6
4190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4191 # It thinks the first close brace ends the variable substitution.
4192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4196 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4199 # Put a plausible default for CC_FOR_BUILD in Makefile.
4200 if test "x$cross_compiling" = "xno"; then
4201 CC_FOR_BUILD
='$(CC)'
4211 if test -n "$ac_tool_prefix"; then
4212 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4213 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4214 echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4216 if test "${ac_cv_prog_RANLIB+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -n "$RANLIB"; then
4220 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4226 test -z "$as_dir" && as_dir
=.
4227 for ac_exec_ext
in '' $ac_executable_extensions; do
4228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 RANLIB
=$ac_cv_prog_RANLIB
4239 if test -n "$RANLIB"; then
4240 echo "$as_me:$LINENO: result: $RANLIB" >&5
4241 echo "${ECHO_T}$RANLIB" >&6
4243 echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6
4248 if test -z "$ac_cv_prog_RANLIB"; then
4249 ac_ct_RANLIB
=$RANLIB
4250 # Extract the first word of "ranlib", so it can be a program name with args.
4251 set dummy ranlib
; ac_word
=$2
4252 echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if test -n "$ac_ct_RANLIB"; then
4258 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir
=.
4265 for ac_exec_ext
in '' $ac_executable_extensions; do
4266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4277 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4278 if test -n "$ac_ct_RANLIB"; then
4279 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4280 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4282 echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6
4286 RANLIB
=$ac_ct_RANLIB
4288 RANLIB
="$ac_cv_prog_RANLIB"
4303 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4304 unistd.h values.h sys
/param.h
4306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308 echo "$as_me:$LINENO: checking for $ac_header" >&5
4309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316 # Is the header compilable?
4317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4319 cat >conftest.
$ac_ext <<_ACEOF
4322 cat confdefs.h
>>conftest.
$ac_ext
4323 cat >>conftest.
$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 $ac_includes_default
4326 #include <$ac_header>
4328 rm -f conftest.
$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>conftest.er1
4332 grep -v '^ *+' conftest.er1
>conftest.err
4334 cat conftest.err
>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try
='test -z "$ac_c_werror_flag"
4338 || test ! -s conftest.err'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; } &&
4344 { ac_try
='test -s conftest.$ac_objext'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 ac_header_compiler
=yes
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.
$ac_ext >&5
4355 ac_header_compiler
=no
4357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4359 echo "${ECHO_T}$ac_header_compiler" >&6
4361 # Is the header present?
4362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4364 cat >conftest.
$ac_ext <<_ACEOF
4367 cat confdefs.h
>>conftest.
$ac_ext
4368 cat >>conftest.
$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <$ac_header>
4372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4375 grep -v '^ *+' conftest.er1
>conftest.err
4377 cat conftest.err
>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } >/dev
/null
; then
4380 if test -s conftest.err
; then
4381 ac_cpp_err
=$ac_c_preproc_warn_flag
4382 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4389 if test -z "$ac_cpp_err"; then
4390 ac_header_preproc
=yes
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.
$ac_ext >&5
4395 ac_header_preproc
=no
4397 rm -f conftest.err conftest.
$ac_ext
4398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4399 echo "${ECHO_T}$ac_header_preproc" >&6
4401 # So? What about this header?
4402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4408 ac_header_preproc
=yes
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4425 ## ------------------------------------------ ##
4426 ## Report this to the AC_PACKAGE_NAME lists. ##
4427 ## ------------------------------------------ ##
4430 sed "s/^/$as_me: WARNING: /" >&2
4433 echo "$as_me:$LINENO: checking for $ac_header" >&5
4434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 eval "$as_ac_Header=\$ac_header_preproc"
4440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4445 cat >>confdefs.h
<<_ACEOF
4446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4463 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4464 __argz_count __argz_stringify __argz_next
4466 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4467 echo "$as_me:$LINENO: checking for $ac_func" >&5
4468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4469 if eval "test \"\${$as_ac_var+set}\" = set"; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 cat >conftest.
$ac_ext <<_ACEOF
4475 cat confdefs.h
>>conftest.
$ac_ext
4476 cat >>conftest.
$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4480 #define $ac_func innocuous_$ac_func
4482 /* System header to define __stub macros and hopefully few prototypes,
4483 which can conflict with char $ac_func (); below.
4484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485 <limits.h> exists even on freestanding compilers. */
4488 # include <limits.h>
4490 # include <assert.h>
4495 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4503 /* The GNU C library defines this for functions which it implements
4504 to always fail with ENOSYS. Some functions are actually named
4505 something starting with __ and the normal name is an alias. */
4506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4509 char (*f) () = $ac_func;
4518 return f != $ac_func;
4523 rm -f conftest.
$ac_objext conftest
$ac_exeext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4525 (eval $ac_link) 2>conftest.er1
4527 grep -v '^ *+' conftest.er1
>conftest.err
4529 cat conftest.err
>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try
='test -z "$ac_c_werror_flag"
4533 || test ! -s conftest.err'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; } &&
4539 { ac_try
='test -s conftest$ac_exeext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
4545 eval "$as_ac_var=yes"
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.
$ac_ext >&5
4550 eval "$as_ac_var=no"
4552 rm -f conftest.err conftest.
$ac_objext \
4553 conftest
$ac_exeext conftest.
$ac_ext
4555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4557 if test `eval echo '${'$as_ac_var'}'` = yes; then
4558 cat >>confdefs.h
<<_ACEOF
4559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4566 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4568 for ac_func
in stpcpy
4570 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4571 echo "$as_me:$LINENO: checking for $ac_func" >&5
4572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4573 if eval "test \"\${$as_ac_var+set}\" = set"; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat >conftest.
$ac_ext <<_ACEOF
4579 cat confdefs.h
>>conftest.
$ac_ext
4580 cat >>conftest.
$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4584 #define $ac_func innocuous_$ac_func
4586 /* System header to define __stub macros and hopefully few prototypes,
4587 which can conflict with char $ac_func (); below.
4588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589 <limits.h> exists even on freestanding compilers. */
4592 # include <limits.h>
4594 # include <assert.h>
4599 /* Override any gcc2 internal prototype to avoid an error. */
4604 /* We use char because int might match the return type of a gcc2
4605 builtin and then its argument prototype would still apply. */
4607 /* The GNU C library defines this for functions which it implements
4608 to always fail with ENOSYS. Some functions are actually named
4609 something starting with __ and the normal name is an alias. */
4610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4613 char (*f) () = $ac_func;
4622 return f != $ac_func;
4627 rm -f conftest.
$ac_objext conftest
$ac_exeext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629 (eval $ac_link) 2>conftest.er1
4631 grep -v '^ *+' conftest.er1
>conftest.err
4633 cat conftest.err
>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try
='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try
='test -s conftest$ac_exeext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 eval "$as_ac_var=yes"
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.
$ac_ext >&5
4654 eval "$as_ac_var=no"
4656 rm -f conftest.err conftest.
$ac_objext \
4657 conftest
$ac_exeext conftest.
$ac_ext
4659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4661 if test `eval echo '${'$as_ac_var'}'` = yes; then
4662 cat >>confdefs.h
<<_ACEOF
4663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4670 if test "${ac_cv_func_stpcpy}" = "yes"; then
4671 cat >>confdefs.h
<<\_ACEOF
4672 #define HAVE_STPCPY 1
4677 if test $ac_cv_header_locale_h = yes; then
4678 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4679 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4680 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 cat >conftest.
$ac_ext <<_ACEOF
4686 cat confdefs.h
>>conftest.
$ac_ext
4687 cat >>conftest.
$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4698 rm -f conftest.
$ac_objext conftest
$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1
>conftest.err
4704 cat conftest.err
>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try
='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try
='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 am_cv_val_LC_MESSAGES
=yes
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4725 am_cv_val_LC_MESSAGES
=no
4727 rm -f conftest.err conftest.
$ac_objext \
4728 conftest
$ac_exeext conftest.
$ac_ext
4730 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4731 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4732 if test $am_cv_val_LC_MESSAGES = yes; then
4733 cat >>confdefs.h
<<\_ACEOF
4734 #define HAVE_LC_MESSAGES 1
4739 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4740 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4741 # Check whether --enable-nls or --disable-nls was given.
4742 if test "${enable_nls+set}" = set; then
4743 enableval
="$enable_nls"
4748 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4749 echo "${ECHO_T}$USE_NLS" >&6
4752 USE_INCLUDED_LIBINTL
=no
4754 if test "$USE_NLS" = "yes"; then
4755 cat >>confdefs.h
<<\_ACEOF
4756 #define ENABLE_NLS 1
4759 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4760 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4762 # Check whether --with-included-gettext or --without-included-gettext was given.
4763 if test "${with_included_gettext+set}" = set; then
4764 withval
="$with_included_gettext"
4765 nls_cv_force_use_gnu_gettext
=$withval
4767 nls_cv_force_use_gnu_gettext
=no
4769 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4770 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4772 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4773 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4775 nls_cv_header_libgt
=
4778 if test "${ac_cv_header_libintl_h+set}" = set; then
4779 echo "$as_me:$LINENO: checking for libintl.h" >&5
4780 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4781 if test "${ac_cv_header_libintl_h+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4785 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4787 # Is the header compilable?
4788 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4789 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4790 cat >conftest.
$ac_ext <<_ACEOF
4793 cat confdefs.h
>>conftest.
$ac_ext
4794 cat >>conftest.
$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 $ac_includes_default
4797 #include <libintl.h>
4799 rm -f conftest.
$ac_objext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801 (eval $ac_compile) 2>conftest.er1
4803 grep -v '^ *+' conftest.er1
>conftest.err
4805 cat conftest.err
>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try
='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try
='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler
=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.
$ac_ext >&5
4826 ac_header_compiler
=no
4828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6
4832 # Is the header present?
4833 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4834 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4835 cat >conftest.
$ac_ext <<_ACEOF
4838 cat confdefs.h
>>conftest.
$ac_ext
4839 cat >>conftest.
$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <libintl.h>
4843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4846 grep -v '^ *+' conftest.er1
>conftest.err
4848 cat conftest.err
>&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev
/null
; then
4851 if test -s conftest.err
; then
4852 ac_cpp_err
=$ac_c_preproc_warn_flag
4853 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4860 if test -z "$ac_cpp_err"; then
4861 ac_header_preproc
=yes
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.
$ac_ext >&5
4866 ac_header_preproc
=no
4868 rm -f conftest.err conftest.
$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4872 # So? What about this header?
4873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4878 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc
=yes
4882 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4883 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4885 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4887 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4889 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4893 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4896 ## ------------------------------------------ ##
4897 ## Report this to the AC_PACKAGE_NAME lists. ##
4898 ## ------------------------------------------ ##
4901 sed "s/^/$as_me: WARNING: /" >&2
4904 echo "$as_me:$LINENO: checking for libintl.h" >&5
4905 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4906 if test "${ac_cv_header_libintl_h+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_cv_header_libintl_h
=$ac_header_preproc
4911 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4912 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4915 if test $ac_cv_header_libintl_h = yes; then
4916 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4917 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4918 if test "${gt_cv_func_gettext_libc+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 cat >conftest.
$ac_ext <<_ACEOF
4924 cat confdefs.h
>>conftest.
$ac_ext
4925 cat >>conftest.
$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 #include <libintl.h>
4931 return (int) gettext ("")
4936 rm -f conftest.
$ac_objext conftest
$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>conftest.er1
4940 grep -v '^ *+' conftest.er1
>conftest.err
4942 cat conftest.err
>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try
='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try
='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 gt_cv_func_gettext_libc
=yes
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.
$ac_ext >&5
4963 gt_cv_func_gettext_libc
=no
4965 rm -f conftest.err conftest.
$ac_objext \
4966 conftest
$ac_exeext conftest.
$ac_ext
4968 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4969 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4971 if test "$gt_cv_func_gettext_libc" != "yes"; then
4972 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4973 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4974 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 ac_check_lib_save_LIBS
=$LIBS
4979 cat >conftest.
$ac_ext <<_ACEOF
4982 cat confdefs.h
>>conftest.
$ac_ext
4983 cat >>conftest.
$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4986 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4992 char bindtextdomain ();
5001 rm -f conftest.
$ac_objext conftest
$ac_exeext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5003 (eval $ac_link) 2>conftest.er1
5005 grep -v '^ *+' conftest.er1
>conftest.err
5007 cat conftest.err
>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try
='test -z "$ac_c_werror_flag"
5011 || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try
='test -s conftest$ac_exeext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_cv_lib_intl_bindtextdomain
=yes
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.
$ac_ext >&5
5028 ac_cv_lib_intl_bindtextdomain
=no
5030 rm -f conftest.err conftest.
$ac_objext \
5031 conftest
$ac_exeext conftest.
$ac_ext
5032 LIBS
=$ac_check_lib_save_LIBS
5034 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5035 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5036 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5037 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5038 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5039 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 cat >conftest.
$ac_ext <<_ACEOF
5045 cat confdefs.h
>>conftest.
$ac_ext
5046 cat >>conftest.
$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5052 return (int) gettext ("")
5057 rm -f conftest.
$ac_objext conftest
$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1
>conftest.err
5063 cat conftest.err
>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try
='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try
='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 gt_cv_func_gettext_libintl
=yes
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.
$ac_ext >&5
5084 gt_cv_func_gettext_libintl
=no
5086 rm -f conftest.err conftest.
$ac_objext \
5087 conftest
$ac_exeext conftest.
$ac_ext
5089 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5090 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5095 if test "$gt_cv_func_gettext_libc" = "yes" \
5096 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5097 cat >>confdefs.h
<<\_ACEOF
5098 #define HAVE_GETTEXT 1
5101 # Extract the first word of "msgfmt", so it can be a program name with args.
5102 set dummy msgfmt
; ac_word
=$2
5103 echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105 if test "${ac_cv_path_MSGFMT+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5114 for ac_dir
in $PATH; do
5115 test -z "$ac_dir" && ac_dir
=.
5116 if test -f $ac_dir/$ac_word; then
5117 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5118 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5124 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5128 MSGFMT
="$ac_cv_path_MSGFMT"
5129 if test -n "$MSGFMT"; then
5130 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5131 echo "${ECHO_T}$MSGFMT" >&6
5133 echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6
5136 if test "$MSGFMT" != "no"; then
5138 for ac_func
in dcgettext
5140 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5141 echo "$as_me:$LINENO: checking for $ac_func" >&5
5142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5143 if eval "test \"\${$as_ac_var+set}\" = set"; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.
$ac_ext <<_ACEOF
5149 cat confdefs.h
>>conftest.
$ac_ext
5150 cat >>conftest.
$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5154 #define $ac_func innocuous_$ac_func
5156 /* System header to define __stub macros and hopefully few prototypes,
5157 which can conflict with char $ac_func (); below.
5158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159 <limits.h> exists even on freestanding compilers. */
5162 # include <limits.h>
5164 # include <assert.h>
5169 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5177 /* The GNU C library defines this for functions which it implements
5178 to always fail with ENOSYS. Some functions are actually named
5179 something starting with __ and the normal name is an alias. */
5180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5183 char (*f) () = $ac_func;
5192 return f != $ac_func;
5197 rm -f conftest.
$ac_objext conftest
$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>conftest.er1
5201 grep -v '^ *+' conftest.er1
>conftest.err
5203 cat conftest.err
>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try
='test -z "$ac_c_werror_flag"
5207 || test ! -s conftest.err'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; } &&
5213 { ac_try
='test -s conftest$ac_exeext'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5219 eval "$as_ac_var=yes"
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.
$ac_ext >&5
5224 eval "$as_ac_var=no"
5226 rm -f conftest.err conftest.
$ac_objext \
5227 conftest
$ac_exeext conftest.
$ac_ext
5229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5231 if test `eval echo '${'$as_ac_var'}'` = yes; then
5232 cat >>confdefs.h
<<_ACEOF
5233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5239 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5240 set dummy gmsgfmt
; ac_word
=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir
=.
5256 for ac_exec_ext
in '' $ac_executable_extensions; do
5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5269 GMSGFMT
=$ac_cv_path_GMSGFMT
5271 if test -n "$GMSGFMT"; then
5272 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5273 echo "${ECHO_T}$GMSGFMT" >&6
5275 echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5279 # Extract the first word of "xgettext", so it can be a program name with args.
5280 set dummy xgettext
; ac_word
=$2
5281 echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5283 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5291 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5292 for ac_dir
in $PATH; do
5293 test -z "$ac_dir" && ac_dir
=.
5294 if test -f $ac_dir/$ac_word; then
5295 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5296 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5302 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5306 XGETTEXT
="$ac_cv_path_XGETTEXT"
5307 if test -n "$XGETTEXT"; then
5308 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5309 echo "${ECHO_T}$XGETTEXT" >&6
5311 echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6
5315 cat >conftest.
$ac_ext <<_ACEOF
5318 cat confdefs.h
>>conftest.
$ac_ext
5319 cat >>conftest.
$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5325 extern int _nl_msg_cat_cntr;
5326 return _nl_msg_cat_cntr
5331 rm -f conftest.
$ac_objext conftest
$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333 (eval $ac_link) 2>conftest.er1
5335 grep -v '^ *+' conftest.er1
>conftest.err
5337 cat conftest.err
>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try
='test -z "$ac_c_werror_flag"
5341 || test ! -s conftest.err'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try
='test -s conftest$ac_exeext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.
$ac_ext >&5
5362 rm -f conftest.err conftest.
$ac_objext \
5363 conftest
$ac_exeext conftest.
$ac_ext
5373 if test "$CATOBJEXT" = "NONE"; then
5374 nls_cv_use_gnu_gettext
=yes
5378 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5379 INTLOBJS
="\$(GETTOBJS)"
5380 # Extract the first word of "msgfmt", so it can be a program name with args.
5381 set dummy msgfmt
; ac_word
=$2
5382 echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384 if test "${ac_cv_path_MSGFMT+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5392 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5393 for ac_dir
in $PATH; do
5394 test -z "$ac_dir" && ac_dir
=.
5395 if test -f $ac_dir/$ac_word; then
5396 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5397 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5403 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5407 MSGFMT
="$ac_cv_path_MSGFMT"
5408 if test -n "$MSGFMT"; then
5409 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5410 echo "${ECHO_T}$MSGFMT" >&6
5412 echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5416 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5417 set dummy gmsgfmt
; ac_word
=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir
=.
5433 for ac_exec_ext
in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5446 GMSGFMT
=$ac_cv_path_GMSGFMT
5448 if test -n "$GMSGFMT"; then
5449 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5450 echo "${ECHO_T}$GMSGFMT" >&6
5452 echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6
5456 # Extract the first word of "xgettext", so it can be a program name with args.
5457 set dummy xgettext
; ac_word
=$2
5458 echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5460 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5468 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5469 for ac_dir
in $PATH; do
5470 test -z "$ac_dir" && ac_dir
=.
5471 if test -f $ac_dir/$ac_word; then
5472 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5473 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5479 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5483 XGETTEXT
="$ac_cv_path_XGETTEXT"
5484 if test -n "$XGETTEXT"; then
5485 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5486 echo "${ECHO_T}$XGETTEXT" >&6
5488 echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6
5493 USE_INCLUDED_LIBINTL
=yes
5497 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5499 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5500 nls_cv_header_intl
=libintl.h
5501 nls_cv_header_libgt
=libgettext.h
5504 if test "$XGETTEXT" != ":"; then
5505 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5508 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5509 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5514 # We need to process the po/ directory.
5518 nls_cv_header_intl
=libintl.h
5519 nls_cv_header_libgt
=libgettext.h
5522 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5523 # because some of the sources are only built for this goal.
5524 if test "$PACKAGE" = gettext; then
5526 USE_INCLUDED_LIBINTL
=yes
5529 for lang
in $ALL_LINGUAS; do
5530 GMOFILES
="$GMOFILES $lang.gmo"
5531 POFILES
="$POFILES $lang.po"
5547 if test "x$CATOBJEXT" != "x"; then
5548 if test "x$ALL_LINGUAS" = "x"; then
5551 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5552 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5554 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5555 case "$ALL_LINGUAS" in
5556 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5559 LINGUAS
=$NEW_LINGUAS
5560 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5561 echo "${ECHO_T}$LINGUAS" >&6
5564 if test -n "$LINGUAS"; then
5565 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5569 if test $ac_cv_header_locale_h = yes; then
5570 INCLUDE_LOCALE_H
="#include <locale.h>"
5573 /* The system does not provide the header <locale.h>. Take care yourself. */"
5577 if test -f $srcdir/po2tbl.
sed.
in; then
5578 if test "$CATOBJEXT" = ".cat"; then
5579 if test "${ac_cv_header_linux_version_h+set}" = set; then
5580 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5581 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5582 if test "${ac_cv_header_linux_version_h+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5586 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5588 # Is the header compilable?
5589 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5590 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5591 cat >conftest.
$ac_ext <<_ACEOF
5594 cat confdefs.h
>>conftest.
$ac_ext
5595 cat >>conftest.
$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 $ac_includes_default
5598 #include <linux/version.h>
5600 rm -f conftest.
$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1
>conftest.err
5606 cat conftest.err
>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try
='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try
='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_header_compiler
=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.
$ac_ext >&5
5627 ac_header_compiler
=no
5629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5631 echo "${ECHO_T}$ac_header_compiler" >&6
5633 # Is the header present?
5634 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5635 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5636 cat >conftest.
$ac_ext <<_ACEOF
5639 cat confdefs.h
>>conftest.
$ac_ext
5640 cat >>conftest.
$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <linux/version.h>
5644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5645 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5647 grep -v '^ *+' conftest.er1
>conftest.err
5649 cat conftest.err
>&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } >/dev
/null
; then
5652 if test -s conftest.err
; then
5653 ac_cpp_err
=$ac_c_preproc_warn_flag
5654 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5661 if test -z "$ac_cpp_err"; then
5662 ac_header_preproc
=yes
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.
$ac_ext >&5
5667 ac_header_preproc
=no
5669 rm -f conftest.err conftest.
$ac_ext
5670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5671 echo "${ECHO_T}$ac_header_preproc" >&6
5673 # So? What about this header?
5674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5676 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5677 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5678 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5679 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5680 ac_header_preproc
=yes
5683 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5684 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5685 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5686 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5687 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5688 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5690 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5691 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5692 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5694 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5697 ## ------------------------------------------ ##
5698 ## Report this to the AC_PACKAGE_NAME lists. ##
5699 ## ------------------------------------------ ##
5702 sed "s/^/$as_me: WARNING: /" >&2
5705 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5706 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5707 if test "${ac_cv_header_linux_version_h+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 ac_cv_header_linux_version_h
=$ac_header_preproc
5712 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5713 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5716 if test $ac_cv_header_linux_version_h = yes; then
5724 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5726 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5727 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5730 if test "$PACKAGE" = "gettext"; then
5740 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5746 if test -d $srcdir/po
; then
5747 test -d po || mkdir po
5748 if test "x$srcdir" != "x."; then
5749 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5750 posrcprefix
="$srcdir/"
5752 posrcprefix
="../$srcdir/"
5758 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5759 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5763 # Check for common headers.
5764 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5765 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5771 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5773 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775 echo "$as_me:$LINENO: checking for $ac_header" >&5
5776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5783 # Is the header compilable?
5784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5786 cat >conftest.
$ac_ext <<_ACEOF
5789 cat confdefs.h
>>conftest.
$ac_ext
5790 cat >>conftest.
$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 $ac_includes_default
5793 #include <$ac_header>
5795 rm -f conftest.
$ac_objext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>conftest.er1
5799 grep -v '^ *+' conftest.er1
>conftest.err
5801 cat conftest.err
>&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try
='test -z "$ac_c_werror_flag"
5805 || test ! -s conftest.err'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try
='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_header_compiler
=yes
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.
$ac_ext >&5
5822 ac_header_compiler
=no
5824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5826 echo "${ECHO_T}$ac_header_compiler" >&6
5828 # Is the header present?
5829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5831 cat >conftest.
$ac_ext <<_ACEOF
5834 cat confdefs.h
>>conftest.
$ac_ext
5835 cat >>conftest.
$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #include <$ac_header>
5839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5840 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5842 grep -v '^ *+' conftest.er1
>conftest.err
5844 cat conftest.err
>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } >/dev
/null
; then
5847 if test -s conftest.err
; then
5848 ac_cpp_err
=$ac_c_preproc_warn_flag
5849 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5856 if test -z "$ac_cpp_err"; then
5857 ac_header_preproc
=yes
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.
$ac_ext >&5
5862 ac_header_preproc
=no
5864 rm -f conftest.err conftest.
$ac_ext
5865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5866 echo "${ECHO_T}$ac_header_preproc" >&6
5868 # So? What about this header?
5869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5875 ac_header_preproc
=yes
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5892 ## ------------------------------------------ ##
5893 ## Report this to the AC_PACKAGE_NAME lists. ##
5894 ## ------------------------------------------ ##
5897 sed "s/^/$as_me: WARNING: /" >&2
5900 echo "$as_me:$LINENO: checking for $ac_header" >&5
5901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 eval "$as_ac_Header=\$ac_header_preproc"
5907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5912 cat >>confdefs.h
<<_ACEOF
5913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922 for ac_header
in sys
/time.h sys
/resource.h
5924 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5926 echo "$as_me:$LINENO: checking for $ac_header" >&5
5927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5934 # Is the header compilable?
5935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5937 cat >conftest.
$ac_ext <<_ACEOF
5940 cat confdefs.h
>>conftest.
$ac_ext
5941 cat >>conftest.
$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 $ac_includes_default
5944 #include <$ac_header>
5946 rm -f conftest.
$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1
>conftest.err
5952 cat conftest.err
>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try
='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try
='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_header_compiler
=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.
$ac_ext >&5
5973 ac_header_compiler
=no
5975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5977 echo "${ECHO_T}$ac_header_compiler" >&6
5979 # Is the header present?
5980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <$ac_header>
5990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5993 grep -v '^ *+' conftest.er1
>conftest.err
5995 cat conftest.err
>&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } >/dev
/null
; then
5998 if test -s conftest.err
; then
5999 ac_cpp_err
=$ac_c_preproc_warn_flag
6000 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6007 if test -z "$ac_cpp_err"; then
6008 ac_header_preproc
=yes
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.
$ac_ext >&5
6013 ac_header_preproc
=no
6015 rm -f conftest.err conftest.
$ac_ext
6016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6017 echo "${ECHO_T}$ac_header_preproc" >&6
6019 # So? What about this header?
6020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6026 ac_header_preproc
=yes
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6043 ## ------------------------------------------ ##
6044 ## Report this to the AC_PACKAGE_NAME lists. ##
6045 ## ------------------------------------------ ##
6048 sed "s/^/$as_me: WARNING: /" >&2
6051 echo "$as_me:$LINENO: checking for $ac_header" >&5
6052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 eval "$as_ac_Header=\$ac_header_preproc"
6058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6063 cat >>confdefs.h
<<_ACEOF
6064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6073 for ac_header
in fcntl.h fpu_control.h
6075 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6077 echo "$as_me:$LINENO: checking for $ac_header" >&5
6078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6085 # Is the header compilable?
6086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6088 cat >conftest.
$ac_ext <<_ACEOF
6091 cat confdefs.h
>>conftest.
$ac_ext
6092 cat >>conftest.
$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 $ac_includes_default
6095 #include <$ac_header>
6097 rm -f conftest.
$ac_objext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>conftest.er1
6101 grep -v '^ *+' conftest.er1
>conftest.err
6103 cat conftest.err
>&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try
='test -z "$ac_c_werror_flag"
6107 || test ! -s conftest.err'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try
='test -s conftest.$ac_objext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6119 ac_header_compiler
=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.
$ac_ext >&5
6124 ac_header_compiler
=no
6126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6128 echo "${ECHO_T}$ac_header_compiler" >&6
6130 # Is the header present?
6131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6133 cat >conftest.
$ac_ext <<_ACEOF
6136 cat confdefs.h
>>conftest.
$ac_ext
6137 cat >>conftest.
$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #include <$ac_header>
6141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6144 grep -v '^ *+' conftest.er1
>conftest.err
6146 cat conftest.err
>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } >/dev
/null
; then
6149 if test -s conftest.err
; then
6150 ac_cpp_err
=$ac_c_preproc_warn_flag
6151 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6158 if test -z "$ac_cpp_err"; then
6159 ac_header_preproc
=yes
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.
$ac_ext >&5
6164 ac_header_preproc
=no
6166 rm -f conftest.err conftest.
$ac_ext
6167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6168 echo "${ECHO_T}$ac_header_preproc" >&6
6170 # So? What about this header?
6171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6177 ac_header_preproc
=yes
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6194 ## ------------------------------------------ ##
6195 ## Report this to the AC_PACKAGE_NAME lists. ##
6196 ## ------------------------------------------ ##
6199 sed "s/^/$as_me: WARNING: /" >&2
6202 echo "$as_me:$LINENO: checking for $ac_header" >&5
6203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 eval "$as_ac_Header=\$ac_header_preproc"
6209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6214 cat >>confdefs.h
<<_ACEOF
6215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6225 for ac_header
in dlfcn.h errno.h sys
/stat.h
6227 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo "$as_me:$LINENO: checking for $ac_header" >&5
6230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6237 # Is the header compilable?
6238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6240 cat >conftest.
$ac_ext <<_ACEOF
6243 cat confdefs.h
>>conftest.
$ac_ext
6244 cat >>conftest.
$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 $ac_includes_default
6247 #include <$ac_header>
6249 rm -f conftest.
$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try
='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try
='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_header_compiler
=yes
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.
$ac_ext >&5
6276 ac_header_compiler
=no
6278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6280 echo "${ECHO_T}$ac_header_compiler" >&6
6282 # Is the header present?
6283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6285 cat >conftest.
$ac_ext <<_ACEOF
6288 cat confdefs.h
>>conftest.
$ac_ext
6289 cat >>conftest.
$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 #include <$ac_header>
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6296 grep -v '^ *+' conftest.er1
>conftest.err
6298 cat conftest.err
>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev
/null
; then
6301 if test -s conftest.err
; then
6302 ac_cpp_err
=$ac_c_preproc_warn_flag
6303 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6310 if test -z "$ac_cpp_err"; then
6311 ac_header_preproc
=yes
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.
$ac_ext >&5
6316 ac_header_preproc
=no
6318 rm -f conftest.err conftest.
$ac_ext
6319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6320 echo "${ECHO_T}$ac_header_preproc" >&6
6322 # So? What about this header?
6323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6329 ac_header_preproc
=yes
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6346 ## ------------------------------------------ ##
6347 ## Report this to the AC_PACKAGE_NAME lists. ##
6348 ## ------------------------------------------ ##
6351 sed "s/^/$as_me: WARNING: /" >&2
6354 echo "$as_me:$LINENO: checking for $ac_header" >&5
6355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 eval "$as_ac_Header=\$ac_header_preproc"
6361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6366 cat >>confdefs.h
<<_ACEOF
6367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378 for ac_func
in getrusage
time sigaction __setfpucw
6380 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6381 echo "$as_me:$LINENO: checking for $ac_func" >&5
6382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6383 if eval "test \"\${$as_ac_var+set}\" = set"; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.
$ac_ext <<_ACEOF
6389 cat confdefs.h
>>conftest.
$ac_ext
6390 cat >>conftest.
$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6394 #define $ac_func innocuous_$ac_func
6396 /* System header to define __stub macros and hopefully few prototypes,
6397 which can conflict with char $ac_func (); below.
6398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6399 <limits.h> exists even on freestanding compilers. */
6402 # include <limits.h>
6404 # include <assert.h>
6409 /* Override any gcc2 internal prototype to avoid an error. */
6414 /* We use char because int might match the return type of a gcc2
6415 builtin and then its argument prototype would still apply. */
6417 /* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6423 char (*f) () = $ac_func;
6432 return f != $ac_func;
6437 rm -f conftest.
$ac_objext conftest
$ac_exeext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439 (eval $ac_link) 2>conftest.er1
6441 grep -v '^ *+' conftest.er1
>conftest.err
6443 cat conftest.err
>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try
='test -z "$ac_c_werror_flag"
6447 || test ! -s conftest.err'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try
='test -s conftest$ac_exeext'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
6459 eval "$as_ac_var=yes"
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.
$ac_ext >&5
6464 eval "$as_ac_var=no"
6466 rm -f conftest.err conftest.
$ac_objext \
6467 conftest
$ac_exeext conftest.
$ac_ext
6469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6471 if test `eval echo '${'$as_ac_var'}'` = yes; then
6472 cat >>confdefs.h
<<_ACEOF
6473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6480 # Check for socket libraries
6482 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6483 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6484 if test "${ac_cv_lib_socket_bind+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 ac_check_lib_save_LIBS
=$LIBS
6488 LIBS
="-lsocket $LIBS"
6489 cat >conftest.
$ac_ext <<_ACEOF
6492 cat confdefs.h
>>conftest.
$ac_ext
6493 cat >>conftest.
$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6496 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6511 rm -f conftest.
$ac_objext conftest
$ac_exeext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>conftest.er1
6515 grep -v '^ *+' conftest.er1
>conftest.err
6517 cat conftest.err
>&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try
='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try
='test -s conftest$ac_exeext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_cv_lib_socket_bind
=yes
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.
$ac_ext >&5
6538 ac_cv_lib_socket_bind
=no
6540 rm -f conftest.err conftest.
$ac_objext \
6541 conftest
$ac_exeext conftest.
$ac_ext
6542 LIBS
=$ac_check_lib_save_LIBS
6544 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6545 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6546 if test $ac_cv_lib_socket_bind = yes; then
6547 cat >>confdefs.h
<<_ACEOF
6548 #define HAVE_LIBSOCKET 1
6551 LIBS
="-lsocket $LIBS"
6556 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6557 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6558 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 ac_check_lib_save_LIBS
=$LIBS
6563 cat >conftest.
$ac_ext <<_ACEOF
6566 cat confdefs.h
>>conftest.
$ac_ext
6567 cat >>conftest.
$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6570 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char gethostbyname ();
6585 rm -f conftest.
$ac_objext conftest
$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>conftest.er1
6589 grep -v '^ *+' conftest.er1
>conftest.err
6591 cat conftest.err
>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try
='test -z "$ac_c_werror_flag"
6595 || test ! -s conftest.err'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; } &&
6601 { ac_try
='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_lib_nsl_gethostbyname
=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.
$ac_ext >&5
6612 ac_cv_lib_nsl_gethostbyname
=no
6614 rm -f conftest.err conftest.
$ac_objext \
6615 conftest
$ac_exeext conftest.
$ac_ext
6616 LIBS
=$ac_check_lib_save_LIBS
6618 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6619 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6620 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6621 cat >>confdefs.h
<<_ACEOF
6622 #define HAVE_LIBNSL 1
6630 .
${srcdir}/..
/..
/bfd
/configure.
host
6634 USE_MAINTAINER_MODE
=no
6635 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6636 if test "${enable_maintainer_mode+set}" = set; then
6637 enableval
="$enable_maintainer_mode"
6638 case "${enableval}" in
6639 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6641 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6642 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6643 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6645 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6646 echo "Setting maintainer mode" 6>&1
6653 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6654 if test "${enable_sim_bswap+set}" = set; then
6655 enableval
="$enable_sim_bswap"
6656 case "${enableval}" in
6657 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6658 no
) sim_bswap
="-DWITH_BSWAP=0";;
6659 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6660 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6661 { (exit 1); exit 1; }; }; sim_bswap
="";;
6663 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6664 echo "Setting bswap flags = $sim_bswap" 6>&1
6671 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6672 if test "${enable_sim_cflags+set}" = set; then
6673 enableval
="$enable_sim_cflags"
6674 case "${enableval}" in
6675 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6676 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6677 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6678 { (exit 1); exit 1; }; }; sim_cflags
="";;
6680 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6682 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6683 echo "Setting sim cflags = $sim_cflags" 6>&1
6690 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6691 if test "${enable_sim_debug+set}" = set; then
6692 enableval
="$enable_sim_debug"
6693 case "${enableval}" in
6694 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6695 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6696 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6698 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6699 echo "Setting sim debug = $sim_debug" 6>&1
6706 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6707 if test "${enable_sim_stdio+set}" = set; then
6708 enableval
="$enable_sim_stdio"
6709 case "${enableval}" in
6710 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6711 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6712 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6713 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6714 { (exit 1); exit 1; }; }; sim_stdio
="";;
6716 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6717 echo "Setting stdio flags = $sim_stdio" 6>&1
6724 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6725 if test "${enable_sim_trace+set}" = set; then
6726 enableval
="$enable_sim_trace"
6727 case "${enableval}" in
6728 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6729 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6731 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6734 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6735 if test x
"$sim_trace" = x
; then
6736 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6738 sim_trace
="${sim_trace}|TRACE_$x"
6741 sim_trace
="$sim_trace)'" ;;
6743 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6744 echo "Setting sim trace = $sim_trace" 6>&1
6751 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6752 if test "${enable_sim_profile+set}" = set; then
6753 enableval
="$enable_sim_profile"
6754 case "${enableval}" in
6755 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6756 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6758 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6761 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6762 if test x
"$sim_profile" = x
; then
6763 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6765 sim_profile
="${sim_profile}|PROFILE_$x"
6768 sim_profile
="$sim_profile)'" ;;
6770 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6771 echo "Setting sim profile = $sim_profile" 6>&1
6774 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6778 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6779 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6780 if test "${ac_cv_type_signal+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 cat >conftest.
$ac_ext <<_ACEOF
6786 cat confdefs.h
>>conftest.
$ac_ext
6787 cat >>conftest.
$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <sys/types.h>
6795 extern "C" void (*signal (int, void (*)(int)))(int);
6797 void (*signal ()) ();
6808 rm -f conftest.
$ac_objext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810 (eval $ac_compile) 2>conftest.er1
6812 grep -v '^ *+' conftest.er1
>conftest.err
6814 cat conftest.err
>&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try
='test -z "$ac_c_werror_flag"
6818 || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try
='test -s conftest.$ac_objext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_type_signal
=void
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.
$ac_ext >&5
6835 ac_cv_type_signal
=int
6837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6839 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6840 echo "${ECHO_T}$ac_cv_type_signal" >&6
6842 cat >>confdefs.h
<<_ACEOF
6843 #define RETSIGTYPE $ac_cv_type_signal
6853 sim_link_links
=tconfig.h
6854 if test -f ${srcdir}/tconfig.
in
6856 sim_link_files
=tconfig.
in
6858 sim_link_files
=..
/common
/tconfig.
in
6861 # targ-vals.def points to the libc macro description file.
6863 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
6865 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
6866 sim_link_links
="${sim_link_links} targ-vals.def"
6871 wire_endian
="LITTLE_ENDIAN"
6873 # Check whether --enable-sim-endian or --disable-sim-endian was given.
6874 if test "${enable_sim_endian+set}" = set; then
6875 enableval
="$enable_sim_endian"
6876 case "${enableval}" in
6877 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
6878 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
6879 yes) if test x
"$wire_endian" != x
; then
6880 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
6882 if test x
"$default_endian" != x
; then
6883 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
6885 echo "No hard-wired endian for target $target" 1>&6
6886 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
6889 no
) if test x
"$default_endian" != x
; then
6890 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
6892 if test x
"$wire_endian" != x
; then
6893 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
6895 echo "No default endian for target $target" 1>&6
6896 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
6899 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
6900 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
6901 { (exit 1); exit 1; }; }; sim_endian
="";;
6903 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
6904 echo "Setting endian flags = $sim_endian" 6>&1
6907 if test x
"$default_endian" != x
; then
6908 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
6910 if test x
"$wire_endian" != x
; then
6911 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
6917 wire_alignment
="NONSTRICT_ALIGNMENT"
6918 default_alignment
=""
6920 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6921 if test "${enable_sim_alignment+set}" = set; then
6922 enableval
="$enable_sim_alignment"
6923 case "${enableval}" in
6924 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6925 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6926 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6927 yes) if test x
"$wire_alignment" != x
; then
6928 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
6930 if test x
"$default_alignment" != x
; then
6931 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
6933 echo "No hard-wired alignment for target $target" 1>&6
6934 sim_alignment
="-DWITH_ALIGNMENT=0"
6937 no
) if test x
"$default_alignment" != x
; then
6938 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6940 if test x
"$wire_alignment" != x
; then
6941 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6943 echo "No default alignment for target $target" 1>&6
6944 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
6947 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6948 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6949 { (exit 1); exit 1; }; }; sim_alignment
="";;
6951 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
6952 echo "Setting alignment flags = $sim_alignment" 6>&1
6955 if test x
"$default_alignment" != x
; then
6956 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6958 if test x
"$wire_alignment" != x
; then
6959 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
6966 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6967 if test "${enable_sim_hostendian+set}" = set; then
6968 enableval
="$enable_sim_hostendian"
6969 case "${enableval}" in
6970 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
6971 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6972 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6973 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6974 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6975 { (exit 1); exit 1; }; }; sim_hostendian
="";;
6977 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
6978 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6982 if test "x$cross_compiling" = "xno"; then
6983 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6984 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6985 if test "${ac_cv_c_bigendian+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 # See if sys/param.h defines the BYTE_ORDER macro.
6989 cat >conftest.
$ac_ext <<_ACEOF
6992 cat confdefs.h
>>conftest.
$ac_ext
6993 cat >>conftest.
$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <sys/types.h>
6996 #include <sys/param.h>
7001 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7009 rm -f conftest.
$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7013 grep -v '^ *+' conftest.er1
>conftest.err
7015 cat conftest.err
>&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try
='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try
='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 # It does; now see whether it defined to BIG_ENDIAN or not.
7032 cat >conftest.
$ac_ext <<_ACEOF
7035 cat confdefs.h
>>conftest.
$ac_ext
7036 cat >>conftest.
$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <sys/types.h>
7039 #include <sys/param.h>
7044 #if BYTE_ORDER != BIG_ENDIAN
7052 rm -f conftest.
$ac_objext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054 (eval $ac_compile) 2>conftest.er1
7056 grep -v '^ *+' conftest.er1
>conftest.err
7058 cat conftest.err
>&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try
='test -z "$ac_c_werror_flag"
7062 || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try
='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_c_bigendian
=yes
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.
$ac_ext >&5
7079 ac_cv_c_bigendian
=no
7081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.
$ac_ext >&5
7086 # It does not; compile a test program.
7087 if test "$cross_compiling" = yes; then
7088 # try to guess the endianness by grepping values into an object file
7089 ac_cv_c_bigendian
=unknown
7090 cat >conftest.
$ac_ext <<_ACEOF
7093 cat confdefs.h
>>conftest.
$ac_ext
7094 cat >>conftest.
$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7097 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7098 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7099 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7100 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7101 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7105 _ascii (); _ebcdic ();
7110 rm -f conftest.
$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112 (eval $ac_compile) 2>conftest.er1
7114 grep -v '^ *+' conftest.er1
>conftest.err
7116 cat conftest.err
>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try
='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try
='test -s conftest.$ac_objext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7133 ac_cv_c_bigendian
=yes
7135 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7136 if test "$ac_cv_c_bigendian" = unknown
; then
7137 ac_cv_c_bigendian
=no
7139 # finding both strings is unlikely to happen, but who knows?
7140 ac_cv_c_bigendian
=unknown
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.
$ac_ext >&5
7148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7150 cat >conftest.
$ac_ext <<_ACEOF
7153 cat confdefs.h
>>conftest.
$ac_ext
7154 cat >>conftest.
$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7159 /* Are we little or big endian? From Harbison&Steele. */
7163 char c[sizeof (long)];
7166 exit (u.c[sizeof (long) - 1] == 1);
7169 rm -f conftest
$ac_exeext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7171 (eval $ac_link) 2>&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_cv_c_bigendian
=no
7182 echo "$as_me: program exited with status $ac_status" >&5
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.
$ac_ext >&5
7187 ac_cv_c_bigendian
=yes
7189 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7194 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7195 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7196 case $ac_cv_c_bigendian in
7199 cat >>confdefs.h
<<\_ACEOF
7200 #define WORDS_BIGENDIAN 1
7206 { { echo "$as_me:$LINENO: error: unknown endianness
7207 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7208 echo "$as_me: error: unknown endianness
7209 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7210 { (exit 1); exit 1; }; } ;;
7213 if test $ac_cv_c_bigendian = yes; then
7214 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7216 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7219 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7223 # NOTE: Don't add -Wall or -Wunused, they both include
7224 # -Wunused-parameter which reports bogus warnings.
7225 # NOTE: If you add to this list, remember to update
7226 # gdb/doc/gdbint.texinfo.
7227 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7228 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7229 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7230 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7231 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7232 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7233 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7234 # -Woverloaded-virtual -Winline -Werror"
7235 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7236 if test "${enable_build_warnings+set}" = set; then
7237 enableval
="$enable_build_warnings"
7238 case "${enableval}" in
7240 no
) build_warnings
="-w";;
7241 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7242 build_warnings
="${build_warnings} ${t}";;
7243 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7244 build_warnings
="${t} ${build_warnings}";;
7245 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7247 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7248 echo "Setting compiler warning flags = $build_warnings" 6>&1
7250 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7251 if test "${enable_sim_build_warnings+set}" = set; then
7252 enableval
="$enable_sim_build_warnings"
7253 case "${enableval}" in
7255 no
) build_warnings
="-w";;
7256 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7257 build_warnings
="${build_warnings} ${t}";;
7258 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7259 build_warnings
="${t} ${build_warnings}";;
7260 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7262 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7263 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7267 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7269 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7270 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7271 # Separate out the -Werror flag as some files just cannot be
7272 # compiled with it enabled.
7273 for w
in ${build_warnings}; do
7275 -Werr*) WERROR_CFLAGS
=-Werror ;;
7276 *) # Check that GCC accepts it
7277 saved_CFLAGS
="$CFLAGS"
7279 cat >conftest.
$ac_ext <<_ACEOF
7282 cat confdefs.h
>>conftest.
$ac_ext
7283 cat >>conftest.
$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7294 rm -f conftest.
$ac_objext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7296 (eval $ac_compile) 2>conftest.er1
7298 grep -v '^ *+' conftest.er1
>conftest.err
7300 cat conftest.err
>&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } &&
7303 { ac_try
='test -z "$ac_c_werror_flag"
7304 || test ! -s conftest.err'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; } &&
7310 { ac_try
='test -s conftest.$ac_objext'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; }; then
7316 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.
$ac_ext >&5
7322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7323 CFLAGS
="$saved_CFLAGS"
7326 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7327 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7331 default_sim_reserved_bits
="1"
7332 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7333 if test "${enable_sim_reserved_bits+set}" = set; then
7334 enableval
="$enable_sim_reserved_bits"
7335 case "${enableval}" in
7336 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
7337 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
7338 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7339 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7340 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
7342 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
7343 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7346 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7348 wire_word_bitsize
="32"
7350 wire_address_bitsize
=""
7351 wire_cell_bitsize
=""
7352 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7353 if test "${enable_sim_bitsize+set}" = set; then
7354 enableval
="$enable_sim_bitsize"
7356 case "${enableval}" in
7357 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7358 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7359 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7360 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7361 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7362 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7364 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7366 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7367 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7369 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7371 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7372 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7373 { (exit 1); exit 1; }; } ;;
7376 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7379 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7380 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7381 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7382 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7383 { (exit 1); exit 1; }; } ;;
7386 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7389 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7390 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7391 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7392 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7393 { (exit 1); exit 1; }; } ;;
7395 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
7396 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7400 if test x
"$wire_word_bitsize" != x
; then
7401 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7403 if test x
"$wire_word_msb" != x
; then
7404 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7406 if test x
"$wire_address_bitsize" != x
; then
7407 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7409 if test x
"$wire_cell_bitsize" != x
; then
7410 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7414 default_sim_inline
=""
7415 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7416 if test "${enable_sim_inline+set}" = set; then
7417 enableval
="$enable_sim_inline"
7419 case "$enableval" in
7420 no
) sim_inline
="-DDEFAULT_INLINE=0";;
7421 0) sim_inline
="-DDEFAULT_INLINE=0";;
7422 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
7423 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
7424 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
7427 *_INLINE
=*) new_flag
="-D$x";;
7428 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7429 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
7430 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
7432 if test x
"$sim_inline" = x
""; then
7433 sim_inline
="$new_flag"
7435 sim_inline
="$sim_inline $new_flag"
7439 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
7440 echo "Setting inline flags = $sim_inline" 6>&1
7444 if test "x$cross_compiling" = "xno"; then
7445 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
7446 sim_inline
="${default_sim_inline}"
7447 if test x
"$silent" != x
"yes"; then
7448 echo "Setting inline flags = $sim_inline" 6>&1
7454 sim_inline
="-DDEFAULT_INLINE=0"
7458 if test x
"yes" = x
"yes"; then
7464 hardware
="core pal glue"
7466 hardware
="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop"
7468 sim_hw_cflags
="-DWITH_HW=1"
7470 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7471 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7472 if test "${enable_sim_hardware+set}" = set; then
7473 enableval
="$enable_sim_hardware"
7475 case "${enableval}" in
7478 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7479 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7480 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7482 if test "$sim_hw_p" != yes; then
7484 sim_hw_cflags
="-DWITH_HW=0"
7487 sim_hw_cflags
="-DWITH_HW=1"
7490 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
7491 for i
in x
$hardware ; do
7495 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
7499 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
7500 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7504 if test "$sim_hw_p" != yes; then
7506 sim_hw_cflags
="-DWITH_HW=0"
7509 if test x
"$silent" != x
"yes"; then
7510 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7521 for ac_func
in time chmod utime fork execve execv chown
7523 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7524 echo "$as_me:$LINENO: checking for $ac_func" >&5
7525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7526 if eval "test \"\${$as_ac_var+set}\" = set"; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 cat >conftest.
$ac_ext <<_ACEOF
7532 cat confdefs.h
>>conftest.
$ac_ext
7533 cat >>conftest.
$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7537 #define $ac_func innocuous_$ac_func
7539 /* System header to define __stub macros and hopefully few prototypes,
7540 which can conflict with char $ac_func (); below.
7541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7542 <limits.h> exists even on freestanding compilers. */
7545 # include <limits.h>
7547 # include <assert.h>
7552 /* Override any gcc2 internal prototype to avoid an error. */
7557 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
7560 /* The GNU C library defines this for functions which it implements
7561 to always fail with ENOSYS. Some functions are actually named
7562 something starting with __ and the normal name is an alias. */
7563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7566 char (*f) () = $ac_func;
7575 return f != $ac_func;
7580 rm -f conftest.
$ac_objext conftest
$ac_exeext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582 (eval $ac_link) 2>conftest.er1
7584 grep -v '^ *+' conftest.er1
>conftest.err
7586 cat conftest.err
>&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try
='test -z "$ac_c_werror_flag"
7590 || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try
='test -s conftest$ac_exeext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 eval "$as_ac_var=yes"
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.
$ac_ext >&5
7607 eval "$as_ac_var=no"
7609 rm -f conftest.err conftest.
$ac_objext \
7610 conftest
$ac_exeext conftest.
$ac_ext
7612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7614 if test `eval echo '${'$as_ac_var'}'` = yes; then
7615 cat >>confdefs.h
<<_ACEOF
7616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7628 for ac_header
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
7630 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7632 echo "$as_me:$LINENO: checking for $ac_header" >&5
7633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7640 # Is the header compilable?
7641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7643 cat >conftest.
$ac_ext <<_ACEOF
7646 cat confdefs.h
>>conftest.
$ac_ext
7647 cat >>conftest.
$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 $ac_includes_default
7650 #include <$ac_header>
7652 rm -f conftest.
$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654 (eval $ac_compile) 2>conftest.er1
7656 grep -v '^ *+' conftest.er1
>conftest.err
7658 cat conftest.err
>&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try
='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try
='test -s conftest.$ac_objext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_header_compiler
=yes
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.
$ac_ext >&5
7679 ac_header_compiler
=no
7681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 echo "${ECHO_T}$ac_header_compiler" >&6
7685 # Is the header present?
7686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7688 cat >conftest.
$ac_ext <<_ACEOF
7691 cat confdefs.h
>>conftest.
$ac_ext
7692 cat >>conftest.
$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <$ac_header>
7696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7697 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7699 grep -v '^ *+' conftest.er1
>conftest.err
7701 cat conftest.err
>&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } >/dev
/null
; then
7704 if test -s conftest.err
; then
7705 ac_cpp_err
=$ac_c_preproc_warn_flag
7706 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7713 if test -z "$ac_cpp_err"; then
7714 ac_header_preproc
=yes
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.
$ac_ext >&5
7719 ac_header_preproc
=no
7721 rm -f conftest.err conftest.
$ac_ext
7722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7723 echo "${ECHO_T}$ac_header_preproc" >&6
7725 # So? What about this header?
7726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7732 ac_header_preproc
=yes
7735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7749 ## ------------------------------------------ ##
7750 ## Report this to the AC_PACKAGE_NAME lists. ##
7751 ## ------------------------------------------ ##
7754 sed "s/^/$as_me: WARNING: /" >&2
7757 echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 eval "$as_ac_Header=\$ac_header_preproc"
7764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7769 cat >>confdefs.h
<<_ACEOF
7770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7779 ac_sources
="$sim_link_files"
7780 ac_dests
="$sim_link_links"
7781 while test -n "$ac_sources"; do
7782 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
7783 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
7784 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
7786 ac_config_links
="$ac_config_links $ac_config_links_1"
7789 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
7790 cgen_breaks
="break cgen_rtx_error";
7793 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
7795 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
7797 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
7799 ac_config_commands
="$ac_config_commands Makefile"
7801 ac_config_commands
="$ac_config_commands stamp-h"
7803 cat >confcache
<<\_ACEOF
7804 # This file is a shell script that caches the results of configure
7805 # tests run on this system so they can be shared between configure
7806 # scripts and configure runs, see configure's option --config-cache.
7807 # It is not useful on other systems. If it contains results you don't
7808 # want to keep, you may remove or edit it.
7810 # config.status only pays attention to the cache file if you give it
7811 # the --recheck option to rerun configure.
7813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7819 # The following way of writing the cache mishandles newlines in values,
7820 # but we know of no workaround that is simple, portable, and efficient.
7821 # So, don't put newlines in cache variables' values.
7822 # Ultrix sh set writes to stderr and can't be redirected directly,
7823 # and sets the high bit in the cache file unless we assign to the vars.
7826 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7828 # `set' does not quote correctly, so add quotes (double-quote
7829 # substitution turns \\\\ into \\, and sed turns \\ into \).
7832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7835 # `set' quotes correctly as required by POSIX, so do not add quotes.
7837 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7846 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7848 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7849 if test -w $cache_file; then
7850 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7851 cat confcache
>$cache_file
7853 echo "not updating unwritable cache $cache_file"
7858 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7859 # Let make expand exec_prefix.
7860 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7862 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7863 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7864 # trailing colons and then remove the whole line if VPATH becomes empty
7865 # (actually we leave an empty line to preserve line numbers).
7866 if test "x$srcdir" = x.
; then
7867 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7868 s/:*\$(srcdir):*/:/;
7869 s/:*\${srcdir}:*/:/;
7871 s/^\([^=]*=[ ]*\):*/\1/;
7877 DEFS
=-DHAVE_CONFIG_H
7881 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7882 # 1. Remove the extension, and $U if already installed.
7883 ac_i
=`echo "$ac_i" |
7884 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7886 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7887 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7891 LTLIBOBJS
=$ac_ltlibobjs
7895 : ${CONFIG_STATUS=./config.status}
7896 ac_clean_files_save
=$ac_clean_files
7897 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7898 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7899 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7900 cat >$CONFIG_STATUS <<_ACEOF
7902 # Generated by $as_me.
7903 # Run this file to recreate the current configuration.
7904 # Compiler output produced by configure, useful for debugging
7905 # configure, is in config.log if it exists.
7910 SHELL=\${CONFIG_SHELL-$SHELL}
7913 cat >>$CONFIG_STATUS <<\_ACEOF
7914 ## --------------------- ##
7915 ## M4sh Initialization. ##
7916 ## --------------------- ##
7918 # Be Bourne compatible
7919 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7922 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7923 # is contrary to our usage. Disable this feature.
7924 alias -g '${1+"$@"}'='"$@"'
7925 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7928 DUALCASE
=1; export DUALCASE
# for MKS sh
7930 # Support unset when possible.
7931 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7938 # Work around bugs in pre-3.0 UWIN ksh.
7939 $as_unset ENV MAIL MAILPATH
7946 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7947 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7948 LC_TELEPHONE LC_TIME
7950 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7951 eval $as_var=C
; export $as_var
7957 # Required to use basename.
7958 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7964 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7965 as_basename
=basename
7971 # Name of the executable.
7972 as_me
=`$as_basename "$0" ||
7973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7974 X"$0" : 'X\(//\)$' \| \
7975 X"$0" : 'X\(/\)$' \| \
7976 . : '\(.\)' 2>/dev/null ||
7978 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7979 /^X\/\(\/\/\)$/{ s//\1/; q; }
7980 /^X\/\(\/\).*/{ s//\1/; q; }
7984 # PATH needs CR, and LINENO needs CR and PATH.
7985 # Avoid depending upon Character Ranges.
7986 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7987 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7988 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7989 as_cr_digits
='0123456789'
7990 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7992 # The user is always right.
7993 if test "${PATH_SEPARATOR+set}" != set; then
7994 echo "#! /bin/sh" >conf$$.sh
7995 echo "exit 0" >>conf$$.sh
7997 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8008 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8009 test "x$as_lineno_1" != "x$as_lineno_2" &&
8010 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8011 # Find who we are. Look in the path if we contain no path at all
8014 *[\\/]* ) as_myself
=$0 ;;
8015 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8019 test -z "$as_dir" && as_dir
=.
8020 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8025 # We did not find ourselves, most probably we were run as `sh COMMAND'
8026 # in which case we are not to be found in the path.
8027 if test "x$as_myself" = x
; then
8030 if test ! -f "$as_myself"; then
8031 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8032 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8033 { (exit 1); exit 1; }; }
8035 case $CONFIG_SHELL in
8037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8038 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8041 test -z "$as_dir" && as_dir
=.
8042 for as_base
in sh bash ksh sh5
; do
8045 if ("$as_dir/$as_base" -c '
8048 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8049 test "x$as_lineno_1" != "x$as_lineno_2" &&
8050 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8051 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8052 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8053 CONFIG_SHELL
=$as_dir/$as_base
8055 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8063 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8064 # uniformly replaced by the line number. The first 'sed' inserts a
8065 # line-number line before each line; the second 'sed' does the real
8066 # work. The second script uses 'N' to pair each line-number line
8067 # with the numbered line, and appends trailing '-' during
8068 # substitution so that $LINENO is not a special case at line end.
8069 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8070 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8071 sed '=' <$as_myself |
8076 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8079 s,^['$as_cr_digits']*\n,,
8081 chmod +x
$as_me.lineno ||
8082 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8083 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8084 { (exit 1); exit 1; }; }
8086 # Don't try to exec as it changes $[0], causing all sort of problems
8087 # (the dirname of $[0] is not the place where we might find the
8088 # original and so on. Autoconf is especially sensible to this).
8090 # Exit status is that of the last command.
8095 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8096 *c
*,-n*) ECHO_N
= ECHO_C
='
8098 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8099 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8102 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8108 rm -f conf$$ conf$$.exe conf$$.
file
8110 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8111 # We could just check for DJGPP; but this test a) works b) is more generic
8112 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8113 if test -f conf$$.exe
; then
8114 # Don't use ln at all; we don't have any links
8119 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8124 rm -f conf$$ conf$$.exe conf$$.
file
8126 if mkdir
-p .
2>/dev
/null
; then
8129 test -d .
/-p && rmdir .
/-p
8133 as_executable_p
="test -f"
8135 # Sed expression to map a string onto a valid CPP name.
8136 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8138 # Sed expression to map a string onto a valid variable name.
8139 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8143 # We need space, tab and new line, in precisely that order.
8153 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8154 # report actual input values of CONFIG_FILES etc. instead of their
8155 # values after options handling. Logging --version etc. is OK.
8159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8160 ## Running $as_me. ##
8165 This file was extended by $as_me, which was
8166 generated by GNU Autoconf 2.59. Invocation command line was
8168 CONFIG_FILES = $CONFIG_FILES
8169 CONFIG_HEADERS = $CONFIG_HEADERS
8170 CONFIG_LINKS = $CONFIG_LINKS
8171 CONFIG_COMMANDS = $CONFIG_COMMANDS
8175 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8179 # Files that config.status was made for.
8180 if test -n "$ac_config_files"; then
8181 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8184 if test -n "$ac_config_headers"; then
8185 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8188 if test -n "$ac_config_links"; then
8189 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8192 if test -n "$ac_config_commands"; then
8193 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8196 cat >>$CONFIG_STATUS <<\_ACEOF
8199 \`$as_me' instantiates files from templates according to the
8200 current configuration.
8202 Usage: $0 [OPTIONS] [FILE]...
8204 -h, --help print this help, then exit
8205 -V, --version print version number, then exit
8206 -q, --quiet do not print progress messages
8207 -d, --debug don't remove temporary files
8208 --recheck update $as_me by reconfiguring in the same conditions
8209 --file=FILE[:TEMPLATE]
8210 instantiate the configuration file FILE
8211 --header=FILE[:TEMPLATE]
8212 instantiate the configuration header FILE
8214 Configuration files:
8217 Configuration headers:
8220 Configuration links:
8223 Configuration commands:
8226 Report bugs to <bug-autoconf@gnu.org>."
8229 cat >>$CONFIG_STATUS <<_ACEOF
8232 configured by $0, generated by GNU Autoconf 2.59,
8233 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8235 Copyright (C) 2003 Free Software Foundation, Inc.
8236 This config.status script is free software; the Free Software Foundation
8237 gives unlimited permission to copy, distribute and modify it."
8242 cat >>$CONFIG_STATUS <<\_ACEOF
8243 # If no file are specified by the user, then we need to provide default
8244 # value. By we need to know if files were specified by the user.
8250 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8251 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8259 *) # This is not an option, so the user has probably given explicit
8262 ac_need_defaults
=false
;;
8266 # Handling of the options.
8268 cat >>$CONFIG_STATUS <<\_ACEOF
8269 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8271 --version |
--vers* |
-V )
8272 echo "$ac_cs_version"; exit 0 ;;
8274 # Conflict between --help and --header
8275 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8276 Try \`$0 --help' for more information." >&5
8277 echo "$as_me: error: ambiguous option: $1
8278 Try \`$0 --help' for more information." >&2;}
8279 { (exit 1); exit 1; }; };;
8280 --help |
--hel |
-h )
8281 echo "$ac_cs_usage"; exit 0 ;;
8282 --debug |
--d* |
-d )
8284 --file |
--fil |
--fi |
--f )
8286 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8287 ac_need_defaults
=false
;;
8288 --header |
--heade |
--head |
--hea )
8290 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8291 ac_need_defaults
=false
;;
8292 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8293 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8297 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8298 Try \`$0 --help' for more information." >&5
8299 echo "$as_me: error: unrecognized option: $1
8300 Try \`$0 --help' for more information." >&2;}
8301 { (exit 1); exit 1; }; } ;;
8303 *) ac_config_targets
="$ac_config_targets $1" ;;
8309 ac_configure_extra_args
=
8311 if $ac_cs_silent; then
8313 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8317 cat >>$CONFIG_STATUS <<_ACEOF
8318 if \$ac_cs_recheck; then
8319 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8320 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8329 cat >>$CONFIG_STATUS <<\_ACEOF
8330 for ac_config_target
in $ac_config_targets
8332 case "$ac_config_target" in
8333 # Handling of arguments.
8334 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8335 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8336 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8337 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
8338 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
8339 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
8340 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8341 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8342 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8343 { (exit 1); exit 1; }; };;
8347 # If the user did not use the arguments to specify the items to instantiate,
8348 # then the envvar interface is used. Set only those that are not.
8349 # We use the long form for the default assignment because of an extremely
8350 # bizarre bug on SunOS 4.1.3.
8351 if $ac_need_defaults; then
8352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8354 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8355 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8358 # Have a temporary directory for convenience. Make it in the build tree
8359 # simply because there is no reason to put it here, and in addition,
8360 # creating and moving files from /tmp can sometimes cause problems.
8361 # Create a temporary directory, and hook for its removal unless debugging.
8364 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8365 trap '{ (exit 1); exit 1; }' 1 2 13 15
8368 # Create a (secure) tmp directory for tmp files.
8371 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8372 test -n "$tmp" && test -d "$tmp"
8375 tmp
=.
/confstat$$
-$RANDOM
8376 (umask 077 && mkdir
$tmp)
8379 echo "$me: cannot create a temporary directory in ." >&2
8380 { (exit 1); exit 1; }
8385 cat >>$CONFIG_STATUS <<_ACEOF
8388 # CONFIG_FILES section.
8391 # No need to generate the scripts if there are no CONFIG_FILES.
8392 # This happens for instance when ./config.status config.h
8393 if test -n "\$CONFIG_FILES"; then
8394 # Protect against being on the right side of a sed subst in config.status.
8395 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8396 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8397 s,@sim_environment@,$sim_environment,;t t
8398 s,@sim_alignment@,$sim_alignment,;t t
8399 s,@sim_assert@,$sim_assert,;t t
8400 s,@sim_bitsize@,$sim_bitsize,;t t
8401 s,@sim_endian@,$sim_endian,;t t
8402 s,@sim_hostendian@,$sim_hostendian,;t t
8403 s,@sim_float@,$sim_float,;t t
8404 s,@sim_scache@,$sim_scache,;t t
8405 s,@sim_default_model@,$sim_default_model,;t t
8406 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8407 s,@sim_hw_objs@,$sim_hw_objs,;t t
8408 s,@sim_hw@,$sim_hw,;t t
8409 s,@sim_inline@,$sim_inline,;t t
8410 s,@sim_packages@,$sim_packages,;t t
8411 s,@sim_regparm@,$sim_regparm,;t t
8412 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8413 s,@sim_smp@,$sim_smp,;t t
8414 s,@sim_stdcall@,$sim_stdcall,;t t
8415 s,@sim_xor_endian@,$sim_xor_endian,;t t
8416 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8417 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8418 s,@SHELL@,$SHELL,;t t
8419 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8420 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8421 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8422 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8423 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8424 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8425 s,@exec_prefix@,$exec_prefix,;t t
8426 s,@prefix@,$prefix,;t t
8427 s,@program_transform_name@,$program_transform_name,;t t
8428 s,@bindir@,$bindir,;t t
8429 s,@sbindir@,$sbindir,;t t
8430 s,@libexecdir@,$libexecdir,;t t
8431 s,@datadir@,$datadir,;t t
8432 s,@sysconfdir@,$sysconfdir,;t t
8433 s,@sharedstatedir@,$sharedstatedir,;t t
8434 s,@localstatedir@,$localstatedir,;t t
8435 s,@libdir@,$libdir,;t t
8436 s,@includedir@,$includedir,;t t
8437 s,@oldincludedir@,$oldincludedir,;t t
8438 s,@infodir@,$infodir,;t t
8439 s,@mandir@,$mandir,;t t
8440 s,@build_alias@,$build_alias,;t t
8441 s,@host_alias@,$host_alias,;t t
8442 s,@target_alias@,$target_alias,;t t
8444 s,@ECHO_C@,$ECHO_C,;t t
8445 s,@ECHO_N@,$ECHO_N,;t t
8446 s,@ECHO_T@,$ECHO_T,;t t
8448 s,@build@,$build,;t t
8449 s,@build_cpu@,$build_cpu,;t t
8450 s,@build_vendor@,$build_vendor,;t t
8451 s,@build_os@,$build_os,;t t
8453 s,@host_cpu@,$host_cpu,;t t
8454 s,@host_vendor@,$host_vendor,;t t
8455 s,@host_os@,$host_os,;t t
8456 s,@target@,$target,;t t
8457 s,@target_cpu@,$target_cpu,;t t
8458 s,@target_vendor@,$target_vendor,;t t
8459 s,@target_os@,$target_os,;t t
8461 s,@CFLAGS@,$CFLAGS,;t t
8462 s,@LDFLAGS@,$LDFLAGS,;t t
8463 s,@CPPFLAGS@,$CPPFLAGS,;t t
8464 s,@ac_ct_CC@,$ac_ct_CC,;t t
8465 s,@EXEEXT@,$EXEEXT,;t t
8466 s,@OBJEXT@,$OBJEXT,;t t
8467 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8468 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8469 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8470 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8471 s,@HDEFINES@,$HDEFINES,;t t
8473 s,@RANLIB@,$RANLIB,;t t
8474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8475 s,@SET_MAKE@,$SET_MAKE,;t t
8477 s,@EGREP@,$EGREP,;t t
8478 s,@ALLOCA@,$ALLOCA,;t t
8479 s,@USE_NLS@,$USE_NLS,;t t
8480 s,@MSGFMT@,$MSGFMT,;t t
8481 s,@GMSGFMT@,$GMSGFMT,;t t
8482 s,@XGETTEXT@,$XGETTEXT,;t t
8483 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8484 s,@CATALOGS@,$CATALOGS,;t t
8485 s,@CATOBJEXT@,$CATOBJEXT,;t t
8486 s,@DATADIRNAME@,$DATADIRNAME,;t t
8487 s,@GMOFILES@,$GMOFILES,;t t
8488 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8489 s,@INTLDEPS@,$INTLDEPS,;t t
8490 s,@INTLLIBS@,$INTLLIBS,;t t
8491 s,@INTLOBJS@,$INTLOBJS,;t t
8492 s,@POFILES@,$POFILES,;t t
8493 s,@POSUB@,$POSUB,;t t
8494 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8495 s,@GT_NO@,$GT_NO,;t t
8496 s,@GT_YES@,$GT_YES,;t t
8497 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8499 s,@MAINT@,$MAINT,;t t
8500 s,@sim_bswap@,$sim_bswap,;t t
8501 s,@sim_cflags@,$sim_cflags,;t t
8502 s,@sim_debug@,$sim_debug,;t t
8503 s,@sim_stdio@,$sim_stdio,;t t
8504 s,@sim_trace@,$sim_trace,;t t
8505 s,@sim_profile@,$sim_profile,;t t
8506 s,@cgen_breaks@,$cgen_breaks,;t t
8507 s,@LIBOBJS@,$LIBOBJS,;t t
8508 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8513 cat >>$CONFIG_STATUS <<\_ACEOF
8514 # Split the substitutions into bite-sized pieces for seds with
8515 # small command number limits, like on Digital OSF/1 and HP-UX.
8517 ac_sed_frag
=1 # Number of current file.
8518 ac_beg
=1 # First line for current file.
8519 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8522 while $ac_more_lines; do
8523 if test $ac_beg -gt 1; then
8524 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8526 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8528 if test ! -s $tmp/subs.frag
; then
8531 # The purpose of the label and of the branching condition is to
8532 # speed up the sed processing (if there are no `@' at all, there
8533 # is no need to browse any of the substitutions).
8534 # These are the two extra sed commands mentioned above.
8536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8537 if test -z "$ac_sed_cmds"; then
8538 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8540 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8542 ac_sed_frag
=`expr $ac_sed_frag + 1`
8544 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8547 if test -z "$ac_sed_cmds"; then
8550 fi # test -n "$CONFIG_FILES"
8553 cat >>$CONFIG_STATUS <<\_ACEOF
8554 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8557 - |
*:- |
*:-:* ) # input from stdin
8559 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8560 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8561 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8562 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8563 * ) ac_file_in
=$ac_file.
in ;;
8566 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8567 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8569 X"$ac_file" : 'X\(//\)[^/]' \| \
8570 X"$ac_file" : 'X\(//\)$' \| \
8571 X"$ac_file" : 'X\(/\)' \| \
8572 . : '\(.\)' 2>/dev/null ||
8574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8576 /^X\(\/\/\)$/{ s//\1/; q; }
8577 /^X\(\/\).*/{ s//\1/; q; }
8579 { if $as_mkdir_p; then
8584 while test ! -d "$as_dir"; do
8585 as_dirs
="$as_dir $as_dirs"
8586 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8588 X"$as_dir" : 'X\(//\)[^/]' \| \
8589 X"$as_dir" : 'X\(//\)$' \| \
8590 X"$as_dir" : 'X\(/\)' \| \
8591 . : '\(.\)' 2>/dev/null ||
8593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8595 /^X\(\/\/\)$/{ s//\1/; q; }
8596 /^X\(\/\).*/{ s//\1/; q; }
8599 test ! -n "$as_dirs" || mkdir
$as_dirs
8600 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8602 { (exit 1); exit 1; }; }; }
8606 if test "$ac_dir" != .
; then
8607 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8608 # A "../" for each directory in $ac_dir_suffix.
8609 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8611 ac_dir_suffix
= ac_top_builddir
=
8615 .
) # No --srcdir option. We are building in place.
8617 if test -z "$ac_top_builddir"; then
8620 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8622 [\\/]* | ?
:[\\/]* ) # Absolute path.
8623 ac_srcdir
=$srcdir$ac_dir_suffix;
8624 ac_top_srcdir
=$srcdir ;;
8626 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8627 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8630 # Do not use `cd foo && pwd` to compute absolute paths, because
8631 # the directories may not exist.
8633 .
) ac_abs_builddir
="$ac_dir";;
8636 .
) ac_abs_builddir
=`pwd`;;
8637 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8638 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8641 case $ac_abs_builddir in
8642 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8644 case ${ac_top_builddir}.
in
8645 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8646 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8647 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8650 case $ac_abs_builddir in
8651 .
) ac_abs_srcdir
=$ac_srcdir;;
8654 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8655 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8656 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8659 case $ac_abs_builddir in
8660 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8662 case $ac_top_srcdir in
8663 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8664 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8665 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8671 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8672 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8675 if test x
"$ac_file" != x-
; then
8676 { echo "$as_me:$LINENO: creating $ac_file" >&5
8677 echo "$as_me: creating $ac_file" >&6;}
8680 # Let's still pretend it is `configure' which instantiates (i.e., don't
8681 # use $as_me), people would be surprised to read:
8682 # /* config.h. Generated by config.status. */
8683 if test x
"$ac_file" = x-
; then
8686 configure_input
="$ac_file. "
8688 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8689 sed 's,.*/,,'` by configure."
8691 # First look for the input files in the build tree, otherwise in the
8693 ac_file_inputs
=`IFS=:
8694 for f in $ac_file_in; do
8696 -) echo $tmp/stdin ;;
8698 # Absolute (can't be DOS-style, as IFS=:)
8699 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8700 echo "$as_me: error: cannot find input file: $f" >&2;}
8701 { (exit 1); exit 1; }; }
8704 if test -f "$f"; then
8707 elif test -f "$srcdir/$f"; then
8712 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8713 echo "$as_me: error: cannot find input file: $f" >&2;}
8714 { (exit 1); exit 1; }; }
8717 done` ||
{ (exit 1); exit 1; }
8719 cat >>$CONFIG_STATUS <<_ACEOF
8723 cat >>$CONFIG_STATUS <<\_ACEOF
8725 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8726 s
,@configure_input@
,$configure_input,;t t
8727 s
,@srcdir@
,$ac_srcdir,;t t
8728 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8729 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8730 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8731 s
,@builddir@
,$ac_builddir,;t t
8732 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8733 s
,@top_builddir@
,$ac_top_builddir,;t t
8734 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8735 s
,@INSTALL@
,$ac_INSTALL,;t t
8736 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8738 if test x"$ac_file" != x-; then
8739 mv $tmp/out $ac_file
8747 cat >>$CONFIG_STATUS <<\_ACEOF
8750 # CONFIG_HEADER section.
8753 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8754 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8756 # ac_d sets the value in "#define NAME VALUE" lines.
8757 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8758 ac_dB
='[ ].*$,\1#\2'
8761 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8762 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8763 ac_uB
='$,\1#\2define\3'
8767 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8770 - |
*:- |
*:-:* ) # input from stdin
8772 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8773 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8774 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8775 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8776 * ) ac_file_in
=$ac_file.
in ;;
8779 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8780 echo "$as_me: creating $ac_file" >&6;}
8782 # First look for the input files in the build tree, otherwise in the
8784 ac_file_inputs
=`IFS=:
8785 for f in $ac_file_in; do
8787 -) echo $tmp/stdin ;;
8789 # Absolute (can't be DOS-style, as IFS=:)
8790 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8791 echo "$as_me: error: cannot find input file: $f" >&2;}
8792 { (exit 1); exit 1; }; }
8793 # Do quote $f, to prevent DOS paths from being IFS'd.
8796 if test -f "$f"; then
8799 elif test -f "$srcdir/$f"; then
8804 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8805 echo "$as_me: error: cannot find input file: $f" >&2;}
8806 { (exit 1); exit 1; }; }
8809 done` ||
{ (exit 1); exit 1; }
8810 # Remove the trailing spaces.
8811 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8815 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8816 # `conftest.undefs', that substitutes the proper values into
8817 # config.h.in to produce config.h. The first handles `#define'
8818 # templates, and the second `#undef' templates.
8819 # And first: Protect against being on the right side of a sed subst in
8820 # config.status. Protect against being in an unquoted here document
8822 rm -f conftest.defines conftest.undefs
8823 # Using a here document instead of a string reduces the quoting nightmare.
8824 # Putting comments in sed scripts is not portable.
8826 # `end' is used to avoid that the second main sed command (meant for
8827 # 0-ary CPP macros) applies to n-ary macro definitions.
8828 # See the Autoconf documentation for `clear'.
8829 cat >confdef2sed.
sed <<\_ACEOF
8834 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8836 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8839 # If some macros were called several times there might be several times
8840 # the same #defines, which is useless. Nevertheless, we may not want to
8841 # sort them, since we want the *last* AC-DEFINE to be honored.
8842 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8843 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8844 rm -f confdef2sed.sed
8846 # This sed command replaces #undef with comments. This is necessary, for
8847 # example, in the case of _POSIX_SOURCE, which is predefined and required
8848 # on some systems where configure will not decide to define it.
8849 cat >>conftest.undefs <<\_ACEOF
8850 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8853 # Break up conftest.defines because some shells have a limit on the size
8854 # of here documents, and old seds have small limits too (100 cmds).
8855 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8856 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8857 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8858 echo ' :' >>$CONFIG_STATUS
8860 while grep . conftest.defines >/dev/null
8862 # Write a limited-size here document to $tmp/defines.sed.
8863 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8864 # Speed up: don't consider the non `#define' lines.
8865 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8866 # Work around the forget-to-reset-the-flag bug.
8867 echo 't clr' >>$CONFIG_STATUS
8868 echo ': clr' >>$CONFIG_STATUS
8869 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8871 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8875 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8876 rm -f conftest.defines
8877 mv conftest.
tail conftest.defines
8879 rm -f conftest.defines
8880 echo ' fi # grep' >>$CONFIG_STATUS
8881 echo >>$CONFIG_STATUS
8883 # Break up conftest.undefs because some shells have a limit on the size
8884 # of here documents, and old seds have small limits too (100 cmds).
8885 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8887 while grep . conftest.undefs
>/dev
/null
8889 # Write a limited-size here document to $tmp/undefs.sed.
8890 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8891 # Speed up: don't consider the non
`#undef'
8892 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8893 # Work around the forget-to-reset-the-flag bug.
8894 echo 't clr' >>$CONFIG_STATUS
8895 echo ': clr' >>$CONFIG_STATUS
8896 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8898 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8902 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8903 rm -f conftest.undefs
8904 mv conftest.tail conftest.undefs
8906 rm -f conftest.undefs
8908 cat >>$CONFIG_STATUS <<\_ACEOF
8909 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8910 # use $as_me), people would be surprised to read:
8911 # /* config.h. Generated by config.status. */
8912 if test x
"$ac_file" = x-
; then
8913 echo "/* Generated by configure. */" >$tmp/config.h
8915 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8917 cat $tmp/in >>$tmp/config.h
8919 if test x
"$ac_file" != x-
; then
8920 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8921 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8922 echo "$as_me: $ac_file is unchanged" >&6;}
8924 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8926 X"$ac_file" : 'X\(//\)[^/]' \| \
8927 X"$ac_file" : 'X\(//\)$' \| \
8928 X"$ac_file" : 'X\(/\)' \| \
8929 . : '\(.\)' 2>/dev/null ||
8931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8933 /^X\(\/\/\)$/{ s//\1/; q; }
8934 /^X\(\/\).*/{ s//\1/; q; }
8936 { if $as_mkdir_p; then
8941 while test ! -d "$as_dir"; do
8942 as_dirs
="$as_dir $as_dirs"
8943 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8945 X"$as_dir" : 'X\(//\)[^/]' \| \
8946 X"$as_dir" : 'X\(//\)$' \| \
8947 X"$as_dir" : 'X\(/\)' \| \
8948 . : '\(.\)' 2>/dev/null ||
8950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8952 /^X\(\/\/\)$/{ s//\1/; q; }
8953 /^X\(\/\).*/{ s//\1/; q; }
8956 test ! -n "$as_dirs" || mkdir
$as_dirs
8957 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8959 { (exit 1); exit 1; }; }; }
8962 mv $tmp/config.h
$ac_file
8970 cat >>$CONFIG_STATUS <<\_ACEOF
8973 # CONFIG_LINKS section.
8976 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
8977 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8978 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8980 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8981 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8983 if test ! -r $srcdir/$ac_source; then
8984 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8985 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8986 { (exit 1); exit 1; }; }
8990 # Make relative symlinks.
8991 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8992 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8993 X"$ac_dest" : 'X\(//\)[^/]' \| \
8994 X"$ac_dest" : 'X\(//\)$' \| \
8995 X"$ac_dest" : 'X\(/\)' \| \
8996 . : '\(.\)' 2>/dev/null ||
8998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9000 /^X\(\/\/\)$/{ s//\1/; q; }
9001 /^X\(\/\).*/{ s//\1/; q; }
9003 { if $as_mkdir_p; then
9004 mkdir
-p "$ac_dest_dir"
9006 as_dir
="$ac_dest_dir"
9008 while test ! -d "$as_dir"; do
9009 as_dirs
="$as_dir $as_dirs"
9010 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9012 X"$as_dir" : 'X\(//\)[^/]' \| \
9013 X"$as_dir" : 'X\(//\)$' \| \
9014 X"$as_dir" : 'X\(/\)' \| \
9015 . : '\(.\)' 2>/dev/null ||
9017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9019 /^X\(\/\/\)$/{ s//\1/; q; }
9020 /^X\(\/\).*/{ s//\1/; q; }
9023 test ! -n "$as_dirs" || mkdir
$as_dirs
9024 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9025 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9026 { (exit 1); exit 1; }; }; }
9030 if test "$ac_dest_dir" != .
; then
9031 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9032 # A "../" for each directory in $ac_dir_suffix.
9033 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9035 ac_dir_suffix
= ac_top_builddir
=
9039 .
) # No --srcdir option. We are building in place.
9041 if test -z "$ac_top_builddir"; then
9044 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9046 [\\/]* | ?
:[\\/]* ) # Absolute path.
9047 ac_srcdir
=$srcdir$ac_dir_suffix;
9048 ac_top_srcdir
=$srcdir ;;
9050 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9051 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9054 # Do not use `cd foo && pwd` to compute absolute paths, because
9055 # the directories may not exist.
9057 .
) ac_abs_builddir
="$ac_dest_dir";;
9059 case "$ac_dest_dir" in
9060 .
) ac_abs_builddir
=`pwd`;;
9061 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
9062 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
9065 case $ac_abs_builddir in
9066 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9068 case ${ac_top_builddir}.
in
9069 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9070 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9071 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9074 case $ac_abs_builddir in
9075 .
) ac_abs_srcdir
=$ac_srcdir;;
9078 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9079 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9080 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9083 case $ac_abs_builddir in
9084 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9086 case $ac_top_srcdir in
9087 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9088 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9089 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9095 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9096 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
9099 # Try a symlink, then a hard link, then a copy.
9100 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
9101 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
9102 cp -p $srcdir/$ac_source $ac_dest ||
9103 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9104 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9105 { (exit 1); exit 1; }; }
9108 cat >>$CONFIG_STATUS <<\_ACEOF
9111 # CONFIG_COMMANDS section.
9113 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9114 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9115 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9116 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9117 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9118 X"$ac_dest" : 'X\(//\)[^/]' \| \
9119 X"$ac_dest" : 'X\(//\)$' \| \
9120 X"$ac_dest" : 'X\(/\)' \| \
9121 . : '\(.\)' 2>/dev/null ||
9123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9125 /^X\(\/\/\)$/{ s//\1/; q; }
9126 /^X\(\/\).*/{ s//\1/; q; }
9128 { if $as_mkdir_p; then
9133 while test ! -d "$as_dir"; do
9134 as_dirs
="$as_dir $as_dirs"
9135 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9137 X"$as_dir" : 'X\(//\)[^/]' \| \
9138 X"$as_dir" : 'X\(//\)$' \| \
9139 X"$as_dir" : 'X\(/\)' \| \
9140 . : '\(.\)' 2>/dev/null ||
9142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9144 /^X\(\/\/\)$/{ s//\1/; q; }
9145 /^X\(\/\).*/{ s//\1/; q; }
9148 test ! -n "$as_dirs" || mkdir
$as_dirs
9149 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9151 { (exit 1); exit 1; }; }; }
9155 if test "$ac_dir" != .
; then
9156 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9157 # A "../" for each directory in $ac_dir_suffix.
9158 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9160 ac_dir_suffix
= ac_top_builddir
=
9164 .
) # No --srcdir option. We are building in place.
9166 if test -z "$ac_top_builddir"; then
9169 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9171 [\\/]* | ?
:[\\/]* ) # Absolute path.
9172 ac_srcdir
=$srcdir$ac_dir_suffix;
9173 ac_top_srcdir
=$srcdir ;;
9175 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9176 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9179 # Do not use `cd foo && pwd` to compute absolute paths, because
9180 # the directories may not exist.
9182 .
) ac_abs_builddir
="$ac_dir";;
9185 .
) ac_abs_builddir
=`pwd`;;
9186 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9187 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9190 case $ac_abs_builddir in
9191 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9193 case ${ac_top_builddir}.
in
9194 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9195 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9196 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9199 case $ac_abs_builddir in
9200 .
) ac_abs_srcdir
=$ac_srcdir;;
9203 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9204 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9205 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9208 case $ac_abs_builddir in
9209 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9211 case $ac_top_srcdir in
9212 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9213 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9214 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9219 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9220 echo "$as_me: executing $ac_dest commands" >&6;}
9222 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9223 rm -f Makesim1.tmp Makesim2.tmp Makefile
9224 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
9225 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
9226 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9227 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9228 <Makefile.sim
>Makefile
9229 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9231 stamp-h
) echo > stamp-h
;;
9236 cat >>$CONFIG_STATUS <<\_ACEOF
9238 { (exit 0); exit 0; }
9240 chmod +x
$CONFIG_STATUS
9241 ac_clean_files
=$ac_clean_files_save
9244 # configure is writing to config.log, and then calls config.status.
9245 # config.status does its own redirection, appending to config.log.
9246 # Unfortunately, on DOS this fails, as config.log is still kept open
9247 # by configure, so config.status won't be able to write to it; its
9248 # output is simply discarded. So we exec the FD to /dev/null,
9249 # effectively closing config.log, so it can be properly (re)opened and
9250 # appended to by config.status. When coming back to configure, we
9251 # need to make the FD available again.
9252 if test "$no_create" != yes; then
9254 ac_config_status_args
=
9255 test "$silent" = yes &&
9256 ac_config_status_args
="$ac_config_status_args --quiet"
9258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9261 # would make configure fail if this is the last instruction.
9262 $ac_cs_success ||
{ (exit 1); exit 1; }