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
4839 cat >>confdefs.h
<<\_ACEOF
4840 #define HAVE_STPCPY 1
4845 if test $ac_cv_header_locale_h = yes; then
4846 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4847 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4848 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 cat >conftest.
$ac_ext <<_ACEOF
4854 cat confdefs.h
>>conftest.
$ac_ext
4855 cat >>conftest.
$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4866 rm -f conftest.
$ac_objext conftest
$ac_exeext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4868 (eval $ac_link) 2>conftest.er1
4870 grep -v '^ *+' conftest.er1
>conftest.err
4872 cat conftest.err
>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try
='test -z "$ac_c_werror_flag"
4876 || test ! -s conftest.err'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try
='test -s conftest$ac_exeext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 am_cv_val_LC_MESSAGES
=yes
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.
$ac_ext >&5
4893 am_cv_val_LC_MESSAGES
=no
4895 rm -f conftest.err conftest.
$ac_objext \
4896 conftest
$ac_exeext conftest.
$ac_ext
4898 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4899 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4900 if test $am_cv_val_LC_MESSAGES = yes; then
4901 cat >>confdefs.h
<<\_ACEOF
4902 #define HAVE_LC_MESSAGES 1
4907 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4908 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4909 # Check whether --enable-nls or --disable-nls was given.
4910 if test "${enable_nls+set}" = set; then
4911 enableval
="$enable_nls"
4916 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4917 echo "${ECHO_T}$USE_NLS" >&6
4920 USE_INCLUDED_LIBINTL
=no
4922 if test "$USE_NLS" = "yes"; then
4923 cat >>confdefs.h
<<\_ACEOF
4924 #define ENABLE_NLS 1
4927 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4928 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4930 # Check whether --with-included-gettext or --without-included-gettext was given.
4931 if test "${with_included_gettext+set}" = set; then
4932 withval
="$with_included_gettext"
4933 nls_cv_force_use_gnu_gettext
=$withval
4935 nls_cv_force_use_gnu_gettext
=no
4937 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4938 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4940 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4941 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4943 nls_cv_header_libgt
=
4946 if test "${ac_cv_header_libintl_h+set}" = set; then
4947 echo "$as_me:$LINENO: checking for libintl.h" >&5
4948 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4949 if test "${ac_cv_header_libintl_h+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4953 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4955 # Is the header compilable?
4956 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4957 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4958 cat >conftest.
$ac_ext <<_ACEOF
4961 cat confdefs.h
>>conftest.
$ac_ext
4962 cat >>conftest.
$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4965 #include <libintl.h>
4967 rm -f conftest.
$ac_objext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4969 (eval $ac_compile) 2>conftest.er1
4971 grep -v '^ *+' conftest.er1
>conftest.err
4973 cat conftest.err
>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try
='test -z "$ac_c_werror_flag"
4977 || test ! -s conftest.err'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; } &&
4983 { ac_try
='test -s conftest.$ac_objext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_header_compiler
=yes
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.
$ac_ext >&5
4994 ac_header_compiler
=no
4996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4998 echo "${ECHO_T}$ac_header_compiler" >&6
5000 # Is the header present?
5001 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5002 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5003 cat >conftest.
$ac_ext <<_ACEOF
5006 cat confdefs.h
>>conftest.
$ac_ext
5007 cat >>conftest.
$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 #include <libintl.h>
5011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5012 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5014 grep -v '^ *+' conftest.er1
>conftest.err
5016 cat conftest.err
>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } >/dev
/null
; then
5019 if test -s conftest.err
; then
5020 ac_cpp_err
=$ac_c_preproc_warn_flag
5021 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5028 if test -z "$ac_cpp_err"; then
5029 ac_header_preproc
=yes
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.
$ac_ext >&5
5034 ac_header_preproc
=no
5036 rm -f conftest.err conftest.
$ac_ext
5037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5038 echo "${ECHO_T}$ac_header_preproc" >&6
5040 # So? What about this header?
5041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5043 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5044 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5045 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5046 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5047 ac_header_preproc
=yes
5050 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5051 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5053 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5054 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5055 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5056 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5057 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5058 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5059 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5060 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5061 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5064 ## ------------------------------------------ ##
5065 ## Report this to the AC_PACKAGE_NAME lists. ##
5066 ## ------------------------------------------ ##
5069 sed "s/^/$as_me: WARNING: /" >&2
5072 echo "$as_me:$LINENO: checking for libintl.h" >&5
5073 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5074 if test "${ac_cv_header_libintl_h+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 ac_cv_header_libintl_h
=$ac_header_preproc
5079 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5080 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5083 if test $ac_cv_header_libintl_h = yes; then
5084 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5085 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5086 if test "${gt_cv_func_gettext_libc+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 cat >conftest.
$ac_ext <<_ACEOF
5092 cat confdefs.h
>>conftest.
$ac_ext
5093 cat >>conftest.
$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 #include <libintl.h>
5099 return (int) gettext ("")
5104 rm -f conftest.
$ac_objext conftest
$ac_exeext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106 (eval $ac_link) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1
>conftest.err
5110 cat conftest.err
>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try
='test -z "$ac_c_werror_flag"
5114 || test ! -s conftest.err'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try
='test -s conftest$ac_exeext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5126 gt_cv_func_gettext_libc
=yes
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.
$ac_ext >&5
5131 gt_cv_func_gettext_libc
=no
5133 rm -f conftest.err conftest.
$ac_objext \
5134 conftest
$ac_exeext conftest.
$ac_ext
5136 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5137 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5139 if test "$gt_cv_func_gettext_libc" != "yes"; then
5140 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5141 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5142 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 ac_check_lib_save_LIBS
=$LIBS
5147 cat >conftest.
$ac_ext <<_ACEOF
5150 cat confdefs.h
>>conftest.
$ac_ext
5151 cat >>conftest.
$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5154 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5160 char bindtextdomain ();
5169 rm -f conftest.
$ac_objext conftest
$ac_exeext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5171 (eval $ac_link) 2>conftest.er1
5173 grep -v '^ *+' conftest.er1
>conftest.err
5175 cat conftest.err
>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } &&
5178 { ac_try
='test -z "$ac_c_werror_flag"
5179 || test ! -s conftest.err'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; } &&
5185 { ac_try
='test -s conftest$ac_exeext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5191 ac_cv_lib_intl_bindtextdomain
=yes
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.
$ac_ext >&5
5196 ac_cv_lib_intl_bindtextdomain
=no
5198 rm -f conftest.err conftest.
$ac_objext \
5199 conftest
$ac_exeext conftest.
$ac_ext
5200 LIBS
=$ac_check_lib_save_LIBS
5202 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5203 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5204 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5205 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5206 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5207 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 cat >conftest.
$ac_ext <<_ACEOF
5213 cat confdefs.h
>>conftest.
$ac_ext
5214 cat >>conftest.
$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5220 return (int) gettext ("")
5225 rm -f conftest.
$ac_objext conftest
$ac_exeext
5226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5227 (eval $ac_link) 2>conftest.er1
5229 grep -v '^ *+' conftest.er1
>conftest.err
5231 cat conftest.err
>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } &&
5234 { ac_try
='test -z "$ac_c_werror_flag"
5235 || test ! -s conftest.err'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; } &&
5241 { ac_try
='test -s conftest$ac_exeext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 gt_cv_func_gettext_libintl
=yes
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.
$ac_ext >&5
5252 gt_cv_func_gettext_libintl
=no
5254 rm -f conftest.err conftest.
$ac_objext \
5255 conftest
$ac_exeext conftest.
$ac_ext
5257 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5258 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5263 if test "$gt_cv_func_gettext_libc" = "yes" \
5264 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5265 cat >>confdefs.h
<<\_ACEOF
5266 #define HAVE_GETTEXT 1
5269 # Extract the first word of "msgfmt", so it can be a program name with args.
5270 set dummy msgfmt
; ac_word
=$2
5271 echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273 if test "${ac_cv_path_MSGFMT+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5281 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5282 for ac_dir
in $PATH; do
5283 test -z "$ac_dir" && ac_dir
=.
5284 if test -f $ac_dir/$ac_word; then
5285 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5286 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5292 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5296 MSGFMT
="$ac_cv_path_MSGFMT"
5297 if test -n "$MSGFMT"; then
5298 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5299 echo "${ECHO_T}$MSGFMT" >&6
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5304 if test "$MSGFMT" != "no"; then
5306 for ac_func
in dcgettext
5308 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5309 echo "$as_me:$LINENO: checking for $ac_func" >&5
5310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5311 if eval "test \"\${$as_ac_var+set}\" = set"; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 cat >conftest.
$ac_ext <<_ACEOF
5317 cat confdefs.h
>>conftest.
$ac_ext
5318 cat >>conftest.
$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5322 #define $ac_func innocuous_$ac_func
5324 /* System header to define __stub macros and hopefully few prototypes,
5325 which can conflict with char $ac_func (); below.
5326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 <limits.h> exists even on freestanding compilers. */
5330 # include <limits.h>
5332 # include <assert.h>
5337 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5345 /* The GNU C library defines this for functions which it implements
5346 to always fail with ENOSYS. Some functions are actually named
5347 something starting with __ and the normal name is an alias. */
5348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5351 char (*f) () = $ac_func;
5360 return f != $ac_func;
5365 rm -f conftest.
$ac_objext conftest
$ac_exeext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367 (eval $ac_link) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1
>conftest.err
5371 cat conftest.err
>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try
='test -z "$ac_c_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try
='test -s conftest$ac_exeext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 eval "$as_ac_var=yes"
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.
$ac_ext >&5
5392 eval "$as_ac_var=no"
5394 rm -f conftest.err conftest.
$ac_objext \
5395 conftest
$ac_exeext conftest.
$ac_ext
5397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5399 if test `eval echo '${'$as_ac_var'}'` = yes; then
5400 cat >>confdefs.h
<<_ACEOF
5401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5407 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5408 set dummy gmsgfmt
; ac_word
=$2
5409 echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5423 test -z "$as_dir" && as_dir
=.
5424 for ac_exec_ext
in '' $ac_executable_extensions; do
5425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5437 GMSGFMT
=$ac_cv_path_GMSGFMT
5439 if test -n "$GMSGFMT"; then
5440 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5441 echo "${ECHO_T}$GMSGFMT" >&6
5443 echo "$as_me:$LINENO: result: no" >&5
5444 echo "${ECHO_T}no" >&6
5447 # Extract the first word of "xgettext", so it can be a program name with args.
5448 set dummy xgettext
; ac_word
=$2
5449 echo "$as_me:$LINENO: checking for $ac_word" >&5
5450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5451 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5459 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5460 for ac_dir
in $PATH; do
5461 test -z "$ac_dir" && ac_dir
=.
5462 if test -f $ac_dir/$ac_word; then
5463 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5464 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5470 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5474 XGETTEXT
="$ac_cv_path_XGETTEXT"
5475 if test -n "$XGETTEXT"; then
5476 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5477 echo "${ECHO_T}$XGETTEXT" >&6
5479 echo "$as_me:$LINENO: result: no" >&5
5480 echo "${ECHO_T}no" >&6
5483 cat >conftest.
$ac_ext <<_ACEOF
5486 cat confdefs.h
>>conftest.
$ac_ext
5487 cat >>conftest.
$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5493 extern int _nl_msg_cat_cntr;
5494 return _nl_msg_cat_cntr
5499 rm -f conftest.
$ac_objext conftest
$ac_exeext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5501 (eval $ac_link) 2>conftest.er1
5503 grep -v '^ *+' conftest.er1
>conftest.err
5505 cat conftest.err
>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try
='test -z "$ac_c_werror_flag"
5509 || test ! -s conftest.err'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try
='test -s conftest$ac_exeext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.
$ac_ext >&5
5530 rm -f conftest.err conftest.
$ac_objext \
5531 conftest
$ac_exeext conftest.
$ac_ext
5541 if test "$CATOBJEXT" = "NONE"; then
5542 nls_cv_use_gnu_gettext
=yes
5546 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5547 INTLOBJS
="\$(GETTOBJS)"
5548 # Extract the first word of "msgfmt", so it can be a program name with args.
5549 set dummy msgfmt
; ac_word
=$2
5550 echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552 if test "${ac_cv_path_MSGFMT+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5560 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5561 for ac_dir
in $PATH; do
5562 test -z "$ac_dir" && ac_dir
=.
5563 if test -f $ac_dir/$ac_word; then
5564 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5565 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5571 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5575 MSGFMT
="$ac_cv_path_MSGFMT"
5576 if test -n "$MSGFMT"; then
5577 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5578 echo "${ECHO_T}$MSGFMT" >&6
5580 echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5584 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5585 set dummy gmsgfmt
; ac_word
=$2
5586 echo "$as_me:$LINENO: checking for $ac_word" >&5
5587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5600 test -z "$as_dir" && as_dir
=.
5601 for ac_exec_ext
in '' $ac_executable_extensions; do
5602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5614 GMSGFMT
=$ac_cv_path_GMSGFMT
5616 if test -n "$GMSGFMT"; then
5617 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5618 echo "${ECHO_T}$GMSGFMT" >&6
5620 echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5624 # Extract the first word of "xgettext", so it can be a program name with args.
5625 set dummy xgettext
; ac_word
=$2
5626 echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5636 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5637 for ac_dir
in $PATH; do
5638 test -z "$ac_dir" && ac_dir
=.
5639 if test -f $ac_dir/$ac_word; then
5640 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5641 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5647 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5651 XGETTEXT
="$ac_cv_path_XGETTEXT"
5652 if test -n "$XGETTEXT"; then
5653 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5654 echo "${ECHO_T}$XGETTEXT" >&6
5656 echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5661 USE_INCLUDED_LIBINTL
=yes
5665 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5667 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5668 nls_cv_header_intl
=libintl.h
5669 nls_cv_header_libgt
=libgettext.h
5672 if test "$XGETTEXT" != ":"; then
5673 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5676 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5677 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5682 # We need to process the po/ directory.
5686 nls_cv_header_intl
=libintl.h
5687 nls_cv_header_libgt
=libgettext.h
5690 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5691 # because some of the sources are only built for this goal.
5692 if test "$PACKAGE" = gettext; then
5694 USE_INCLUDED_LIBINTL
=yes
5697 for lang
in $ALL_LINGUAS; do
5698 GMOFILES
="$GMOFILES $lang.gmo"
5699 POFILES
="$POFILES $lang.po"
5715 if test "x$CATOBJEXT" != "x"; then
5716 if test "x$ALL_LINGUAS" = "x"; then
5719 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5720 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5722 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5723 case "$ALL_LINGUAS" in
5724 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5727 LINGUAS
=$NEW_LINGUAS
5728 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5729 echo "${ECHO_T}$LINGUAS" >&6
5732 if test -n "$LINGUAS"; then
5733 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5737 if test $ac_cv_header_locale_h = yes; then
5738 INCLUDE_LOCALE_H
="#include <locale.h>"
5741 /* The system does not provide the header <locale.h>. Take care yourself. */"
5745 if test -f $srcdir/po2tbl.
sed.
in; then
5746 if test "$CATOBJEXT" = ".cat"; then
5747 if test "${ac_cv_header_linux_version_h+set}" = set; then
5748 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5749 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5750 if test "${ac_cv_header_linux_version_h+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5754 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5756 # Is the header compilable?
5757 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5758 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5759 cat >conftest.
$ac_ext <<_ACEOF
5762 cat confdefs.h
>>conftest.
$ac_ext
5763 cat >>conftest.
$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 $ac_includes_default
5766 #include <linux/version.h>
5768 rm -f conftest.
$ac_objext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>conftest.er1
5772 grep -v '^ *+' conftest.er1
>conftest.err
5774 cat conftest.err
>&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try
='test -z "$ac_c_werror_flag"
5778 || test ! -s conftest.err'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; } &&
5784 { ac_try
='test -s conftest.$ac_objext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 ac_header_compiler
=yes
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.
$ac_ext >&5
5795 ac_header_compiler
=no
5797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5799 echo "${ECHO_T}$ac_header_compiler" >&6
5801 # Is the header present?
5802 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5803 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5804 cat >conftest.
$ac_ext <<_ACEOF
5807 cat confdefs.h
>>conftest.
$ac_ext
5808 cat >>conftest.
$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <linux/version.h>
5812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } >/dev
/null
; then
5820 if test -s conftest.err
; then
5821 ac_cpp_err
=$ac_c_preproc_warn_flag
5822 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5829 if test -z "$ac_cpp_err"; then
5830 ac_header_preproc
=yes
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.
$ac_ext >&5
5835 ac_header_preproc
=no
5837 rm -f conftest.err conftest.
$ac_ext
5838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5839 echo "${ECHO_T}$ac_header_preproc" >&6
5841 # So? What about this header?
5842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5844 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5845 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5846 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5847 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5848 ac_header_preproc
=yes
5851 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5852 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5853 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5854 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5855 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5856 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5858 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5859 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5860 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5862 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5865 ## ------------------------------------------ ##
5866 ## Report this to the AC_PACKAGE_NAME lists. ##
5867 ## ------------------------------------------ ##
5870 sed "s/^/$as_me: WARNING: /" >&2
5873 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5874 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5875 if test "${ac_cv_header_linux_version_h+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_cv_header_linux_version_h
=$ac_header_preproc
5880 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5881 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5884 if test $ac_cv_header_linux_version_h = yes; then
5892 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5894 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5895 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5898 if test "$PACKAGE" = "gettext"; then
5908 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5914 if test -d $srcdir/po
; then
5915 test -d po || mkdir po
5916 if test "x$srcdir" != "x."; then
5917 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5918 posrcprefix
="$srcdir/"
5920 posrcprefix
="../$srcdir/"
5926 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5927 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5931 # Check for common headers.
5932 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5933 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5939 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5941 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5943 echo "$as_me:$LINENO: checking for $ac_header" >&5
5944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5951 # Is the header compilable?
5952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5954 cat >conftest.
$ac_ext <<_ACEOF
5957 cat confdefs.h
>>conftest.
$ac_ext
5958 cat >>conftest.
$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5961 #include <$ac_header>
5963 rm -f conftest.
$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5967 grep -v '^ *+' conftest.er1
>conftest.err
5969 cat conftest.err
>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try
='test -z "$ac_c_werror_flag"
5973 || test ! -s conftest.err'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; } &&
5979 { ac_try
='test -s conftest.$ac_objext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 ac_header_compiler
=yes
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.
$ac_ext >&5
5990 ac_header_compiler
=no
5992 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5994 echo "${ECHO_T}$ac_header_compiler" >&6
5996 # Is the header present?
5997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5999 cat >conftest.
$ac_ext <<_ACEOF
6002 cat confdefs.h
>>conftest.
$ac_ext
6003 cat >>conftest.
$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #include <$ac_header>
6007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6008 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6010 grep -v '^ *+' conftest.er1
>conftest.err
6012 cat conftest.err
>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev
/null
; then
6015 if test -s conftest.err
; then
6016 ac_cpp_err
=$ac_c_preproc_warn_flag
6017 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6024 if test -z "$ac_cpp_err"; then
6025 ac_header_preproc
=yes
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.
$ac_ext >&5
6030 ac_header_preproc
=no
6032 rm -f conftest.err conftest.
$ac_ext
6033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6034 echo "${ECHO_T}$ac_header_preproc" >&6
6036 # So? What about this header?
6037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6043 ac_header_preproc
=yes
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6060 ## ------------------------------------------ ##
6061 ## Report this to the AC_PACKAGE_NAME lists. ##
6062 ## ------------------------------------------ ##
6065 sed "s/^/$as_me: WARNING: /" >&2
6068 echo "$as_me:$LINENO: checking for $ac_header" >&5
6069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 eval "$as_ac_Header=\$ac_header_preproc"
6075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6080 cat >>confdefs.h
<<_ACEOF
6081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6090 for ac_header
in sys
/time.h sys
/resource.h
6092 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6094 echo "$as_me:$LINENO: checking for $ac_header" >&5
6095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6102 # Is the header compilable?
6103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6105 cat >conftest.
$ac_ext <<_ACEOF
6108 cat confdefs.h
>>conftest.
$ac_ext
6109 cat >>conftest.
$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 $ac_includes_default
6112 #include <$ac_header>
6114 rm -f conftest.
$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6118 grep -v '^ *+' conftest.er1
>conftest.err
6120 cat conftest.err
>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try
='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try
='test -s conftest.$ac_objext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_header_compiler
=yes
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.
$ac_ext >&5
6141 ac_header_compiler
=no
6143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6145 echo "${ECHO_T}$ac_header_compiler" >&6
6147 # Is the header present?
6148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6150 cat >conftest.
$ac_ext <<_ACEOF
6153 cat confdefs.h
>>conftest.
$ac_ext
6154 cat >>conftest.
$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <$ac_header>
6158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6161 grep -v '^ *+' conftest.er1
>conftest.err
6163 cat conftest.err
>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev
/null
; then
6166 if test -s conftest.err
; then
6167 ac_cpp_err
=$ac_c_preproc_warn_flag
6168 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6175 if test -z "$ac_cpp_err"; then
6176 ac_header_preproc
=yes
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.
$ac_ext >&5
6181 ac_header_preproc
=no
6183 rm -f conftest.err conftest.
$ac_ext
6184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6185 echo "${ECHO_T}$ac_header_preproc" >&6
6187 # So? What about this header?
6188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6194 ac_header_preproc
=yes
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6211 ## ------------------------------------------ ##
6212 ## Report this to the AC_PACKAGE_NAME lists. ##
6213 ## ------------------------------------------ ##
6216 sed "s/^/$as_me: WARNING: /" >&2
6219 echo "$as_me:$LINENO: checking for $ac_header" >&5
6220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 eval "$as_ac_Header=\$ac_header_preproc"
6226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6231 cat >>confdefs.h
<<_ACEOF
6232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6241 for ac_header
in fcntl.h fpu_control.h
6243 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo "$as_me:$LINENO: checking for $ac_header" >&5
6246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6253 # Is the header compilable?
6254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6256 cat >conftest.
$ac_ext <<_ACEOF
6259 cat confdefs.h
>>conftest.
$ac_ext
6260 cat >>conftest.
$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6263 #include <$ac_header>
6265 rm -f conftest.
$ac_objext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>conftest.er1
6269 grep -v '^ *+' conftest.er1
>conftest.err
6271 cat conftest.err
>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try
='test -z "$ac_c_werror_flag"
6275 || test ! -s conftest.err'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try
='test -s conftest.$ac_objext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_header_compiler
=yes
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.
$ac_ext >&5
6292 ac_header_compiler
=no
6294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6296 echo "${ECHO_T}$ac_header_compiler" >&6
6298 # Is the header present?
6299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6301 cat >conftest.
$ac_ext <<_ACEOF
6304 cat confdefs.h
>>conftest.
$ac_ext
6305 cat >>conftest.
$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 #include <$ac_header>
6309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6310 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6312 grep -v '^ *+' conftest.er1
>conftest.err
6314 cat conftest.err
>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } >/dev
/null
; then
6317 if test -s conftest.err
; then
6318 ac_cpp_err
=$ac_c_preproc_warn_flag
6319 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6326 if test -z "$ac_cpp_err"; then
6327 ac_header_preproc
=yes
6329 echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.
$ac_ext >&5
6332 ac_header_preproc
=no
6334 rm -f conftest.err conftest.
$ac_ext
6335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6336 echo "${ECHO_T}$ac_header_preproc" >&6
6338 # So? What about this header?
6339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6345 ac_header_preproc
=yes
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6362 ## ------------------------------------------ ##
6363 ## Report this to the AC_PACKAGE_NAME lists. ##
6364 ## ------------------------------------------ ##
6367 sed "s/^/$as_me: WARNING: /" >&2
6370 echo "$as_me:$LINENO: checking for $ac_header" >&5
6371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 eval "$as_ac_Header=\$ac_header_preproc"
6377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6382 cat >>confdefs.h
<<_ACEOF
6383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6393 for ac_header
in dlfcn.h errno.h sys
/stat.h
6395 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6397 echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6405 # Is the header compilable?
6406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6408 cat >conftest.
$ac_ext <<_ACEOF
6411 cat confdefs.h
>>conftest.
$ac_ext
6412 cat >>conftest.
$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 $ac_includes_default
6415 #include <$ac_header>
6417 rm -f conftest.
$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try
='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try
='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_header_compiler
=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6444 ac_header_compiler
=no
6446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6448 echo "${ECHO_T}$ac_header_compiler" >&6
6450 # Is the header present?
6451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6453 cat >conftest.
$ac_ext <<_ACEOF
6456 cat confdefs.h
>>conftest.
$ac_ext
6457 cat >>conftest.
$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 #include <$ac_header>
6461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6464 grep -v '^ *+' conftest.er1
>conftest.err
6466 cat conftest.err
>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } >/dev
/null
; then
6469 if test -s conftest.err
; then
6470 ac_cpp_err
=$ac_c_preproc_warn_flag
6471 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6478 if test -z "$ac_cpp_err"; then
6479 ac_header_preproc
=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.
$ac_ext >&5
6484 ac_header_preproc
=no
6486 rm -f conftest.err conftest.
$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488 echo "${ECHO_T}$ac_header_preproc" >&6
6490 # So? What about this header?
6491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6497 ac_header_preproc
=yes
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6514 ## ------------------------------------------ ##
6515 ## Report this to the AC_PACKAGE_NAME lists. ##
6516 ## ------------------------------------------ ##
6519 sed "s/^/$as_me: WARNING: /" >&2
6522 echo "$as_me:$LINENO: checking for $ac_header" >&5
6523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 eval "$as_ac_Header=\$ac_header_preproc"
6529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6534 cat >>confdefs.h
<<_ACEOF
6535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6546 for ac_func
in getrusage
time sigaction __setfpucw
6548 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6549 echo "$as_me:$LINENO: checking for $ac_func" >&5
6550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6551 if eval "test \"\${$as_ac_var+set}\" = set"; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 cat >conftest.
$ac_ext <<_ACEOF
6557 cat confdefs.h
>>conftest.
$ac_ext
6558 cat >>conftest.
$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6562 #define $ac_func innocuous_$ac_func
6564 /* System header to define __stub macros and hopefully few prototypes,
6565 which can conflict with char $ac_func (); below.
6566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6567 <limits.h> exists even on freestanding compilers. */
6570 # include <limits.h>
6572 # include <assert.h>
6577 /* Override any gcc2 internal prototype to avoid an error. */
6582 /* We use char because int might match the return type of a gcc2
6583 builtin and then its argument prototype would still apply. */
6585 /* The GNU C library defines this for functions which it implements
6586 to always fail with ENOSYS. Some functions are actually named
6587 something starting with __ and the normal name is an alias. */
6588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6591 char (*f) () = $ac_func;
6600 return f != $ac_func;
6605 rm -f conftest.
$ac_objext conftest
$ac_exeext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607 (eval $ac_link) 2>conftest.er1
6609 grep -v '^ *+' conftest.er1
>conftest.err
6611 cat conftest.err
>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try
='test -z "$ac_c_werror_flag"
6615 || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try
='test -s conftest$ac_exeext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 eval "$as_ac_var=yes"
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.
$ac_ext >&5
6632 eval "$as_ac_var=no"
6634 rm -f conftest.err conftest.
$ac_objext \
6635 conftest
$ac_exeext conftest.
$ac_ext
6637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6639 if test `eval echo '${'$as_ac_var'}'` = yes; then
6640 cat >>confdefs.h
<<_ACEOF
6641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6648 # Check for socket libraries
6650 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6651 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6652 if test "${ac_cv_lib_socket_bind+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 ac_check_lib_save_LIBS
=$LIBS
6656 LIBS
="-lsocket $LIBS"
6657 cat >conftest.
$ac_ext <<_ACEOF
6660 cat confdefs.h
>>conftest.
$ac_ext
6661 cat >>conftest.
$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6664 /* Override any gcc2 internal prototype to avoid an error. */
6668 /* We use char because int might match the return type of a gcc2
6669 builtin and then its argument prototype would still apply. */
6679 rm -f conftest.
$ac_objext conftest
$ac_exeext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6681 (eval $ac_link) 2>conftest.er1
6683 grep -v '^ *+' conftest.er1
>conftest.err
6685 cat conftest.err
>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try
='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try
='test -s conftest$ac_exeext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_lib_socket_bind
=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.
$ac_ext >&5
6706 ac_cv_lib_socket_bind
=no
6708 rm -f conftest.err conftest.
$ac_objext \
6709 conftest
$ac_exeext conftest.
$ac_ext
6710 LIBS
=$ac_check_lib_save_LIBS
6712 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6713 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6714 if test $ac_cv_lib_socket_bind = yes; then
6715 cat >>confdefs.h
<<_ACEOF
6716 #define HAVE_LIBSOCKET 1
6719 LIBS
="-lsocket $LIBS"
6724 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6725 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6726 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 ac_check_lib_save_LIBS
=$LIBS
6731 cat >conftest.
$ac_ext <<_ACEOF
6734 cat confdefs.h
>>conftest.
$ac_ext
6735 cat >>conftest.
$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6738 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6744 char gethostbyname ();
6753 rm -f conftest.
$ac_objext conftest
$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>conftest.er1
6757 grep -v '^ *+' conftest.er1
>conftest.err
6759 cat conftest.err
>&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try
='test -z "$ac_c_werror_flag"
6763 || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try
='test -s conftest$ac_exeext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_lib_nsl_gethostbyname
=yes
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.
$ac_ext >&5
6780 ac_cv_lib_nsl_gethostbyname
=no
6782 rm -f conftest.err conftest.
$ac_objext \
6783 conftest
$ac_exeext conftest.
$ac_ext
6784 LIBS
=$ac_check_lib_save_LIBS
6786 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6787 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6788 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6789 cat >>confdefs.h
<<_ACEOF
6790 #define HAVE_LIBNSL 1
6798 .
${srcdir}/..
/..
/bfd
/configure.
host
6802 USE_MAINTAINER_MODE
=no
6803 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6804 if test "${enable_maintainer_mode+set}" = set; then
6805 enableval
="$enable_maintainer_mode"
6806 case "${enableval}" in
6807 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6809 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6810 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6811 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6813 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6814 echo "Setting maintainer mode" 6>&1
6821 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6822 if test "${enable_sim_bswap+set}" = set; then
6823 enableval
="$enable_sim_bswap"
6824 case "${enableval}" in
6825 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6826 no
) sim_bswap
="-DWITH_BSWAP=0";;
6827 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6828 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6829 { (exit 1); exit 1; }; }; sim_bswap
="";;
6831 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6832 echo "Setting bswap flags = $sim_bswap" 6>&1
6839 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6840 if test "${enable_sim_cflags+set}" = set; then
6841 enableval
="$enable_sim_cflags"
6842 case "${enableval}" in
6843 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6844 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6845 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6846 { (exit 1); exit 1; }; }; sim_cflags
="";;
6848 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6850 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6851 echo "Setting sim cflags = $sim_cflags" 6>&1
6858 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6859 if test "${enable_sim_debug+set}" = set; then
6860 enableval
="$enable_sim_debug"
6861 case "${enableval}" in
6862 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6863 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6864 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6866 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6867 echo "Setting sim debug = $sim_debug" 6>&1
6874 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6875 if test "${enable_sim_stdio+set}" = set; then
6876 enableval
="$enable_sim_stdio"
6877 case "${enableval}" in
6878 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6879 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6880 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6881 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6882 { (exit 1); exit 1; }; }; sim_stdio
="";;
6884 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6885 echo "Setting stdio flags = $sim_stdio" 6>&1
6892 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6893 if test "${enable_sim_trace+set}" = set; then
6894 enableval
="$enable_sim_trace"
6895 case "${enableval}" in
6896 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6897 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6899 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6902 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6903 if test x
"$sim_trace" = x
; then
6904 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6906 sim_trace
="${sim_trace}|TRACE_$x"
6909 sim_trace
="$sim_trace)'" ;;
6911 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6912 echo "Setting sim trace = $sim_trace" 6>&1
6919 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6920 if test "${enable_sim_profile+set}" = set; then
6921 enableval
="$enable_sim_profile"
6922 case "${enableval}" in
6923 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6924 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6926 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6929 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6930 if test x
"$sim_profile" = x
; then
6931 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6933 sim_profile
="${sim_profile}|PROFILE_$x"
6936 sim_profile
="$sim_profile)'" ;;
6938 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6939 echo "Setting sim profile = $sim_profile" 6>&1
6942 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6946 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6947 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6948 if test "${ac_cv_type_signal+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 cat >conftest.
$ac_ext <<_ACEOF
6954 cat confdefs.h
>>conftest.
$ac_ext
6955 cat >>conftest.
$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 #include <sys/types.h>
6963 extern "C" void (*signal (int, void (*)(int)))(int);
6965 void (*signal ()) ();
6976 rm -f conftest.
$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6980 grep -v '^ *+' conftest.er1
>conftest.err
6982 cat conftest.err
>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try
='test -z "$ac_c_werror_flag"
6986 || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try
='test -s conftest.$ac_objext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 ac_cv_type_signal
=void
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.
$ac_ext >&5
7003 ac_cv_type_signal
=int
7005 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7007 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7008 echo "${ECHO_T}$ac_cv_type_signal" >&6
7010 cat >>confdefs.h
<<_ACEOF
7011 #define RETSIGTYPE $ac_cv_type_signal
7021 sim_link_links
=tconfig.h
7022 if test -f ${srcdir}/tconfig.
in
7024 sim_link_files
=tconfig.
in
7026 sim_link_files
=..
/common
/tconfig.
in
7029 # targ-vals.def points to the libc macro description file.
7031 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
7033 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
7034 sim_link_links
="${sim_link_links} targ-vals.def"
7038 wire_endian
="LITTLE_ENDIAN"
7040 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7041 if test "${enable_sim_endian+set}" = set; then
7042 enableval
="$enable_sim_endian"
7043 case "${enableval}" in
7044 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7045 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7046 yes) if test x
"$wire_endian" != x
; then
7047 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7049 if test x
"$default_endian" != x
; then
7050 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7052 echo "No hard-wired endian for target $target" 1>&6
7053 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
7056 no
) if test x
"$default_endian" != x
; then
7057 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7059 if test x
"$wire_endian" != x
; then
7060 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7062 echo "No default endian for target $target" 1>&6
7063 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7066 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7067 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7068 { (exit 1); exit 1; }; }; sim_endian
="";;
7070 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
7071 echo "Setting endian flags = $sim_endian" 6>&1
7074 if test x
"$default_endian" != x
; then
7075 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7077 if test x
"$wire_endian" != x
; then
7078 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7084 wire_alignment
="NONSTRICT_ALIGNMENT"
7085 default_alignment
=""
7087 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7088 if test "${enable_sim_alignment+set}" = set; then
7089 enableval
="$enable_sim_alignment"
7090 case "${enableval}" in
7091 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7092 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7093 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7094 yes) if test x
"$wire_alignment" != x
; then
7095 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7097 if test x
"$default_alignment" != x
; then
7098 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
7100 echo "No hard-wired alignment for target $target" 1>&6
7101 sim_alignment
="-DWITH_ALIGNMENT=0"
7104 no
) if test x
"$default_alignment" != x
; then
7105 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7107 if test x
"$wire_alignment" != x
; then
7108 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7110 echo "No default alignment for target $target" 1>&6
7111 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
7114 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7115 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7116 { (exit 1); exit 1; }; }; sim_alignment
="";;
7118 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
7119 echo "Setting alignment flags = $sim_alignment" 6>&1
7122 if test x
"$default_alignment" != x
; then
7123 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7125 if test x
"$wire_alignment" != x
; then
7126 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7133 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7134 if test "${enable_sim_hostendian+set}" = set; then
7135 enableval
="$enable_sim_hostendian"
7136 case "${enableval}" in
7137 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
7138 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7139 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7140 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7141 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7142 { (exit 1); exit 1; }; }; sim_hostendian
="";;
7144 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
7145 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7149 if test "x$cross_compiling" = "xno"; then
7150 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7151 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7152 if test "${ac_cv_c_bigendian+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 # See if sys/param.h defines the BYTE_ORDER macro.
7156 cat >conftest.
$ac_ext <<_ACEOF
7159 cat confdefs.h
>>conftest.
$ac_ext
7160 cat >>conftest.
$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <sys/types.h>
7163 #include <sys/param.h>
7168 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7176 rm -f conftest.
$ac_objext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178 (eval $ac_compile) 2>conftest.er1
7180 grep -v '^ *+' conftest.er1
>conftest.err
7182 cat conftest.err
>&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try
='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try
='test -s conftest.$ac_objext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 # It does; now see whether it defined to BIG_ENDIAN or not.
7199 cat >conftest.
$ac_ext <<_ACEOF
7202 cat confdefs.h
>>conftest.
$ac_ext
7203 cat >>conftest.
$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7205 #include <sys/types.h>
7206 #include <sys/param.h>
7211 #if BYTE_ORDER != BIG_ENDIAN
7219 rm -f conftest.
$ac_objext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221 (eval $ac_compile) 2>conftest.er1
7223 grep -v '^ *+' conftest.er1
>conftest.err
7225 cat conftest.err
>&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
7228 { ac_try
='test -z "$ac_c_werror_flag"
7229 || test ! -s conftest.err'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; } &&
7235 { ac_try
='test -s conftest.$ac_objext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
7241 ac_cv_c_bigendian
=yes
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.
$ac_ext >&5
7246 ac_cv_c_bigendian
=no
7248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.
$ac_ext >&5
7253 # It does not; compile a test program.
7254 if test "$cross_compiling" = yes; then
7255 # try to guess the endianness by grepping values into an object file
7256 ac_cv_c_bigendian
=unknown
7257 cat >conftest.
$ac_ext <<_ACEOF
7260 cat confdefs.h
>>conftest.
$ac_ext
7261 cat >>conftest.
$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7264 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7265 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7266 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7267 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7268 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7272 _ascii (); _ebcdic ();
7277 rm -f conftest.
$ac_objext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7279 (eval $ac_compile) 2>conftest.er1
7281 grep -v '^ *+' conftest.er1
>conftest.err
7283 cat conftest.err
>&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
7286 { ac_try
='test -z "$ac_c_werror_flag"
7287 || test ! -s conftest.err'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try
='test -s conftest.$ac_objext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7300 ac_cv_c_bigendian
=yes
7302 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7303 if test "$ac_cv_c_bigendian" = unknown
; then
7304 ac_cv_c_bigendian
=no
7306 # finding both strings is unlikely to happen, but who knows?
7307 ac_cv_c_bigendian
=unknown
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.
$ac_ext >&5
7315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7317 cat >conftest.
$ac_ext <<_ACEOF
7320 cat confdefs.h
>>conftest.
$ac_ext
7321 cat >>conftest.
$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7326 /* Are we little or big endian? From Harbison&Steele. */
7330 char c[sizeof (long)];
7333 exit (u.c[sizeof (long) - 1] == 1);
7336 rm -f conftest
$ac_exeext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338 (eval $ac_link) 2>&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 ac_cv_c_bigendian
=no
7349 echo "$as_me: program exited with status $ac_status" >&5
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.
$ac_ext >&5
7354 ac_cv_c_bigendian
=yes
7356 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7361 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7362 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7363 case $ac_cv_c_bigendian in
7366 cat >>confdefs.h
<<\_ACEOF
7367 #define WORDS_BIGENDIAN 1
7373 { { echo "$as_me:$LINENO: error: unknown endianness
7374 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7375 echo "$as_me: error: unknown endianness
7376 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7377 { (exit 1); exit 1; }; } ;;
7380 if test $ac_cv_c_bigendian = yes; then
7381 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7383 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7386 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7390 # NOTE: Don't add -Wall or -Wunused, they both include
7391 # -Wunused-parameter which reports bogus warnings.
7392 # NOTE: If you add to this list, remember to update
7393 # gdb/doc/gdbint.texinfo.
7394 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7395 -Wformat -Wparentheses -Wpointer-arith"
7396 # GCC supports -Wuninitialized only with -O or -On, n != 0.
7397 if test x
${CFLAGS+set} = xset
; then
7401 build_warnings
="${build_warnings} -Wuninitialized"
7405 build_warnings
="${build_warnings} -Wuninitialized"
7407 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7408 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7409 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7410 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7411 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7412 # -Woverloaded-virtual -Winline -Werror"
7413 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7414 if test "${enable_build_warnings+set}" = set; then
7415 enableval
="$enable_build_warnings"
7416 case "${enableval}" in
7418 no
) build_warnings
="-w";;
7419 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7420 build_warnings
="${build_warnings} ${t}";;
7421 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7422 build_warnings
="${t} ${build_warnings}";;
7423 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7425 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7426 echo "Setting compiler warning flags = $build_warnings" 6>&1
7428 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7429 if test "${enable_sim_build_warnings+set}" = set; then
7430 enableval
="$enable_sim_build_warnings"
7431 case "${enableval}" in
7433 no
) build_warnings
="-w";;
7434 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7435 build_warnings
="${build_warnings} ${t}";;
7436 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7437 build_warnings
="${t} ${build_warnings}";;
7438 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7440 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7441 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7445 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7447 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7448 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7449 # Separate out the -Werror flag as some files just cannot be
7450 # compiled with it enabled.
7451 for w
in ${build_warnings}; do
7453 -Werr*) WERROR_CFLAGS
=-Werror ;;
7454 *) # Check that GCC accepts it
7455 saved_CFLAGS
="$CFLAGS"
7457 cat >conftest.
$ac_ext <<_ACEOF
7460 cat confdefs.h
>>conftest.
$ac_ext
7461 cat >>conftest.
$ac_ext <<_ACEOF
7462 /* end confdefs.h. */
7472 rm -f conftest.
$ac_objext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>conftest.er1
7476 grep -v '^ *+' conftest.er1
>conftest.err
7478 cat conftest.err
>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
7481 { ac_try
='test -z "$ac_c_werror_flag"
7482 || test ! -s conftest.err'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; } &&
7488 { ac_try
='test -s conftest.$ac_objext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.
$ac_ext >&5
7500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7501 CFLAGS
="$saved_CFLAGS"
7504 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7505 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7509 default_sim_reserved_bits
="1"
7510 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7511 if test "${enable_sim_reserved_bits+set}" = set; then
7512 enableval
="$enable_sim_reserved_bits"
7513 case "${enableval}" in
7514 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
7515 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
7516 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7517 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7518 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
7520 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
7521 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7524 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7526 wire_word_bitsize
="32"
7528 wire_address_bitsize
=""
7529 wire_cell_bitsize
=""
7530 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7531 if test "${enable_sim_bitsize+set}" = set; then
7532 enableval
="$enable_sim_bitsize"
7534 case "${enableval}" in
7535 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7536 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7537 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7538 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7539 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7540 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7542 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7544 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7545 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7547 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7549 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7550 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7551 { (exit 1); exit 1; }; } ;;
7554 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7557 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7558 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7559 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7560 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7561 { (exit 1); exit 1; }; } ;;
7564 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7567 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7568 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7569 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7570 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7571 { (exit 1); exit 1; }; } ;;
7573 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
7574 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7578 if test x
"$wire_word_bitsize" != x
; then
7579 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7581 if test x
"$wire_word_msb" != x
; then
7582 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7584 if test x
"$wire_address_bitsize" != x
; then
7585 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7587 if test x
"$wire_cell_bitsize" != x
; then
7588 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7592 default_sim_inline
=""
7593 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7594 if test "${enable_sim_inline+set}" = set; then
7595 enableval
="$enable_sim_inline"
7597 case "$enableval" in
7598 no
) sim_inline
="-DDEFAULT_INLINE=0";;
7599 0) sim_inline
="-DDEFAULT_INLINE=0";;
7600 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
7601 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
7602 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
7605 *_INLINE
=*) new_flag
="-D$x";;
7606 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7607 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
7608 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
7610 if test x
"$sim_inline" = x
""; then
7611 sim_inline
="$new_flag"
7613 sim_inline
="$sim_inline $new_flag"
7617 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
7618 echo "Setting inline flags = $sim_inline" 6>&1
7622 if test "x$cross_compiling" = "xno"; then
7623 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
7624 sim_inline
="${default_sim_inline}"
7625 if test x
"$silent" != x
"yes"; then
7626 echo "Setting inline flags = $sim_inline" 6>&1
7632 sim_inline
="-DDEFAULT_INLINE=0"
7636 if test x
"yes" = x
"yes"; then
7642 hardware
="core pal glue"
7644 hardware
="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop"
7646 sim_hw_cflags
="-DWITH_HW=1"
7648 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7649 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7650 if test "${enable_sim_hardware+set}" = set; then
7651 enableval
="$enable_sim_hardware"
7653 case "${enableval}" in
7656 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7657 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7658 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7660 if test "$sim_hw_p" != yes; then
7662 sim_hw_cflags
="-DWITH_HW=0"
7665 sim_hw_cflags
="-DWITH_HW=1"
7668 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
7669 for i
in x
$hardware ; do
7673 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
7677 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
7678 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7682 if test "$sim_hw_p" != yes; then
7684 sim_hw_cflags
="-DWITH_HW=0"
7687 if test x
"$silent" != x
"yes"; then
7688 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7699 for ac_func
in time chmod utime fork execve execv chown
7701 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7702 echo "$as_me:$LINENO: checking for $ac_func" >&5
7703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7704 if eval "test \"\${$as_ac_var+set}\" = set"; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 cat >conftest.
$ac_ext <<_ACEOF
7710 cat confdefs.h
>>conftest.
$ac_ext
7711 cat >>conftest.
$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7715 #define $ac_func innocuous_$ac_func
7717 /* System header to define __stub macros and hopefully few prototypes,
7718 which can conflict with char $ac_func (); below.
7719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7720 <limits.h> exists even on freestanding compilers. */
7723 # include <limits.h>
7725 # include <assert.h>
7730 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7738 /* The GNU C library defines this for functions which it implements
7739 to always fail with ENOSYS. Some functions are actually named
7740 something starting with __ and the normal name is an alias. */
7741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7744 char (*f) () = $ac_func;
7753 return f != $ac_func;
7758 rm -f conftest.
$ac_objext conftest
$ac_exeext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7760 (eval $ac_link) 2>conftest.er1
7762 grep -v '^ *+' conftest.er1
>conftest.err
7764 cat conftest.err
>&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try
='test -z "$ac_c_werror_flag"
7768 || test ! -s conftest.err'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; } &&
7774 { ac_try
='test -s conftest$ac_exeext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 eval "$as_ac_var=yes"
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.
$ac_ext >&5
7785 eval "$as_ac_var=no"
7787 rm -f conftest.err conftest.
$ac_objext \
7788 conftest
$ac_exeext conftest.
$ac_ext
7790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7792 if test `eval echo '${'$as_ac_var'}'` = yes; then
7793 cat >>confdefs.h
<<_ACEOF
7794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7806 for ac_header
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
7808 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810 echo "$as_me:$LINENO: checking for $ac_header" >&5
7811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7818 # Is the header compilable?
7819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7821 cat >conftest.
$ac_ext <<_ACEOF
7824 cat confdefs.h
>>conftest.
$ac_ext
7825 cat >>conftest.
$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 $ac_includes_default
7828 #include <$ac_header>
7830 rm -f conftest.
$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832 (eval $ac_compile) 2>conftest.er1
7834 grep -v '^ *+' conftest.er1
>conftest.err
7836 cat conftest.err
>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try
='test -z "$ac_c_werror_flag"
7840 || test ! -s conftest.err'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try
='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_header_compiler
=yes
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.
$ac_ext >&5
7857 ac_header_compiler
=no
7859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7861 echo "${ECHO_T}$ac_header_compiler" >&6
7863 # Is the header present?
7864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7866 cat >conftest.
$ac_ext <<_ACEOF
7869 cat confdefs.h
>>conftest.
$ac_ext
7870 cat >>conftest.
$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #include <$ac_header>
7874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7877 grep -v '^ *+' conftest.er1
>conftest.err
7879 cat conftest.err
>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } >/dev
/null
; then
7882 if test -s conftest.err
; then
7883 ac_cpp_err
=$ac_c_preproc_warn_flag
7884 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7891 if test -z "$ac_cpp_err"; then
7892 ac_header_preproc
=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.
$ac_ext >&5
7897 ac_header_preproc
=no
7899 rm -f conftest.err conftest.
$ac_ext
7900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7901 echo "${ECHO_T}$ac_header_preproc" >&6
7903 # So? What about this header?
7904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7910 ac_header_preproc
=yes
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7927 ## ------------------------------------------ ##
7928 ## Report this to the AC_PACKAGE_NAME lists. ##
7929 ## ------------------------------------------ ##
7932 sed "s/^/$as_me: WARNING: /" >&2
7935 echo "$as_me:$LINENO: checking for $ac_header" >&5
7936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 eval "$as_ac_Header=\$ac_header_preproc"
7942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7947 cat >>confdefs.h
<<_ACEOF
7948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7957 ac_sources
="$sim_link_files"
7958 ac_dests
="$sim_link_links"
7959 while test -n "$ac_sources"; do
7960 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
7961 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
7962 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
7964 ac_config_links
="$ac_config_links $ac_config_links_1"
7967 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
7968 cgen_breaks
="break cgen_rtx_error";
7971 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
7973 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
7975 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
7977 ac_config_commands
="$ac_config_commands Makefile"
7979 ac_config_commands
="$ac_config_commands stamp-h"
7981 cat >confcache
<<\_ACEOF
7982 # This file is a shell script that caches the results of configure
7983 # tests run on this system so they can be shared between configure
7984 # scripts and configure runs, see configure's option --config-cache.
7985 # It is not useful on other systems. If it contains results you don't
7986 # want to keep, you may remove or edit it.
7988 # config.status only pays attention to the cache file if you give it
7989 # the --recheck option to rerun configure.
7991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7997 # The following way of writing the cache mishandles newlines in values,
7998 # but we know of no workaround that is simple, portable, and efficient.
7999 # So, don't put newlines in cache variables' values.
8000 # Ultrix sh set writes to stderr and can't be redirected directly,
8001 # and sets the high bit in the cache file unless we assign to the vars.
8004 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8006 # `set' does not quote correctly, so add quotes (double-quote
8007 # substitution turns \\\\ into \\, and sed turns \\ into \).
8010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8013 # `set' quotes correctly as required by POSIX, so do not add quotes.
8015 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8024 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8026 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8027 if test -w $cache_file; then
8028 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8029 cat confcache
>$cache_file
8031 echo "not updating unwritable cache $cache_file"
8036 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8037 # Let make expand exec_prefix.
8038 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8042 # trailing colons and then remove the whole line if VPATH becomes empty
8043 # (actually we leave an empty line to preserve line numbers).
8044 if test "x$srcdir" = x.
; then
8045 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8046 s/:*\$(srcdir):*/:/;
8047 s/:*\${srcdir}:*/:/;
8049 s/^\([^=]*=[ ]*\):*/\1/;
8055 DEFS
=-DHAVE_CONFIG_H
8059 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8060 # 1. Remove the extension, and $U if already installed.
8061 ac_i
=`echo "$ac_i" |
8062 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8064 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8065 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8069 LTLIBOBJS
=$ac_ltlibobjs
8073 : ${CONFIG_STATUS=./config.status}
8074 ac_clean_files_save
=$ac_clean_files
8075 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8076 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8077 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8078 cat >$CONFIG_STATUS <<_ACEOF
8080 # Generated by $as_me.
8081 # Run this file to recreate the current configuration.
8082 # Compiler output produced by configure, useful for debugging
8083 # configure, is in config.log if it exists.
8088 SHELL=\${CONFIG_SHELL-$SHELL}
8091 cat >>$CONFIG_STATUS <<\_ACEOF
8092 ## --------------------- ##
8093 ## M4sh Initialization. ##
8094 ## --------------------- ##
8096 # Be Bourne compatible
8097 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8100 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8101 # is contrary to our usage. Disable this feature.
8102 alias -g '${1+"$@"}'='"$@"'
8103 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8106 DUALCASE
=1; export DUALCASE
# for MKS sh
8108 # Support unset when possible.
8109 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8116 # Work around bugs in pre-3.0 UWIN ksh.
8117 $as_unset ENV MAIL MAILPATH
8124 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8125 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8126 LC_TELEPHONE LC_TIME
8128 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8129 eval $as_var=C
; export $as_var
8135 # Required to use basename.
8136 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8142 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8143 as_basename
=basename
8149 # Name of the executable.
8150 as_me
=`$as_basename "$0" ||
8151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8152 X"$0" : 'X\(//\)$' \| \
8153 X"$0" : 'X\(/\)$' \| \
8154 . : '\(.\)' 2>/dev/null ||
8156 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8157 /^X\/\(\/\/\)$/{ s//\1/; q; }
8158 /^X\/\(\/\).*/{ s//\1/; q; }
8162 # PATH needs CR, and LINENO needs CR and PATH.
8163 # Avoid depending upon Character Ranges.
8164 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8165 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8166 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8167 as_cr_digits
='0123456789'
8168 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8170 # The user is always right.
8171 if test "${PATH_SEPARATOR+set}" != set; then
8172 echo "#! /bin/sh" >conf$$.sh
8173 echo "exit 0" >>conf$$.sh
8175 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8186 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8187 test "x$as_lineno_1" != "x$as_lineno_2" &&
8188 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8189 # Find who we are. Look in the path if we contain no path at all
8192 *[\\/]* ) as_myself
=$0 ;;
8193 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir
=.
8198 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8203 # We did not find ourselves, most probably we were run as `sh COMMAND'
8204 # in which case we are not to be found in the path.
8205 if test "x$as_myself" = x
; then
8208 if test ! -f "$as_myself"; then
8209 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8210 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8211 { (exit 1); exit 1; }; }
8213 case $CONFIG_SHELL in
8215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8216 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8219 test -z "$as_dir" && as_dir
=.
8220 for as_base
in sh bash ksh sh5
; do
8223 if ("$as_dir/$as_base" -c '
8226 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8227 test "x$as_lineno_1" != "x$as_lineno_2" &&
8228 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8229 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8230 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8231 CONFIG_SHELL
=$as_dir/$as_base
8233 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8241 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8242 # uniformly replaced by the line number. The first 'sed' inserts a
8243 # line-number line before each line; the second 'sed' does the real
8244 # work. The second script uses 'N' to pair each line-number line
8245 # with the numbered line, and appends trailing '-' during
8246 # substitution so that $LINENO is not a special case at line end.
8247 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8248 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8249 sed '=' <$as_myself |
8254 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8257 s,^['$as_cr_digits']*\n,,
8259 chmod +x
$as_me.lineno ||
8260 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8261 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8262 { (exit 1); exit 1; }; }
8264 # Don't try to exec as it changes $[0], causing all sort of problems
8265 # (the dirname of $[0] is not the place where we might find the
8266 # original and so on. Autoconf is especially sensible to this).
8268 # Exit status is that of the last command.
8273 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8274 *c
*,-n*) ECHO_N
= ECHO_C
='
8276 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8277 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8280 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8286 rm -f conf$$ conf$$.exe conf$$.
file
8288 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8289 # We could just check for DJGPP; but this test a) works b) is more generic
8290 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8291 if test -f conf$$.exe
; then
8292 # Don't use ln at all; we don't have any links
8297 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8302 rm -f conf$$ conf$$.exe conf$$.
file
8304 if mkdir
-p .
2>/dev
/null
; then
8307 test -d .
/-p && rmdir .
/-p
8311 as_executable_p
="test -f"
8313 # Sed expression to map a string onto a valid CPP name.
8314 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8316 # Sed expression to map a string onto a valid variable name.
8317 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8321 # We need space, tab and new line, in precisely that order.
8331 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8332 # report actual input values of CONFIG_FILES etc. instead of their
8333 # values after options handling. Logging --version etc. is OK.
8337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8338 ## Running $as_me. ##
8343 This file was extended by $as_me, which was
8344 generated by GNU Autoconf 2.59. Invocation command line was
8346 CONFIG_FILES = $CONFIG_FILES
8347 CONFIG_HEADERS = $CONFIG_HEADERS
8348 CONFIG_LINKS = $CONFIG_LINKS
8349 CONFIG_COMMANDS = $CONFIG_COMMANDS
8353 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8357 # Files that config.status was made for.
8358 if test -n "$ac_config_files"; then
8359 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8362 if test -n "$ac_config_headers"; then
8363 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8366 if test -n "$ac_config_links"; then
8367 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8370 if test -n "$ac_config_commands"; then
8371 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8374 cat >>$CONFIG_STATUS <<\_ACEOF
8377 \`$as_me' instantiates files from templates according to the
8378 current configuration.
8380 Usage: $0 [OPTIONS] [FILE]...
8382 -h, --help print this help, then exit
8383 -V, --version print version number, then exit
8384 -q, --quiet do not print progress messages
8385 -d, --debug don't remove temporary files
8386 --recheck update $as_me by reconfiguring in the same conditions
8387 --file=FILE[:TEMPLATE]
8388 instantiate the configuration file FILE
8389 --header=FILE[:TEMPLATE]
8390 instantiate the configuration header FILE
8392 Configuration files:
8395 Configuration headers:
8398 Configuration links:
8401 Configuration commands:
8404 Report bugs to <bug-autoconf@gnu.org>."
8407 cat >>$CONFIG_STATUS <<_ACEOF
8410 configured by $0, generated by GNU Autoconf 2.59,
8411 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8413 Copyright (C) 2003 Free Software Foundation, Inc.
8414 This config.status script is free software; the Free Software Foundation
8415 gives unlimited permission to copy, distribute and modify it."
8420 cat >>$CONFIG_STATUS <<\_ACEOF
8421 # If no file are specified by the user, then we need to provide default
8422 # value. By we need to know if files were specified by the user.
8428 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8429 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8437 *) # This is not an option, so the user has probably given explicit
8440 ac_need_defaults
=false
;;
8444 # Handling of the options.
8446 cat >>$CONFIG_STATUS <<\_ACEOF
8447 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8449 --version |
--vers* |
-V )
8450 echo "$ac_cs_version"; exit 0 ;;
8452 # Conflict between --help and --header
8453 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8454 Try \`$0 --help' for more information." >&5
8455 echo "$as_me: error: ambiguous option: $1
8456 Try \`$0 --help' for more information." >&2;}
8457 { (exit 1); exit 1; }; };;
8458 --help |
--hel |
-h )
8459 echo "$ac_cs_usage"; exit 0 ;;
8460 --debug |
--d* |
-d )
8462 --file |
--fil |
--fi |
--f )
8464 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8465 ac_need_defaults
=false
;;
8466 --header |
--heade |
--head |
--hea )
8468 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8469 ac_need_defaults
=false
;;
8470 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8471 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8475 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8476 Try \`$0 --help' for more information." >&5
8477 echo "$as_me: error: unrecognized option: $1
8478 Try \`$0 --help' for more information." >&2;}
8479 { (exit 1); exit 1; }; } ;;
8481 *) ac_config_targets
="$ac_config_targets $1" ;;
8487 ac_configure_extra_args
=
8489 if $ac_cs_silent; then
8491 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8495 cat >>$CONFIG_STATUS <<_ACEOF
8496 if \$ac_cs_recheck; then
8497 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8498 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8507 cat >>$CONFIG_STATUS <<\_ACEOF
8508 for ac_config_target
in $ac_config_targets
8510 case "$ac_config_target" in
8511 # Handling of arguments.
8512 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8513 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8514 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8515 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
8516 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
8517 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
8518 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8521 { (exit 1); exit 1; }; };;
8525 # If the user did not use the arguments to specify the items to instantiate,
8526 # then the envvar interface is used. Set only those that are not.
8527 # We use the long form for the default assignment because of an extremely
8528 # bizarre bug on SunOS 4.1.3.
8529 if $ac_need_defaults; then
8530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8532 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8536 # Have a temporary directory for convenience. Make it in the build tree
8537 # simply because there is no reason to put it here, and in addition,
8538 # creating and moving files from /tmp can sometimes cause problems.
8539 # Create a temporary directory, and hook for its removal unless debugging.
8542 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8543 trap '{ (exit 1); exit 1; }' 1 2 13 15
8546 # Create a (secure) tmp directory for tmp files.
8549 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8550 test -n "$tmp" && test -d "$tmp"
8553 tmp
=.
/confstat$$
-$RANDOM
8554 (umask 077 && mkdir
$tmp)
8557 echo "$me: cannot create a temporary directory in ." >&2
8558 { (exit 1); exit 1; }
8563 cat >>$CONFIG_STATUS <<_ACEOF
8566 # CONFIG_FILES section.
8569 # No need to generate the scripts if there are no CONFIG_FILES.
8570 # This happens for instance when ./config.status config.h
8571 if test -n "\$CONFIG_FILES"; then
8572 # Protect against being on the right side of a sed subst in config.status.
8573 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8574 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8575 s,@SHELL@,$SHELL,;t t
8576 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8577 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8578 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8579 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8580 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8581 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8582 s,@exec_prefix@,$exec_prefix,;t t
8583 s,@prefix@,$prefix,;t t
8584 s,@program_transform_name@,$program_transform_name,;t t
8585 s,@bindir@,$bindir,;t t
8586 s,@sbindir@,$sbindir,;t t
8587 s,@libexecdir@,$libexecdir,;t t
8588 s,@datadir@,$datadir,;t t
8589 s,@sysconfdir@,$sysconfdir,;t t
8590 s,@sharedstatedir@,$sharedstatedir,;t t
8591 s,@localstatedir@,$localstatedir,;t t
8592 s,@libdir@,$libdir,;t t
8593 s,@includedir@,$includedir,;t t
8594 s,@oldincludedir@,$oldincludedir,;t t
8595 s,@infodir@,$infodir,;t t
8596 s,@mandir@,$mandir,;t t
8597 s,@build_alias@,$build_alias,;t t
8598 s,@host_alias@,$host_alias,;t t
8599 s,@target_alias@,$target_alias,;t t
8601 s,@ECHO_C@,$ECHO_C,;t t
8602 s,@ECHO_N@,$ECHO_N,;t t
8603 s,@ECHO_T@,$ECHO_T,;t t
8605 s,@sim_environment@,$sim_environment,;t t
8606 s,@sim_alignment@,$sim_alignment,;t t
8607 s,@sim_assert@,$sim_assert,;t t
8608 s,@sim_bitsize@,$sim_bitsize,;t t
8609 s,@sim_endian@,$sim_endian,;t t
8610 s,@sim_hostendian@,$sim_hostendian,;t t
8611 s,@sim_float@,$sim_float,;t t
8612 s,@sim_scache@,$sim_scache,;t t
8613 s,@sim_default_model@,$sim_default_model,;t t
8614 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8615 s,@sim_hw_objs@,$sim_hw_objs,;t t
8616 s,@sim_hw@,$sim_hw,;t t
8617 s,@sim_inline@,$sim_inline,;t t
8618 s,@sim_packages@,$sim_packages,;t t
8619 s,@sim_regparm@,$sim_regparm,;t t
8620 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8621 s,@sim_smp@,$sim_smp,;t t
8622 s,@sim_stdcall@,$sim_stdcall,;t t
8623 s,@sim_xor_endian@,$sim_xor_endian,;t t
8624 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8625 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8626 s,@build@,$build,;t t
8627 s,@build_cpu@,$build_cpu,;t t
8628 s,@build_vendor@,$build_vendor,;t t
8629 s,@build_os@,$build_os,;t t
8631 s,@host_cpu@,$host_cpu,;t t
8632 s,@host_vendor@,$host_vendor,;t t
8633 s,@host_os@,$host_os,;t t
8634 s,@target@,$target,;t t
8635 s,@target_cpu@,$target_cpu,;t t
8636 s,@target_vendor@,$target_vendor,;t t
8637 s,@target_os@,$target_os,;t t
8639 s,@CFLAGS@,$CFLAGS,;t t
8640 s,@LDFLAGS@,$LDFLAGS,;t t
8641 s,@CPPFLAGS@,$CPPFLAGS,;t t
8642 s,@ac_ct_CC@,$ac_ct_CC,;t t
8643 s,@EXEEXT@,$EXEEXT,;t t
8644 s,@OBJEXT@,$OBJEXT,;t t
8645 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8646 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8647 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8648 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8649 s,@HDEFINES@,$HDEFINES,;t t
8651 s,@RANLIB@,$RANLIB,;t t
8652 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8653 s,@SET_MAKE@,$SET_MAKE,;t t
8655 s,@EGREP@,$EGREP,;t t
8656 s,@ALLOCA@,$ALLOCA,;t t
8657 s,@USE_NLS@,$USE_NLS,;t t
8658 s,@MSGFMT@,$MSGFMT,;t t
8659 s,@GMSGFMT@,$GMSGFMT,;t t
8660 s,@XGETTEXT@,$XGETTEXT,;t t
8661 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8662 s,@CATALOGS@,$CATALOGS,;t t
8663 s,@CATOBJEXT@,$CATOBJEXT,;t t
8664 s,@DATADIRNAME@,$DATADIRNAME,;t t
8665 s,@GMOFILES@,$GMOFILES,;t t
8666 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8667 s,@INTLDEPS@,$INTLDEPS,;t t
8668 s,@INTLLIBS@,$INTLLIBS,;t t
8669 s,@INTLOBJS@,$INTLOBJS,;t t
8670 s,@POFILES@,$POFILES,;t t
8671 s,@POSUB@,$POSUB,;t t
8672 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8673 s,@GT_NO@,$GT_NO,;t t
8674 s,@GT_YES@,$GT_YES,;t t
8675 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8677 s,@MAINT@,$MAINT,;t t
8678 s,@sim_bswap@,$sim_bswap,;t t
8679 s,@sim_cflags@,$sim_cflags,;t t
8680 s,@sim_debug@,$sim_debug,;t t
8681 s,@sim_stdio@,$sim_stdio,;t t
8682 s,@sim_trace@,$sim_trace,;t t
8683 s,@sim_profile@,$sim_profile,;t t
8684 s,@cgen_breaks@,$cgen_breaks,;t t
8685 s,@LIBOBJS@,$LIBOBJS,;t t
8686 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8691 cat >>$CONFIG_STATUS <<\_ACEOF
8692 # Split the substitutions into bite-sized pieces for seds with
8693 # small command number limits, like on Digital OSF/1 and HP-UX.
8695 ac_sed_frag
=1 # Number of current file.
8696 ac_beg
=1 # First line for current file.
8697 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8700 while $ac_more_lines; do
8701 if test $ac_beg -gt 1; then
8702 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8704 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8706 if test ! -s $tmp/subs.frag
; then
8709 # The purpose of the label and of the branching condition is to
8710 # speed up the sed processing (if there are no `@' at all, there
8711 # is no need to browse any of the substitutions).
8712 # These are the two extra sed commands mentioned above.
8714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8715 if test -z "$ac_sed_cmds"; then
8716 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8718 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8720 ac_sed_frag
=`expr $ac_sed_frag + 1`
8722 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8725 if test -z "$ac_sed_cmds"; then
8728 fi # test -n "$CONFIG_FILES"
8731 cat >>$CONFIG_STATUS <<\_ACEOF
8732 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8733 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8735 - |
*:- |
*:-:* ) # input from stdin
8737 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8738 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8739 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8740 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8741 * ) ac_file_in
=$ac_file.
in ;;
8744 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8745 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8747 X"$ac_file" : 'X\(//\)[^/]' \| \
8748 X"$ac_file" : 'X\(//\)$' \| \
8749 X"$ac_file" : 'X\(/\)' \| \
8750 . : '\(.\)' 2>/dev/null ||
8752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8754 /^X\(\/\/\)$/{ s//\1/; q; }
8755 /^X\(\/\).*/{ s//\1/; q; }
8757 { if $as_mkdir_p; then
8762 while test ! -d "$as_dir"; do
8763 as_dirs
="$as_dir $as_dirs"
8764 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8766 X"$as_dir" : 'X\(//\)[^/]' \| \
8767 X"$as_dir" : 'X\(//\)$' \| \
8768 X"$as_dir" : 'X\(/\)' \| \
8769 . : '\(.\)' 2>/dev/null ||
8771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8773 /^X\(\/\/\)$/{ s//\1/; q; }
8774 /^X\(\/\).*/{ s//\1/; q; }
8777 test ! -n "$as_dirs" || mkdir
$as_dirs
8778 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8779 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8780 { (exit 1); exit 1; }; }; }
8784 if test "$ac_dir" != .
; then
8785 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8786 # A "../" for each directory in $ac_dir_suffix.
8787 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8789 ac_dir_suffix
= ac_top_builddir
=
8793 .
) # No --srcdir option. We are building in place.
8795 if test -z "$ac_top_builddir"; then
8798 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8800 [\\/]* | ?
:[\\/]* ) # Absolute path.
8801 ac_srcdir
=$srcdir$ac_dir_suffix;
8802 ac_top_srcdir
=$srcdir ;;
8804 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8805 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8808 # Do not use `cd foo && pwd` to compute absolute paths, because
8809 # the directories may not exist.
8811 .
) ac_abs_builddir
="$ac_dir";;
8814 .
) ac_abs_builddir
=`pwd`;;
8815 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8816 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8819 case $ac_abs_builddir in
8820 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8822 case ${ac_top_builddir}.
in
8823 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8824 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8825 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8828 case $ac_abs_builddir in
8829 .
) ac_abs_srcdir
=$ac_srcdir;;
8832 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8833 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8834 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8837 case $ac_abs_builddir in
8838 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8840 case $ac_top_srcdir in
8841 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8842 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8843 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8849 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8850 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8853 if test x
"$ac_file" != x-
; then
8854 { echo "$as_me:$LINENO: creating $ac_file" >&5
8855 echo "$as_me: creating $ac_file" >&6;}
8858 # Let's still pretend it is `configure' which instantiates (i.e., don't
8859 # use $as_me), people would be surprised to read:
8860 # /* config.h. Generated by config.status. */
8861 if test x
"$ac_file" = x-
; then
8864 configure_input
="$ac_file. "
8866 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8867 sed 's,.*/,,'` by configure."
8869 # First look for the input files in the build tree, otherwise in the
8871 ac_file_inputs
=`IFS=:
8872 for f in $ac_file_in; do
8874 -) echo $tmp/stdin ;;
8876 # Absolute (can't be DOS-style, as IFS=:)
8877 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8878 echo "$as_me: error: cannot find input file: $f" >&2;}
8879 { (exit 1); exit 1; }; }
8882 if test -f "$f"; then
8885 elif test -f "$srcdir/$f"; then
8890 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8891 echo "$as_me: error: cannot find input file: $f" >&2;}
8892 { (exit 1); exit 1; }; }
8895 done` ||
{ (exit 1); exit 1; }
8897 cat >>$CONFIG_STATUS <<_ACEOF
8901 cat >>$CONFIG_STATUS <<\_ACEOF
8903 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8904 s
,@configure_input@
,$configure_input,;t t
8905 s
,@srcdir@
,$ac_srcdir,;t t
8906 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8907 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8908 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8909 s
,@builddir@
,$ac_builddir,;t t
8910 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8911 s
,@top_builddir@
,$ac_top_builddir,;t t
8912 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8913 s
,@INSTALL@
,$ac_INSTALL,;t t
8914 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8916 if test x"$ac_file" != x-; then
8917 mv $tmp/out $ac_file
8925 cat >>$CONFIG_STATUS <<\_ACEOF
8928 # CONFIG_HEADER section.
8931 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8932 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8934 # ac_d sets the value in "#define NAME VALUE" lines.
8935 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8936 ac_dB
='[ ].*$,\1#\2'
8939 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8940 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8941 ac_uB
='$,\1#\2define\3'
8945 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8946 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8948 - |
*:- |
*:-:* ) # input from stdin
8950 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8951 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8952 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8953 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8954 * ) ac_file_in
=$ac_file.
in ;;
8957 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8958 echo "$as_me: creating $ac_file" >&6;}
8960 # First look for the input files in the build tree, otherwise in the
8962 ac_file_inputs
=`IFS=:
8963 for f in $ac_file_in; do
8965 -) echo $tmp/stdin ;;
8967 # Absolute (can't be DOS-style, as IFS=:)
8968 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8969 echo "$as_me: error: cannot find input file: $f" >&2;}
8970 { (exit 1); exit 1; }; }
8971 # Do quote $f, to prevent DOS paths from being IFS'd.
8974 if test -f "$f"; then
8977 elif test -f "$srcdir/$f"; then
8982 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8983 echo "$as_me: error: cannot find input file: $f" >&2;}
8984 { (exit 1); exit 1; }; }
8987 done` ||
{ (exit 1); exit 1; }
8988 # Remove the trailing spaces.
8989 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8993 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8994 # `conftest.undefs', that substitutes the proper values into
8995 # config.h.in to produce config.h. The first handles `#define'
8996 # templates, and the second `#undef' templates.
8997 # And first: Protect against being on the right side of a sed subst in
8998 # config.status. Protect against being in an unquoted here document
9000 rm -f conftest.defines conftest.undefs
9001 # Using a here document instead of a string reduces the quoting nightmare.
9002 # Putting comments in sed scripts is not portable.
9004 # `end' is used to avoid that the second main sed command (meant for
9005 # 0-ary CPP macros) applies to n-ary macro definitions.
9006 # See the Autoconf documentation for `clear'.
9007 cat >confdef2sed.
sed <<\_ACEOF
9012 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9014 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9017 # If some macros were called several times there might be several times
9018 # the same #defines, which is useless. Nevertheless, we may not want to
9019 # sort them, since we want the *last* AC-DEFINE to be honored.
9020 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9021 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9022 rm -f confdef2sed.sed
9024 # This sed command replaces #undef with comments. This is necessary, for
9025 # example, in the case of _POSIX_SOURCE, which is predefined and required
9026 # on some systems where configure will not decide to define it.
9027 cat >>conftest.undefs <<\_ACEOF
9028 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9031 # Break up conftest.defines because some shells have a limit on the size
9032 # of here documents, and old seds have small limits too (100 cmds).
9033 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9034 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9035 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9036 echo ' :' >>$CONFIG_STATUS
9038 while grep . conftest.defines >/dev/null
9040 # Write a limited-size here document to $tmp/defines.sed.
9041 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9042 # Speed up: don't consider the non `#define' lines.
9043 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9044 # Work around the forget-to-reset-the-flag bug.
9045 echo 't clr' >>$CONFIG_STATUS
9046 echo ': clr' >>$CONFIG_STATUS
9047 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9049 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9053 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9054 rm -f conftest.defines
9055 mv conftest.
tail conftest.defines
9057 rm -f conftest.defines
9058 echo ' fi # grep' >>$CONFIG_STATUS
9059 echo >>$CONFIG_STATUS
9061 # Break up conftest.undefs because some shells have a limit on the size
9062 # of here documents, and old seds have small limits too (100 cmds).
9063 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9065 while grep . conftest.undefs
>/dev
/null
9067 # Write a limited-size here document to $tmp/undefs.sed.
9068 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9069 # Speed up: don't consider the non
`#undef'
9070 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9071 # Work around the forget-to-reset-the-flag bug.
9072 echo 't clr' >>$CONFIG_STATUS
9073 echo ': clr' >>$CONFIG_STATUS
9074 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9076 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9080 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9081 rm -f conftest.undefs
9082 mv conftest.tail conftest.undefs
9084 rm -f conftest.undefs
9086 cat >>$CONFIG_STATUS <<\_ACEOF
9087 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9088 # use $as_me), people would be surprised to read:
9089 # /* config.h. Generated by config.status. */
9090 if test x
"$ac_file" = x-
; then
9091 echo "/* Generated by configure. */" >$tmp/config.h
9093 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9095 cat $tmp/in >>$tmp/config.h
9097 if test x
"$ac_file" != x-
; then
9098 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9099 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9100 echo "$as_me: $ac_file is unchanged" >&6;}
9102 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9104 X"$ac_file" : 'X\(//\)[^/]' \| \
9105 X"$ac_file" : 'X\(//\)$' \| \
9106 X"$ac_file" : 'X\(/\)' \| \
9107 . : '\(.\)' 2>/dev/null ||
9109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9111 /^X\(\/\/\)$/{ s//\1/; q; }
9112 /^X\(\/\).*/{ s//\1/; q; }
9114 { if $as_mkdir_p; then
9119 while test ! -d "$as_dir"; do
9120 as_dirs
="$as_dir $as_dirs"
9121 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9123 X"$as_dir" : 'X\(//\)[^/]' \| \
9124 X"$as_dir" : 'X\(//\)$' \| \
9125 X"$as_dir" : 'X\(/\)' \| \
9126 . : '\(.\)' 2>/dev/null ||
9128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9130 /^X\(\/\/\)$/{ s//\1/; q; }
9131 /^X\(\/\).*/{ s//\1/; q; }
9134 test ! -n "$as_dirs" || mkdir
$as_dirs
9135 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9136 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9137 { (exit 1); exit 1; }; }; }
9140 mv $tmp/config.h
$ac_file
9148 cat >>$CONFIG_STATUS <<\_ACEOF
9151 # CONFIG_LINKS section.
9154 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
9155 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9156 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9158 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9159 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9161 if test ! -r $srcdir/$ac_source; then
9162 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9163 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9164 { (exit 1); exit 1; }; }
9168 # Make relative symlinks.
9169 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9170 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9171 X"$ac_dest" : 'X\(//\)[^/]' \| \
9172 X"$ac_dest" : 'X\(//\)$' \| \
9173 X"$ac_dest" : 'X\(/\)' \| \
9174 . : '\(.\)' 2>/dev/null ||
9176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9178 /^X\(\/\/\)$/{ s//\1/; q; }
9179 /^X\(\/\).*/{ s//\1/; q; }
9181 { if $as_mkdir_p; then
9182 mkdir
-p "$ac_dest_dir"
9184 as_dir
="$ac_dest_dir"
9186 while test ! -d "$as_dir"; do
9187 as_dirs
="$as_dir $as_dirs"
9188 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9190 X"$as_dir" : 'X\(//\)[^/]' \| \
9191 X"$as_dir" : 'X\(//\)$' \| \
9192 X"$as_dir" : 'X\(/\)' \| \
9193 . : '\(.\)' 2>/dev/null ||
9195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9197 /^X\(\/\/\)$/{ s//\1/; q; }
9198 /^X\(\/\).*/{ s//\1/; q; }
9201 test ! -n "$as_dirs" || mkdir
$as_dirs
9202 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9203 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9204 { (exit 1); exit 1; }; }; }
9208 if test "$ac_dest_dir" != .
; then
9209 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9210 # A "../" for each directory in $ac_dir_suffix.
9211 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9213 ac_dir_suffix
= ac_top_builddir
=
9217 .
) # No --srcdir option. We are building in place.
9219 if test -z "$ac_top_builddir"; then
9222 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9224 [\\/]* | ?
:[\\/]* ) # Absolute path.
9225 ac_srcdir
=$srcdir$ac_dir_suffix;
9226 ac_top_srcdir
=$srcdir ;;
9228 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9229 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9232 # Do not use `cd foo && pwd` to compute absolute paths, because
9233 # the directories may not exist.
9235 .
) ac_abs_builddir
="$ac_dest_dir";;
9237 case "$ac_dest_dir" in
9238 .
) ac_abs_builddir
=`pwd`;;
9239 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
9240 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
9243 case $ac_abs_builddir in
9244 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9246 case ${ac_top_builddir}.
in
9247 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9248 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9249 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9252 case $ac_abs_builddir in
9253 .
) ac_abs_srcdir
=$ac_srcdir;;
9256 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9257 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9258 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9261 case $ac_abs_builddir in
9262 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9264 case $ac_top_srcdir in
9265 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9266 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9267 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9273 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9274 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
9277 # Try a symlink, then a hard link, then a copy.
9278 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
9279 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
9280 cp -p $srcdir/$ac_source $ac_dest ||
9281 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9282 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9283 { (exit 1); exit 1; }; }
9286 cat >>$CONFIG_STATUS <<\_ACEOF
9289 # CONFIG_COMMANDS section.
9291 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9292 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9293 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9294 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9295 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9296 X"$ac_dest" : 'X\(//\)[^/]' \| \
9297 X"$ac_dest" : 'X\(//\)$' \| \
9298 X"$ac_dest" : 'X\(/\)' \| \
9299 . : '\(.\)' 2>/dev/null ||
9301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9303 /^X\(\/\/\)$/{ s//\1/; q; }
9304 /^X\(\/\).*/{ s//\1/; q; }
9306 { if $as_mkdir_p; then
9311 while test ! -d "$as_dir"; do
9312 as_dirs
="$as_dir $as_dirs"
9313 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9315 X"$as_dir" : 'X\(//\)[^/]' \| \
9316 X"$as_dir" : 'X\(//\)$' \| \
9317 X"$as_dir" : 'X\(/\)' \| \
9318 . : '\(.\)' 2>/dev/null ||
9320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9322 /^X\(\/\/\)$/{ s//\1/; q; }
9323 /^X\(\/\).*/{ s//\1/; q; }
9326 test ! -n "$as_dirs" || mkdir
$as_dirs
9327 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9328 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9329 { (exit 1); exit 1; }; }; }
9333 if test "$ac_dir" != .
; then
9334 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9335 # A "../" for each directory in $ac_dir_suffix.
9336 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9338 ac_dir_suffix
= ac_top_builddir
=
9342 .
) # No --srcdir option. We are building in place.
9344 if test -z "$ac_top_builddir"; then
9347 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9349 [\\/]* | ?
:[\\/]* ) # Absolute path.
9350 ac_srcdir
=$srcdir$ac_dir_suffix;
9351 ac_top_srcdir
=$srcdir ;;
9353 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9354 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9357 # Do not use `cd foo && pwd` to compute absolute paths, because
9358 # the directories may not exist.
9360 .
) ac_abs_builddir
="$ac_dir";;
9363 .
) ac_abs_builddir
=`pwd`;;
9364 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9365 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9368 case $ac_abs_builddir in
9369 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9371 case ${ac_top_builddir}.
in
9372 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9373 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9374 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9377 case $ac_abs_builddir in
9378 .
) ac_abs_srcdir
=$ac_srcdir;;
9381 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9382 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9383 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9386 case $ac_abs_builddir in
9387 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9389 case $ac_top_srcdir in
9390 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9391 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9392 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9397 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9398 echo "$as_me: executing $ac_dest commands" >&6;}
9400 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9401 rm -f Makesim1.tmp Makesim2.tmp Makefile
9402 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
9403 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
9404 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9405 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9406 <Makefile.sim
>Makefile
9407 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9409 stamp-h
) echo > stamp-h
;;
9414 cat >>$CONFIG_STATUS <<\_ACEOF
9416 { (exit 0); exit 0; }
9418 chmod +x
$CONFIG_STATUS
9419 ac_clean_files
=$ac_clean_files_save
9422 # configure is writing to config.log, and then calls config.status.
9423 # config.status does its own redirection, appending to config.log.
9424 # Unfortunately, on DOS this fails, as config.log is still kept open
9425 # by configure, so config.status won't be able to write to it; its
9426 # output is simply discarded. So we exec the FD to /dev/null,
9427 # effectively closing config.log, so it can be properly (re)opened and
9428 # appended to by config.status. When coming back to configure, we
9429 # need to make the FD available again.
9430 if test "$no_create" != yes; then
9432 ac_config_status_args
=
9433 test "$silent" = yes &&
9434 ac_config_status_args
="$ac_config_status_args --quiet"
9436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9439 # would make configure fail if this is the last instruction.
9440 $ac_cs_success ||
{ (exit 1); exit 1; }