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
='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 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 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
1323 ac_config_headers="$ac_config_headers config.h:config.in"
1326 # This file contains common code used by all simulators.
1328 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1329 # directory. It is intended to be invoked before any target specific stuff.
1330 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1331 # It is intended to be invoked last.
1333 # The simulator's configure.
in should
look like
:
1335 # dnl Process this file with autoconf to produce a configure script.
1336 # sinclude(../common/aclocal.m4)
1338 # AC_INIT(Makefile.in)
1342 # ... target specific stuff ...
1393 sim_inline
="-DDEFAULT_INLINE=0"
1430 # This file is derived from `gettext.m4'. The difference is that the
1431 # included macros assume Cygnus-style source and build trees.
1433 # Macro to add for using GNU gettext.
1434 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1436 # This file file be copied and used freely without restrictions. It can
1437 # be used in projects which are not available under the GNU Public License
1438 # but which still want to provide support for the GNU gettext functionality.
1439 # Please note that the actual code is *not* freely available.
1447 # Search path for a program which passes the given test.
1448 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1450 # This file file be copied and used freely without restrictions. It can
1451 # be used in projects which are not available under the GNU Public License
1452 # but which still want to provide support for the GNU gettext functionality.
1453 # Please note that the actual code is *not* freely available.
1459 # Check whether LC_MESSAGES is available in <locale.h>.
1460 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1462 # This file file be copied and used freely without restrictions. It can
1463 # be used in projects which are not available under the GNU Public License
1464 # but which still want to provide support for the GNU gettext functionality.
1465 # Please note that the actual code is *not* freely available.
1475 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1476 # it by inlining the macro's contents.
1477 # This file contains common code used by all simulators.
1479 # common.m4 invokes AC macros used by all simulators and by the common
1480 # directory. It is intended to be included before any target specific
1481 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1482 # the Makefile. It is intended to be invoked last.
1484 # The simulator's configure.in should look like:
1486 # dnl Process this file with autoconf to produce a configure script.
1488 # AC_INIT(Makefile.in)
1489 # AC_CONFIG_HEADER(config.h:config.in)
1491 # sinclude(../common/aclocal.m4)
1492 # sinclude(../common/common.m4)
1494 # ... target specific stuff ...
1497 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1498 if test -f $ac_dir/install-sh
; then
1500 ac_install_sh
="$ac_aux_dir/install-sh -c"
1502 elif test -f $ac_dir/install.sh
; then
1504 ac_install_sh
="$ac_aux_dir/install.sh -c"
1506 elif test -f $ac_dir/shtool
; then
1508 ac_install_sh
="$ac_aux_dir/shtool install -c"
1512 if test -z "$ac_aux_dir"; then
1513 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1514 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1515 { (exit 1); exit 1; }; }
1517 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1518 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1519 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1521 # Make sure we can run config.sub.
1522 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1523 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1524 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1525 { (exit 1); exit 1; }; }
1527 echo "$as_me:$LINENO: checking build system type" >&5
1528 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1529 if test "${ac_cv_build+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 ac_cv_build_alias
=$build_alias
1533 test -z "$ac_cv_build_alias" &&
1534 ac_cv_build_alias
=`$ac_config_guess`
1535 test -z "$ac_cv_build_alias" &&
1536 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1537 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1538 { (exit 1); exit 1; }; }
1539 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1540 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1541 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1542 { (exit 1); exit 1; }; }
1545 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1546 echo "${ECHO_T}$ac_cv_build" >&6
1548 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1549 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1550 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1553 echo "$as_me:$LINENO: checking host system type" >&5
1554 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1555 if test "${ac_cv_host+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 ac_cv_host_alias
=$host_alias
1559 test -z "$ac_cv_host_alias" &&
1560 ac_cv_host_alias
=$ac_cv_build_alias
1561 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1562 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1567 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1568 echo "${ECHO_T}$ac_cv_host" >&6
1570 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575 echo "$as_me:$LINENO: checking target system type" >&5
1576 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1577 if test "${ac_cv_target+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 ac_cv_target_alias
=$target_alias
1581 test "x$ac_cv_target_alias" = "x" &&
1582 ac_cv_target_alias
=$ac_cv_host_alias
1583 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1589 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1590 echo "${ECHO_T}$ac_cv_target" >&6
1591 target
=$ac_cv_target
1592 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597 # The aliases save the names the user supplied, while $host etc.
1598 # will get canonicalized.
1599 test -n "$target_alias" &&
1600 test "$program_prefix$program_suffix$program_transform_name" = \
1602 program_prefix
=${target_alias}-
1603 test "$program_prefix" != NONE
&&
1604 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1605 # Use a double $ so make ignores it.
1606 test "$program_suffix" != NONE
&&
1607 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1608 # Double any \ or $. echo might interpret backslashes.
1609 # By default was `s,x,x', remove it if useless.
1610 cat <<\_ACEOF
>conftest.
sed
1611 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1613 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1617 ac_cpp
='$CPP $CPPFLAGS'
1618 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1621 if test -n "$ac_tool_prefix"; then
1622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1623 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC
="$CC" # Let the user override the test.
1632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir
=.
1637 for ac_exec_ext
in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649 if test -n "$CC"; then
1650 echo "$as_me:$LINENO: result: $CC" >&5
1651 echo "${ECHO_T}$CC" >&6
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1658 if test -z "$ac_cv_prog_CC"; then
1660 # Extract the first word of "gcc", so it can be a program name with args.
1661 set dummy gcc
; ac_word
=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$ac_ct_CC"; then
1668 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir
=.
1675 for ac_exec_ext
in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_ac_ct_CC
="gcc"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1687 if test -n "$ac_ct_CC"; then
1688 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689 echo "${ECHO_T}$ac_ct_CC" >&6
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1700 if test -z "$CC"; then
1701 if test -n "$ac_tool_prefix"; then
1702 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1703 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 if test -n "$CC"; then
1710 ac_cv_prog_CC
="$CC" # Let the user override the test.
1712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir
=.
1717 for ac_exec_ext
in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$ac_cv_prog_CC"; then
1740 # Extract the first word of "cc", so it can be a program name with args.
1741 set dummy cc
; ac_word
=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 if test -n "$ac_ct_CC"; then
1748 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1754 test -z "$as_dir" && as_dir
=.
1755 for ac_exec_ext
in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_ac_ct_CC
="cc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1767 if test -n "$ac_ct_CC"; then
1768 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1769 echo "${ECHO_T}$ac_ct_CC" >&6
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1781 if test -z "$CC"; then
1782 # Extract the first word of "cc", so it can be a program name with args.
1783 set dummy cc
; ac_word
=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 if test -n "$CC"; then
1790 ac_cv_prog_CC
="$CC" # Let the user override the test.
1793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir
=.
1798 for ac_exec_ext
in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1801 ac_prog_rejected
=yes
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 if test $ac_prog_rejected = yes; then
1812 # We found a bogon in the path, so make sure we never use it.
1813 set dummy
$ac_cv_prog_CC
1815 if test $# != 0; then
1816 # We chose a different compiler from the bogus one.
1817 # However, it has the same basename, so the bogon will be chosen
1818 # first if we set CC to just the basename; use the full file name.
1820 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1826 if test -n "$CC"; then
1827 echo "$as_me:$LINENO: result: $CC" >&5
1828 echo "${ECHO_T}$CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1835 if test -z "$CC"; then
1836 if test -n "$ac_tool_prefix"; then
1839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1840 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 if test -n "$CC"; then
1847 ac_cv_prog_CC
="$CC" # Let the user override the test.
1849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1853 test -z "$as_dir" && as_dir
=.
1854 for ac_exec_ext
in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 if test -n "$CC"; then
1867 echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1874 test -n "$CC" && break
1877 if test -z "$CC"; then
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy
$ac_prog; ac_word
=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$ac_ct_CC"; then
1889 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir
=.
1896 for ac_exec_ext
in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_CC
="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1908 if test -n "$ac_ct_CC"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910 echo "${ECHO_T}$ac_ct_CC" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 test -n "$ac_ct_CC" && break
1925 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1926 See \`config.log' for more details." >&5
1927 echo "$as_me: error: no acceptable C compiler found in \$PATH
1928 See \`config.log' for more details." >&2;}
1929 { (exit 1); exit 1; }; }
1931 # Provide some information about the compiler.
1932 echo "$as_me:$LINENO:" \
1933 "checking for C compiler version" >&5
1934 ac_compiler
=`set X $ac_compile; echo $2`
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1936 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1941 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1946 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }
1951 cat >conftest.
$ac_ext <<_ACEOF
1954 cat confdefs.h
>>conftest.
$ac_ext
1955 cat >>conftest.
$ac_ext <<_ACEOF
1956 /* end confdefs.h. */
1966 ac_clean_files_save
=$ac_clean_files
1967 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1968 # Try to create an executable without -o first, disregard a.out.
1969 # It will help us diagnose broken compilers, and finding out an intuition
1971 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1972 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1973 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1974 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1975 (eval $ac_link_default) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; then
1979 # Find the output, starting from the most likely. This scheme is
1980 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1983 # Be careful to initialize this variable, since it used to be cached.
1984 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1986 # b.out is created by i960 compilers.
1987 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1989 test -f "$ac_file" ||
continue
1991 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1994 # This is the source file.
1997 # We found the default executable, but exeext='' is most
2001 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2002 # FIXME: I believe we export ac_cv_exeext for Libtool,
2003 # but it would be cool to find out if it's true. Does anybody
2004 # maintain Libtool? --akim.
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.
$ac_ext >&5
2015 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2016 See \`config.log' for more details." >&5
2017 echo "$as_me: error: C compiler cannot create executables
2018 See \`config.log' for more details." >&2;}
2019 { (exit 77); exit 77; }; }
2022 ac_exeext
=$ac_cv_exeext
2023 echo "$as_me:$LINENO: result: $ac_file" >&5
2024 echo "${ECHO_T}$ac_file" >&6
2026 # Check the compiler produces executables we can run. If not, either
2027 # the compiler is broken, or we cross compile.
2028 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2029 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2030 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2031 # If not cross compiling, check that we can run a simple program.
2032 if test "$cross_compiling" != yes; then
2033 if { ac_try
='./$ac_file'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 if test "$cross_compiling" = maybe
; then
2044 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2045 If you meant to cross compile, use \`--host'.
2046 See \`config.log' for more details." >&5
2047 echo "$as_me: error: cannot run C compiled programs.
2048 If you meant to cross compile, use \`--host'.
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2054 echo "$as_me:$LINENO: result: yes" >&5
2055 echo "${ECHO_T}yes" >&6
2057 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2058 ac_clean_files
=$ac_clean_files_save
2059 # Check the compiler produces executables we can run. If not, either
2060 # the compiler is broken, or we cross compile.
2061 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2062 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2063 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2064 echo "${ECHO_T}$cross_compiling" >&6
2066 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2067 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2069 (eval $ac_link) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; then
2073 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2074 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2075 # work properly (i.e., refer to `conftest.exe'), while it won't with
2077 for ac_file
in conftest.exe conftest conftest.
*; do
2078 test -f "$ac_file" ||
continue
2080 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2081 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2091 See \`config.log' for more details." >&2;}
2092 { (exit 1); exit 1; }; }
2095 rm -f conftest
$ac_cv_exeext
2096 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2097 echo "${ECHO_T}$ac_cv_exeext" >&6
2099 rm -f conftest.
$ac_ext
2100 EXEEXT
=$ac_cv_exeext
2102 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2103 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2104 if test "${ac_cv_objext+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 cat >conftest.
$ac_ext <<_ACEOF
2110 cat confdefs.h
>>conftest.
$ac_ext
2111 cat >>conftest.
$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2122 rm -f conftest.o conftest.obj
2123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2131 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2136 echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.
$ac_ext >&5
2139 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2142 See \`config.log' for more details." >&2;}
2143 { (exit 1); exit 1; }; }
2146 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2148 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2149 echo "${ECHO_T}$ac_cv_objext" >&6
2150 OBJEXT
=$ac_cv_objext
2152 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2153 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2154 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 cat >conftest.
$ac_ext <<_ACEOF
2160 cat confdefs.h
>>conftest.
$ac_ext
2161 cat >>conftest.
$ac_ext <<_ACEOF
2162 /* end confdefs.h. */
2175 rm -f conftest.
$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>conftest.er1
2179 grep -v '^ *+' conftest.er1
>conftest.err
2181 cat conftest.err
>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try
='test -z "$ac_c_werror_flag"
2185 || test ! -s conftest.err'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; } &&
2191 { ac_try
='test -s conftest.$ac_objext'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.
$ac_ext >&5
2204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2205 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2208 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2209 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2210 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2211 ac_test_CFLAGS
=${CFLAGS+set}
2212 ac_save_CFLAGS
=$CFLAGS
2214 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2215 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2216 if test "${ac_cv_prog_cc_g+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 cat >conftest.
$ac_ext <<_ACEOF
2222 cat confdefs.h
>>conftest.
$ac_ext
2223 cat >>conftest.
$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2234 rm -f conftest.
$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>conftest.er1
2238 grep -v '^ *+' conftest.er1
>conftest.err
2240 cat conftest.err
>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } &&
2243 { ac_try
='test -z "$ac_c_werror_flag"
2244 || test ! -s conftest.err'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; } &&
2250 { ac_try
='test -s conftest.$ac_objext'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2258 echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.
$ac_ext >&5
2263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2266 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2267 if test "$ac_test_CFLAGS" = set; then
2268 CFLAGS
=$ac_save_CFLAGS
2269 elif test $ac_cv_prog_cc_g = yes; then
2270 if test "$GCC" = yes; then
2276 if test "$GCC" = yes; then
2282 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2283 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2284 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 ac_cv_prog_cc_stdc
=no
2289 cat >conftest.
$ac_ext <<_ACEOF
2292 cat confdefs.h
>>conftest.
$ac_ext
2293 cat >>conftest.
$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2297 #include <sys/types.h>
2298 #include <sys/stat.h>
2299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2300 struct buf { int x; };
2301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2302 static char *e (p, i)
2308 static char *f (char * (*g) (char **, int), char **p, ...)
2313 s = g (p, va_arg (v,int));
2318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2319 function prototypes and stuff, but not '\xHH' hex character constants.
2320 These don't provoke an error unfortunately, instead are silently treated
2321 as 'x'. The following induces an error, until -std1 is added to get
2322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2323 array size at least. It's necessary to write '\x00'==0 to get something
2324 that's true only with -std1. */
2325 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2327 int test (int i, double x);
2328 struct s1 {int (*f) (int a);};
2329 struct s2 {int (*f) (double a);};
2330 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2336 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2341 # Don't try gcc -ansi; that turns off useful extensions and
2342 # breaks some systems' header files.
2343 # AIX -qlanglvl=ansi
2344 # Ultrix and OSF/1 -std1
2345 # HP-UX 10.20 and later -Ae
2346 # HP-UX older versions -Aa -D_HPUX_SOURCE
2347 # SVR4 -Xc -D__EXTENSIONS__
2348 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2350 CC
="$ac_save_CC $ac_arg"
2351 rm -f conftest.
$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>conftest.er1
2355 grep -v '^ *+' conftest.er1
>conftest.err
2357 cat conftest.err
>&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try
='test -z "$ac_c_werror_flag"
2361 || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try
='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 ac_cv_prog_cc_stdc
=$ac_arg
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.
$ac_ext >&5
2380 rm -f conftest.err conftest.
$ac_objext
2382 rm -f conftest.
$ac_ext conftest.
$ac_objext
2387 case "x$ac_cv_prog_cc_stdc" in
2389 echo "$as_me:$LINENO: result: none needed" >&5
2390 echo "${ECHO_T}none needed" >&6 ;;
2392 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2393 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2394 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2397 # Some people use a C++ compiler to compile C. Since we use `exit',
2398 # in C++ we need to declare it. In case someone uses the same compiler
2399 # for both compiling C and C++ we need to have the C++ compiler decide
2400 # the declaration of exit, since it's the most demanding environment.
2401 cat >conftest.
$ac_ext <<_ACEOF
2406 rm -f conftest.
$ac_objext
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408 (eval $ac_compile) 2>conftest.er1
2410 grep -v '^ *+' conftest.er1
>conftest.err
2412 cat conftest.err
>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try
='test -z "$ac_c_werror_flag"
2416 || test ! -s conftest.err'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try
='test -s conftest.$ac_objext'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 for ac_declaration
in \
2430 'extern "C" void std::exit (int) throw (); using std::exit;' \
2431 'extern "C" void std::exit (int); using std::exit;' \
2432 'extern "C" void exit (int) throw ();' \
2433 'extern "C" void exit (int);' \
2436 cat >conftest.
$ac_ext <<_ACEOF
2439 cat confdefs.h
>>conftest.
$ac_ext
2440 cat >>conftest.
$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2452 rm -f conftest.
$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2456 grep -v '^ *+' conftest.er1
>conftest.err
2458 cat conftest.err
>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try
='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try
='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.
$ac_ext >&5
2481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2482 cat >conftest.
$ac_ext <<_ACEOF
2485 cat confdefs.h
>>conftest.
$ac_ext
2486 cat >>conftest.
$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2497 rm -f conftest.
$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2501 grep -v '^ *+' conftest.er1
>conftest.err
2503 cat conftest.err
>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try
='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try
='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.
$ac_ext >&5
2525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2528 if test -n "$ac_declaration"; then
2529 echo '#ifdef __cplusplus' >>confdefs.h
2530 echo $ac_declaration >>confdefs.h
2531 echo '#endif' >>confdefs.h
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.
$ac_ext >&5
2539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2541 ac_cpp
='$CPP $CPPFLAGS'
2542 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2546 # Find a good install program. We prefer a C program (faster),
2547 # so one script is as good as another. But avoid the broken or
2548 # incompatible versions:
2549 # SysV /etc/install, /usr/sbin/install
2550 # SunOS /usr/etc/install
2551 # IRIX /sbin/install
2553 # AmigaOS /C/install, which installs bootblocks on floppy discs
2554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2557 # OS/2's system install, which has a completely different semantic
2558 # ./install, which can be erroneously created by make from ./install.sh.
2559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2561 if test -z "$INSTALL"; then
2562 if test "${ac_cv_path_install+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir
=.
2570 # Account for people who put trailing slashes in PATH elements.
2572 .
/ | .
// |
/cC
/* | \
2573 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2574 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2577 # OSF1 and SCO ODT 3.0 have their own names for install.
2578 # Don't use installbsd from OSF since it installs stuff as root
2580 for ac_prog
in ginstall scoinst
install; do
2581 for ac_exec_ext
in '' $ac_executable_extensions; do
2582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2583 if test $ac_prog = install &&
2584 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2585 # AIX install. It has an incompatible calling convention.
2587 elif test $ac_prog = install &&
2588 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2589 # program-specific install script used by HP pwplus--don't use.
2592 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2604 if test "${ac_cv_path_install+set}" = set; then
2605 INSTALL
=$ac_cv_path_install
2607 # As a last resort, use the slow shell script. We don't cache a
2608 # path for INSTALL within a source directory, because that will
2609 # break other packages using the cache if that directory is
2610 # removed, or if the path is relative.
2611 INSTALL
=$ac_install_sh
2614 echo "$as_me:$LINENO: result: $INSTALL" >&5
2615 echo "${ECHO_T}$INSTALL" >&6
2617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2618 # It thinks the first close brace ends the variable substitution.
2619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2623 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2626 # Put a plausible default for CC_FOR_BUILD in Makefile.
2627 if test "x$cross_compiling" = "xno"; then
2628 CC_FOR_BUILD
='$(CC)'
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2640 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2641 echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643 if test "${ac_cv_prog_RANLIB+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -n "$RANLIB"; then
2647 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir
=.
2654 for ac_exec_ext
in '' $ac_executable_extensions; do
2655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 RANLIB
=$ac_cv_prog_RANLIB
2666 if test -n "$RANLIB"; then
2667 echo "$as_me:$LINENO: result: $RANLIB" >&5
2668 echo "${ECHO_T}$RANLIB" >&6
2670 echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6
2675 if test -z "$ac_cv_prog_RANLIB"; then
2676 ac_ct_RANLIB
=$RANLIB
2677 # Extract the first word of "ranlib", so it can be a program name with args.
2678 set dummy ranlib
; ac_word
=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 if test -n "$ac_ct_RANLIB"; then
2685 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir
=.
2692 for ac_exec_ext
in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2704 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2705 if test -n "$ac_ct_RANLIB"; then
2706 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2707 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2713 RANLIB
=$ac_ct_RANLIB
2715 RANLIB
="$ac_cv_prog_RANLIB"
2720 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2721 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2722 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2723 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 cat >conftest.
make <<\_ACEOF
2728 @
echo 'ac_maketemp="$(MAKE)"'
2730 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2731 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2732 if test -n "$ac_maketemp"; then
2733 eval ac_cv_prog_make_
${ac_make}_set
=yes
2735 eval ac_cv_prog_make_
${ac_make}_set
=no
2739 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2740 echo "$as_me:$LINENO: result: yes" >&5
2741 echo "${ECHO_T}yes" >&6
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2746 SET_MAKE
="MAKE=${MAKE-make}"
2750 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2751 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2752 if test "${ac_cv_search_strerror+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_func_search_save_LIBS
=$LIBS
2756 ac_cv_search_strerror
=no
2757 cat >conftest.
$ac_ext <<_ACEOF
2760 cat confdefs.h
>>conftest.
$ac_ext
2761 cat >>conftest.
$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2764 /* Override any gcc2 internal prototype to avoid an error. */
2768 /* We use char because int might match the return type of a gcc2
2769 builtin and then its argument prototype would still apply. */
2779 rm -f conftest.
$ac_objext conftest
$ac_exeext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2781 (eval $ac_link) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1
>conftest.err
2785 cat conftest.err
>&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try
='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try
='test -s conftest$ac_exeext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 ac_cv_search_strerror
="none required"
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.
$ac_ext >&5
2807 rm -f conftest.err conftest.
$ac_objext \
2808 conftest
$ac_exeext conftest.
$ac_ext
2809 if test "$ac_cv_search_strerror" = no
; then
2810 for ac_lib
in cposix
; do
2811 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2812 cat >conftest.
$ac_ext <<_ACEOF
2815 cat confdefs.h
>>conftest.
$ac_ext
2816 cat >>conftest.
$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2819 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2834 rm -f conftest.
$ac_objext conftest
$ac_exeext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836 (eval $ac_link) 2>conftest.er1
2838 grep -v '^ *+' conftest.er1
>conftest.err
2840 cat conftest.err
>&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try
='test -z "$ac_c_werror_flag"
2844 || test ! -s conftest.err'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try
='test -s conftest$ac_exeext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 ac_cv_search_strerror
="-l$ac_lib"
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.
$ac_ext >&5
2863 rm -f conftest.err conftest.
$ac_objext \
2864 conftest
$ac_exeext conftest.
$ac_ext
2867 LIBS
=$ac_func_search_save_LIBS
2869 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2870 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2871 if test "$ac_cv_search_strerror" != no
; then
2872 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2877 ac_cpp
='$CPP $CPPFLAGS'
2878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 # Double quotes because CPP needs to be expanded
2892 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895 for ac_c_preproc_warn_flag
in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.
$ac_ext <<_ACEOF
2906 cat confdefs.h
>>conftest.
$ac_ext
2907 cat >>conftest.
$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2910 # include <limits.h>
2912 # include <assert.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1
>conftest.err
2921 cat conftest.err
>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev
/null
; then
2924 if test -s conftest.err
; then
2925 ac_cpp_err
=$ac_c_preproc_warn_flag
2926 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2933 if test -z "$ac_cpp_err"; then
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.
$ac_ext >&5
2939 # Broken: fails on valid input.
2942 rm -f conftest.err conftest.
$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.
$ac_ext <<_ACEOF
2949 cat confdefs.h
>>conftest.
$ac_ext
2950 cat >>conftest.
$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1
>conftest.err
2959 cat conftest.err
>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev
/null
; then
2962 if test -s conftest.err
; then
2963 ac_cpp_err
=$ac_c_preproc_warn_flag
2964 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.
$ac_ext >&5
2978 # Passes both tests.
2982 rm -f conftest.err conftest.
$ac_ext
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.
$ac_ext
2987 if $ac_preproc_ok; then
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3002 for ac_c_preproc_warn_flag
in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.
$ac_ext <<_ACEOF
3013 cat confdefs.h
>>conftest.
$ac_ext
3014 cat >>conftest.
$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3017 # include <limits.h>
3019 # include <assert.h>
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1
>conftest.err
3028 cat conftest.err
>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev
/null
; then
3031 if test -s conftest.err
; then
3032 ac_cpp_err
=$ac_c_preproc_warn_flag
3033 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3040 if test -z "$ac_cpp_err"; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.
$ac_ext >&5
3046 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.
$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3064 grep -v '^ *+' conftest.er1
>conftest.err
3066 cat conftest.err
>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev
/null
; then
3069 if test -s conftest.err
; then
3070 ac_cpp_err
=$ac_c_preproc_warn_flag
3071 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.
$ac_ext >&5
3085 # Passes both tests.
3089 rm -f conftest.err conftest.
$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.
$ac_ext
3094 if $ac_preproc_ok; then
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3105 ac_cpp
='$CPP $CPPFLAGS'
3106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3111 echo "$as_me:$LINENO: checking for egrep" >&5
3112 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3113 if test "${ac_cv_prog_egrep+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3117 then ac_cv_prog_egrep
='grep -E'
3118 else ac_cv_prog_egrep
='egrep'
3121 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3122 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3123 EGREP
=$ac_cv_prog_egrep
3126 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3127 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3128 if test "${ac_cv_header_stdc+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 cat >conftest.
$ac_ext <<_ACEOF
3134 cat confdefs.h
>>conftest.
$ac_ext
3135 cat >>conftest.
$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3150 rm -f conftest.
$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>conftest.er1
3154 grep -v '^ *+' conftest.er1
>conftest.err
3156 cat conftest.err
>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try
='test -z "$ac_c_werror_flag"
3160 || test ! -s conftest.err'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; } &&
3166 { ac_try
='test -s conftest.$ac_objext'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 ac_cv_header_stdc
=yes
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.
$ac_ext >&5
3177 ac_cv_header_stdc
=no
3179 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3181 if test $ac_cv_header_stdc = yes; then
3182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3183 cat >conftest.
$ac_ext <<_ACEOF
3186 cat confdefs.h
>>conftest.
$ac_ext
3187 cat >>conftest.
$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 $EGREP "memchr" >/dev
/null
2>&1; then
3196 ac_cv_header_stdc
=no
3202 if test $ac_cv_header_stdc = yes; then
3203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3204 cat >conftest.
$ac_ext <<_ACEOF
3207 cat confdefs.h
>>conftest.
$ac_ext
3208 cat >>conftest.
$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3214 $EGREP "free" >/dev
/null
2>&1; then
3217 ac_cv_header_stdc
=no
3223 if test $ac_cv_header_stdc = yes; then
3224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3225 if test "$cross_compiling" = yes; then
3228 cat >conftest.
$ac_ext <<_ACEOF
3231 cat confdefs.h
>>conftest.
$ac_ext
3232 cat >>conftest.
$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3235 #if ((' ' & 0x0FF) == 0x020)
3236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3239 # define ISLOWER(c) \
3240 (('a' <= (c) && (c) <= 'i') \
3241 || ('j' <= (c) && (c) <= 'r') \
3242 || ('s' <= (c) && (c) <= 'z'))
3243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3251 for (i = 0; i < 256; i++)
3252 if (XOR (islower (i), ISLOWER (i))
3253 || toupper (i) != TOUPPER (i))
3258 rm -f conftest
$ac_exeext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3260 (eval $ac_link) 2>&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3271 echo "$as_me: program exited with status $ac_status" >&5
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.
$ac_ext >&5
3276 ac_cv_header_stdc
=no
3278 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3282 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3283 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3284 if test $ac_cv_header_stdc = yes; then
3286 cat >>confdefs.h
<<\_ACEOF
3287 #define STDC_HEADERS 1
3292 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3293 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3294 if test "${ac_cv_c_const+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 cat >conftest.
$ac_ext <<_ACEOF
3300 cat confdefs.h
>>conftest.
$ac_ext
3301 cat >>conftest.
$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3307 /* FIXME: Include the comments suggested by Paul. */
3309 /* Ultrix mips cc rejects this. */
3310 typedef int charset[2];
3312 /* SunOS 4.1.1 cc rejects this. */
3313 char const *const *ccp;
3315 /* NEC SVR4.0.2 mips cc rejects this. */
3316 struct point {int x, y;};
3317 static struct point const zero = {0,0};
3318 /* AIX XL C 1.02.0.0 rejects this.
3319 It does not let you subtract one const X* pointer from another in
3320 an arm of an if-expression whose if-part is not a constant
3322 const char *g = "string";
3323 ccp = &g + (g ? g-g : 0);
3324 /* HPUX 7.0 cc rejects these. */
3327 ccp = (char const *const *) p;
3328 { /* SCO 3.2v4 cc rejects this. */
3330 char const *s = 0 ? (char *) 0 : (char const *) 0;
3334 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3336 const int *foo = &x[0];
3339 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3340 typedef const int *iptr;
3344 { /* AIX XL C 1.02.0.0 rejects this saying
3345 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3346 struct s { int j; const int *ap[3]; };
3347 struct s *b; b->j = 5;
3349 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3358 rm -f conftest.
$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1
>conftest.err
3364 cat conftest.err
>&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try
='test -z "$ac_c_werror_flag"
3368 || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try
='test -s conftest.$ac_objext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.
$ac_ext >&5
3387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3389 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3390 echo "${ECHO_T}$ac_cv_c_const" >&6
3391 if test $ac_cv_c_const = no
; then
3393 cat >>confdefs.h
<<\_ACEOF
3399 echo "$as_me:$LINENO: checking for inline" >&5
3400 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3401 if test "${ac_cv_c_inline+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 for ac_kw
in inline __inline__ __inline
; do
3406 cat >conftest.
$ac_ext <<_ACEOF
3409 cat confdefs.h
>>conftest.
$ac_ext
3410 cat >>conftest.
$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3414 static $ac_kw foo_t static_foo () {return 0; }
3415 $ac_kw foo_t foo () {return 0; }
3419 rm -f conftest.
$ac_objext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3421 (eval $ac_compile) 2>conftest.er1
3423 grep -v '^ *+' conftest.er1
>conftest.err
3425 cat conftest.err
>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try
='test -z "$ac_c_werror_flag"
3429 || test ! -s conftest.err'
3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; } &&
3435 { ac_try
='test -s conftest.$ac_objext'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; }; then
3441 ac_cv_c_inline
=$ac_kw; break
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.
$ac_ext >&5
3447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3451 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3452 echo "${ECHO_T}$ac_cv_c_inline" >&6
3455 case $ac_cv_c_inline in
3458 case $ac_cv_c_inline in
3460 *) ac_val
=$ac_cv_c_inline;;
3462 cat >>confdefs.h
<<_ACEOF
3464 #define inline $ac_val
3470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3480 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3481 inttypes.h stdint.h unistd.h
3483 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3484 echo "$as_me:$LINENO: checking for $ac_header" >&5
3485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 cat >conftest.
$ac_ext <<_ACEOF
3492 cat confdefs.h
>>conftest.
$ac_ext
3493 cat >>conftest.
$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 $ac_includes_default
3497 #include <$ac_header>
3499 rm -f conftest.
$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3503 grep -v '^ *+' conftest.er1
>conftest.err
3505 cat conftest.err
>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try
='test -z "$ac_c_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try
='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 eval "$as_ac_Header=yes"
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.
$ac_ext >&5
3526 eval "$as_ac_Header=no"
3528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3533 cat >>confdefs.h
<<_ACEOF
3534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3542 echo "$as_me:$LINENO: checking for off_t" >&5
3543 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3544 if test "${ac_cv_type_off_t+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 cat >conftest.
$ac_ext <<_ACEOF
3550 cat confdefs.h
>>conftest.
$ac_ext
3551 cat >>conftest.
$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 $ac_includes_default
3565 rm -f conftest.
$ac_objext
3566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567 (eval $ac_compile) 2>conftest.er1
3569 grep -v '^ *+' conftest.er1
>conftest.err
3571 cat conftest.err
>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try
='test -z "$ac_c_werror_flag"
3575 || test ! -s conftest.err'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; } &&
3581 { ac_try
='test -s conftest.$ac_objext'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
3587 ac_cv_type_off_t
=yes
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.
$ac_ext >&5
3594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3596 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3597 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3598 if test $ac_cv_type_off_t = yes; then
3602 cat >>confdefs.h
<<_ACEOF
3608 echo "$as_me:$LINENO: checking for size_t" >&5
3609 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3610 if test "${ac_cv_type_size_t+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 cat >conftest.
$ac_ext <<_ACEOF
3616 cat confdefs.h
>>conftest.
$ac_ext
3617 cat >>conftest.
$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 $ac_includes_default
3625 if (sizeof (size_t))
3631 rm -f conftest.
$ac_objext
3632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3633 (eval $ac_compile) 2>conftest.er1
3635 grep -v '^ *+' conftest.er1
>conftest.err
3637 cat conftest.err
>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } &&
3640 { ac_try
='test -z "$ac_c_werror_flag"
3641 || test ! -s conftest.err'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; } &&
3647 { ac_try
='test -s conftest.$ac_objext'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; }; then
3653 ac_cv_type_size_t
=yes
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.
$ac_ext >&5
3658 ac_cv_type_size_t
=no
3660 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3662 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3663 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3664 if test $ac_cv_type_size_t = yes; then
3668 cat >>confdefs.h
<<_ACEOF
3669 #define size_t unsigned
3674 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3675 # for constant arguments. Useless!
3676 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3677 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3678 if test "${ac_cv_working_alloca_h+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 cat >conftest.
$ac_ext <<_ACEOF
3684 cat confdefs.h
>>conftest.
$ac_ext
3685 cat >>conftest.
$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3691 char *p = (char *) alloca (2 * sizeof (int));
3696 rm -f conftest.
$ac_objext conftest
$ac_exeext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>conftest.er1
3700 grep -v '^ *+' conftest.er1
>conftest.err
3702 cat conftest.err
>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try
='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try
='test -s conftest$ac_exeext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_working_alloca_h
=yes
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.
$ac_ext >&5
3723 ac_cv_working_alloca_h
=no
3725 rm -f conftest.err conftest.
$ac_objext \
3726 conftest
$ac_exeext conftest.
$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3729 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3730 if test $ac_cv_working_alloca_h = yes; then
3732 cat >>confdefs.h
<<\_ACEOF
3733 #define HAVE_ALLOCA_H 1
3738 echo "$as_me:$LINENO: checking for alloca" >&5
3739 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3740 if test "${ac_cv_func_alloca_works+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 cat >conftest.
$ac_ext <<_ACEOF
3746 cat confdefs.h
>>conftest.
$ac_ext
3747 cat >>conftest.
$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3750 # define alloca __builtin_alloca
3753 # include <malloc.h>
3754 # define alloca _alloca
3757 # include <alloca.h>
3762 # ifndef alloca /* predefined by HP cc +Olibcalls */
3773 char *p = (char *) alloca (1);
3778 rm -f conftest.
$ac_objext conftest
$ac_exeext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>conftest.er1
3782 grep -v '^ *+' conftest.er1
>conftest.err
3784 cat conftest.err
>&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try
='test -z "$ac_c_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try
='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_func_alloca_works
=yes
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.
$ac_ext >&5
3805 ac_cv_func_alloca_works
=no
3807 rm -f conftest.err conftest.
$ac_objext \
3808 conftest
$ac_exeext conftest.
$ac_ext
3810 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3811 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3813 if test $ac_cv_func_alloca_works = yes; then
3815 cat >>confdefs.h
<<\_ACEOF
3816 #define HAVE_ALLOCA 1
3820 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3821 # that cause trouble. Some versions do not even contain alloca or
3822 # contain a buggy version. If you still want to use their alloca,
3823 # use ar to extract alloca.o from them instead of compiling alloca.c.
3825 ALLOCA
=alloca.
$ac_objext
3827 cat >>confdefs.h
<<\_ACEOF
3832 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3833 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3834 if test "${ac_cv_os_cray+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 cat >conftest.
$ac_ext <<_ACEOF
3840 cat confdefs.h
>>conftest.
$ac_ext
3841 cat >>conftest.
$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #if defined(CRAY) && ! defined(CRAY2)
3850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851 $EGREP "webecray" >/dev
/null
2>&1; then
3859 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3860 echo "${ECHO_T}$ac_cv_os_cray" >&6
3861 if test $ac_cv_os_cray = yes; then
3862 for ac_func
in _getb67 GETB67 getb67
; do
3863 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3864 echo "$as_me:$LINENO: checking for $ac_func" >&5
3865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3866 if eval "test \"\${$as_ac_var+set}\" = set"; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 cat >conftest.
$ac_ext <<_ACEOF
3872 cat confdefs.h
>>conftest.
$ac_ext
3873 cat >>conftest.
$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3877 #define $ac_func innocuous_$ac_func
3879 /* System header to define __stub macros and hopefully few prototypes,
3880 which can conflict with char $ac_func (); below.
3881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3882 <limits.h> exists even on freestanding compilers. */
3885 # include <limits.h>
3887 # include <assert.h>
3892 /* Override any gcc2 internal prototype to avoid an error. */
3897 /* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3900 /* The GNU C library defines this for functions which it implements
3901 to always fail with ENOSYS. Some functions are actually named
3902 something starting with __ and the normal name is an alias. */
3903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3906 char (*f) () = $ac_func;
3915 return f != $ac_func;
3920 rm -f conftest.
$ac_objext conftest
$ac_exeext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922 (eval $ac_link) 2>conftest.er1
3924 grep -v '^ *+' conftest.er1
>conftest.err
3926 cat conftest.err
>&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try
='test -z "$ac_c_werror_flag"
3930 || test ! -s conftest.err'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; } &&
3936 { ac_try
='test -s conftest$ac_exeext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 eval "$as_ac_var=yes"
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.
$ac_ext >&5
3947 eval "$as_ac_var=no"
3949 rm -f conftest.err conftest.
$ac_objext \
3950 conftest
$ac_exeext conftest.
$ac_ext
3952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3954 if test `eval echo '${'$as_ac_var'}'` = yes; then
3956 cat >>confdefs.h
<<_ACEOF
3957 #define CRAY_STACKSEG_END $ac_func
3966 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3967 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3968 if test "${ac_cv_c_stack_direction+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if test "$cross_compiling" = yes; then
3972 ac_cv_c_stack_direction
=0
3974 cat >conftest.
$ac_ext <<_ACEOF
3977 cat confdefs.h
>>conftest.
$ac_ext
3978 cat >>conftest.
$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 find_stack_direction ()
3983 static char *addr = 0;
3988 return find_stack_direction ();
3991 return (&dummy > addr) ? 1 : -1;
3997 exit (find_stack_direction () < 0);
4000 rm -f conftest
$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_c_stack_direction
=1
4013 echo "$as_me: program exited with status $ac_status" >&5
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.
$ac_ext >&5
4018 ac_cv_c_stack_direction
=-1
4020 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4023 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4024 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4026 cat >>confdefs.h
<<_ACEOF
4027 #define STACK_DIRECTION $ac_cv_c_stack_direction
4035 for ac_header
in stdlib.h unistd.h
4037 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4039 echo "$as_me:$LINENO: checking for $ac_header" >&5
4040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4047 # Is the header compilable?
4048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4050 cat >conftest.
$ac_ext <<_ACEOF
4053 cat confdefs.h
>>conftest.
$ac_ext
4054 cat >>conftest.
$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 $ac_includes_default
4057 #include <$ac_header>
4059 rm -f conftest.
$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4063 grep -v '^ *+' conftest.er1
>conftest.err
4065 cat conftest.err
>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try
='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try
='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 ac_header_compiler
=yes
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.
$ac_ext >&5
4086 ac_header_compiler
=no
4088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4090 echo "${ECHO_T}$ac_header_compiler" >&6
4092 # Is the header present?
4093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4095 cat >conftest.
$ac_ext <<_ACEOF
4098 cat confdefs.h
>>conftest.
$ac_ext
4099 cat >>conftest.
$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 #include <$ac_header>
4103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4104 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1
>conftest.err
4108 cat conftest.err
>&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } >/dev
/null
; then
4111 if test -s conftest.err
; then
4112 ac_cpp_err
=$ac_c_preproc_warn_flag
4113 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4120 if test -z "$ac_cpp_err"; then
4121 ac_header_preproc
=yes
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.
$ac_ext >&5
4126 ac_header_preproc
=no
4128 rm -f conftest.err conftest.
$ac_ext
4129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4130 echo "${ECHO_T}$ac_header_preproc" >&6
4132 # So? What about this header?
4133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4139 ac_header_preproc
=yes
4142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4156 ## ------------------------------------------ ##
4157 ## Report this to the AC_PACKAGE_NAME lists. ##
4158 ## ------------------------------------------ ##
4161 sed "s/^/$as_me: WARNING: /" >&2
4164 echo "$as_me:$LINENO: checking for $ac_header" >&5
4165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 eval "$as_ac_Header=\$ac_header_preproc"
4171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4176 cat >>confdefs.h
<<_ACEOF
4177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185 for ac_func
in getpagesize
4187 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4188 echo "$as_me:$LINENO: checking for $ac_func" >&5
4189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4190 if eval "test \"\${$as_ac_var+set}\" = set"; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 cat >conftest.
$ac_ext <<_ACEOF
4196 cat confdefs.h
>>conftest.
$ac_ext
4197 cat >>conftest.
$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4201 #define $ac_func innocuous_$ac_func
4203 /* System header to define __stub macros and hopefully few prototypes,
4204 which can conflict with char $ac_func (); below.
4205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4206 <limits.h> exists even on freestanding compilers. */
4209 # include <limits.h>
4211 # include <assert.h>
4216 /* Override any gcc2 internal prototype to avoid an error. */
4221 /* We use char because int might match the return type of a gcc2
4222 builtin and then its argument prototype would still apply. */
4224 /* The GNU C library defines this for functions which it implements
4225 to always fail with ENOSYS. Some functions are actually named
4226 something starting with __ and the normal name is an alias. */
4227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4230 char (*f) () = $ac_func;
4239 return f != $ac_func;
4244 rm -f conftest.
$ac_objext conftest
$ac_exeext
4245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4246 (eval $ac_link) 2>conftest.er1
4248 grep -v '^ *+' conftest.er1
>conftest.err
4250 cat conftest.err
>&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } &&
4253 { ac_try
='test -z "$ac_c_werror_flag"
4254 || test ! -s conftest.err'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try
='test -s conftest$ac_exeext'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 eval "$as_ac_var=yes"
4268 echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.
$ac_ext >&5
4271 eval "$as_ac_var=no"
4273 rm -f conftest.err conftest.
$ac_objext \
4274 conftest
$ac_exeext conftest.
$ac_ext
4276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4278 if test `eval echo '${'$as_ac_var'}'` = yes; then
4279 cat >>confdefs.h
<<_ACEOF
4280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4286 echo "$as_me:$LINENO: checking for working mmap" >&5
4287 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4288 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 if test "$cross_compiling" = yes; then
4292 ac_cv_func_mmap_fixed_mapped
=no
4294 cat >conftest.
$ac_ext <<_ACEOF
4297 cat confdefs.h
>>conftest.
$ac_ext
4298 cat >>conftest.
$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4301 /* malloc might have been renamed as rpl_malloc. */
4304 /* Thanks to Mike Haertel and Jim Avera for this test.
4305 Here is a matrix of mmap possibilities:
4306 mmap private not fixed
4307 mmap private fixed at somewhere currently unmapped
4308 mmap private fixed at somewhere already mapped
4309 mmap shared not fixed
4310 mmap shared fixed at somewhere currently unmapped
4311 mmap shared fixed at somewhere already mapped
4312 For private mappings, we should verify that changes cannot be read()
4313 back from the file, nor mmap's back from the file at a different
4314 address. (There have been systems where private was not correctly
4315 implemented like the infamous i386 svr4.0, and systems where the
4316 VM page cache was not coherent with the file system buffer cache
4317 like early versions of FreeBSD and possibly contemporary NetBSD.)
4318 For shared mappings, we should conversely verify that changes get
4319 propagated back to all the places they're supposed to be.
4321 Grep wants private fixed already mapped.
4322 The main things grep needs to know about mmap are:
4323 * does it exist and is it safe to write into the mmap'd area
4324 * how to use it (BSD variants) */
4327 #include <sys/mman.h>
4329 #if !STDC_HEADERS && !HAVE_STDLIB_H
4333 /* This mess was copied from the GNU getpagesize.h. */
4334 #if !HAVE_GETPAGESIZE
4335 /* Assume that all systems that can run configure have sys/param.h. */
4336 # if !HAVE_SYS_PARAM_H
4337 # define HAVE_SYS_PARAM_H 1
4340 # ifdef _SC_PAGESIZE
4341 # define getpagesize() sysconf(_SC_PAGESIZE)
4342 # else /* no _SC_PAGESIZE */
4343 # if HAVE_SYS_PARAM_H
4344 # include <sys/param.h>
4345 # ifdef EXEC_PAGESIZE
4346 # define getpagesize() EXEC_PAGESIZE
4347 # else /* no EXEC_PAGESIZE */
4349 # define getpagesize() NBPG * CLSIZE
4352 # endif /* no CLSIZE */
4353 # else /* no NBPG */
4355 # define getpagesize() NBPC
4356 # else /* no NBPC */
4358 # define getpagesize() PAGESIZE
4359 # endif /* PAGESIZE */
4360 # endif /* no NBPC */
4361 # endif /* no NBPG */
4362 # endif /* no EXEC_PAGESIZE */
4363 # else /* no HAVE_SYS_PARAM_H */
4364 # define getpagesize() 8192 /* punt totally */
4365 # endif /* no HAVE_SYS_PARAM_H */
4366 # endif /* no _SC_PAGESIZE */
4368 #endif /* no HAVE_GETPAGESIZE */
4373 char *data, *data2, *data3;
4377 pagesize = getpagesize ();
4379 /* First, make a file with some known garbage in it. */
4380 data = (char *) malloc (pagesize);
4383 for (i = 0; i < pagesize; ++i)
4384 *(data + i) = rand ();
4386 fd = creat ("conftest.mmap", 0600);
4389 if (write (fd, data, pagesize) != pagesize)
4393 /* Next, try to mmap the file at a fixed address which already has
4394 something else allocated at it. If we can, also make sure that
4395 we see the same garbage. */
4396 fd = open ("conftest.mmap", O_RDWR);
4399 data2 = (char *) malloc (2 * pagesize);
4402 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4403 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4404 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4406 for (i = 0; i < pagesize; ++i)
4407 if (*(data + i) != *(data2 + i))
4410 /* Finally, make sure that changes to the mapped area do not
4411 percolate back to the file as seen by read(). (This is a bug on
4412 some variants of i386 svr4.0.) */
4413 for (i = 0; i < pagesize; ++i)
4414 *(data2 + i) = *(data2 + i) + 1;
4415 data3 = (char *) malloc (pagesize);
4418 if (read (fd, data3, pagesize) != pagesize)
4420 for (i = 0; i < pagesize; ++i)
4421 if (*(data + i) != *(data3 + i))
4427 rm -f conftest
$ac_exeext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429 (eval $ac_link) 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_cv_func_mmap_fixed_mapped
=yes
4440 echo "$as_me: program exited with status $ac_status" >&5
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.
$ac_ext >&5
4445 ac_cv_func_mmap_fixed_mapped
=no
4447 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4450 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4451 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4452 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4454 cat >>confdefs.h
<<\_ACEOF
4471 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4472 unistd.h values.h sys
/param.h
4474 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4476 echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484 # Is the header compilable?
4485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4487 cat >conftest.
$ac_ext <<_ACEOF
4490 cat confdefs.h
>>conftest.
$ac_ext
4491 cat >>conftest.
$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4494 #include <$ac_header>
4496 rm -f conftest.
$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>conftest.er1
4500 grep -v '^ *+' conftest.er1
>conftest.err
4502 cat conftest.err
>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try
='test -z "$ac_c_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try
='test -s conftest.$ac_objext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_header_compiler
=yes
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.
$ac_ext >&5
4523 ac_header_compiler
=no
4525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4527 echo "${ECHO_T}$ac_header_compiler" >&6
4529 # Is the header present?
4530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4532 cat >conftest.
$ac_ext <<_ACEOF
4535 cat confdefs.h
>>conftest.
$ac_ext
4536 cat >>conftest.
$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <$ac_header>
4540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4541 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4543 grep -v '^ *+' conftest.er1
>conftest.err
4545 cat conftest.err
>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } >/dev
/null
; then
4548 if test -s conftest.err
; then
4549 ac_cpp_err
=$ac_c_preproc_warn_flag
4550 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4557 if test -z "$ac_cpp_err"; then
4558 ac_header_preproc
=yes
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.
$ac_ext >&5
4563 ac_header_preproc
=no
4565 rm -f conftest.err conftest.
$ac_ext
4566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4567 echo "${ECHO_T}$ac_header_preproc" >&6
4569 # So? What about this header?
4570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4576 ac_header_preproc
=yes
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4593 ## ------------------------------------------ ##
4594 ## Report this to the AC_PACKAGE_NAME lists. ##
4595 ## ------------------------------------------ ##
4598 sed "s/^/$as_me: WARNING: /" >&2
4601 echo "$as_me:$LINENO: checking for $ac_header" >&5
4602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 eval "$as_ac_Header=\$ac_header_preproc"
4608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4613 cat >>confdefs.h
<<_ACEOF
4614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4631 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4632 __argz_count __argz_stringify __argz_next
4634 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4635 echo "$as_me:$LINENO: checking for $ac_func" >&5
4636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4637 if eval "test \"\${$as_ac_var+set}\" = set"; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 cat >conftest.
$ac_ext <<_ACEOF
4643 cat confdefs.h
>>conftest.
$ac_ext
4644 cat >>conftest.
$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4648 #define $ac_func innocuous_$ac_func
4650 /* System header to define __stub macros and hopefully few prototypes,
4651 which can conflict with char $ac_func (); below.
4652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4653 <limits.h> exists even on freestanding compilers. */
4656 # include <limits.h>
4658 # include <assert.h>
4663 /* Override any gcc2 internal prototype to avoid an error. */
4668 /* We use char because int might match the return type of a gcc2
4669 builtin and then its argument prototype would still apply. */
4671 /* The GNU C library defines this for functions which it implements
4672 to always fail with ENOSYS. Some functions are actually named
4673 something starting with __ and the normal name is an alias. */
4674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4677 char (*f) () = $ac_func;
4686 return f != $ac_func;
4691 rm -f conftest.
$ac_objext conftest
$ac_exeext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4693 (eval $ac_link) 2>conftest.er1
4695 grep -v '^ *+' conftest.er1
>conftest.err
4697 cat conftest.err
>&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try
='test -z "$ac_c_werror_flag"
4701 || test ! -s conftest.err'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; } &&
4707 { ac_try
='test -s conftest$ac_exeext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 eval "$as_ac_var=yes"
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.
$ac_ext >&5
4718 eval "$as_ac_var=no"
4720 rm -f conftest.err conftest.
$ac_objext \
4721 conftest
$ac_exeext conftest.
$ac_ext
4723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4725 if test `eval echo '${'$as_ac_var'}'` = yes; then
4726 cat >>confdefs.h
<<_ACEOF
4727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4734 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4736 for ac_func
in stpcpy
4738 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4739 echo "$as_me:$LINENO: checking for $ac_func" >&5
4740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4741 if eval "test \"\${$as_ac_var+set}\" = set"; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 cat >conftest.
$ac_ext <<_ACEOF
4747 cat confdefs.h
>>conftest.
$ac_ext
4748 cat >>conftest.
$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4752 #define $ac_func innocuous_$ac_func
4754 /* System header to define __stub macros and hopefully few prototypes,
4755 which can conflict with char $ac_func (); below.
4756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4757 <limits.h> exists even on freestanding compilers. */
4760 # include <limits.h>
4762 # include <assert.h>
4767 /* Override any gcc2 internal prototype to avoid an error. */
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4775 /* The GNU C library defines this for functions which it implements
4776 to always fail with ENOSYS. Some functions are actually named
4777 something starting with __ and the normal name is an alias. */
4778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4781 char (*f) () = $ac_func;
4790 return f != $ac_func;
4795 rm -f conftest.
$ac_objext conftest
$ac_exeext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4797 (eval $ac_link) 2>conftest.er1
4799 grep -v '^ *+' conftest.er1
>conftest.err
4801 cat conftest.err
>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try
='test -z "$ac_c_werror_flag"
4805 || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try
='test -s conftest$ac_exeext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 eval "$as_ac_var=yes"
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.
$ac_ext >&5
4822 eval "$as_ac_var=no"
4824 rm -f conftest.err conftest.
$ac_objext \
4825 conftest
$ac_exeext conftest.
$ac_ext
4827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4829 if test `eval echo '${'$as_ac_var'}'` = yes; then
4830 cat >>confdefs.h
<<_ACEOF
4831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4838 if test "${ac_cv_func_stpcpy}" = "yes"; then
4840 cat >>confdefs.h
<<\_ACEOF
4841 #define HAVE_STPCPY 1
4846 if test $ac_cv_header_locale_h = yes; then
4847 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4848 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4849 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 cat >conftest.
$ac_ext <<_ACEOF
4855 cat confdefs.h
>>conftest.
$ac_ext
4856 cat >>conftest.
$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4867 rm -f conftest.
$ac_objext conftest
$ac_exeext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4869 (eval $ac_link) 2>conftest.er1
4871 grep -v '^ *+' conftest.er1
>conftest.err
4873 cat conftest.err
>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try
='test -z "$ac_c_werror_flag"
4877 || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try
='test -s conftest$ac_exeext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 am_cv_val_LC_MESSAGES
=yes
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.
$ac_ext >&5
4894 am_cv_val_LC_MESSAGES
=no
4896 rm -f conftest.err conftest.
$ac_objext \
4897 conftest
$ac_exeext conftest.
$ac_ext
4899 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4900 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4901 if test $am_cv_val_LC_MESSAGES = yes; then
4903 cat >>confdefs.h
<<\_ACEOF
4904 #define HAVE_LC_MESSAGES 1
4909 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4910 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4911 # Check whether --enable-nls or --disable-nls was given.
4912 if test "${enable_nls+set}" = set; then
4913 enableval
="$enable_nls"
4918 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4919 echo "${ECHO_T}$USE_NLS" >&6
4922 USE_INCLUDED_LIBINTL
=no
4924 if test "$USE_NLS" = "yes"; then
4925 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4926 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4928 # Check whether --with-included-gettext or --without-included-gettext was given.
4929 if test "${with_included_gettext+set}" = set; then
4930 withval
="$with_included_gettext"
4931 nls_cv_force_use_gnu_gettext
=$withval
4933 nls_cv_force_use_gnu_gettext
=no
4935 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4936 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4938 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4939 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4941 nls_cv_header_libgt
=
4944 if test "${ac_cv_header_libintl_h+set}" = set; then
4945 echo "$as_me:$LINENO: checking for libintl.h" >&5
4946 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4947 if test "${ac_cv_header_libintl_h+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4951 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4953 # Is the header compilable?
4954 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4955 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4956 cat >conftest.
$ac_ext <<_ACEOF
4959 cat confdefs.h
>>conftest.
$ac_ext
4960 cat >>conftest.
$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4963 #include <libintl.h>
4965 rm -f conftest.
$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1
>conftest.err
4971 cat conftest.err
>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try
='test -z "$ac_c_werror_flag"
4975 || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try
='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_header_compiler
=yes
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.
$ac_ext >&5
4992 ac_header_compiler
=no
4994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4996 echo "${ECHO_T}$ac_header_compiler" >&6
4998 # Is the header present?
4999 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5000 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5001 cat >conftest.
$ac_ext <<_ACEOF
5004 cat confdefs.h
>>conftest.
$ac_ext
5005 cat >>conftest.
$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #include <libintl.h>
5009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5010 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1
>conftest.err
5014 cat conftest.err
>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev
/null
; then
5017 if test -s conftest.err
; then
5018 ac_cpp_err
=$ac_c_preproc_warn_flag
5019 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5026 if test -z "$ac_cpp_err"; then
5027 ac_header_preproc
=yes
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.
$ac_ext >&5
5032 ac_header_preproc
=no
5034 rm -f conftest.err conftest.
$ac_ext
5035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5036 echo "${ECHO_T}$ac_header_preproc" >&6
5038 # So? What about this header?
5039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5041 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5042 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5043 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5044 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5045 ac_header_preproc
=yes
5048 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5049 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5050 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5051 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5053 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5054 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5055 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5056 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5057 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5058 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5059 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5062 ## ------------------------------------------ ##
5063 ## Report this to the AC_PACKAGE_NAME lists. ##
5064 ## ------------------------------------------ ##
5067 sed "s/^/$as_me: WARNING: /" >&2
5070 echo "$as_me:$LINENO: checking for libintl.h" >&5
5071 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5072 if test "${ac_cv_header_libintl_h+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 ac_cv_header_libintl_h
=$ac_header_preproc
5077 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5078 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5081 if test $ac_cv_header_libintl_h = yes; then
5082 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5083 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5084 if test "${gt_cv_func_gettext_libc+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 cat >conftest.
$ac_ext <<_ACEOF
5090 cat confdefs.h
>>conftest.
$ac_ext
5091 cat >>conftest.
$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <libintl.h>
5097 return (int) gettext ("")
5102 rm -f conftest.
$ac_objext conftest
$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1
>conftest.err
5108 cat conftest.err
>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try
='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try
='test -s conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 gt_cv_func_gettext_libc
=yes
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.
$ac_ext >&5
5129 gt_cv_func_gettext_libc
=no
5131 rm -f conftest.err conftest.
$ac_objext \
5132 conftest
$ac_exeext conftest.
$ac_ext
5134 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5135 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5137 if test "$gt_cv_func_gettext_libc" != "yes"; then
5138 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5139 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5140 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 ac_check_lib_save_LIBS
=$LIBS
5145 cat >conftest.
$ac_ext <<_ACEOF
5148 cat confdefs.h
>>conftest.
$ac_ext
5149 cat >>conftest.
$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5152 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5158 char bindtextdomain ();
5167 rm -f conftest.
$ac_objext conftest
$ac_exeext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5169 (eval $ac_link) 2>conftest.er1
5171 grep -v '^ *+' conftest.er1
>conftest.err
5173 cat conftest.err
>&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try
='test -z "$ac_c_werror_flag"
5177 || test ! -s conftest.err'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; } &&
5183 { ac_try
='test -s conftest$ac_exeext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_lib_intl_bindtextdomain
=yes
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.
$ac_ext >&5
5194 ac_cv_lib_intl_bindtextdomain
=no
5196 rm -f conftest.err conftest.
$ac_objext \
5197 conftest
$ac_exeext conftest.
$ac_ext
5198 LIBS
=$ac_check_lib_save_LIBS
5200 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5201 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5202 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5203 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5204 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5205 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 cat >conftest.
$ac_ext <<_ACEOF
5211 cat confdefs.h
>>conftest.
$ac_ext
5212 cat >>conftest.
$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5218 return (int) gettext ("")
5223 rm -f conftest.
$ac_objext conftest
$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5227 grep -v '^ *+' conftest.er1
>conftest.err
5229 cat conftest.err
>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try
='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try
='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 gt_cv_func_gettext_libintl
=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.
$ac_ext >&5
5250 gt_cv_func_gettext_libintl
=no
5252 rm -f conftest.err conftest.
$ac_objext \
5253 conftest
$ac_exeext conftest.
$ac_ext
5255 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5256 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5261 if test "$gt_cv_func_gettext_libc" = "yes" \
5262 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5264 cat >>confdefs.h
<<\_ACEOF
5265 #define HAVE_GETTEXT 1
5268 # Extract the first word of "msgfmt", so it can be a program name with args.
5269 set dummy msgfmt
; ac_word
=$2
5270 echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272 if test "${ac_cv_path_MSGFMT+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5281 for ac_dir
in $PATH; do
5282 test -z "$ac_dir" && ac_dir
=.
5283 if test -f $ac_dir/$ac_word; then
5284 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5285 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5291 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5295 MSGFMT
="$ac_cv_path_MSGFMT"
5296 if test -n "$MSGFMT"; then
5297 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5298 echo "${ECHO_T}$MSGFMT" >&6
5300 echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5303 if test "$MSGFMT" != "no"; then
5305 for ac_func
in dcgettext
5307 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5308 echo "$as_me:$LINENO: checking for $ac_func" >&5
5309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5310 if eval "test \"\${$as_ac_var+set}\" = set"; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 cat >conftest.
$ac_ext <<_ACEOF
5316 cat confdefs.h
>>conftest.
$ac_ext
5317 cat >>conftest.
$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5321 #define $ac_func innocuous_$ac_func
5323 /* System header to define __stub macros and hopefully few prototypes,
5324 which can conflict with char $ac_func (); below.
5325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326 <limits.h> exists even on freestanding compilers. */
5329 # include <limits.h>
5331 # include <assert.h>
5336 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */
5344 /* The GNU C library defines this for functions which it implements
5345 to always fail with ENOSYS. Some functions are actually named
5346 something starting with __ and the normal name is an alias. */
5347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5350 char (*f) () = $ac_func;
5359 return f != $ac_func;
5364 rm -f conftest.
$ac_objext conftest
$ac_exeext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5366 (eval $ac_link) 2>conftest.er1
5368 grep -v '^ *+' conftest.er1
>conftest.err
5370 cat conftest.err
>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try
='test -z "$ac_c_werror_flag"
5374 || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try
='test -s conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 eval "$as_ac_var=yes"
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.
$ac_ext >&5
5391 eval "$as_ac_var=no"
5393 rm -f conftest.err conftest.
$ac_objext \
5394 conftest
$ac_exeext conftest.
$ac_ext
5396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5398 if test `eval echo '${'$as_ac_var'}'` = yes; then
5399 cat >>confdefs.h
<<_ACEOF
5400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5406 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5407 set dummy gmsgfmt
; ac_word
=$2
5408 echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir
=.
5423 for ac_exec_ext
in '' $ac_executable_extensions; do
5424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5436 GMSGFMT
=$ac_cv_path_GMSGFMT
5438 if test -n "$GMSGFMT"; then
5439 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5440 echo "${ECHO_T}$GMSGFMT" >&6
5442 echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6
5446 # Extract the first word of "xgettext", so it can be a program name with args.
5447 set dummy xgettext
; ac_word
=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5458 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5459 for ac_dir
in $PATH; do
5460 test -z "$ac_dir" && ac_dir
=.
5461 if test -f $ac_dir/$ac_word; then
5462 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5463 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5469 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5473 XGETTEXT
="$ac_cv_path_XGETTEXT"
5474 if test -n "$XGETTEXT"; then
5475 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5476 echo "${ECHO_T}$XGETTEXT" >&6
5478 echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5482 cat >conftest.
$ac_ext <<_ACEOF
5485 cat confdefs.h
>>conftest.
$ac_ext
5486 cat >>conftest.
$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5492 extern int _nl_msg_cat_cntr;
5493 return _nl_msg_cat_cntr
5498 rm -f conftest.
$ac_objext conftest
$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500 (eval $ac_link) 2>conftest.er1
5502 grep -v '^ *+' conftest.er1
>conftest.err
5504 cat conftest.err
>&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } &&
5507 { ac_try
='test -z "$ac_c_werror_flag"
5508 || test ! -s conftest.err'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try
='test -s conftest$ac_exeext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.
$ac_ext >&5
5529 rm -f conftest.err conftest.
$ac_objext \
5530 conftest
$ac_exeext conftest.
$ac_ext
5540 if test x
"$CATOBJEXT" = x
&& test -d $srcdir/..
/intl
; then
5541 # Neither gettext nor catgets in included in the C library.
5542 # Fall back on GNU gettext library (assuming it is present).
5543 nls_cv_use_gnu_gettext
=yes
5547 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5548 INTLOBJS
="\$(GETTOBJS)"
5549 # Extract the first word of "msgfmt", so it can be a program name with args.
5550 set dummy msgfmt
; ac_word
=$2
5551 echo "$as_me:$LINENO: checking for $ac_word" >&5
5552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5553 if test "${ac_cv_path_MSGFMT+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5561 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5562 for ac_dir
in $PATH; do
5563 test -z "$ac_dir" && ac_dir
=.
5564 if test -f $ac_dir/$ac_word; then
5565 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5566 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5572 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5576 MSGFMT
="$ac_cv_path_MSGFMT"
5577 if test -n "$MSGFMT"; then
5578 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5579 echo "${ECHO_T}$MSGFMT" >&6
5581 echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5585 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5586 set dummy gmsgfmt
; ac_word
=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5601 test -z "$as_dir" && as_dir
=.
5602 for ac_exec_ext
in '' $ac_executable_extensions; do
5603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5615 GMSGFMT
=$ac_cv_path_GMSGFMT
5617 if test -n "$GMSGFMT"; then
5618 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5619 echo "${ECHO_T}$GMSGFMT" >&6
5621 echo "$as_me:$LINENO: result: no" >&5
5622 echo "${ECHO_T}no" >&6
5625 # Extract the first word of "xgettext", so it can be a program name with args.
5626 set dummy xgettext
; ac_word
=$2
5627 echo "$as_me:$LINENO: checking for $ac_word" >&5
5628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5638 for ac_dir
in $PATH; do
5639 test -z "$ac_dir" && ac_dir
=.
5640 if test -f $ac_dir/$ac_word; then
5641 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5642 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5648 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5652 XGETTEXT
="$ac_cv_path_XGETTEXT"
5653 if test -n "$XGETTEXT"; then
5654 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5655 echo "${ECHO_T}$XGETTEXT" >&6
5657 echo "$as_me:$LINENO: result: no" >&5
5658 echo "${ECHO_T}no" >&6
5662 USE_INCLUDED_LIBINTL
=yes
5666 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5668 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5669 nls_cv_header_intl
=libintl.h
5670 nls_cv_header_libgt
=libgettext.h
5673 if test "$XGETTEXT" != ":"; then
5674 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5677 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5678 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5683 # We need to process the po/ directory.
5687 nls_cv_header_intl
=libintl.h
5688 nls_cv_header_libgt
=libgettext.h
5691 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5692 # because some of the sources are only built for this goal.
5693 if test "$PACKAGE" = gettext; then
5695 USE_INCLUDED_LIBINTL
=yes
5698 for lang
in $ALL_LINGUAS; do
5699 GMOFILES
="$GMOFILES $lang.gmo"
5700 POFILES
="$POFILES $lang.po"
5714 if test "x$CATOBJEXT" != "x"; then
5716 cat >>confdefs.h
<<\_ACEOF
5717 #define ENABLE_NLS 1
5723 if test "x$CATOBJEXT" != "x"; then
5724 if test "x$ALL_LINGUAS" = "x"; then
5727 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5728 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5730 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5731 case "$ALL_LINGUAS" in
5732 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5735 LINGUAS
=$NEW_LINGUAS
5736 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5737 echo "${ECHO_T}$LINGUAS" >&6
5740 if test -n "$LINGUAS"; then
5741 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5745 if test $ac_cv_header_locale_h = yes; then
5746 INCLUDE_LOCALE_H
="#include <locale.h>"
5749 /* The system does not provide the header <locale.h>. Take care yourself. */"
5753 if test -f $srcdir/po2tbl.
sed.
in; then
5754 if test "$CATOBJEXT" = ".cat"; then
5755 if test "${ac_cv_header_linux_version_h+set}" = set; then
5756 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5757 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5758 if test "${ac_cv_header_linux_version_h+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5762 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5764 # Is the header compilable?
5765 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5766 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5767 cat >conftest.
$ac_ext <<_ACEOF
5770 cat confdefs.h
>>conftest.
$ac_ext
5771 cat >>conftest.
$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5774 #include <linux/version.h>
5776 rm -f conftest.
$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5780 grep -v '^ *+' conftest.er1
>conftest.err
5782 cat conftest.err
>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try
='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try
='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_header_compiler
=yes
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.
$ac_ext >&5
5803 ac_header_compiler
=no
5805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5807 echo "${ECHO_T}$ac_header_compiler" >&6
5809 # Is the header present?
5810 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5811 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5812 cat >conftest.
$ac_ext <<_ACEOF
5815 cat confdefs.h
>>conftest.
$ac_ext
5816 cat >>conftest.
$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #include <linux/version.h>
5820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5821 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5823 grep -v '^ *+' conftest.er1
>conftest.err
5825 cat conftest.err
>&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } >/dev
/null
; then
5828 if test -s conftest.err
; then
5829 ac_cpp_err
=$ac_c_preproc_warn_flag
5830 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5837 if test -z "$ac_cpp_err"; then
5838 ac_header_preproc
=yes
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.
$ac_ext >&5
5843 ac_header_preproc
=no
5845 rm -f conftest.err conftest.
$ac_ext
5846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5847 echo "${ECHO_T}$ac_header_preproc" >&6
5849 # So? What about this header?
5850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5852 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5853 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5855 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5856 ac_header_preproc
=yes
5859 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5860 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5862 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5863 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5864 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5865 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5866 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5867 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5868 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5870 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5873 ## ------------------------------------------ ##
5874 ## Report this to the AC_PACKAGE_NAME lists. ##
5875 ## ------------------------------------------ ##
5878 sed "s/^/$as_me: WARNING: /" >&2
5881 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5882 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5883 if test "${ac_cv_header_linux_version_h+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 ac_cv_header_linux_version_h
=$ac_header_preproc
5888 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5889 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5892 if test $ac_cv_header_linux_version_h = yes; then
5900 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5902 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5903 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5906 if test "$PACKAGE" = "gettext"; then
5916 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5922 if test -f $srcdir/po
/POTFILES.
in; then
5923 test -d po || mkdir po
5924 if test "x$srcdir" != "x."; then
5925 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5926 posrcprefix
="$srcdir/"
5928 posrcprefix
="../$srcdir/"
5934 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5935 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5939 # Check for common headers.
5940 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5941 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5947 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5949 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951 echo "$as_me:$LINENO: checking for $ac_header" >&5
5952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5959 # Is the header compilable?
5960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5969 #include <$ac_header>
5971 rm -f conftest.
$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5975 grep -v '^ *+' conftest.er1
>conftest.err
5977 cat conftest.err
>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try
='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try
='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_header_compiler
=yes
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.
$ac_ext >&5
5998 ac_header_compiler
=no
6000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6002 echo "${ECHO_T}$ac_header_compiler" >&6
6004 # Is the header present?
6005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6007 cat >conftest.
$ac_ext <<_ACEOF
6010 cat confdefs.h
>>conftest.
$ac_ext
6011 cat >>conftest.
$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #include <$ac_header>
6015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6018 grep -v '^ *+' conftest.er1
>conftest.err
6020 cat conftest.err
>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } >/dev
/null
; then
6023 if test -s conftest.err
; then
6024 ac_cpp_err
=$ac_c_preproc_warn_flag
6025 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6032 if test -z "$ac_cpp_err"; then
6033 ac_header_preproc
=yes
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.
$ac_ext >&5
6038 ac_header_preproc
=no
6040 rm -f conftest.err conftest.
$ac_ext
6041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6042 echo "${ECHO_T}$ac_header_preproc" >&6
6044 # So? What about this header?
6045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6051 ac_header_preproc
=yes
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6068 ## ------------------------------------------ ##
6069 ## Report this to the AC_PACKAGE_NAME lists. ##
6070 ## ------------------------------------------ ##
6073 sed "s/^/$as_me: WARNING: /" >&2
6076 echo "$as_me:$LINENO: checking for $ac_header" >&5
6077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 eval "$as_ac_Header=\$ac_header_preproc"
6083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6088 cat >>confdefs.h
<<_ACEOF
6089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6098 for ac_header
in sys
/time.h sys
/resource.h
6100 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo "$as_me:$LINENO: checking for $ac_header" >&5
6103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6110 # Is the header compilable?
6111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6113 cat >conftest.
$ac_ext <<_ACEOF
6116 cat confdefs.h
>>conftest.
$ac_ext
6117 cat >>conftest.
$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 $ac_includes_default
6120 #include <$ac_header>
6122 rm -f conftest.
$ac_objext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>conftest.er1
6126 grep -v '^ *+' conftest.er1
>conftest.err
6128 cat conftest.err
>&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try
='test -z "$ac_c_werror_flag"
6132 || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try
='test -s conftest.$ac_objext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 ac_header_compiler
=yes
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.
$ac_ext >&5
6149 ac_header_compiler
=no
6151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6153 echo "${ECHO_T}$ac_header_compiler" >&6
6155 # Is the header present?
6156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6158 cat >conftest.
$ac_ext <<_ACEOF
6161 cat confdefs.h
>>conftest.
$ac_ext
6162 cat >>conftest.
$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #include <$ac_header>
6166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6167 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6169 grep -v '^ *+' conftest.er1
>conftest.err
6171 cat conftest.err
>&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } >/dev
/null
; then
6174 if test -s conftest.err
; then
6175 ac_cpp_err
=$ac_c_preproc_warn_flag
6176 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6183 if test -z "$ac_cpp_err"; then
6184 ac_header_preproc
=yes
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.
$ac_ext >&5
6189 ac_header_preproc
=no
6191 rm -f conftest.err conftest.
$ac_ext
6192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6193 echo "${ECHO_T}$ac_header_preproc" >&6
6195 # So? What about this header?
6196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6202 ac_header_preproc
=yes
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6219 ## ------------------------------------------ ##
6220 ## Report this to the AC_PACKAGE_NAME lists. ##
6221 ## ------------------------------------------ ##
6224 sed "s/^/$as_me: WARNING: /" >&2
6227 echo "$as_me:$LINENO: checking for $ac_header" >&5
6228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 eval "$as_ac_Header=\$ac_header_preproc"
6234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239 cat >>confdefs.h
<<_ACEOF
6240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6249 for ac_header
in fcntl.h fpu_control.h
6251 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo "$as_me:$LINENO: checking for $ac_header" >&5
6254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6261 # Is the header compilable?
6262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6264 cat >conftest.
$ac_ext <<_ACEOF
6267 cat confdefs.h
>>conftest.
$ac_ext
6268 cat >>conftest.
$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6271 #include <$ac_header>
6273 rm -f conftest.
$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6277 grep -v '^ *+' conftest.er1
>conftest.err
6279 cat conftest.err
>&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try
='test -z "$ac_c_werror_flag"
6283 || test ! -s conftest.err'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try
='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_header_compiler
=yes
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.
$ac_ext >&5
6300 ac_header_compiler
=no
6302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6304 echo "${ECHO_T}$ac_header_compiler" >&6
6306 # Is the header present?
6307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6309 cat >conftest.
$ac_ext <<_ACEOF
6312 cat confdefs.h
>>conftest.
$ac_ext
6313 cat >>conftest.
$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 #include <$ac_header>
6317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6318 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6320 grep -v '^ *+' conftest.er1
>conftest.err
6322 cat conftest.err
>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } >/dev
/null
; then
6325 if test -s conftest.err
; then
6326 ac_cpp_err
=$ac_c_preproc_warn_flag
6327 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6334 if test -z "$ac_cpp_err"; then
6335 ac_header_preproc
=yes
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.
$ac_ext >&5
6340 ac_header_preproc
=no
6342 rm -f conftest.err conftest.
$ac_ext
6343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6344 echo "${ECHO_T}$ac_header_preproc" >&6
6346 # So? What about this header?
6347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6353 ac_header_preproc
=yes
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6370 ## ------------------------------------------ ##
6371 ## Report this to the AC_PACKAGE_NAME lists. ##
6372 ## ------------------------------------------ ##
6375 sed "s/^/$as_me: WARNING: /" >&2
6378 echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 eval "$as_ac_Header=\$ac_header_preproc"
6385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6390 cat >>confdefs.h
<<_ACEOF
6391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401 for ac_header
in dlfcn.h errno.h sys
/stat.h
6403 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo "$as_me:$LINENO: checking for $ac_header" >&5
6406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413 # Is the header compilable?
6414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6416 cat >conftest.
$ac_ext <<_ACEOF
6419 cat confdefs.h
>>conftest.
$ac_ext
6420 cat >>conftest.
$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6423 #include <$ac_header>
6425 rm -f conftest.
$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>conftest.er1
6429 grep -v '^ *+' conftest.er1
>conftest.err
6431 cat conftest.err
>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try
='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try
='test -s conftest.$ac_objext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_header_compiler
=yes
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.
$ac_ext >&5
6452 ac_header_compiler
=no
6454 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456 echo "${ECHO_T}$ac_header_compiler" >&6
6458 # Is the header present?
6459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6461 cat >conftest.
$ac_ext <<_ACEOF
6464 cat confdefs.h
>>conftest.
$ac_ext
6465 cat >>conftest.
$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <$ac_header>
6469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6472 grep -v '^ *+' conftest.er1
>conftest.err
6474 cat conftest.err
>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } >/dev
/null
; then
6477 if test -s conftest.err
; then
6478 ac_cpp_err
=$ac_c_preproc_warn_flag
6479 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6486 if test -z "$ac_cpp_err"; then
6487 ac_header_preproc
=yes
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.
$ac_ext >&5
6492 ac_header_preproc
=no
6494 rm -f conftest.err conftest.
$ac_ext
6495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6496 echo "${ECHO_T}$ac_header_preproc" >&6
6498 # So? What about this header?
6499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6505 ac_header_preproc
=yes
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6522 ## ------------------------------------------ ##
6523 ## Report this to the AC_PACKAGE_NAME lists. ##
6524 ## ------------------------------------------ ##
6527 sed "s/^/$as_me: WARNING: /" >&2
6530 echo "$as_me:$LINENO: checking for $ac_header" >&5
6531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 eval "$as_ac_Header=\$ac_header_preproc"
6537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6542 cat >>confdefs.h
<<_ACEOF
6543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6554 for ac_func
in getrusage
time sigaction __setfpucw
6556 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6557 echo "$as_me:$LINENO: checking for $ac_func" >&5
6558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_var+set}\" = set"; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 cat >conftest.
$ac_ext <<_ACEOF
6565 cat confdefs.h
>>conftest.
$ac_ext
6566 cat >>conftest.
$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6570 #define $ac_func innocuous_$ac_func
6572 /* System header to define __stub macros and hopefully few prototypes,
6573 which can conflict with char $ac_func (); below.
6574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6575 <limits.h> exists even on freestanding compilers. */
6578 # include <limits.h>
6580 # include <assert.h>
6585 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6593 /* The GNU C library defines this for functions which it implements
6594 to always fail with ENOSYS. Some functions are actually named
6595 something starting with __ and the normal name is an alias. */
6596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6599 char (*f) () = $ac_func;
6608 return f != $ac_func;
6613 rm -f conftest.
$ac_objext conftest
$ac_exeext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615 (eval $ac_link) 2>conftest.er1
6617 grep -v '^ *+' conftest.er1
>conftest.err
6619 cat conftest.err
>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try
='test -z "$ac_c_werror_flag"
6623 || test ! -s conftest.err'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; } &&
6629 { ac_try
='test -s conftest$ac_exeext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 eval "$as_ac_var=yes"
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.
$ac_ext >&5
6640 eval "$as_ac_var=no"
6642 rm -f conftest.err conftest.
$ac_objext \
6643 conftest
$ac_exeext conftest.
$ac_ext
6645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6647 if test `eval echo '${'$as_ac_var'}'` = yes; then
6648 cat >>confdefs.h
<<_ACEOF
6649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6656 # Check for socket libraries
6658 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6659 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6660 if test "${ac_cv_lib_socket_bind+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_check_lib_save_LIBS
=$LIBS
6664 LIBS
="-lsocket $LIBS"
6665 cat >conftest.
$ac_ext <<_ACEOF
6668 cat confdefs.h
>>conftest.
$ac_ext
6669 cat >>conftest.
$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6672 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6687 rm -f conftest.
$ac_objext conftest
$ac_exeext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6689 (eval $ac_link) 2>conftest.er1
6691 grep -v '^ *+' conftest.er1
>conftest.err
6693 cat conftest.err
>&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try
='test -z "$ac_c_werror_flag"
6697 || test ! -s conftest.err'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; } &&
6703 { ac_try
='test -s conftest$ac_exeext'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6709 ac_cv_lib_socket_bind
=yes
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.
$ac_ext >&5
6714 ac_cv_lib_socket_bind
=no
6716 rm -f conftest.err conftest.
$ac_objext \
6717 conftest
$ac_exeext conftest.
$ac_ext
6718 LIBS
=$ac_check_lib_save_LIBS
6720 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6721 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6722 if test $ac_cv_lib_socket_bind = yes; then
6723 cat >>confdefs.h
<<_ACEOF
6724 #define HAVE_LIBSOCKET 1
6727 LIBS
="-lsocket $LIBS"
6732 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6733 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6734 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 ac_check_lib_save_LIBS
=$LIBS
6739 cat >conftest.
$ac_ext <<_ACEOF
6742 cat confdefs.h
>>conftest.
$ac_ext
6743 cat >>conftest.
$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6746 /* Override any gcc2 internal prototype to avoid an error. */
6750 /* We use char because int might match the return type of a gcc2
6751 builtin and then its argument prototype would still apply. */
6752 char gethostbyname ();
6761 rm -f conftest.
$ac_objext conftest
$ac_exeext
6762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763 (eval $ac_link) 2>conftest.er1
6765 grep -v '^ *+' conftest.er1
>conftest.err
6767 cat conftest.err
>&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try
='test -z "$ac_c_werror_flag"
6771 || test ! -s conftest.err'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; } &&
6777 { ac_try
='test -s conftest$ac_exeext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 ac_cv_lib_nsl_gethostbyname
=yes
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.
$ac_ext >&5
6788 ac_cv_lib_nsl_gethostbyname
=no
6790 rm -f conftest.err conftest.
$ac_objext \
6791 conftest
$ac_exeext conftest.
$ac_ext
6792 LIBS
=$ac_check_lib_save_LIBS
6794 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6795 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6796 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6797 cat >>confdefs.h
<<_ACEOF
6798 #define HAVE_LIBNSL 1
6806 .
${srcdir}/..
/..
/bfd
/configure.
host
6810 USE_MAINTAINER_MODE
=no
6811 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6812 if test "${enable_maintainer_mode+set}" = set; then
6813 enableval
="$enable_maintainer_mode"
6814 case "${enableval}" in
6815 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6817 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6818 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6819 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6821 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6822 echo "Setting maintainer mode" 6>&1
6829 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6830 if test "${enable_sim_bswap+set}" = set; then
6831 enableval
="$enable_sim_bswap"
6832 case "${enableval}" in
6833 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6834 no
) sim_bswap
="-DWITH_BSWAP=0";;
6835 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6836 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6837 { (exit 1); exit 1; }; }; sim_bswap
="";;
6839 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6840 echo "Setting bswap flags = $sim_bswap" 6>&1
6847 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6848 if test "${enable_sim_cflags+set}" = set; then
6849 enableval
="$enable_sim_cflags"
6850 case "${enableval}" in
6851 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6852 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6853 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6854 { (exit 1); exit 1; }; }; sim_cflags
="";;
6856 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6858 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6859 echo "Setting sim cflags = $sim_cflags" 6>&1
6866 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6867 if test "${enable_sim_debug+set}" = set; then
6868 enableval
="$enable_sim_debug"
6869 case "${enableval}" in
6870 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6871 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6872 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6874 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6875 echo "Setting sim debug = $sim_debug" 6>&1
6882 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6883 if test "${enable_sim_stdio+set}" = set; then
6884 enableval
="$enable_sim_stdio"
6885 case "${enableval}" in
6886 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6887 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6888 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6889 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6890 { (exit 1); exit 1; }; }; sim_stdio
="";;
6892 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6893 echo "Setting stdio flags = $sim_stdio" 6>&1
6900 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6901 if test "${enable_sim_trace+set}" = set; then
6902 enableval
="$enable_sim_trace"
6903 case "${enableval}" in
6904 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6905 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6907 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6910 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6911 if test x
"$sim_trace" = x
; then
6912 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6914 sim_trace
="${sim_trace}|TRACE_$x"
6917 sim_trace
="$sim_trace)'" ;;
6919 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6920 echo "Setting sim trace = $sim_trace" 6>&1
6927 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6928 if test "${enable_sim_profile+set}" = set; then
6929 enableval
="$enable_sim_profile"
6930 case "${enableval}" in
6931 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6932 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6934 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6937 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6938 if test x
"$sim_profile" = x
; then
6939 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6941 sim_profile
="${sim_profile}|PROFILE_$x"
6944 sim_profile
="$sim_profile)'" ;;
6946 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6947 echo "Setting sim profile = $sim_profile" 6>&1
6950 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6954 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6955 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6956 if test "${ac_cv_type_signal+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 cat >conftest.
$ac_ext <<_ACEOF
6962 cat confdefs.h
>>conftest.
$ac_ext
6963 cat >>conftest.
$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <sys/types.h>
6971 extern "C" void (*signal (int, void (*)(int)))(int);
6973 void (*signal ()) ();
6984 rm -f conftest.
$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986 (eval $ac_compile) 2>conftest.er1
6988 grep -v '^ *+' conftest.er1
>conftest.err
6990 cat conftest.err
>&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try
='test -z "$ac_c_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try
='test -s conftest.$ac_objext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7006 ac_cv_type_signal
=void
7008 echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.
$ac_ext >&5
7011 ac_cv_type_signal
=int
7013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7015 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7016 echo "${ECHO_T}$ac_cv_type_signal" >&6
7018 cat >>confdefs.h
<<_ACEOF
7019 #define RETSIGTYPE $ac_cv_type_signal
7029 sim_link_links
=tconfig.h
7030 if test -f ${srcdir}/tconfig.
in
7032 sim_link_files
=tconfig.
in
7034 sim_link_files
=..
/common
/tconfig.
in
7037 # targ-vals.def points to the libc macro description file.
7039 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
7041 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
7042 sim_link_links
="${sim_link_links} targ-vals.def"
7046 wire_endian
="LITTLE_ENDIAN"
7048 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7049 if test "${enable_sim_endian+set}" = set; then
7050 enableval
="$enable_sim_endian"
7051 case "${enableval}" in
7052 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7053 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7054 yes) if test x
"$wire_endian" != x
; then
7055 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7057 if test x
"$default_endian" != x
; then
7058 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7060 echo "No hard-wired endian for target $target" 1>&6
7061 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
7064 no
) if test x
"$default_endian" != x
; then
7065 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7067 if test x
"$wire_endian" != x
; then
7068 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7070 echo "No default endian for target $target" 1>&6
7071 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7074 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7075 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7076 { (exit 1); exit 1; }; }; sim_endian
="";;
7078 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
7079 echo "Setting endian flags = $sim_endian" 6>&1
7082 if test x
"$default_endian" != x
; then
7083 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7085 if test x
"$wire_endian" != x
; then
7086 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7092 wire_alignment
="NONSTRICT_ALIGNMENT"
7093 default_alignment
=""
7095 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7096 if test "${enable_sim_alignment+set}" = set; then
7097 enableval
="$enable_sim_alignment"
7098 case "${enableval}" in
7099 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7100 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7101 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7102 yes) if test x
"$wire_alignment" != x
; then
7103 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7105 if test x
"$default_alignment" != x
; then
7106 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
7108 echo "No hard-wired alignment for target $target" 1>&6
7109 sim_alignment
="-DWITH_ALIGNMENT=0"
7112 no
) if test x
"$default_alignment" != x
; then
7113 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7115 if test x
"$wire_alignment" != x
; then
7116 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7118 echo "No default alignment for target $target" 1>&6
7119 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
7122 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7123 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7124 { (exit 1); exit 1; }; }; sim_alignment
="";;
7126 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
7127 echo "Setting alignment flags = $sim_alignment" 6>&1
7130 if test x
"$default_alignment" != x
; then
7131 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7133 if test x
"$wire_alignment" != x
; then
7134 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7141 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7142 if test "${enable_sim_hostendian+set}" = set; then
7143 enableval
="$enable_sim_hostendian"
7144 case "${enableval}" in
7145 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
7146 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7147 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7148 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7149 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7150 { (exit 1); exit 1; }; }; sim_hostendian
="";;
7152 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
7153 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7157 if test "x$cross_compiling" = "xno"; then
7158 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7159 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7160 if test "${ac_cv_c_bigendian+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 # See if sys/param.h defines the BYTE_ORDER macro.
7164 cat >conftest.
$ac_ext <<_ACEOF
7167 cat confdefs.h
>>conftest.
$ac_ext
7168 cat >>conftest.
$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 #include <sys/types.h>
7171 #include <sys/param.h>
7176 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7184 rm -f conftest.
$ac_objext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186 (eval $ac_compile) 2>conftest.er1
7188 grep -v '^ *+' conftest.er1
>conftest.err
7190 cat conftest.err
>&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try
='test -z "$ac_c_werror_flag"
7194 || test ! -s conftest.err'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; } &&
7200 { ac_try
='test -s conftest.$ac_objext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 # It does; now see whether it defined to BIG_ENDIAN or not.
7207 cat >conftest.
$ac_ext <<_ACEOF
7210 cat confdefs.h
>>conftest.
$ac_ext
7211 cat >>conftest.
$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #include <sys/types.h>
7214 #include <sys/param.h>
7219 #if BYTE_ORDER != BIG_ENDIAN
7227 rm -f conftest.
$ac_objext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7229 (eval $ac_compile) 2>conftest.er1
7231 grep -v '^ *+' conftest.er1
>conftest.err
7233 cat conftest.err
>&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try
='test -z "$ac_c_werror_flag"
7237 || test ! -s conftest.err'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; } &&
7243 { ac_try
='test -s conftest.$ac_objext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 ac_cv_c_bigendian
=yes
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.
$ac_ext >&5
7254 ac_cv_c_bigendian
=no
7256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.
$ac_ext >&5
7261 # It does not; compile a test program.
7262 if test "$cross_compiling" = yes; then
7263 # try to guess the endianness by grepping values into an object file
7264 ac_cv_c_bigendian
=unknown
7265 cat >conftest.
$ac_ext <<_ACEOF
7268 cat confdefs.h
>>conftest.
$ac_ext
7269 cat >>conftest.
$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7272 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7273 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7274 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7275 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7276 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7280 _ascii (); _ebcdic ();
7285 rm -f conftest.
$ac_objext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287 (eval $ac_compile) 2>conftest.er1
7289 grep -v '^ *+' conftest.er1
>conftest.err
7291 cat conftest.err
>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try
='test -z "$ac_c_werror_flag"
7295 || test ! -s conftest.err'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; } &&
7301 { ac_try
='test -s conftest.$ac_objext'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; }; then
7307 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7308 ac_cv_c_bigendian
=yes
7310 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7311 if test "$ac_cv_c_bigendian" = unknown
; then
7312 ac_cv_c_bigendian
=no
7314 # finding both strings is unlikely to happen, but who knows?
7315 ac_cv_c_bigendian
=unknown
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.
$ac_ext >&5
7323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7325 cat >conftest.
$ac_ext <<_ACEOF
7328 cat confdefs.h
>>conftest.
$ac_ext
7329 cat >>conftest.
$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7334 /* Are we little or big endian? From Harbison&Steele. */
7338 char c[sizeof (long)];
7341 exit (u.c[sizeof (long) - 1] == 1);
7344 rm -f conftest
$ac_exeext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7346 (eval $ac_link) 2>&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_cv_c_bigendian
=no
7357 echo "$as_me: program exited with status $ac_status" >&5
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.
$ac_ext >&5
7362 ac_cv_c_bigendian
=yes
7364 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7369 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7370 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7371 case $ac_cv_c_bigendian in
7374 cat >>confdefs.h
<<\_ACEOF
7375 #define WORDS_BIGENDIAN 1
7381 { { echo "$as_me:$LINENO: error: unknown endianness
7382 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7383 echo "$as_me: error: unknown endianness
7384 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7385 { (exit 1); exit 1; }; } ;;
7388 if test $ac_cv_c_bigendian = yes; then
7389 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7391 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7394 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7398 # NOTE: Don't add -Wall or -Wunused, they both include
7399 # -Wunused-parameter which reports bogus warnings.
7400 # NOTE: If you add to this list, remember to update
7401 # gdb/doc/gdbint.texinfo.
7402 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7403 -Wformat -Wparentheses -Wpointer-arith"
7404 # GCC supports -Wuninitialized only with -O or -On, n != 0.
7405 if test x
${CFLAGS+set} = xset
; then
7409 build_warnings
="${build_warnings} -Wuninitialized"
7413 build_warnings
="${build_warnings} -Wuninitialized"
7415 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7416 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7417 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7418 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7419 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7420 # -Woverloaded-virtual -Winline -Werror"
7421 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7422 if test "${enable_build_warnings+set}" = set; then
7423 enableval
="$enable_build_warnings"
7424 case "${enableval}" in
7426 no
) build_warnings
="-w";;
7427 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7428 build_warnings
="${build_warnings} ${t}";;
7429 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7430 build_warnings
="${t} ${build_warnings}";;
7431 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7433 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7434 echo "Setting compiler warning flags = $build_warnings" 6>&1
7436 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7437 if test "${enable_sim_build_warnings+set}" = set; then
7438 enableval
="$enable_sim_build_warnings"
7439 case "${enableval}" in
7441 no
) build_warnings
="-w";;
7442 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7443 build_warnings
="${build_warnings} ${t}";;
7444 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7445 build_warnings
="${t} ${build_warnings}";;
7446 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7448 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7449 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7453 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7455 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7456 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7457 # Separate out the -Werror flag as some files just cannot be
7458 # compiled with it enabled.
7459 for w
in ${build_warnings}; do
7461 -Werr*) WERROR_CFLAGS
=-Werror ;;
7462 *) # Check that GCC accepts it
7463 saved_CFLAGS
="$CFLAGS"
7465 cat >conftest.
$ac_ext <<_ACEOF
7468 cat confdefs.h
>>conftest.
$ac_ext
7469 cat >>conftest.
$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7480 rm -f conftest.
$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>conftest.er1
7484 grep -v '^ *+' conftest.er1
>conftest.err
7486 cat conftest.err
>&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try
='test -z "$ac_c_werror_flag"
7490 || test ! -s conftest.err'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; } &&
7496 { ac_try
='test -s conftest.$ac_objext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.
$ac_ext >&5
7508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7509 CFLAGS
="$saved_CFLAGS"
7512 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7513 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7517 default_sim_reserved_bits
="1"
7518 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7519 if test "${enable_sim_reserved_bits+set}" = set; then
7520 enableval
="$enable_sim_reserved_bits"
7521 case "${enableval}" in
7522 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
7523 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
7524 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7525 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7526 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
7528 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
7529 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7532 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7534 wire_word_bitsize
="32"
7536 wire_address_bitsize
=""
7537 wire_cell_bitsize
=""
7538 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7539 if test "${enable_sim_bitsize+set}" = set; then
7540 enableval
="$enable_sim_bitsize"
7542 case "${enableval}" in
7543 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7544 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7545 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7546 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7547 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7548 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7550 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7552 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7553 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7555 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7557 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7558 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7559 { (exit 1); exit 1; }; } ;;
7562 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7565 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7566 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7567 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7568 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7569 { (exit 1); exit 1; }; } ;;
7572 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7575 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7576 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7577 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7578 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7579 { (exit 1); exit 1; }; } ;;
7581 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
7582 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7586 if test x
"$wire_word_bitsize" != x
; then
7587 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7589 if test x
"$wire_word_msb" != x
; then
7590 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7592 if test x
"$wire_address_bitsize" != x
; then
7593 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7595 if test x
"$wire_cell_bitsize" != x
; then
7596 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7600 default_sim_inline
=""
7601 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7602 if test "${enable_sim_inline+set}" = set; then
7603 enableval
="$enable_sim_inline"
7605 case "$enableval" in
7606 no
) sim_inline
="-DDEFAULT_INLINE=0";;
7607 0) sim_inline
="-DDEFAULT_INLINE=0";;
7608 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
7609 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
7610 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
7613 *_INLINE
=*) new_flag
="-D$x";;
7614 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7615 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
7616 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
7618 if test x
"$sim_inline" = x
""; then
7619 sim_inline
="$new_flag"
7621 sim_inline
="$sim_inline $new_flag"
7625 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
7626 echo "Setting inline flags = $sim_inline" 6>&1
7630 if test "x$cross_compiling" = "xno"; then
7631 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
7632 sim_inline
="${default_sim_inline}"
7633 if test x
"$silent" != x
"yes"; then
7634 echo "Setting inline flags = $sim_inline" 6>&1
7640 sim_inline
="-DDEFAULT_INLINE=0"
7644 if test x
"yes" = x
"yes"; then
7650 hardware
="core pal glue"
7652 hardware
="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop"
7654 sim_hw_cflags
="-DWITH_HW=1"
7656 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7657 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7658 if test "${enable_sim_hardware+set}" = set; then
7659 enableval
="$enable_sim_hardware"
7661 case "${enableval}" in
7664 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7665 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7666 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7668 if test "$sim_hw_p" != yes; then
7670 sim_hw_cflags
="-DWITH_HW=0"
7673 sim_hw_cflags
="-DWITH_HW=1"
7676 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
7677 for i
in x
$hardware ; do
7681 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
7685 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
7686 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7690 if test "$sim_hw_p" != yes; then
7692 sim_hw_cflags
="-DWITH_HW=0"
7695 if test x
"$silent" != x
"yes"; then
7696 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7707 for ac_func
in time chmod utime fork execve execv chown
7709 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7710 echo "$as_me:$LINENO: checking for $ac_func" >&5
7711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7712 if eval "test \"\${$as_ac_var+set}\" = set"; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 cat >conftest.
$ac_ext <<_ACEOF
7718 cat confdefs.h
>>conftest.
$ac_ext
7719 cat >>conftest.
$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7723 #define $ac_func innocuous_$ac_func
7725 /* System header to define __stub macros and hopefully few prototypes,
7726 which can conflict with char $ac_func (); below.
7727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7728 <limits.h> exists even on freestanding compilers. */
7731 # include <limits.h>
7733 # include <assert.h>
7738 /* Override any gcc2 internal prototype to avoid an error. */
7743 /* We use char because int might match the return type of a gcc2
7744 builtin and then its argument prototype would still apply. */
7746 /* The GNU C library defines this for functions which it implements
7747 to always fail with ENOSYS. Some functions are actually named
7748 something starting with __ and the normal name is an alias. */
7749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7752 char (*f) () = $ac_func;
7761 return f != $ac_func;
7766 rm -f conftest.
$ac_objext conftest
$ac_exeext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7768 (eval $ac_link) 2>conftest.er1
7770 grep -v '^ *+' conftest.er1
>conftest.err
7772 cat conftest.err
>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try
='test -z "$ac_c_werror_flag"
7776 || test ! -s conftest.err'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try
='test -s conftest$ac_exeext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 eval "$as_ac_var=yes"
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.
$ac_ext >&5
7793 eval "$as_ac_var=no"
7795 rm -f conftest.err conftest.
$ac_objext \
7796 conftest
$ac_exeext conftest.
$ac_ext
7798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7800 if test `eval echo '${'$as_ac_var'}'` = yes; then
7801 cat >>confdefs.h
<<_ACEOF
7802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7814 for ac_header
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
7816 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7818 echo "$as_me:$LINENO: checking for $ac_header" >&5
7819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7826 # Is the header compilable?
7827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7829 cat >conftest.
$ac_ext <<_ACEOF
7832 cat confdefs.h
>>conftest.
$ac_ext
7833 cat >>conftest.
$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 $ac_includes_default
7836 #include <$ac_header>
7838 rm -f conftest.
$ac_objext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7840 (eval $ac_compile) 2>conftest.er1
7842 grep -v '^ *+' conftest.er1
>conftest.err
7844 cat conftest.err
>&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } &&
7847 { ac_try
='test -z "$ac_c_werror_flag"
7848 || test ! -s conftest.err'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; } &&
7854 { ac_try
='test -s conftest.$ac_objext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_header_compiler
=yes
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.
$ac_ext >&5
7865 ac_header_compiler
=no
7867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7869 echo "${ECHO_T}$ac_header_compiler" >&6
7871 # Is the header present?
7872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7874 cat >conftest.
$ac_ext <<_ACEOF
7877 cat confdefs.h
>>conftest.
$ac_ext
7878 cat >>conftest.
$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 #include <$ac_header>
7882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7883 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7885 grep -v '^ *+' conftest.er1
>conftest.err
7887 cat conftest.err
>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } >/dev
/null
; then
7890 if test -s conftest.err
; then
7891 ac_cpp_err
=$ac_c_preproc_warn_flag
7892 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7899 if test -z "$ac_cpp_err"; then
7900 ac_header_preproc
=yes
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.
$ac_ext >&5
7905 ac_header_preproc
=no
7907 rm -f conftest.err conftest.
$ac_ext
7908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7909 echo "${ECHO_T}$ac_header_preproc" >&6
7911 # So? What about this header?
7912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7918 ac_header_preproc
=yes
7921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7935 ## ------------------------------------------ ##
7936 ## Report this to the AC_PACKAGE_NAME lists. ##
7937 ## ------------------------------------------ ##
7940 sed "s/^/$as_me: WARNING: /" >&2
7943 echo "$as_me:$LINENO: checking for $ac_header" >&5
7944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 eval "$as_ac_Header=\$ac_header_preproc"
7950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7955 cat >>confdefs.h
<<_ACEOF
7956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965 ac_sources
="$sim_link_files"
7966 ac_dests
="$sim_link_links"
7967 while test -n "$ac_sources"; do
7968 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
7969 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
7970 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
7972 ac_config_links
="$ac_config_links $ac_config_links_1"
7975 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
7976 cgen_breaks
="break cgen_rtx_error";
7979 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
7981 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
7983 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
7985 ac_config_commands
="$ac_config_commands Makefile"
7987 ac_config_commands
="$ac_config_commands stamp-h"
7989 cat >confcache
<<\_ACEOF
7990 # This file is a shell script that caches the results of configure
7991 # tests run on this system so they can be shared between configure
7992 # scripts and configure runs, see configure's option --config-cache.
7993 # It is not useful on other systems. If it contains results you don't
7994 # want to keep, you may remove or edit it.
7996 # config.status only pays attention to the cache file if you give it
7997 # the --recheck option to rerun configure.
7999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8005 # The following way of writing the cache mishandles newlines in values,
8006 # but we know of no workaround that is simple, portable, and efficient.
8007 # So, don't put newlines in cache variables' values.
8008 # Ultrix sh set writes to stderr and can't be redirected directly,
8009 # and sets the high bit in the cache file unless we assign to the vars.
8012 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8014 # `set' does not quote correctly, so add quotes (double-quote
8015 # substitution turns \\\\ into \\, and sed turns \\ into \).
8018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8021 # `set' quotes correctly as required by POSIX, so do not add quotes.
8023 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8032 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8034 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8035 if test -w $cache_file; then
8036 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8037 cat confcache
>$cache_file
8039 echo "not updating unwritable cache $cache_file"
8044 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8045 # Let make expand exec_prefix.
8046 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8048 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8049 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8050 # trailing colons and then remove the whole line if VPATH becomes empty
8051 # (actually we leave an empty line to preserve line numbers).
8052 if test "x$srcdir" = x.
; then
8053 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8054 s/:*\$(srcdir):*/:/;
8055 s/:*\${srcdir}:*/:/;
8057 s/^\([^=]*=[ ]*\):*/\1/;
8063 DEFS
=-DHAVE_CONFIG_H
8067 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8068 # 1. Remove the extension, and $U if already installed.
8069 ac_i
=`echo "$ac_i" |
8070 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8072 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8073 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8077 LTLIBOBJS
=$ac_ltlibobjs
8081 : ${CONFIG_STATUS=./config.status}
8082 ac_clean_files_save
=$ac_clean_files
8083 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8084 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8085 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8086 cat >$CONFIG_STATUS <<_ACEOF
8088 # Generated by $as_me.
8089 # Run this file to recreate the current configuration.
8090 # Compiler output produced by configure, useful for debugging
8091 # configure, is in config.log if it exists.
8096 SHELL=\${CONFIG_SHELL-$SHELL}
8099 cat >>$CONFIG_STATUS <<\_ACEOF
8100 ## --------------------- ##
8101 ## M4sh Initialization. ##
8102 ## --------------------- ##
8104 # Be Bourne compatible
8105 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8108 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8109 # is contrary to our usage. Disable this feature.
8110 alias -g '${1+"$@"}'='"$@"'
8111 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8114 DUALCASE
=1; export DUALCASE
# for MKS sh
8116 # Support unset when possible.
8117 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8124 # Work around bugs in pre-3.0 UWIN ksh.
8125 $as_unset ENV MAIL MAILPATH
8132 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8133 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8134 LC_TELEPHONE LC_TIME
8136 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8137 eval $as_var=C
; export $as_var
8143 # Required to use basename.
8144 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8150 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8151 as_basename
=basename
8157 # Name of the executable.
8158 as_me
=`$as_basename "$0" ||
8159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8160 X"$0" : 'X\(//\)$' \| \
8161 X"$0" : 'X\(/\)$' \| \
8162 . : '\(.\)' 2>/dev/null ||
8164 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8165 /^X\/\(\/\/\)$/{ s//\1/; q; }
8166 /^X\/\(\/\).*/{ s//\1/; q; }
8170 # PATH needs CR, and LINENO needs CR and PATH.
8171 # Avoid depending upon Character Ranges.
8172 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8173 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8174 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8175 as_cr_digits
='0123456789'
8176 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8178 # The user is always right.
8179 if test "${PATH_SEPARATOR+set}" != set; then
8180 echo "#! /bin/sh" >conf$$.sh
8181 echo "exit 0" >>conf$$.sh
8183 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8194 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8195 test "x$as_lineno_1" != "x$as_lineno_2" &&
8196 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8197 # Find who we are. Look in the path if we contain no path at all
8200 *[\\/]* ) as_myself
=$0 ;;
8201 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8205 test -z "$as_dir" && as_dir
=.
8206 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8211 # We did not find ourselves, most probably we were run as `sh COMMAND'
8212 # in which case we are not to be found in the path.
8213 if test "x$as_myself" = x
; then
8216 if test ! -f "$as_myself"; then
8217 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8218 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8219 { (exit 1); exit 1; }; }
8221 case $CONFIG_SHELL in
8223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8227 test -z "$as_dir" && as_dir
=.
8228 for as_base
in sh bash ksh sh5
; do
8231 if ("$as_dir/$as_base" -c '
8234 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8235 test "x$as_lineno_1" != "x$as_lineno_2" &&
8236 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8237 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8238 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8239 CONFIG_SHELL
=$as_dir/$as_base
8241 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8249 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8250 # uniformly replaced by the line number. The first 'sed' inserts a
8251 # line-number line before each line; the second 'sed' does the real
8252 # work. The second script uses 'N' to pair each line-number line
8253 # with the numbered line, and appends trailing '-' during
8254 # substitution so that $LINENO is not a special case at line end.
8255 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8256 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8257 sed '=' <$as_myself |
8262 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8265 s,^['$as_cr_digits']*\n,,
8267 chmod +x
$as_me.lineno ||
8268 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8269 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8270 { (exit 1); exit 1; }; }
8272 # Don't try to exec as it changes $[0], causing all sort of problems
8273 # (the dirname of $[0] is not the place where we might find the
8274 # original and so on. Autoconf is especially sensible to this).
8276 # Exit status is that of the last command.
8281 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8282 *c
*,-n*) ECHO_N
= ECHO_C
='
8284 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8285 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8288 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8294 rm -f conf$$ conf$$.exe conf$$.
file
8296 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8297 # We could just check for DJGPP; but this test a) works b) is more generic
8298 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8299 if test -f conf$$.exe
; then
8300 # Don't use ln at all; we don't have any links
8305 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8310 rm -f conf$$ conf$$.exe conf$$.
file
8312 if mkdir
-p .
2>/dev
/null
; then
8315 test -d .
/-p && rmdir .
/-p
8319 as_executable_p
="test -f"
8321 # Sed expression to map a string onto a valid CPP name.
8322 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8324 # Sed expression to map a string onto a valid variable name.
8325 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8329 # We need space, tab and new line, in precisely that order.
8339 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8340 # report actual input values of CONFIG_FILES etc. instead of their
8341 # values after options handling. Logging --version etc. is OK.
8345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8346 ## Running $as_me. ##
8351 This file was extended by $as_me, which was
8352 generated by GNU Autoconf 2.59. Invocation command line was
8354 CONFIG_FILES = $CONFIG_FILES
8355 CONFIG_HEADERS = $CONFIG_HEADERS
8356 CONFIG_LINKS = $CONFIG_LINKS
8357 CONFIG_COMMANDS = $CONFIG_COMMANDS
8361 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8365 # Files that config.status was made for.
8366 if test -n "$ac_config_files"; then
8367 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8370 if test -n "$ac_config_headers"; then
8371 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8374 if test -n "$ac_config_links"; then
8375 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8378 if test -n "$ac_config_commands"; then
8379 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8382 cat >>$CONFIG_STATUS <<\_ACEOF
8385 \`$as_me' instantiates files from templates according to the
8386 current configuration.
8388 Usage: $0 [OPTIONS] [FILE]...
8390 -h, --help print this help, then exit
8391 -V, --version print version number, then exit
8392 -q, --quiet do not print progress messages
8393 -d, --debug don't remove temporary files
8394 --recheck update $as_me by reconfiguring in the same conditions
8395 --file=FILE[:TEMPLATE]
8396 instantiate the configuration file FILE
8397 --header=FILE[:TEMPLATE]
8398 instantiate the configuration header FILE
8400 Configuration files:
8403 Configuration headers:
8406 Configuration links:
8409 Configuration commands:
8412 Report bugs to <bug-autoconf@gnu.org>."
8415 cat >>$CONFIG_STATUS <<_ACEOF
8418 configured by $0, generated by GNU Autoconf 2.59,
8419 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8421 Copyright (C) 2003 Free Software Foundation, Inc.
8422 This config.status script is free software; the Free Software Foundation
8423 gives unlimited permission to copy, distribute and modify it."
8428 cat >>$CONFIG_STATUS <<\_ACEOF
8429 # If no file are specified by the user, then we need to provide default
8430 # value. By we need to know if files were specified by the user.
8436 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8437 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8445 *) # This is not an option, so the user has probably given explicit
8448 ac_need_defaults
=false
;;
8452 # Handling of the options.
8454 cat >>$CONFIG_STATUS <<\_ACEOF
8455 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8457 --version |
--vers* |
-V )
8458 echo "$ac_cs_version"; exit 0 ;;
8460 # Conflict between --help and --header
8461 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8462 Try \`$0 --help' for more information." >&5
8463 echo "$as_me: error: ambiguous option: $1
8464 Try \`$0 --help' for more information." >&2;}
8465 { (exit 1); exit 1; }; };;
8466 --help |
--hel |
-h )
8467 echo "$ac_cs_usage"; exit 0 ;;
8468 --debug |
--d* |
-d )
8470 --file |
--fil |
--fi |
--f )
8472 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8473 ac_need_defaults
=false
;;
8474 --header |
--heade |
--head |
--hea )
8476 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8477 ac_need_defaults
=false
;;
8478 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8479 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8483 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8484 Try \`$0 --help' for more information." >&5
8485 echo "$as_me: error: unrecognized option: $1
8486 Try \`$0 --help' for more information." >&2;}
8487 { (exit 1); exit 1; }; } ;;
8489 *) ac_config_targets
="$ac_config_targets $1" ;;
8495 ac_configure_extra_args
=
8497 if $ac_cs_silent; then
8499 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8503 cat >>$CONFIG_STATUS <<_ACEOF
8504 if \$ac_cs_recheck; then
8505 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8506 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8515 cat >>$CONFIG_STATUS <<\_ACEOF
8516 for ac_config_target
in $ac_config_targets
8518 case "$ac_config_target" in
8519 # Handling of arguments.
8520 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8521 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8522 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8523 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
8524 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
8525 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
8526 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8527 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8528 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8529 { (exit 1); exit 1; }; };;
8533 # If the user did not use the arguments to specify the items to instantiate,
8534 # then the envvar interface is used. Set only those that are not.
8535 # We use the long form for the default assignment because of an extremely
8536 # bizarre bug on SunOS 4.1.3.
8537 if $ac_need_defaults; then
8538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8540 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8544 # Have a temporary directory for convenience. Make it in the build tree
8545 # simply because there is no reason to put it here, and in addition,
8546 # creating and moving files from /tmp can sometimes cause problems.
8547 # Create a temporary directory, and hook for its removal unless debugging.
8550 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8551 trap '{ (exit 1); exit 1; }' 1 2 13 15
8554 # Create a (secure) tmp directory for tmp files.
8557 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8558 test -n "$tmp" && test -d "$tmp"
8561 tmp
=.
/confstat$$
-$RANDOM
8562 (umask 077 && mkdir
$tmp)
8565 echo "$me: cannot create a temporary directory in ." >&2
8566 { (exit 1); exit 1; }
8571 cat >>$CONFIG_STATUS <<_ACEOF
8574 # CONFIG_FILES section.
8577 # No need to generate the scripts if there are no CONFIG_FILES.
8578 # This happens for instance when ./config.status config.h
8579 if test -n "\$CONFIG_FILES"; then
8580 # Protect against being on the right side of a sed subst in config.status.
8581 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8582 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8583 s,@SHELL@,$SHELL,;t t
8584 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8585 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8586 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8587 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8588 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8589 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8590 s,@exec_prefix@,$exec_prefix,;t t
8591 s,@prefix@,$prefix,;t t
8592 s,@program_transform_name@,$program_transform_name,;t t
8593 s,@bindir@,$bindir,;t t
8594 s,@sbindir@,$sbindir,;t t
8595 s,@libexecdir@,$libexecdir,;t t
8596 s,@datadir@,$datadir,;t t
8597 s,@sysconfdir@,$sysconfdir,;t t
8598 s,@sharedstatedir@,$sharedstatedir,;t t
8599 s,@localstatedir@,$localstatedir,;t t
8600 s,@libdir@,$libdir,;t t
8601 s,@includedir@,$includedir,;t t
8602 s,@oldincludedir@,$oldincludedir,;t t
8603 s,@infodir@,$infodir,;t t
8604 s,@mandir@,$mandir,;t t
8605 s,@build_alias@,$build_alias,;t t
8606 s,@host_alias@,$host_alias,;t t
8607 s,@target_alias@,$target_alias,;t t
8609 s,@ECHO_C@,$ECHO_C,;t t
8610 s,@ECHO_N@,$ECHO_N,;t t
8611 s,@ECHO_T@,$ECHO_T,;t t
8613 s,@sim_environment@,$sim_environment,;t t
8614 s,@sim_alignment@,$sim_alignment,;t t
8615 s,@sim_assert@,$sim_assert,;t t
8616 s,@sim_bitsize@,$sim_bitsize,;t t
8617 s,@sim_endian@,$sim_endian,;t t
8618 s,@sim_hostendian@,$sim_hostendian,;t t
8619 s,@sim_float@,$sim_float,;t t
8620 s,@sim_scache@,$sim_scache,;t t
8621 s,@sim_default_model@,$sim_default_model,;t t
8622 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8623 s,@sim_hw_objs@,$sim_hw_objs,;t t
8624 s,@sim_hw@,$sim_hw,;t t
8625 s,@sim_inline@,$sim_inline,;t t
8626 s,@sim_packages@,$sim_packages,;t t
8627 s,@sim_regparm@,$sim_regparm,;t t
8628 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8629 s,@sim_smp@,$sim_smp,;t t
8630 s,@sim_stdcall@,$sim_stdcall,;t t
8631 s,@sim_xor_endian@,$sim_xor_endian,;t t
8632 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8633 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8634 s,@build@,$build,;t t
8635 s,@build_cpu@,$build_cpu,;t t
8636 s,@build_vendor@,$build_vendor,;t t
8637 s,@build_os@,$build_os,;t t
8639 s,@host_cpu@,$host_cpu,;t t
8640 s,@host_vendor@,$host_vendor,;t t
8641 s,@host_os@,$host_os,;t t
8642 s,@target@,$target,;t t
8643 s,@target_cpu@,$target_cpu,;t t
8644 s,@target_vendor@,$target_vendor,;t t
8645 s,@target_os@,$target_os,;t t
8647 s,@CFLAGS@,$CFLAGS,;t t
8648 s,@LDFLAGS@,$LDFLAGS,;t t
8649 s,@CPPFLAGS@,$CPPFLAGS,;t t
8650 s,@ac_ct_CC@,$ac_ct_CC,;t t
8651 s,@EXEEXT@,$EXEEXT,;t t
8652 s,@OBJEXT@,$OBJEXT,;t t
8653 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8654 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8655 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8656 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8657 s,@HDEFINES@,$HDEFINES,;t t
8659 s,@RANLIB@,$RANLIB,;t t
8660 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8661 s,@SET_MAKE@,$SET_MAKE,;t t
8663 s,@EGREP@,$EGREP,;t t
8664 s,@ALLOCA@,$ALLOCA,;t t
8665 s,@USE_NLS@,$USE_NLS,;t t
8666 s,@MSGFMT@,$MSGFMT,;t t
8667 s,@GMSGFMT@,$GMSGFMT,;t t
8668 s,@XGETTEXT@,$XGETTEXT,;t t
8669 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8670 s,@CATALOGS@,$CATALOGS,;t t
8671 s,@CATOBJEXT@,$CATOBJEXT,;t t
8672 s,@DATADIRNAME@,$DATADIRNAME,;t t
8673 s,@GMOFILES@,$GMOFILES,;t t
8674 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8675 s,@INTLDEPS@,$INTLDEPS,;t t
8676 s,@INTLLIBS@,$INTLLIBS,;t t
8677 s,@INTLOBJS@,$INTLOBJS,;t t
8678 s,@POFILES@,$POFILES,;t t
8679 s,@POSUB@,$POSUB,;t t
8680 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8681 s,@GT_NO@,$GT_NO,;t t
8682 s,@GT_YES@,$GT_YES,;t t
8683 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8685 s,@MAINT@,$MAINT,;t t
8686 s,@sim_bswap@,$sim_bswap,;t t
8687 s,@sim_cflags@,$sim_cflags,;t t
8688 s,@sim_debug@,$sim_debug,;t t
8689 s,@sim_stdio@,$sim_stdio,;t t
8690 s,@sim_trace@,$sim_trace,;t t
8691 s,@sim_profile@,$sim_profile,;t t
8692 s,@cgen_breaks@,$cgen_breaks,;t t
8693 s,@LIBOBJS@,$LIBOBJS,;t t
8694 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8699 cat >>$CONFIG_STATUS <<\_ACEOF
8700 # Split the substitutions into bite-sized pieces for seds with
8701 # small command number limits, like on Digital OSF/1 and HP-UX.
8703 ac_sed_frag
=1 # Number of current file.
8704 ac_beg
=1 # First line for current file.
8705 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8708 while $ac_more_lines; do
8709 if test $ac_beg -gt 1; then
8710 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8712 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8714 if test ! -s $tmp/subs.frag
; then
8717 # The purpose of the label and of the branching condition is to
8718 # speed up the sed processing (if there are no `@' at all, there
8719 # is no need to browse any of the substitutions).
8720 # These are the two extra sed commands mentioned above.
8722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8723 if test -z "$ac_sed_cmds"; then
8724 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8726 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8728 ac_sed_frag
=`expr $ac_sed_frag + 1`
8730 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8733 if test -z "$ac_sed_cmds"; then
8736 fi # test -n "$CONFIG_FILES"
8739 cat >>$CONFIG_STATUS <<\_ACEOF
8740 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8743 - |
*:- |
*:-:* ) # input from stdin
8745 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8746 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8747 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8748 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8749 * ) ac_file_in
=$ac_file.
in ;;
8752 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8753 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8755 X"$ac_file" : 'X\(//\)[^/]' \| \
8756 X"$ac_file" : 'X\(//\)$' \| \
8757 X"$ac_file" : 'X\(/\)' \| \
8758 . : '\(.\)' 2>/dev/null ||
8760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8762 /^X\(\/\/\)$/{ s//\1/; q; }
8763 /^X\(\/\).*/{ s//\1/; q; }
8765 { if $as_mkdir_p; then
8770 while test ! -d "$as_dir"; do
8771 as_dirs
="$as_dir $as_dirs"
8772 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8774 X"$as_dir" : 'X\(//\)[^/]' \| \
8775 X"$as_dir" : 'X\(//\)$' \| \
8776 X"$as_dir" : 'X\(/\)' \| \
8777 . : '\(.\)' 2>/dev/null ||
8779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8781 /^X\(\/\/\)$/{ s//\1/; q; }
8782 /^X\(\/\).*/{ s//\1/; q; }
8785 test ! -n "$as_dirs" || mkdir
$as_dirs
8786 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8788 { (exit 1); exit 1; }; }; }
8792 if test "$ac_dir" != .
; then
8793 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8794 # A "../" for each directory in $ac_dir_suffix.
8795 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8797 ac_dir_suffix
= ac_top_builddir
=
8801 .
) # No --srcdir option. We are building in place.
8803 if test -z "$ac_top_builddir"; then
8806 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8808 [\\/]* | ?
:[\\/]* ) # Absolute path.
8809 ac_srcdir
=$srcdir$ac_dir_suffix;
8810 ac_top_srcdir
=$srcdir ;;
8812 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8813 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8816 # Do not use `cd foo && pwd` to compute absolute paths, because
8817 # the directories may not exist.
8819 .
) ac_abs_builddir
="$ac_dir";;
8822 .
) ac_abs_builddir
=`pwd`;;
8823 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8824 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8827 case $ac_abs_builddir in
8828 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8830 case ${ac_top_builddir}.
in
8831 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8832 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8833 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8836 case $ac_abs_builddir in
8837 .
) ac_abs_srcdir
=$ac_srcdir;;
8840 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8841 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8842 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8845 case $ac_abs_builddir in
8846 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8848 case $ac_top_srcdir in
8849 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8850 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8851 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8857 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8858 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8861 if test x
"$ac_file" != x-
; then
8862 { echo "$as_me:$LINENO: creating $ac_file" >&5
8863 echo "$as_me: creating $ac_file" >&6;}
8866 # Let's still pretend it is `configure' which instantiates (i.e., don't
8867 # use $as_me), people would be surprised to read:
8868 # /* config.h. Generated by config.status. */
8869 if test x
"$ac_file" = x-
; then
8872 configure_input
="$ac_file. "
8874 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8875 sed 's,.*/,,'` by configure."
8877 # First look for the input files in the build tree, otherwise in the
8879 ac_file_inputs
=`IFS=:
8880 for f in $ac_file_in; do
8882 -) echo $tmp/stdin ;;
8884 # Absolute (can't be DOS-style, as IFS=:)
8885 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8886 echo "$as_me: error: cannot find input file: $f" >&2;}
8887 { (exit 1); exit 1; }; }
8890 if test -f "$f"; then
8893 elif test -f "$srcdir/$f"; then
8898 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8899 echo "$as_me: error: cannot find input file: $f" >&2;}
8900 { (exit 1); exit 1; }; }
8903 done` ||
{ (exit 1); exit 1; }
8905 cat >>$CONFIG_STATUS <<_ACEOF
8909 cat >>$CONFIG_STATUS <<\_ACEOF
8911 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8912 s
,@configure_input@
,$configure_input,;t t
8913 s
,@srcdir@
,$ac_srcdir,;t t
8914 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8915 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8916 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8917 s
,@builddir@
,$ac_builddir,;t t
8918 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8919 s
,@top_builddir@
,$ac_top_builddir,;t t
8920 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8921 s
,@INSTALL@
,$ac_INSTALL,;t t
8922 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8924 if test x"$ac_file" != x-; then
8925 mv $tmp/out $ac_file
8933 cat >>$CONFIG_STATUS <<\_ACEOF
8936 # CONFIG_HEADER section.
8939 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8940 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8942 # ac_d sets the value in "#define NAME VALUE" lines.
8943 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8944 ac_dB
='[ ].*$,\1#\2'
8947 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8948 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8949 ac_uB
='$,\1#\2define\3'
8953 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8956 - |
*:- |
*:-:* ) # input from stdin
8958 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8959 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8960 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8961 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8962 * ) ac_file_in
=$ac_file.
in ;;
8965 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8966 echo "$as_me: creating $ac_file" >&6;}
8968 # First look for the input files in the build tree, otherwise in the
8970 ac_file_inputs
=`IFS=:
8971 for f in $ac_file_in; do
8973 -) echo $tmp/stdin ;;
8975 # Absolute (can't be DOS-style, as IFS=:)
8976 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8977 echo "$as_me: error: cannot find input file: $f" >&2;}
8978 { (exit 1); exit 1; }; }
8979 # Do quote $f, to prevent DOS paths from being IFS'd.
8982 if test -f "$f"; then
8985 elif test -f "$srcdir/$f"; then
8990 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8991 echo "$as_me: error: cannot find input file: $f" >&2;}
8992 { (exit 1); exit 1; }; }
8995 done` ||
{ (exit 1); exit 1; }
8996 # Remove the trailing spaces.
8997 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9001 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9002 # `conftest.undefs', that substitutes the proper values into
9003 # config.h.in to produce config.h. The first handles `#define'
9004 # templates, and the second `#undef' templates.
9005 # And first: Protect against being on the right side of a sed subst in
9006 # config.status. Protect against being in an unquoted here document
9008 rm -f conftest.defines conftest.undefs
9009 # Using a here document instead of a string reduces the quoting nightmare.
9010 # Putting comments in sed scripts is not portable.
9012 # `end' is used to avoid that the second main sed command (meant for
9013 # 0-ary CPP macros) applies to n-ary macro definitions.
9014 # See the Autoconf documentation for `clear'.
9015 cat >confdef2sed.
sed <<\_ACEOF
9020 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9022 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9025 # If some macros were called several times there might be several times
9026 # the same #defines, which is useless. Nevertheless, we may not want to
9027 # sort them, since we want the *last* AC-DEFINE to be honored.
9028 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9029 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9030 rm -f confdef2sed.sed
9032 # This sed command replaces #undef with comments. This is necessary, for
9033 # example, in the case of _POSIX_SOURCE, which is predefined and required
9034 # on some systems where configure will not decide to define it.
9035 cat >>conftest.undefs <<\_ACEOF
9036 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9039 # Break up conftest.defines because some shells have a limit on the size
9040 # of here documents, and old seds have small limits too (100 cmds).
9041 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9042 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9043 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9044 echo ' :' >>$CONFIG_STATUS
9046 while grep . conftest.defines >/dev/null
9048 # Write a limited-size here document to $tmp/defines.sed.
9049 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9050 # Speed up: don't consider the non `#define' lines.
9051 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9052 # Work around the forget-to-reset-the-flag bug.
9053 echo 't clr' >>$CONFIG_STATUS
9054 echo ': clr' >>$CONFIG_STATUS
9055 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9057 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9061 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9062 rm -f conftest.defines
9063 mv conftest.
tail conftest.defines
9065 rm -f conftest.defines
9066 echo ' fi # grep' >>$CONFIG_STATUS
9067 echo >>$CONFIG_STATUS
9069 # Break up conftest.undefs because some shells have a limit on the size
9070 # of here documents, and old seds have small limits too (100 cmds).
9071 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9073 while grep . conftest.undefs
>/dev
/null
9075 # Write a limited-size here document to $tmp/undefs.sed.
9076 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9077 # Speed up: don't consider the non
`#undef'
9078 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9079 # Work around the forget-to-reset-the-flag bug.
9080 echo 't clr' >>$CONFIG_STATUS
9081 echo ': clr' >>$CONFIG_STATUS
9082 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9084 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9088 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9089 rm -f conftest.undefs
9090 mv conftest.tail conftest.undefs
9092 rm -f conftest.undefs
9094 cat >>$CONFIG_STATUS <<\_ACEOF
9095 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9096 # use $as_me), people would be surprised to read:
9097 # /* config.h. Generated by config.status. */
9098 if test x
"$ac_file" = x-
; then
9099 echo "/* Generated by configure. */" >$tmp/config.h
9101 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9103 cat $tmp/in >>$tmp/config.h
9105 if test x
"$ac_file" != x-
; then
9106 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9107 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9108 echo "$as_me: $ac_file is unchanged" >&6;}
9110 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9112 X"$ac_file" : 'X\(//\)[^/]' \| \
9113 X"$ac_file" : 'X\(//\)$' \| \
9114 X"$ac_file" : 'X\(/\)' \| \
9115 . : '\(.\)' 2>/dev/null ||
9117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9119 /^X\(\/\/\)$/{ s//\1/; q; }
9120 /^X\(\/\).*/{ s//\1/; q; }
9122 { if $as_mkdir_p; then
9127 while test ! -d "$as_dir"; do
9128 as_dirs
="$as_dir $as_dirs"
9129 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9131 X"$as_dir" : 'X\(//\)[^/]' \| \
9132 X"$as_dir" : 'X\(//\)$' \| \
9133 X"$as_dir" : 'X\(/\)' \| \
9134 . : '\(.\)' 2>/dev/null ||
9136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9138 /^X\(\/\/\)$/{ s//\1/; q; }
9139 /^X\(\/\).*/{ s//\1/; q; }
9142 test ! -n "$as_dirs" || mkdir
$as_dirs
9143 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9144 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9145 { (exit 1); exit 1; }; }; }
9148 mv $tmp/config.h
$ac_file
9156 cat >>$CONFIG_STATUS <<\_ACEOF
9159 # CONFIG_LINKS section.
9162 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
9163 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9164 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9166 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9167 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9169 if test ! -r $srcdir/$ac_source; then
9170 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9171 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9172 { (exit 1); exit 1; }; }
9176 # Make relative symlinks.
9177 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9178 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9179 X"$ac_dest" : 'X\(//\)[^/]' \| \
9180 X"$ac_dest" : 'X\(//\)$' \| \
9181 X"$ac_dest" : 'X\(/\)' \| \
9182 . : '\(.\)' 2>/dev/null ||
9184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9186 /^X\(\/\/\)$/{ s//\1/; q; }
9187 /^X\(\/\).*/{ s//\1/; q; }
9189 { if $as_mkdir_p; then
9190 mkdir
-p "$ac_dest_dir"
9192 as_dir
="$ac_dest_dir"
9194 while test ! -d "$as_dir"; do
9195 as_dirs
="$as_dir $as_dirs"
9196 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9198 X"$as_dir" : 'X\(//\)[^/]' \| \
9199 X"$as_dir" : 'X\(//\)$' \| \
9200 X"$as_dir" : 'X\(/\)' \| \
9201 . : '\(.\)' 2>/dev/null ||
9203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9205 /^X\(\/\/\)$/{ s//\1/; q; }
9206 /^X\(\/\).*/{ s//\1/; q; }
9209 test ! -n "$as_dirs" || mkdir
$as_dirs
9210 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9211 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9212 { (exit 1); exit 1; }; }; }
9216 if test "$ac_dest_dir" != .
; then
9217 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9218 # A "../" for each directory in $ac_dir_suffix.
9219 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9221 ac_dir_suffix
= ac_top_builddir
=
9225 .
) # No --srcdir option. We are building in place.
9227 if test -z "$ac_top_builddir"; then
9230 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9232 [\\/]* | ?
:[\\/]* ) # Absolute path.
9233 ac_srcdir
=$srcdir$ac_dir_suffix;
9234 ac_top_srcdir
=$srcdir ;;
9236 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9237 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9240 # Do not use `cd foo && pwd` to compute absolute paths, because
9241 # the directories may not exist.
9243 .
) ac_abs_builddir
="$ac_dest_dir";;
9245 case "$ac_dest_dir" in
9246 .
) ac_abs_builddir
=`pwd`;;
9247 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
9248 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
9251 case $ac_abs_builddir in
9252 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9254 case ${ac_top_builddir}.
in
9255 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9256 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9257 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9260 case $ac_abs_builddir in
9261 .
) ac_abs_srcdir
=$ac_srcdir;;
9264 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9265 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9266 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9269 case $ac_abs_builddir in
9270 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9272 case $ac_top_srcdir in
9273 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9274 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9275 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9281 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9282 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
9285 # Try a symlink, then a hard link, then a copy.
9286 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
9287 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
9288 cp -p $srcdir/$ac_source $ac_dest ||
9289 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9290 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9291 { (exit 1); exit 1; }; }
9294 cat >>$CONFIG_STATUS <<\_ACEOF
9297 # CONFIG_COMMANDS section.
9299 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9300 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9301 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9302 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9303 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9304 X"$ac_dest" : 'X\(//\)[^/]' \| \
9305 X"$ac_dest" : 'X\(//\)$' \| \
9306 X"$ac_dest" : 'X\(/\)' \| \
9307 . : '\(.\)' 2>/dev/null ||
9309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9311 /^X\(\/\/\)$/{ s//\1/; q; }
9312 /^X\(\/\).*/{ s//\1/; q; }
9314 { if $as_mkdir_p; then
9319 while test ! -d "$as_dir"; do
9320 as_dirs
="$as_dir $as_dirs"
9321 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9323 X"$as_dir" : 'X\(//\)[^/]' \| \
9324 X"$as_dir" : 'X\(//\)$' \| \
9325 X"$as_dir" : 'X\(/\)' \| \
9326 . : '\(.\)' 2>/dev/null ||
9328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9330 /^X\(\/\/\)$/{ s//\1/; q; }
9331 /^X\(\/\).*/{ s//\1/; q; }
9334 test ! -n "$as_dirs" || mkdir
$as_dirs
9335 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9337 { (exit 1); exit 1; }; }; }
9341 if test "$ac_dir" != .
; then
9342 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9343 # A "../" for each directory in $ac_dir_suffix.
9344 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9346 ac_dir_suffix
= ac_top_builddir
=
9350 .
) # No --srcdir option. We are building in place.
9352 if test -z "$ac_top_builddir"; then
9355 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9357 [\\/]* | ?
:[\\/]* ) # Absolute path.
9358 ac_srcdir
=$srcdir$ac_dir_suffix;
9359 ac_top_srcdir
=$srcdir ;;
9361 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9362 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9365 # Do not use `cd foo && pwd` to compute absolute paths, because
9366 # the directories may not exist.
9368 .
) ac_abs_builddir
="$ac_dir";;
9371 .
) ac_abs_builddir
=`pwd`;;
9372 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9373 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9376 case $ac_abs_builddir in
9377 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9379 case ${ac_top_builddir}.
in
9380 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9381 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9382 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9385 case $ac_abs_builddir in
9386 .
) ac_abs_srcdir
=$ac_srcdir;;
9389 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9390 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9391 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9394 case $ac_abs_builddir in
9395 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9397 case $ac_top_srcdir in
9398 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9399 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9400 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9405 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9406 echo "$as_me: executing $ac_dest commands" >&6;}
9408 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9409 rm -f Makesim1.tmp Makesim2.tmp Makefile
9410 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
9411 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
9412 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9413 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9414 <Makefile.sim
>Makefile
9415 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9417 stamp-h
) echo > stamp-h
;;
9422 cat >>$CONFIG_STATUS <<\_ACEOF
9424 { (exit 0); exit 0; }
9426 chmod +x
$CONFIG_STATUS
9427 ac_clean_files
=$ac_clean_files_save
9430 # configure is writing to config.log, and then calls config.status.
9431 # config.status does its own redirection, appending to config.log.
9432 # Unfortunately, on DOS this fails, as config.log is still kept open
9433 # by configure, so config.status won't be able to write to it; its
9434 # output is simply discarded. So we exec the FD to /dev/null,
9435 # effectively closing config.log, so it can be properly (re)opened and
9436 # appended to by config.status. When coming back to configure, we
9437 # need to make the FD available again.
9438 if test "$no_create" != yes; then
9440 ac_config_status_args
=
9441 test "$silent" = yes &&
9442 ac_config_status_args
="$ac_config_status_args --quiet"
9444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9447 # would make configure fail if this is the last instruction.
9448 $ac_cs_success ||
{ (exit 1); exit 1; }