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 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs 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
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
847 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
857 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
858 --enable-maintainer-mode Enable developer functionality.
859 --enable-sim-bswap Use Host specific BSWAP instruction.
860 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
861 --enable-sim-debug=opts Enable debugging flags
862 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
863 --enable-sim-trace=opts Enable tracing flags
864 --enable-sim-profile=opts Enable profiling flags
865 --enable-sim-inline=inlines Specify
which functions should be inlined.
866 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
867 --enable-sim-hostendian=end Specify
host byte endian orientation.
868 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
869 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
870 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
871 --enable-sim-endian=endian Specify target byte endian orientation.
872 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
873 --enable-sim-float Specify that the target processor has floating point hardware.
874 --enable-sim-smp=n Specify number of processors to configure
for (default
${default_sim_smp}).
875 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
878 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
879 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
880 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
881 --with-bugurl=URL Direct users to URL to report a bug
882 --with-x use the X Window System
884 Some influential environment variables
:
885 CC C compiler
command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
888 nonstandard directory
<lib dir
>
889 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
890 headers
in a nonstandard directory
<include dir
>
893 Use these variables to override the choices made by
`configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Do not use `cd foo
&& pwd` to compute absolute paths, because
931 # the directories may not exist.
933 .) ac_abs_builddir="$ac_dir";;
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1015 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1016 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1017 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1018 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1019 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1021 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1022 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1024 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1026 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1027 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1028 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1030 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close
' the trap.
1110 trap 'exit_status
=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var
in $ac_subst_vars
1146 eval ac_val
=$
`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var
in $ac_subst_files
1160 eval ac_val
=$
`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h
; then
1173 sed "/^$/d" confdefs.h |
sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core
*.core
&&
1181 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's
/^
/|
/' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1278 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1303 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1310 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331 ac_config_headers="$ac_config_headers config.h:config.in"
1334 # This file contains common code used by all simulators.
1336 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1337 # directory. It is intended to be invoked before any target specific stuff.
1338 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1339 # It is intended to be invoked last.
1341 # The simulator's configure.
in should
look like
:
1343 # dnl Process this file with autoconf to produce a configure script.
1344 # sinclude(../common/aclocal.m4)
1346 # AC_INIT(Makefile.in)
1350 # ... target specific stuff ...
1354 # Include global overrides and fixes for Autoconf.
1385 # _AC_OUTPUT_SUBDIRS
1386 # ------------------
1387 # This is a subroutine of AC_OUTPUT, but it does not go into
1388 # config.status, rather, it is called after running config.status.
1389 # _AC_OUTPUT_SUBDIRS
1394 # _AC_ARG_VAR_VALIDATE
1395 # --------------------
1396 # The code is the same as autoconf 2.59, but with a more lenient check
1397 # on precious variables and an output of pwd that have been added in
1399 # _AC_ARG_VAR_VALIDATE
1404 # AC_MSG_FAILURE(ERROR, [EXIT-STATUS = 1])
1405 # ----------------------------------------
1406 # This is the same code as in 2.59 and 2.61, except it also outputs pwd.
1463 sim_inline
="-DDEFAULT_INLINE=0"
1500 # intl sister-directory configuration rules.
1503 # The idea behind this macro is that there's no need to repeat all the
1504 # autoconf probes done by the intl directory - it's already done them
1505 # for us. In fact, there's no need even to look at the cache for the
1506 # answers. All we need to do is nab a few pieces of information.
1507 # The intl directory is set up to make this easy, by generating a
1508 # small file which can be sourced as a shell script; then we produce
1509 # the necessary substitutions and definitions for this directory.
1513 # Autoconf M4 include file defining utility macros for complex Canadian
1525 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1527 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1530 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1531 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1535 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1536 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1540 # Backported from Autoconf 2.5x; can go away when and if
1541 # we switch. Put the OS path separator in $PATH_SEPARATOR.
1546 # ACX_HAVE_GCC_FOR_TARGET
1547 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1550 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1551 # Searching for installed target binutils. We need to take extra care,
1552 # else we may find the wrong assembler, linker, etc., and lose.
1554 # First try --with-build-time-tools, if specified.
1556 # For build != host, we ask the installed GCC for the name of the tool it
1557 # uses, and accept it if it is an absolute path. This is because the
1558 # only good choice for a compiler is the same GCC version that is being
1559 # installed (or we couldn't make target libraries), and we assume that
1560 # on the host system we'll have not only the same GCC version, but also
1561 # the same binutils version.
1563 # For build == host, search the same directories that the installed
1564 # compiler will search. We used to do this for the assembler, linker,
1565 # and nm only; for simplicity of configuration, however, we extend this
1566 # criterion to tools (such as ar and ranlib) that are never invoked by
1567 # the compiler, to avoid mismatches.
1569 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
1570 # if build == target. This makes the most sense only when bootstrapping,
1571 # but we also do so when build != host. In this case, we hope that the
1572 # build and host systems will have similar contents of MD_EXEC_PREFIX.
1574 # If we do not find a suitable binary, then try the user's path.
1578 # AC_PROG_CPP_WERROR
1579 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1580 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1581 # For now, using this also overrides header checks to use only the
1582 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1583 # bit harder from here).
1584 # Eventually autoconf will default to checking headers with the compiler
1585 # instead, and we'll have to do this differently.
1587 # AC_PROG_CPP_WERROR
1590 # We require the gnatbind program, and a compiler driver that
1591 # understands Ada. We use the user's CC setting, already found,
1592 # and possibly add $1 to the command-line parameters.
1594 # Sets the shell variable have_gnat to yes or no as appropriate, and
1595 # substitutes GNATBIND and GNATMAKE.
1621 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1622 # it by inlining the macro's contents.
1623 # This file contains common code used by all simulators.
1625 # common.m4 invokes AC macros used by all simulators and by the common
1626 # directory. It is intended to be included before any target specific
1627 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1628 # the Makefile. It is intended to be invoked last.
1630 # The simulator's configure.in should look like:
1632 # dnl Process this file with autoconf to produce a configure script.
1634 # AC_INIT(Makefile.in)
1635 # AC_CONFIG_HEADER(config.h:config.in)
1637 # sinclude(../common/aclocal.m4)
1638 # sinclude(../common/common.m4)
1640 # ... target specific stuff ...
1643 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1644 if test -f $ac_dir/install-sh
; then
1646 ac_install_sh
="$ac_aux_dir/install-sh -c"
1648 elif test -f $ac_dir/install.sh
; then
1650 ac_install_sh
="$ac_aux_dir/install.sh -c"
1652 elif test -f $ac_dir/shtool
; then
1654 ac_install_sh
="$ac_aux_dir/shtool install -c"
1658 if test -z "$ac_aux_dir"; then
1659 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1660 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1661 { (exit 1); exit 1; }; }
1663 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1664 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1665 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1667 # Make sure we can run config.sub.
1668 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1669 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1670 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1671 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: checking build system type" >&5
1674 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1675 if test "${ac_cv_build+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 ac_cv_build_alias
=$build_alias
1679 test -z "$ac_cv_build_alias" &&
1680 ac_cv_build_alias
=`$ac_config_guess`
1681 test -z "$ac_cv_build_alias" &&
1682 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1683 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1684 { (exit 1); exit 1; }; }
1685 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1688 { (exit 1); exit 1; }; }
1691 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1692 echo "${ECHO_T}$ac_cv_build" >&6
1694 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1699 echo "$as_me:$LINENO: checking host system type" >&5
1700 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1701 if test "${ac_cv_host+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 ac_cv_host_alias
=$host_alias
1705 test -z "$ac_cv_host_alias" &&
1706 ac_cv_host_alias
=$ac_cv_build_alias
1707 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1708 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1709 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1710 { (exit 1); exit 1; }; }
1713 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1714 echo "${ECHO_T}$ac_cv_host" >&6
1716 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1721 echo "$as_me:$LINENO: checking target system type" >&5
1722 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1723 if test "${ac_cv_target+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 ac_cv_target_alias
=$target_alias
1727 test "x$ac_cv_target_alias" = "x" &&
1728 ac_cv_target_alias
=$ac_cv_host_alias
1729 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1730 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1731 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1732 { (exit 1); exit 1; }; }
1735 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1736 echo "${ECHO_T}$ac_cv_target" >&6
1737 target
=$ac_cv_target
1738 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1739 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1740 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1743 # The aliases save the names the user supplied, while $host etc.
1744 # will get canonicalized.
1745 test -n "$target_alias" &&
1746 test "$program_prefix$program_suffix$program_transform_name" = \
1748 program_prefix
=${target_alias}-
1749 test "$program_prefix" != NONE
&&
1750 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1751 # Use a double $ so make ignores it.
1752 test "$program_suffix" != NONE
&&
1753 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1754 # Double any \ or $. echo might interpret backslashes.
1755 # By default was `s,x,x', remove it if useless.
1756 cat <<\_ACEOF
>conftest.
sed
1757 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1759 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1763 ac_cpp
='$CPP $CPPFLAGS'
1764 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1767 if test -n "$ac_tool_prefix"; then
1768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1769 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC
="$CC" # Let the user override the test.
1778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir
=.
1783 for ac_exec_ext
in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 if test -n "$CC"; then
1796 echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1804 if test -z "$ac_cv_prog_CC"; then
1806 # Extract the first word of "gcc", so it can be a program name with args.
1807 set dummy gcc
; ac_word
=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir
=.
1821 for ac_exec_ext
in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC
="gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$CC"; then
1856 ac_cv_prog_CC
="$CC" # Let the user override the test.
1858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir
=.
1863 for ac_exec_ext
in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 if test -n "$CC"; then
1876 echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1884 if test -z "$ac_cv_prog_CC"; then
1886 # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc
; ac_word
=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$ac_ct_CC"; then
1894 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir
=.
1901 for ac_exec_ext
in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_ac_ct_CC
="cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1913 if test -n "$ac_ct_CC"; then
1914 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1915 echo "${ECHO_T}$ac_ct_CC" >&6
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1927 if test -z "$CC"; then
1928 # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc
; ac_word
=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC
="$CC" # Let the user override the test.
1939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir
=.
1944 for ac_exec_ext
in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1947 ac_prog_rejected
=yes
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy
$ac_cv_prog_CC
1961 if test $# != 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1966 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1972 if test -n "$CC"; then
1973 echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1981 if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC
="$CC" # Let the user override the test.
1995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir
=.
2000 for ac_exec_ext
in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 test -n "$CC" && break
2023 if test -z "$CC"; then
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy
$ac_prog; ac_word
=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir
=.
2042 for ac_exec_ext
in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_ac_ct_CC
="$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2062 test -n "$ac_ct_CC" && break
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2072 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }; }
2079 # Provide some information about the compiler.
2080 echo "$as_me:$LINENO:" \
2081 "checking for C compiler version" >&5
2082 ac_compiler
=`set X $ac_compile; echo $2`
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2084 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2089 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2094 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2099 cat >conftest.
$ac_ext <<_ACEOF
2102 cat confdefs.h
>>conftest.
$ac_ext
2103 cat >>conftest.
$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2114 ac_clean_files_save
=$ac_clean_files
2115 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2116 # Try to create an executable without -o first, disregard a.out.
2117 # It will help us diagnose broken compilers, and finding out an intuition
2119 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2120 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2121 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2123 (eval $ac_link_default) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # Find the output, starting from the most likely. This scheme is
2128 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2131 # Be careful to initialize this variable, since it used to be cached.
2132 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2134 # b.out is created by i960 compilers.
2135 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2137 test -f "$ac_file" ||
continue
2139 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2142 # This is the source file.
2145 # We found the default executable, but exeext='' is most
2149 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 # FIXME: I believe we export ac_cv_exeext for Libtool,
2151 # but it would be cool to find out if it's true. Does anybody
2152 # maintain Libtool? --akim.
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.
$ac_ext >&5
2163 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2164 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: C compiler cannot create executables
2168 See \`config.log' for more details." >&2;}
2169 { (exit 77); exit 77; }; }; }
2172 ac_exeext
=$ac_cv_exeext
2173 echo "$as_me:$LINENO: result: $ac_file" >&5
2174 echo "${ECHO_T}$ac_file" >&6
2176 # Check the compiler produces executables we can run. If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2179 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2180 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2181 # If not cross compiling, check that we can run a simple program.
2182 if test "$cross_compiling" != yes; then
2183 if { ac_try
='./$ac_file'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2191 if test "$cross_compiling" = maybe
; then
2194 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2195 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2197 If you meant to cross compile, use \`--host'.
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: cannot run C compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&2;}
2202 { (exit 1); exit 1; }; }; }
2206 echo "$as_me:$LINENO: result: yes" >&5
2207 echo "${ECHO_T}yes" >&6
2209 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2210 ac_clean_files
=$ac_clean_files_save
2211 # Check the compiler produces executables we can run. If not, either
2212 # the compiler is broken, or we cross compile.
2213 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2214 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2215 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2216 echo "${ECHO_T}$cross_compiling" >&6
2218 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2219 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2221 (eval $ac_link) 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; then
2225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2227 # work properly (i.e., refer to `conftest.exe'), while it won't with
2229 for ac_file
in conftest.exe conftest conftest.
*; do
2230 test -f "$ac_file" ||
continue
2232 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2233 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2241 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }; }
2249 rm -f conftest
$ac_cv_exeext
2250 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2251 echo "${ECHO_T}$ac_cv_exeext" >&6
2253 rm -f conftest.
$ac_ext
2254 EXEEXT
=$ac_cv_exeext
2256 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2257 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2258 if test "${ac_cv_objext+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 cat >conftest.
$ac_ext <<_ACEOF
2264 cat confdefs.h
>>conftest.
$ac_ext
2265 cat >>conftest.
$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2276 rm -f conftest.o conftest.obj
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; then
2282 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2284 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2285 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.
$ac_ext >&5
2293 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2294 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2298 See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }; }
2302 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2304 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2305 echo "${ECHO_T}$ac_cv_objext" >&6
2306 OBJEXT
=$ac_cv_objext
2308 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2309 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2310 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 cat >conftest.
$ac_ext <<_ACEOF
2316 cat confdefs.h
>>conftest.
$ac_ext
2317 cat >>conftest.
$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2331 rm -f conftest.
$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2335 grep -v '^ *+' conftest.er1
>conftest.err
2337 cat conftest.err
>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try
='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try
='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.
$ac_ext >&5
2360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2361 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2364 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2365 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2366 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2367 ac_test_CFLAGS
=${CFLAGS+set}
2368 ac_save_CFLAGS
=$CFLAGS
2370 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2371 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2372 if test "${ac_cv_prog_cc_g+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 cat >conftest.
$ac_ext <<_ACEOF
2378 cat confdefs.h
>>conftest.
$ac_ext
2379 cat >>conftest.
$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2390 rm -f conftest.
$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>conftest.er1
2394 grep -v '^ *+' conftest.er1
>conftest.err
2396 cat conftest.err
>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try
='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try
='test -s conftest.$ac_objext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.
$ac_ext >&5
2419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2421 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2422 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2423 if test "$ac_test_CFLAGS" = set; then
2424 CFLAGS
=$ac_save_CFLAGS
2425 elif test $ac_cv_prog_cc_g = yes; then
2426 if test "$GCC" = yes; then
2432 if test "$GCC" = yes; then
2438 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2439 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2440 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 ac_cv_prog_cc_stdc
=no
2445 cat >conftest.
$ac_ext <<_ACEOF
2448 cat confdefs.h
>>conftest.
$ac_ext
2449 cat >>conftest.
$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2453 #include <sys/types.h>
2454 #include <sys/stat.h>
2455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2456 struct buf { int x; };
2457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2458 static char *e (p, i)
2464 static char *f (char * (*g) (char **, int), char **p, ...)
2469 s = g (p, va_arg (v,int));
2474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2475 function prototypes and stuff, but not '\xHH' hex character constants.
2476 These don't provoke an error unfortunately, instead are silently treated
2477 as 'x'. The following induces an error, until -std1 is added to get
2478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2479 array size at least. It's necessary to write '\x00'==0 to get something
2480 that's true only with -std1. */
2481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2483 int test (int i, double x);
2484 struct s1 {int (*f) (int a);};
2485 struct s2 {int (*f) (double a);};
2486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2497 # Don't try gcc -ansi; that turns off useful extensions and
2498 # breaks some systems' header files.
2499 # AIX -qlanglvl=ansi
2500 # Ultrix and OSF/1 -std1
2501 # HP-UX 10.20 and later -Ae
2502 # HP-UX older versions -Aa -D_HPUX_SOURCE
2503 # SVR4 -Xc -D__EXTENSIONS__
2504 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2506 CC
="$ac_save_CC $ac_arg"
2507 rm -f conftest.
$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>conftest.er1
2511 grep -v '^ *+' conftest.er1
>conftest.err
2513 cat conftest.err
>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try
='test -z "$ac_c_werror_flag"
2517 || test ! -s conftest.err'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; } &&
2523 { ac_try
='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2529 ac_cv_prog_cc_stdc
=$ac_arg
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.
$ac_ext >&5
2536 rm -f conftest.err conftest.
$ac_objext
2538 rm -f conftest.
$ac_ext conftest.
$ac_objext
2543 case "x$ac_cv_prog_cc_stdc" in
2545 echo "$as_me:$LINENO: result: none needed" >&5
2546 echo "${ECHO_T}none needed" >&6 ;;
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2550 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2553 # Some people use a C++ compiler to compile C. Since we use `exit',
2554 # in C++ we need to declare it. In case someone uses the same compiler
2555 # for both compiling C and C++ we need to have the C++ compiler decide
2556 # the declaration of exit, since it's the most demanding environment.
2557 cat >conftest.
$ac_ext <<_ACEOF
2562 rm -f conftest.
$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2566 grep -v '^ *+' conftest.er1
>conftest.err
2568 cat conftest.err
>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try
='test -z "$ac_c_werror_flag"
2572 || test ! -s conftest.err'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try
='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 for ac_declaration
in \
2586 'extern "C" void std::exit (int) throw (); using std::exit;' \
2587 'extern "C" void std::exit (int); using std::exit;' \
2588 'extern "C" void exit (int) throw ();' \
2589 'extern "C" void exit (int);' \
2592 cat >conftest.
$ac_ext <<_ACEOF
2595 cat confdefs.h
>>conftest.
$ac_ext
2596 cat >>conftest.
$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2608 rm -f conftest.
$ac_objext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>conftest.er1
2612 grep -v '^ *+' conftest.er1
>conftest.err
2614 cat conftest.err
>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try
='test -z "$ac_c_werror_flag"
2618 || test ! -s conftest.err'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try
='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.
$ac_ext >&5
2637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2638 cat >conftest.
$ac_ext <<_ACEOF
2641 cat confdefs.h
>>conftest.
$ac_ext
2642 cat >>conftest.
$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2653 rm -f conftest.
$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>conftest.er1
2657 grep -v '^ *+' conftest.er1
>conftest.err
2659 cat conftest.err
>&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } &&
2662 { ac_try
='test -z "$ac_c_werror_flag"
2663 || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try
='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.
$ac_ext >&5
2681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2684 if test -n "$ac_declaration"; then
2685 echo '#ifdef __cplusplus' >>confdefs.h
2686 echo $ac_declaration >>confdefs.h
2687 echo '#endif' >>confdefs.h
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.
$ac_ext >&5
2695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2697 ac_cpp
='$CPP $CPPFLAGS'
2698 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2702 # Find a good install program. We prefer a C program (faster),
2703 # so one script is as good as another. But avoid the broken or
2704 # incompatible versions:
2705 # SysV /etc/install, /usr/sbin/install
2706 # SunOS /usr/etc/install
2707 # IRIX /sbin/install
2709 # AmigaOS /C/install, which installs bootblocks on floppy discs
2710 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2711 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2712 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2713 # OS/2's system install, which has a completely different semantic
2714 # ./install, which can be erroneously created by make from ./install.sh.
2715 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2716 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2717 if test -z "$INSTALL"; then
2718 if test "${ac_cv_path_install+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir
=.
2726 # Account for people who put trailing slashes in PATH elements.
2728 .
/ | .
// |
/cC
/* | \
2729 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2730 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2733 # OSF1 and SCO ODT 3.0 have their own names for install.
2734 # Don't use installbsd from OSF since it installs stuff as root
2736 for ac_prog
in ginstall scoinst
install; do
2737 for ac_exec_ext
in '' $ac_executable_extensions; do
2738 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2739 if test $ac_prog = install &&
2740 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2741 # AIX install. It has an incompatible calling convention.
2743 elif test $ac_prog = install &&
2744 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2745 # program-specific install script used by HP pwplus--don't use.
2748 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2760 if test "${ac_cv_path_install+set}" = set; then
2761 INSTALL
=$ac_cv_path_install
2763 # As a last resort, use the slow shell script. We don't cache a
2764 # path for INSTALL within a source directory, because that will
2765 # break other packages using the cache if that directory is
2766 # removed, or if the path is relative.
2767 INSTALL
=$ac_install_sh
2770 echo "$as_me:$LINENO: result: $INSTALL" >&5
2771 echo "${ECHO_T}$INSTALL" >&6
2773 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2774 # It thinks the first close brace ends the variable substitution.
2775 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2777 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2779 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2782 # Put a plausible default for CC_FOR_BUILD in Makefile.
2783 if test "x$cross_compiling" = "xno"; then
2784 CC_FOR_BUILD
='$(CC)'
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2796 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_RANLIB+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 if test -n "$RANLIB"; then
2803 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir
=.
2810 for ac_exec_ext
in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 RANLIB
=$ac_cv_prog_RANLIB
2822 if test -n "$RANLIB"; then
2823 echo "$as_me:$LINENO: result: $RANLIB" >&5
2824 echo "${ECHO_T}$RANLIB" >&6
2826 echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2831 if test -z "$ac_cv_prog_RANLIB"; then
2832 ac_ct_RANLIB
=$RANLIB
2833 # Extract the first word of "ranlib", so it can be a program name with args.
2834 set dummy ranlib
; ac_word
=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$ac_ct_RANLIB"; then
2841 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir
=.
2848 for ac_exec_ext
in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2860 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2861 if test -n "$ac_ct_RANLIB"; then
2862 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2863 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2865 echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6
2869 RANLIB
=$ac_ct_RANLIB
2871 RANLIB
="$ac_cv_prog_RANLIB"
2876 # If we haven't got the data from the intl directory,
2877 # assume NLS is disabled.
2886 if test -f ..
/..
/intl
/config.intl
; then
2887 . ..
/..
/intl
/config.intl
2889 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2890 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2891 if test x
"$USE_NLS" != xyes
; then
2892 echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6
2895 echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2898 cat >>confdefs.h
<<\_ACEOF
2899 #define ENABLE_NLS 1
2903 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2904 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2905 # Look for .po and .gmo files in the source directory.
2908 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
2909 # If there aren't any .gmo files the shell will give us the
2910 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2912 case "$cat" in *\
**)
2915 # The quadruple backslash is collapsed to a double backslash
2916 # by the backticks, then collapsed again by the double quotes,
2917 # leaving us with one backslash in the sed expression (right
2918 # before the dot that mustn't act as a wildcard).
2919 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2920 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
2921 # The user is allowed to set LINGUAS to a list of languages to
2922 # install catalogs for. If it's empty that means "all of them."
2923 if test "x$LINGUAS" = x
; then
2924 CATALOGS
="$CATALOGS $cat"
2925 XLINGUAS
="$XLINGUAS $lang"
2927 case "$LINGUAS" in *$lang*)
2928 CATALOGS
="$CATALOGS $cat"
2929 XLINGUAS
="$XLINGUAS $lang"
2935 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2936 echo "${ECHO_T}$LINGUAS" >&6
2949 # Check for common headers.
2950 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2951 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2954 ac_cpp
='$CPP $CPPFLAGS'
2955 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2958 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2959 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2960 # On Suns, sometimes $CPP names a directory.
2961 if test -n "$CPP" && test -d "$CPP"; then
2964 if test -z "$CPP"; then
2965 if test "${ac_cv_prog_CPP+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 # Double quotes because CPP needs to be expanded
2969 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2972 for ac_c_preproc_warn_flag
in '' yes
2974 # Use a header file that comes with gcc, so configuring glibc
2975 # with a fresh cross-compiler works.
2976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2977 # <limits.h> exists even on freestanding compilers.
2978 # On the NeXT, cc -E runs the code through the compiler's parser,
2979 # not just through cpp. "Syntax error" is here to catch this case.
2980 cat >conftest.
$ac_ext <<_ACEOF
2983 cat confdefs.h
>>conftest.
$ac_ext
2984 cat >>conftest.
$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2987 # include <limits.h>
2989 # include <assert.h>
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1
>conftest.err
2998 cat conftest.err
>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev
/null
; then
3001 if test -s conftest.err
; then
3002 ac_cpp_err
=$ac_c_preproc_warn_flag
3003 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3010 if test -z "$ac_cpp_err"; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.
$ac_ext >&5
3016 # Broken: fails on valid input.
3019 rm -f conftest.err conftest.
$ac_ext
3021 # OK, works on sane cases. Now check whether non-existent headers
3022 # can be detected and how.
3023 cat >conftest.
$ac_ext <<_ACEOF
3026 cat confdefs.h
>>conftest.
$ac_ext
3027 cat >>conftest.
$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3029 #include <ac_nonexistent.h>
3031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3034 grep -v '^ *+' conftest.er1
>conftest.err
3036 cat conftest.err
>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev
/null
; then
3039 if test -s conftest.err
; then
3040 ac_cpp_err
=$ac_c_preproc_warn_flag
3041 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3048 if test -z "$ac_cpp_err"; then
3049 # Broken: success on invalid input.
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3055 # Passes both tests.
3059 rm -f conftest.err conftest.
$ac_ext
3062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3063 rm -f conftest.err conftest.
$ac_ext
3064 if $ac_preproc_ok; then
3076 echo "$as_me:$LINENO: result: $CPP" >&5
3077 echo "${ECHO_T}$CPP" >&6
3079 for ac_c_preproc_warn_flag
in '' yes
3081 # Use a header file that comes with gcc, so configuring glibc
3082 # with a fresh cross-compiler works.
3083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084 # <limits.h> exists even on freestanding compilers.
3085 # On the NeXT, cc -E runs the code through the compiler's parser,
3086 # not just through cpp. "Syntax error" is here to catch this case.
3087 cat >conftest.
$ac_ext <<_ACEOF
3090 cat confdefs.h
>>conftest.
$ac_ext
3091 cat >>conftest.
$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3094 # include <limits.h>
3096 # include <assert.h>
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1
>conftest.err
3105 cat conftest.err
>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev
/null
; then
3108 if test -s conftest.err
; then
3109 ac_cpp_err
=$ac_c_preproc_warn_flag
3110 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3117 if test -z "$ac_cpp_err"; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.
$ac_ext >&5
3123 # Broken: fails on valid input.
3126 rm -f conftest.err conftest.
$ac_ext
3128 # OK, works on sane cases. Now check whether non-existent headers
3129 # can be detected and how.
3130 cat >conftest.
$ac_ext <<_ACEOF
3133 cat confdefs.h
>>conftest.
$ac_ext
3134 cat >>conftest.
$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #include <ac_nonexistent.h>
3138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3139 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3141 grep -v '^ *+' conftest.er1
>conftest.err
3143 cat conftest.err
>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } >/dev
/null
; then
3146 if test -s conftest.err
; then
3147 ac_cpp_err
=$ac_c_preproc_warn_flag
3148 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3155 if test -z "$ac_cpp_err"; then
3156 # Broken: success on invalid input.
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.
$ac_ext >&5
3162 # Passes both tests.
3166 rm -f conftest.err conftest.
$ac_ext
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.err conftest.
$ac_ext
3171 if $ac_preproc_ok; then
3174 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3175 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3177 See \`config.log' for more details." >&5
3178 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3179 See \`config.log' for more details." >&2;}
3180 { (exit 1); exit 1; }; }; }
3184 ac_cpp
='$CPP $CPPFLAGS'
3185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3190 echo "$as_me:$LINENO: checking for egrep" >&5
3191 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3192 if test "${ac_cv_prog_egrep+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3196 then ac_cv_prog_egrep
='grep -E'
3197 else ac_cv_prog_egrep
='egrep'
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3201 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3202 EGREP
=$ac_cv_prog_egrep
3205 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3206 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3207 if test "${ac_cv_header_stdc+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 cat >conftest.
$ac_ext <<_ACEOF
3213 cat confdefs.h
>>conftest.
$ac_ext
3214 cat >>conftest.
$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3229 rm -f conftest.
$ac_objext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>conftest.er1
3233 grep -v '^ *+' conftest.er1
>conftest.err
3235 cat conftest.err
>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try
='test -z "$ac_c_werror_flag"
3239 || test ! -s conftest.err'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try
='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_cv_header_stdc
=yes
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.
$ac_ext >&5
3256 ac_cv_header_stdc
=no
3258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3260 if test $ac_cv_header_stdc = yes; then
3261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3262 cat >conftest.
$ac_ext <<_ACEOF
3265 cat confdefs.h
>>conftest.
$ac_ext
3266 cat >>conftest.
$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3272 $EGREP "memchr" >/dev
/null
2>&1; then
3275 ac_cv_header_stdc
=no
3281 if test $ac_cv_header_stdc = yes; then
3282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3283 cat >conftest.
$ac_ext <<_ACEOF
3286 cat confdefs.h
>>conftest.
$ac_ext
3287 cat >>conftest.
$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3293 $EGREP "free" >/dev
/null
2>&1; then
3296 ac_cv_header_stdc
=no
3302 if test $ac_cv_header_stdc = yes; then
3303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3304 if test "$cross_compiling" = yes; then
3307 cat >conftest.
$ac_ext <<_ACEOF
3310 cat confdefs.h
>>conftest.
$ac_ext
3311 cat >>conftest.
$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3314 #if ((' ' & 0x0FF) == 0x020)
3315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3318 # define ISLOWER(c) \
3319 (('a' <= (c) && (c) <= 'i') \
3320 || ('j' <= (c) && (c) <= 'r') \
3321 || ('s' <= (c) && (c) <= 'z'))
3322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3330 for (i = 0; i < 256; i++)
3331 if (XOR (islower (i), ISLOWER (i))
3332 || toupper (i) != TOUPPER (i))
3337 rm -f conftest
$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339 (eval $ac_link) 2>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3350 echo "$as_me: program exited with status $ac_status" >&5
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.
$ac_ext >&5
3355 ac_cv_header_stdc
=no
3357 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3361 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3362 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3363 if test $ac_cv_header_stdc = yes; then
3365 cat >>confdefs.h
<<\_ACEOF
3366 #define STDC_HEADERS 1
3371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3381 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3382 inttypes.h stdint.h unistd.h
3384 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3385 echo "$as_me:$LINENO: checking for $ac_header" >&5
3386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 cat >conftest.
$ac_ext <<_ACEOF
3393 cat confdefs.h
>>conftest.
$ac_ext
3394 cat >>conftest.
$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 $ac_includes_default
3398 #include <$ac_header>
3400 rm -f conftest.
$ac_objext
3401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>conftest.er1
3404 grep -v '^ *+' conftest.er1
>conftest.err
3406 cat conftest.err
>&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try
='test -z "$ac_c_werror_flag"
3410 || test ! -s conftest.err'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; } &&
3416 { ac_try
='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 eval "$as_ac_Header=yes"
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.
$ac_ext >&5
3427 eval "$as_ac_Header=no"
3429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3434 cat >>confdefs.h
<<_ACEOF
3435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3448 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
3450 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3452 echo "$as_me:$LINENO: checking for $ac_header" >&5
3453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3460 # Is the header compilable?
3461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3463 cat >conftest.
$ac_ext <<_ACEOF
3466 cat confdefs.h
>>conftest.
$ac_ext
3467 cat >>conftest.
$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 $ac_includes_default
3470 #include <$ac_header>
3472 rm -f conftest.
$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>conftest.er1
3476 grep -v '^ *+' conftest.er1
>conftest.err
3478 cat conftest.err
>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 { ac_try
='test -z "$ac_c_werror_flag"
3482 || test ! -s conftest.err'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; } &&
3488 { ac_try
='test -s conftest.$ac_objext'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 ac_header_compiler
=yes
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.
$ac_ext >&5
3499 ac_header_compiler
=no
3501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3503 echo "${ECHO_T}$ac_header_compiler" >&6
3505 # Is the header present?
3506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3508 cat >conftest.
$ac_ext <<_ACEOF
3511 cat confdefs.h
>>conftest.
$ac_ext
3512 cat >>conftest.
$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <$ac_header>
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3519 grep -v '^ *+' conftest.er1
>conftest.err
3521 cat conftest.err
>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev
/null
; then
3524 if test -s conftest.err
; then
3525 ac_cpp_err
=$ac_c_preproc_warn_flag
3526 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3533 if test -z "$ac_cpp_err"; then
3534 ac_header_preproc
=yes
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.
$ac_ext >&5
3539 ac_header_preproc
=no
3541 rm -f conftest.err conftest.
$ac_ext
3542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3543 echo "${ECHO_T}$ac_header_preproc" >&6
3545 # So? What about this header?
3546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3552 ac_header_preproc
=yes
3555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3569 ## ------------------------------------------ ##
3570 ## Report this to the AC_PACKAGE_NAME lists. ##
3571 ## ------------------------------------------ ##
3574 sed "s/^/$as_me: WARNING: /" >&2
3577 echo "$as_me:$LINENO: checking for $ac_header" >&5
3578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 eval "$as_ac_Header=\$ac_header_preproc"
3584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3589 cat >>confdefs.h
<<_ACEOF
3590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3599 for ac_header
in sys
/time.h sys
/resource.h
3601 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3603 echo "$as_me:$LINENO: checking for $ac_header" >&5
3604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3611 # Is the header compilable?
3612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3614 cat >conftest.
$ac_ext <<_ACEOF
3617 cat confdefs.h
>>conftest.
$ac_ext
3618 cat >>conftest.
$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 $ac_includes_default
3621 #include <$ac_header>
3623 rm -f conftest.
$ac_objext
3624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3625 (eval $ac_compile) 2>conftest.er1
3627 grep -v '^ *+' conftest.er1
>conftest.err
3629 cat conftest.err
>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } &&
3632 { ac_try
='test -z "$ac_c_werror_flag"
3633 || test ! -s conftest.err'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; } &&
3639 { ac_try
='test -s conftest.$ac_objext'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 ac_header_compiler
=yes
3647 echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.
$ac_ext >&5
3650 ac_header_compiler
=no
3652 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3654 echo "${ECHO_T}$ac_header_compiler" >&6
3656 # Is the header present?
3657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3659 cat >conftest.
$ac_ext <<_ACEOF
3662 cat confdefs.h
>>conftest.
$ac_ext
3663 cat >>conftest.
$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 #include <$ac_header>
3667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3668 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3670 grep -v '^ *+' conftest.er1
>conftest.err
3672 cat conftest.err
>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } >/dev
/null
; then
3675 if test -s conftest.err
; then
3676 ac_cpp_err
=$ac_c_preproc_warn_flag
3677 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3684 if test -z "$ac_cpp_err"; then
3685 ac_header_preproc
=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.
$ac_ext >&5
3690 ac_header_preproc
=no
3692 rm -f conftest.err conftest.
$ac_ext
3693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3694 echo "${ECHO_T}$ac_header_preproc" >&6
3696 # So? What about this header?
3697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3703 ac_header_preproc
=yes
3706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3720 ## ------------------------------------------ ##
3721 ## Report this to the AC_PACKAGE_NAME lists. ##
3722 ## ------------------------------------------ ##
3725 sed "s/^/$as_me: WARNING: /" >&2
3728 echo "$as_me:$LINENO: checking for $ac_header" >&5
3729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 eval "$as_ac_Header=\$ac_header_preproc"
3735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3740 cat >>confdefs.h
<<_ACEOF
3741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3750 for ac_header
in fcntl.h fpu_control.h
3752 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3754 echo "$as_me:$LINENO: checking for $ac_header" >&5
3755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3762 # Is the header compilable?
3763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3765 cat >conftest.
$ac_ext <<_ACEOF
3768 cat confdefs.h
>>conftest.
$ac_ext
3769 cat >>conftest.
$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 $ac_includes_default
3772 #include <$ac_header>
3774 rm -f conftest.
$ac_objext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776 (eval $ac_compile) 2>conftest.er1
3778 grep -v '^ *+' conftest.er1
>conftest.err
3780 cat conftest.err
>&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try
='test -z "$ac_c_werror_flag"
3784 || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try
='test -s conftest.$ac_objext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_header_compiler
=yes
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.
$ac_ext >&5
3801 ac_header_compiler
=no
3803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3805 echo "${ECHO_T}$ac_header_compiler" >&6
3807 # Is the header present?
3808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3810 cat >conftest.
$ac_ext <<_ACEOF
3813 cat confdefs.h
>>conftest.
$ac_ext
3814 cat >>conftest.
$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #include <$ac_header>
3818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3819 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3821 grep -v '^ *+' conftest.er1
>conftest.err
3823 cat conftest.err
>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } >/dev
/null
; then
3826 if test -s conftest.err
; then
3827 ac_cpp_err
=$ac_c_preproc_warn_flag
3828 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3835 if test -z "$ac_cpp_err"; then
3836 ac_header_preproc
=yes
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.
$ac_ext >&5
3841 ac_header_preproc
=no
3843 rm -f conftest.err conftest.
$ac_ext
3844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3845 echo "${ECHO_T}$ac_header_preproc" >&6
3847 # So? What about this header?
3848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3854 ac_header_preproc
=yes
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3871 ## ------------------------------------------ ##
3872 ## Report this to the AC_PACKAGE_NAME lists. ##
3873 ## ------------------------------------------ ##
3876 sed "s/^/$as_me: WARNING: /" >&2
3879 echo "$as_me:$LINENO: checking for $ac_header" >&5
3880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 eval "$as_ac_Header=\$ac_header_preproc"
3886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3891 cat >>confdefs.h
<<_ACEOF
3892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3902 for ac_header
in dlfcn.h errno.h sys
/stat.h
3904 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3906 echo "$as_me:$LINENO: checking for $ac_header" >&5
3907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3914 # Is the header compilable?
3915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3917 cat >conftest.
$ac_ext <<_ACEOF
3920 cat confdefs.h
>>conftest.
$ac_ext
3921 cat >>conftest.
$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923 $ac_includes_default
3924 #include <$ac_header>
3926 rm -f conftest.
$ac_objext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>conftest.er1
3930 grep -v '^ *+' conftest.er1
>conftest.err
3932 cat conftest.err
>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try
='test -z "$ac_c_werror_flag"
3936 || test ! -s conftest.err'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; } &&
3942 { ac_try
='test -s conftest.$ac_objext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 ac_header_compiler
=yes
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.
$ac_ext >&5
3953 ac_header_compiler
=no
3955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3957 echo "${ECHO_T}$ac_header_compiler" >&6
3959 # Is the header present?
3960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3962 cat >conftest.
$ac_ext <<_ACEOF
3965 cat confdefs.h
>>conftest.
$ac_ext
3966 cat >>conftest.
$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 #include <$ac_header>
3970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3971 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3973 grep -v '^ *+' conftest.er1
>conftest.err
3975 cat conftest.err
>&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } >/dev
/null
; then
3978 if test -s conftest.err
; then
3979 ac_cpp_err
=$ac_c_preproc_warn_flag
3980 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3987 if test -z "$ac_cpp_err"; then
3988 ac_header_preproc
=yes
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.
$ac_ext >&5
3993 ac_header_preproc
=no
3995 rm -f conftest.err conftest.
$ac_ext
3996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3997 echo "${ECHO_T}$ac_header_preproc" >&6
3999 # So? What about this header?
4000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4006 ac_header_preproc
=yes
4009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4023 ## ------------------------------------------ ##
4024 ## Report this to the AC_PACKAGE_NAME lists. ##
4025 ## ------------------------------------------ ##
4028 sed "s/^/$as_me: WARNING: /" >&2
4031 echo "$as_me:$LINENO: checking for $ac_header" >&5
4032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 eval "$as_ac_Header=\$ac_header_preproc"
4038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4043 cat >>confdefs.h
<<_ACEOF
4044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055 for ac_func
in getrusage
time sigaction __setfpucw
4057 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4058 echo "$as_me:$LINENO: checking for $ac_func" >&5
4059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4060 if eval "test \"\${$as_ac_var+set}\" = set"; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 cat >conftest.
$ac_ext <<_ACEOF
4066 cat confdefs.h
>>conftest.
$ac_ext
4067 cat >>conftest.
$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4071 #define $ac_func innocuous_$ac_func
4073 /* System header to define __stub macros and hopefully few prototypes,
4074 which can conflict with char $ac_func (); below.
4075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4076 <limits.h> exists even on freestanding compilers. */
4079 # include <limits.h>
4081 # include <assert.h>
4086 /* Override any gcc2 internal prototype to avoid an error. */
4091 /* We use char because int might match the return type of a gcc2
4092 builtin and then its argument prototype would still apply. */
4094 /* The GNU C library defines this for functions which it implements
4095 to always fail with ENOSYS. Some functions are actually named
4096 something starting with __ and the normal name is an alias. */
4097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4100 char (*f) () = $ac_func;
4109 return f != $ac_func;
4114 rm -f conftest.
$ac_objext conftest
$ac_exeext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4116 (eval $ac_link) 2>conftest.er1
4118 grep -v '^ *+' conftest.er1
>conftest.err
4120 cat conftest.err
>&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try
='test -z "$ac_c_werror_flag"
4124 || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try
='test -s conftest$ac_exeext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 eval "$as_ac_var=yes"
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.
$ac_ext >&5
4141 eval "$as_ac_var=no"
4143 rm -f conftest.err conftest.
$ac_objext \
4144 conftest
$ac_exeext conftest.
$ac_ext
4146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4148 if test `eval echo '${'$as_ac_var'}'` = yes; then
4149 cat >>confdefs.h
<<_ACEOF
4150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4157 # Check for socket libraries
4159 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4160 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4161 if test "${ac_cv_lib_socket_bind+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 ac_check_lib_save_LIBS
=$LIBS
4165 LIBS
="-lsocket $LIBS"
4166 cat >conftest.
$ac_ext <<_ACEOF
4169 cat confdefs.h
>>conftest.
$ac_ext
4170 cat >>conftest.
$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4188 rm -f conftest.
$ac_objext conftest
$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>conftest.er1
4192 grep -v '^ *+' conftest.er1
>conftest.err
4194 cat conftest.err
>&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try
='test -z "$ac_c_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try
='test -s conftest$ac_exeext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_lib_socket_bind
=yes
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.
$ac_ext >&5
4215 ac_cv_lib_socket_bind
=no
4217 rm -f conftest.err conftest.
$ac_objext \
4218 conftest
$ac_exeext conftest.
$ac_ext
4219 LIBS
=$ac_check_lib_save_LIBS
4221 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4222 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4223 if test $ac_cv_lib_socket_bind = yes; then
4224 cat >>confdefs.h
<<_ACEOF
4225 #define HAVE_LIBSOCKET 1
4228 LIBS
="-lsocket $LIBS"
4233 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4234 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4235 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 ac_check_lib_save_LIBS
=$LIBS
4240 cat >conftest.
$ac_ext <<_ACEOF
4243 cat confdefs.h
>>conftest.
$ac_ext
4244 cat >>conftest.
$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4247 /* Override any gcc2 internal prototype to avoid an error. */
4251 /* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4253 char gethostbyname ();
4262 rm -f conftest.
$ac_objext conftest
$ac_exeext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264 (eval $ac_link) 2>conftest.er1
4266 grep -v '^ *+' conftest.er1
>conftest.err
4268 cat conftest.err
>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try
='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try
='test -s conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_lib_nsl_gethostbyname
=yes
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.
$ac_ext >&5
4289 ac_cv_lib_nsl_gethostbyname
=no
4291 rm -f conftest.err conftest.
$ac_objext \
4292 conftest
$ac_exeext conftest.
$ac_ext
4293 LIBS
=$ac_check_lib_save_LIBS
4295 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4296 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4297 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4298 cat >>confdefs.h
<<_ACEOF
4299 #define HAVE_LIBNSL 1
4307 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4308 # using the same condition.
4309 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4310 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4311 if test "${ac_cv_search_zlibVersion+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_func_search_save_LIBS
=$LIBS
4315 ac_cv_search_zlibVersion
=no
4316 cat >conftest.
$ac_ext <<_ACEOF
4319 cat confdefs.h
>>conftest.
$ac_ext
4320 cat >>conftest.
$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4323 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4329 char zlibVersion ();
4338 rm -f conftest.
$ac_objext conftest
$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>conftest.er1
4342 grep -v '^ *+' conftest.er1
>conftest.err
4344 cat conftest.err
>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try
='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try
='test -s conftest$ac_exeext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_search_zlibVersion
="none required"
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.
$ac_ext >&5
4366 rm -f conftest.err conftest.
$ac_objext \
4367 conftest
$ac_exeext conftest.
$ac_ext
4368 if test "$ac_cv_search_zlibVersion" = no
; then
4370 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4371 cat >conftest.
$ac_ext <<_ACEOF
4374 cat confdefs.h
>>conftest.
$ac_ext
4375 cat >>conftest.
$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4378 /* Override any gcc2 internal prototype to avoid an error. */
4382 /* We use char because int might match the return type of a gcc2
4383 builtin and then its argument prototype would still apply. */
4384 char zlibVersion ();
4393 rm -f conftest.
$ac_objext conftest
$ac_exeext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4395 (eval $ac_link) 2>conftest.er1
4397 grep -v '^ *+' conftest.er1
>conftest.err
4399 cat conftest.err
>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try
='test -z "$ac_c_werror_flag"
4403 || test ! -s conftest.err'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; } &&
4409 { ac_try
='test -s conftest$ac_exeext'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4415 ac_cv_search_zlibVersion
="-l$ac_lib"
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.
$ac_ext >&5
4422 rm -f conftest.err conftest.
$ac_objext \
4423 conftest
$ac_exeext conftest.
$ac_ext
4426 LIBS
=$ac_func_search_save_LIBS
4428 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4429 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4430 if test "$ac_cv_search_zlibVersion" != no
; then
4431 test "$ac_cv_search_zlibVersion" = "none required" || LIBS
="$ac_cv_search_zlibVersion $LIBS"
4433 for ac_header
in zlib.h
4435 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo "$as_me:$LINENO: checking for $ac_header" >&5
4438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4445 # Is the header compilable?
4446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4448 cat >conftest.
$ac_ext <<_ACEOF
4451 cat confdefs.h
>>conftest.
$ac_ext
4452 cat >>conftest.
$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4455 #include <$ac_header>
4457 rm -f conftest.
$ac_objext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459 (eval $ac_compile) 2>conftest.er1
4461 grep -v '^ *+' conftest.er1
>conftest.err
4463 cat conftest.err
>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try
='test -z "$ac_c_werror_flag"
4467 || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try
='test -s conftest.$ac_objext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_header_compiler
=yes
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.
$ac_ext >&5
4484 ac_header_compiler
=no
4486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4488 echo "${ECHO_T}$ac_header_compiler" >&6
4490 # Is the header present?
4491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4493 cat >conftest.
$ac_ext <<_ACEOF
4496 cat confdefs.h
>>conftest.
$ac_ext
4497 cat >>conftest.
$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 #include <$ac_header>
4501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4502 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4504 grep -v '^ *+' conftest.er1
>conftest.err
4506 cat conftest.err
>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev
/null
; then
4509 if test -s conftest.err
; then
4510 ac_cpp_err
=$ac_c_preproc_warn_flag
4511 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4518 if test -z "$ac_cpp_err"; then
4519 ac_header_preproc
=yes
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.
$ac_ext >&5
4524 ac_header_preproc
=no
4526 rm -f conftest.err conftest.
$ac_ext
4527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4528 echo "${ECHO_T}$ac_header_preproc" >&6
4530 # So? What about this header?
4531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4537 ac_header_preproc
=yes
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4554 ## ------------------------------------------ ##
4555 ## Report this to the AC_PACKAGE_NAME lists. ##
4556 ## ------------------------------------------ ##
4559 sed "s/^/$as_me: WARNING: /" >&2
4562 echo "$as_me:$LINENO: checking for $ac_header" >&5
4563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 eval "$as_ac_Header=\$ac_header_preproc"
4569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4574 cat >>confdefs.h
<<_ACEOF
4575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 .
${srcdir}/..
/..
/bfd
/configure.
host
4589 USE_MAINTAINER_MODE
=no
4590 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4591 if test "${enable_maintainer_mode+set}" = set; then
4592 enableval
="$enable_maintainer_mode"
4593 case "${enableval}" in
4594 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
4596 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4597 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4598 { (exit 1); exit 1; }; }; MAINT
="#" ;;
4600 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
4601 echo "Setting maintainer mode" 6>&1
4608 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4609 if test "${enable_sim_bswap+set}" = set; then
4610 enableval
="$enable_sim_bswap"
4611 case "${enableval}" in
4612 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4613 no
) sim_bswap
="-DWITH_BSWAP=0";;
4614 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4615 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4616 { (exit 1); exit 1; }; }; sim_bswap
="";;
4618 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
4619 echo "Setting bswap flags = $sim_bswap" 6>&1
4626 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4627 if test "${enable_sim_cflags+set}" = set; then
4628 enableval
="$enable_sim_cflags"
4629 case "${enableval}" in
4630 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
4631 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4632 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4633 { (exit 1); exit 1; }; }; sim_cflags
="";;
4635 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4637 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
4638 echo "Setting sim cflags = $sim_cflags" 6>&1
4645 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4646 if test "${enable_sim_debug+set}" = set; then
4647 enableval
="$enable_sim_debug"
4648 case "${enableval}" in
4649 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
4650 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
4651 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4653 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
4654 echo "Setting sim debug = $sim_debug" 6>&1
4661 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4662 if test "${enable_sim_stdio+set}" = set; then
4663 enableval
="$enable_sim_stdio"
4664 case "${enableval}" in
4665 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4666 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4667 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4668 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4669 { (exit 1); exit 1; }; }; sim_stdio
="";;
4671 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4672 echo "Setting stdio flags = $sim_stdio" 6>&1
4679 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4680 if test "${enable_sim_trace+set}" = set; then
4681 enableval
="$enable_sim_trace"
4682 case "${enableval}" in
4683 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4684 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4686 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4689 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4690 if test x
"$sim_trace" = x
; then
4691 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4693 sim_trace
="${sim_trace}|TRACE_$x"
4696 sim_trace
="$sim_trace)'" ;;
4698 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4699 echo "Setting sim trace = $sim_trace" 6>&1
4706 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4707 if test "${enable_sim_profile+set}" = set; then
4708 enableval
="$enable_sim_profile"
4709 case "${enableval}" in
4710 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4711 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4713 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4716 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4717 if test x
"$sim_profile" = x
; then
4718 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4720 sim_profile
="${sim_profile}|PROFILE_$x"
4723 sim_profile
="$sim_profile)'" ;;
4725 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4726 echo "Setting sim profile = $sim_profile" 6>&1
4729 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4734 # Check whether --with-pkgversion or --without-pkgversion was given.
4735 if test "${with_pkgversion+set}" = set; then
4736 withval
="$with_pkgversion"
4738 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4739 echo "$as_me: error: package version not specified" >&2;}
4740 { (exit 1); exit 1; }; } ;;
4742 *) PKGVERSION
="($withval) " ;;
4752 # Check whether --with-bugurl or --without-bugurl was given.
4753 if test "${with_bugurl+set}" = set; then
4754 withval
="$with_bugurl"
4756 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4757 echo "$as_me: error: bug URL not specified" >&2;}
4758 { (exit 1); exit 1; }; } ;;
4761 *) BUGURL
="$withval"
4765 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4774 REPORT_BUGS_TO
="<$BUGURL>"
4775 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4782 cat >>confdefs.h
<<_ACEOF
4783 #define PKGVERSION "$PKGVERSION"
4787 cat >>confdefs.h
<<_ACEOF
4788 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4792 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4793 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4794 if test "${ac_cv_type_signal+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 cat >conftest.
$ac_ext <<_ACEOF
4800 cat confdefs.h
>>conftest.
$ac_ext
4801 cat >>conftest.
$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 #include <sys/types.h>
4809 extern "C" void (*signal (int, void (*)(int)))(int);
4811 void (*signal ()) ();
4822 rm -f conftest.
$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1
>conftest.err
4828 cat conftest.err
>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try
='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_type_signal
=void
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.
$ac_ext >&5
4849 ac_cv_type_signal
=int
4851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4854 echo "${ECHO_T}$ac_cv_type_signal" >&6
4856 cat >>confdefs.h
<<_ACEOF
4857 #define RETSIGTYPE $ac_cv_type_signal
4867 sim_link_links
=tconfig.h
4868 if test -f ${srcdir}/tconfig.
in
4870 sim_link_files
=tconfig.
in
4872 sim_link_files
=..
/common
/tconfig.
in
4875 # targ-vals.def points to the libc macro description file.
4877 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4879 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4880 sim_link_links
="${sim_link_links} targ-vals.def"
4884 default_sim_inline
=""
4885 # Check whether --enable-sim-inline or --disable-sim-inline was given.
4886 if test "${enable_sim_inline+set}" = set; then
4887 enableval
="$enable_sim_inline"
4889 case "$enableval" in
4890 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4891 0) sim_inline
="-DDEFAULT_INLINE=0";;
4892 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4893 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4894 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4897 *_INLINE
=*) new_flag
="-D$x";;
4898 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4899 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4900 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4902 if test x
"$sim_inline" = x
""; then
4903 sim_inline
="$new_flag"
4905 sim_inline
="$sim_inline $new_flag"
4909 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4910 echo "Setting inline flags = $sim_inline" 6>&1
4914 if test "x$cross_compiling" = "xno"; then
4915 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4916 sim_inline
="${default_sim_inline}"
4917 if test x
"$silent" != x
"yes"; then
4918 echo "Setting inline flags = $sim_inline" 6>&1
4924 sim_inline
="-DDEFAULT_INLINE=0"
4927 wire_alignment
="NONSTRICT_ALIGNMENT"
4928 default_alignment
=""
4930 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4931 if test "${enable_sim_alignment+set}" = set; then
4932 enableval
="$enable_sim_alignment"
4933 case "${enableval}" in
4934 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4935 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4936 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4937 yes) if test x
"$wire_alignment" != x
; then
4938 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4940 if test x
"$default_alignment" != x
; then
4941 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4943 echo "No hard-wired alignment for target $target" 1>&6
4944 sim_alignment
="-DWITH_ALIGNMENT=0"
4947 no
) if test x
"$default_alignment" != x
; then
4948 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4950 if test x
"$wire_alignment" != x
; then
4951 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4953 echo "No default alignment for target $target" 1>&6
4954 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4957 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4958 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4959 { (exit 1); exit 1; }; }; sim_alignment
="";;
4961 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4962 echo "Setting alignment flags = $sim_alignment" 6>&1
4965 if test x
"$default_alignment" != x
; then
4966 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4968 if test x
"$wire_alignment" != x
; then
4969 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4976 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4977 if test "${enable_sim_hostendian+set}" = set; then
4978 enableval
="$enable_sim_hostendian"
4979 case "${enableval}" in
4980 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4981 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4982 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4983 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4984 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4985 { (exit 1); exit 1; }; }; sim_hostendian
="";;
4987 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4988 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4992 if test "x$cross_compiling" = "xno"; then
4993 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4994 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4995 if test "${ac_cv_c_bigendian+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 # See if sys/param.h defines the BYTE_ORDER macro.
4999 cat >conftest.
$ac_ext <<_ACEOF
5002 cat confdefs.h
>>conftest.
$ac_ext
5003 cat >>conftest.
$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 #include <sys/types.h>
5006 #include <sys/param.h>
5011 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5019 rm -f conftest.
$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>conftest.er1
5023 grep -v '^ *+' conftest.er1
>conftest.err
5025 cat conftest.err
>&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try
='test -z "$ac_c_werror_flag"
5029 || test ! -s conftest.err'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try
='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 # It does; now see whether it defined to BIG_ENDIAN or not.
5042 cat >conftest.
$ac_ext <<_ACEOF
5045 cat confdefs.h
>>conftest.
$ac_ext
5046 cat >>conftest.
$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <sys/types.h>
5049 #include <sys/param.h>
5054 #if BYTE_ORDER != BIG_ENDIAN
5062 rm -f conftest.
$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>conftest.er1
5066 grep -v '^ *+' conftest.er1
>conftest.err
5068 cat conftest.err
>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try
='test -z "$ac_c_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try
='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_cv_c_bigendian
=yes
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.
$ac_ext >&5
5089 ac_cv_c_bigendian
=no
5091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.
$ac_ext >&5
5096 # It does not; compile a test program.
5097 if test "$cross_compiling" = yes; then
5098 # try to guess the endianness by grepping values into an object file
5099 ac_cv_c_bigendian
=unknown
5100 cat >conftest.
$ac_ext <<_ACEOF
5103 cat confdefs.h
>>conftest.
$ac_ext
5104 cat >>conftest.
$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5107 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5108 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5109 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5110 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5111 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5115 _ascii (); _ebcdic ();
5120 rm -f conftest.
$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>conftest.er1
5124 grep -v '^ *+' conftest.er1
>conftest.err
5126 cat conftest.err
>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } &&
5129 { ac_try
='test -z "$ac_c_werror_flag"
5130 || test ! -s conftest.err'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try
='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5143 ac_cv_c_bigendian
=yes
5145 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5146 if test "$ac_cv_c_bigendian" = unknown
; then
5147 ac_cv_c_bigendian
=no
5149 # finding both strings is unlikely to happen, but who knows?
5150 ac_cv_c_bigendian
=unknown
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.
$ac_ext >&5
5158 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5160 cat >conftest.
$ac_ext <<_ACEOF
5163 cat confdefs.h
>>conftest.
$ac_ext
5164 cat >>conftest.
$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5169 /* Are we little or big endian? From Harbison&Steele. */
5173 char c[sizeof (long)];
5176 exit (u.c[sizeof (long) - 1] == 1);
5179 rm -f conftest
$ac_exeext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5181 (eval $ac_link) 2>&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_c_bigendian
=no
5192 echo "$as_me: program exited with status $ac_status" >&5
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.
$ac_ext >&5
5197 ac_cv_c_bigendian
=yes
5199 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5204 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5205 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5206 case $ac_cv_c_bigendian in
5209 cat >>confdefs.h
<<\_ACEOF
5210 #define WORDS_BIGENDIAN 1
5216 { { echo "$as_me:$LINENO: error: unknown endianness
5217 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5218 echo "$as_me: error: unknown endianness
5219 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5223 if test $ac_cv_c_bigendian = yes; then
5224 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5226 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5229 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
5233 # NOTE: Don't add -Wall or -Wunused, they both include
5234 # -Wunused-parameter which reports bogus warnings.
5235 # NOTE: If you add to this list, remember to update
5236 # gdb/doc/gdbint.texinfo.
5237 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5238 -Wformat -Wparentheses -Wpointer-arith"
5239 # GCC supports -Wuninitialized only with -O or -On, n != 0.
5240 if test x
${CFLAGS+set} = xset
; then
5244 build_warnings
="${build_warnings} -Wuninitialized"
5248 build_warnings
="${build_warnings} -Wuninitialized"
5250 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
5251 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
5252 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
5253 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5254 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5255 # -Woverloaded-virtual -Winline -Werror"
5256 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5257 if test "${enable_build_warnings+set}" = set; then
5258 enableval
="$enable_build_warnings"
5259 case "${enableval}" in
5261 no
) build_warnings
="-w";;
5262 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5263 build_warnings
="${build_warnings} ${t}";;
5264 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5265 build_warnings
="${t} ${build_warnings}";;
5266 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5268 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5269 echo "Setting compiler warning flags = $build_warnings" 6>&1
5271 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
5272 if test "${enable_sim_build_warnings+set}" = set; then
5273 enableval
="$enable_sim_build_warnings"
5274 case "${enableval}" in
5276 no
) build_warnings
="-w";;
5277 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5278 build_warnings
="${build_warnings} ${t}";;
5279 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5280 build_warnings
="${t} ${build_warnings}";;
5281 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5283 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5284 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5288 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5290 echo "$as_me:$LINENO: checking compiler warning flags" >&5
5291 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
5292 # Separate out the -Werror flag as some files just cannot be
5293 # compiled with it enabled.
5294 for w
in ${build_warnings}; do
5296 -Werr*) WERROR_CFLAGS
=-Werror ;;
5297 *) # Check that GCC accepts it
5298 saved_CFLAGS
="$CFLAGS"
5300 cat >conftest.
$ac_ext <<_ACEOF
5303 cat confdefs.h
>>conftest.
$ac_ext
5304 cat >>conftest.
$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5315 rm -f conftest.
$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5319 grep -v '^ *+' conftest.er1
>conftest.err
5321 cat conftest.err
>&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try
='test -z "$ac_c_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try
='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.
$ac_ext >&5
5343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5344 CFLAGS
="$saved_CFLAGS"
5347 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
5348 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
5352 default_sim_reserved_bits
="1"
5353 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
5354 if test "${enable_sim_reserved_bits+set}" = set; then
5355 enableval
="$enable_sim_reserved_bits"
5356 case "${enableval}" in
5357 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
5358 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
5359 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
5360 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
5361 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
5363 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
5364 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
5367 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
5372 # Instead of defining a `subtarget' macro, code should be checking
5373 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
5377 mips64vr
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;;
5378 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
5379 mips
*-sde-elf*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
5380 mipsisa32
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
5381 mipsisa64
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
5382 *) SIM_SUBTARGET
="";;
5389 # Select the byte order of the target
5394 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
5395 mips64vr
*el-
*-*) default_endian
=LITTLE_ENDIAN
;;
5396 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
5397 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
5398 mipsisa32
*-*-*) default_endian
=BIG_ENDIAN
;;
5399 mipsisa64
*-*-*) default_endian
=BIG_ENDIAN
;;
5400 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
5401 *) default_endian
=BIG_ENDIAN
;;
5404 wire_endian
="$mips_endian"
5405 default_endian
="$default_endian"
5406 # Check whether --enable-sim-endian or --disable-sim-endian was given.
5407 if test "${enable_sim_endian+set}" = set; then
5408 enableval
="$enable_sim_endian"
5409 case "${enableval}" in
5410 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5411 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5412 yes) if test x
"$wire_endian" != x
; then
5413 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5415 if test x
"$default_endian" != x
; then
5416 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5418 echo "No hard-wired endian for target $target" 1>&6
5419 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
5422 no
) if test x
"$default_endian" != x
; then
5423 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5425 if test x
"$wire_endian" != x
; then
5426 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5428 echo "No default endian for target $target" 1>&6
5429 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5432 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
5433 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
5434 { (exit 1); exit 1; }; }; sim_endian
="";;
5436 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
5437 echo "Setting endian flags = $sim_endian" 6>&1
5440 if test x
"$default_endian" != x
; then
5441 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5443 if test x
"$wire_endian" != x
; then
5444 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5454 # Select the bitsize of the target
5458 mips
*-sde-elf*) mips_bitsize
=64 ; mips_msb
=63 ;;
5459 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
5460 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
5461 mipsisa32
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
5462 mipsisa64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
5463 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
5464 *) mips_bitsize
=64 ; mips_msb
=63 ;;
5466 wire_word_bitsize
="$mips_bitsize"
5467 wire_word_msb
="$mips_msb"
5468 wire_address_bitsize
="$mips_addr_bitsize"
5469 wire_cell_bitsize
=""
5470 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
5471 if test "${enable_sim_bitsize+set}" = set; then
5472 enableval
="$enable_sim_bitsize"
5474 case "${enableval}" in
5475 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5476 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5477 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5478 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5479 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
5480 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5482 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5484 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
5485 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5487 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5489 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
5490 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
5491 { (exit 1); exit 1; }; } ;;
5494 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
5497 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5498 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5499 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
5500 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
5501 { (exit 1); exit 1; }; } ;;
5504 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5507 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5508 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5509 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
5510 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
5511 { (exit 1); exit 1; }; } ;;
5513 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
5514 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5518 if test x
"$wire_word_bitsize" != x
; then
5519 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5521 if test x
"$wire_word_msb" != x
; then
5522 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5524 if test x
"$wire_address_bitsize" != x
; then
5525 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5527 if test x
"$wire_cell_bitsize" != x
; then
5528 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5535 # Select the floating hardware support of the target
5537 mips_fpu
=HARDWARE_FLOATING_POINT
5540 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
5541 mips
*-sde-elf*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
5542 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
5543 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
5544 mipsisa32
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
5545 mipsisa64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
5546 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
5547 *) mips_fpu
=HARD_FLOATING_POINT
;;
5550 default_sim_float
="$mips_fpu"
5551 default_sim_float_bitsize
="$mips_fpu_bitsize"
5552 # Check whether --enable-sim-float or --disable-sim-float was given.
5553 if test "${enable_sim_float+set}" = set; then
5554 enableval
="$enable_sim_float"
5555 case "${enableval}" in
5556 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5557 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5558 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5559 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
5560 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
5561 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
5562 { (exit 1); exit 1; }; }; sim_float
="";;
5564 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
5565 echo "Setting float flags = $sim_float" 6>&1
5570 if test x
"${default_sim_float}" != x
""; then
5571 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
5573 if test x
"${default_sim_float_bitsize}" != x
""; then
5574 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5582 # Select the level of SMP support
5588 default_sim_smp
="$mips_smp"
5589 # Check whether --enable-sim-smp or --disable-sim-smp was given.
5590 if test "${enable_sim_smp+set}" = set; then
5591 enableval
="$enable_sim_smp"
5592 case "${enableval}" in
5593 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
5594 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
5595 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
5597 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
5598 echo "Setting smp flags = $sim_smp" 6>&1
5601 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
5602 if test x
"$silent" != x
"yes"; then
5603 echo "Setting smp flags = $sim_smp" 6>&1
5610 # Select the IGEN architecture
5613 sim_igen_machine
="-M mipsIV"
5614 sim_m16_machine
="-M mips16,mipsIII"
5615 sim_igen_filter
="32,64,f"
5617 sim_mach_default
="mips8000"
5620 mips
*tx39
*) sim_gen
=IGEN
5621 sim_igen_filter
="32,f"
5622 sim_igen_machine
="-M r3900"
5624 mips64vr43
*-*-*) sim_gen
=IGEN
5625 sim_igen_machine
="-M mipsIV"
5626 sim_mach_default
="mips8000"
5628 mips64vr5
*-*-*) sim_gen
=IGEN
5629 sim_igen_machine
="-M vr5000"
5630 sim_mach_default
="mips5000"
5632 mips64vr41
*) sim_gen
=M16
5633 sim_igen_machine
="-M vr4100"
5634 sim_m16_machine
="-M vr4100"
5635 sim_igen_filter
="32,64,f"
5637 sim_mach_default
="mips4100"
5639 mips64vr-
*-* | mips64vrel-
*-*)
5641 sim_multi_configs
="\
5642 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
5643 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
5644 vr5000:mipsIV:32,64,f:mips4300,mips5000\
5645 vr5400:mipsIV,vr5400:32,64,f:mips5400\
5646 vr5500:mipsIV,vr5500:32,64,f:mips5500"
5647 sim_multi_default
=mips5000
5649 mips
*-sde-elf*) sim_gen
=M16
5650 sim_igen_machine
="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5651 sim_m16_machine
="-M mips16,mips16e,mips64r2"
5652 sim_igen_filter
="32,64,f"
5653 sim_mach_default
="mipsisa64r2"
5655 mips64
*-*-*) sim_igen_filter
="32,64,f"
5658 mips16
*-*-*) sim_gen
=M16
5659 sim_igen_filter
="32,64,f"
5662 mipsisa32r2
*-*-*) sim_gen
=M16
5663 sim_igen_machine
="-M mips32r2,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5664 sim_m16_machine
="-M mips16,mips16e,mips32r2"
5665 sim_igen_filter
="32,f"
5666 sim_mach_default
="mipsisa32r2"
5668 mipsisa32
*-*-*) sim_gen
=M16
5669 sim_igen_machine
="-M mips32,mips16,mips16e,smartmips"
5670 sim_m16_machine
="-M mips16,mips16e,mips32"
5671 sim_igen_filter
="32,f"
5672 sim_mach_default
="mipsisa32"
5674 mipsisa64r2
*-*-*) sim_gen
=M16
5675 sim_igen_machine
="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
5676 sim_m16_machine
="-M mips16,mips16e,mips64r2"
5677 sim_igen_filter
="32,64,f"
5678 sim_mach_default
="mipsisa64r2"
5680 mipsisa64sb1
*-*-*) sim_gen
=IGEN
5681 sim_igen_machine
="-M mips64,mips3d,sb1"
5682 sim_igen_filter
="32,64,f"
5683 sim_mach_default
="mips_sb1"
5685 mipsisa64
*-*-*) sim_gen
=M16
5686 sim_igen_machine
="-M mips64,mips3d,mips16,mips16e,mdmx"
5687 sim_m16_machine
="-M mips16,mips16e,mips64"
5688 sim_igen_filter
="32,64,f"
5689 sim_mach_default
="mipsisa64"
5691 mips
*lsi
*) sim_gen
=M16
5692 sim_igen_machine
="-M mipsIII,mips16"
5693 sim_m16_machine
="-M mips16,mipsIII"
5694 sim_igen_filter
="32,f"
5696 sim_mach_default
="mips4000"
5698 mips
*-*-*) sim_gen
=IGEN
5699 sim_igen_filter
="32,f"
5703 # The MULTI generator can combine several simulation engines into one.
5704 # executable. A configuration which uses the MULTI should set two
5705 # variables: ${sim_multi_configs} and ${sim_multi_default}.
5707 # ${sim_multi_configs} is the list of engines to build. Each
5708 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5711 # - NAME is a C-compatible prefix for the engine,
5712 # - MACHINE is a -M argument,
5713 # - FILTER is a -F argument, and
5714 # - BFDMACHS is a comma-separated list of bfd machines that the
5715 # simulator can run.
5717 # Each entry will have a separate simulation engine whose prefix is
5718 # m32<NAME>. If the machine list includes "mips16", there will also
5719 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5720 # generated using the same machine list as the 32-bit version,
5721 # but the filter will be "16" instead of FILTER.
5723 # The simulator compares the bfd mach against BFDMACHS to decide
5724 # which engine to use. Entries in BFDMACHS should be bfd_mach
5725 # values with "bfd_mach_" removed. ${sim_multi_default} says
5726 # which entry should be the default.
5727 if test ${sim_gen} = MULTI
; then
5729 # Simple sanity check.
5730 if test -z "${sim_multi_configs}" ||
test -z "${sim_multi_default}"; then
5731 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
5732 echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
5733 { (exit 1); exit 1; }; }
5736 # Start in a known state.
5737 rm -f multi-include.h multi-run.c
5740 sim_multi_obj
=multi-run.o
5741 sim_multi_igen_configs
=
5744 cat << __EOF__ > multi-run.c
5745 /* Main entry point for MULTI simulators.
5746 Copyright (C) 2003, 2007 Free Software Foundation, Inc.
5748 This program is free software; you can redistribute it and/or modify
5749 it under the terms of the GNU General Public License as published by
5750 the Free Software Foundation; either version 3 of the License, or
5751 (at your option) any later version.
5753 This program is distributed in the hope that it will be useful,
5754 but WITHOUT ANY WARRANTY; without even the implied warranty of
5755 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5756 GNU General Public License for more details.
5758 You should have received a copy of the GNU General Public License
5759 along with this program. If not, see <http://www.gnu.org/licenses/>.
5763 This file was generated by sim/mips/configure. */
5765 #include "sim-main.h"
5766 #include "multi-include.h"
5772 sim_engine_run (SIM_DESC sd,
5775 int signal) /* ignore */
5779 if (STATE_ARCHITECTURE (sd) == NULL)
5780 mach = bfd_mach_${sim_multi_default};
5782 mach = STATE_ARCHITECTURE (SD)->mach;
5788 for fc in ${sim_multi_configs}; do
5790 # Split up the entry. ${c} contains the first three elements.
5791 # Note: outer sqaure brackets are m4 quotes.
5792 c
=`echo ${fc} | sed 's/:[^:]*$//'`
5793 bfdmachs
=`echo ${fc} | sed 's/.*://'`
5794 name
=`echo ${c} | sed 's/:.*//'`
5795 machine
=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5796 filter
=`echo ${c} | sed 's/.*://'`
5798 # Build the following lists:
5800 # sim_multi_flags: all -M and -F flags used by the simulator
5801 # sim_multi_src: all makefile-generated source files
5802 # sim_multi_obj: the objects for ${sim_multi_src}
5803 # sim_multi_igen_configs: igen configuration strings.
5805 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5806 # or m16) followed by the NAME, MACHINE and FILTER part of
5807 # the ${sim_multi_configs} entry.
5808 sim_multi_flags
="${sim_multi_flags} -F ${filter} -M ${machine}"
5810 # Check whether mips16 handling is needed.
5813 # Run igen twice, once for normal mode and once for mips16.
5816 # The top-level function for the mips16 simulator is
5817 # in a file m16${name}_run.c, generated by the
5818 # tmp-run-multi Makefile rule.
5819 sim_multi_src
="${sim_multi_src} m16${name}_run.c"
5820 sim_multi_obj
="${sim_multi_obj} m16${name}_run.o"
5821 sim_multi_flags
="${sim_multi_flags} -F 16"
5828 # Now add the list of igen-generated files to ${sim_multi_src}
5829 # and ${sim_multi_obj}.
5831 for base
in engine icache idecode model semantics support
; do
5832 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.c"
5833 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.h"
5834 sim_multi_obj
="${sim_multi_obj} ${w}${name}_${base}.o"
5836 sim_multi_igen_configs
="${sim_multi_igen_configs} ${w}${c}"
5839 # Add an include for the engine.h file. This file declares the
5840 # top-level foo_engine_run() function.
5841 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5843 # Add case statements for this engine to sim_engine_run().
5844 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5845 echo " case bfd_mach_${mach}:" >> multi-run.c
5846 if test ${mach} = ${sim_multi_default}; then
5847 echo " default:" >> multi-run.c
5848 sim_seen_default
=yes
5851 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5853 echo " break;" >> multi-run.c
5856 # Check whether we added a 'default:' label.
5857 if test ${sim_seen_default} = no
; then
5858 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
5859 echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
5860 { (exit 1); exit 1; }; }
5863 cat << __EOF__ >> multi-run.c
5868 mips_mach_multi (SIM_DESC sd)
5870 if (STATE_ARCHITECTURE (sd) == NULL)
5871 return bfd_mach_${sim_multi_default};
5873 switch (STATE_ARCHITECTURE (SD)->mach)
5877 # Add case statements for this engine to mips_mach_multi().
5878 for fc in ${sim_multi_configs}; do
5880 # Split up the entry. ${c} contains the first three elements.
5881 # Note: outer sqaure brackets are m4 quotes.
5882 c=`echo ${fc} | sed 's/:[^:]*$//'`
5883 bfdmachs=`echo ${fc} | sed 's/.*://'`
5885 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5886 echo " case bfd_mach_
${mach}:" >> multi-run.c
5890 cat << __EOF__ >> multi-run.c
5891 return (STATE_ARCHITECTURE (SD)->mach);
5893 return bfd_mach_${sim_multi_default};
5898 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5901 sim_multi_src=doesnt-exist.c
5903 if test x"${sim_mach_default}" = x""; then
5904 { { echo "$as_me:$LINENO: error
: Error
in configure.
in: \
${sim_mach_default} not defined
" >&5
5905 echo "$as_me: error
: Error
in configure.
in: \
${sim_mach_default} not defined
" >&2;}
5906 { (exit 1); exit 1; }; }
5908 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_
${sim_mach_default}"
5910 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5911 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5922 # Add simulated hardware devices
5928 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio
"
5929 mips_extra_objs="dv-sockser.o
"
5930 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
5937 if test x"$hw_enabled" = x"yes"; then
5942 if test "$hw_devices"; then
5943 hardware="core pal glue
"
5945 hardware="core pal glue
$hw_extra_devices"
5947 sim_hw_cflags="-DWITH_HW=1"
5949 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5950 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
5951 if test "${enable_sim_hardware+set}" = set; then
5952 enableval="$enable_sim_hardware"
5954 case "${enableval}" in
5957 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5958 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5959 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5961 if test "$sim_hw_p" != yes; then
5963 sim_hw_cflags="-DWITH_HW=0"
5966 sim_hw_cflags="-DWITH_HW=1"
5969 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
)"
5970 for i in $hardware ; do
5973 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-
$i.o
";;
5977 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5978 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5982 if test "$sim_hw_p" != yes; then
5984 sim_hw_cflags="-DWITH_HW=0"
5987 if test x"$silent" != x"yes"; then
5988 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
5994 # Choose simulator engine
5996 *) mips_igen_engine="engine.o
"
6002 echo "$as_me:$LINENO: checking
for X
" >&5
6003 echo $ECHO_N "checking
for X...
$ECHO_C" >&6
6006 # Check whether --with-x or --without-x was given.
6007 if test "${with_x+set}" = set; then
6011 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6012 if test "x
$with_x" = xno; then
6013 # The user explicitly disabled X.
6016 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
6017 # Both variables are already set.
6020 if test "${ac_cv_have_x+set}" = set; then
6021 echo $ECHO_N "(cached
) $ECHO_C" >&6
6023 # One or both of the vars are not set, and there is no cached value.
6024 ac_x_includes=no ac_x_libraries=no
6026 if mkdir conftest.dir; then
6028 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6029 cat >Imakefile <<'_ACEOF'
6031 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6033 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6034 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
6035 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6036 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6037 for ac_extension in a so sl; do
6038 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6039 test -f $ac_im_libdir/libX11.$ac_extension; then
6040 ac_im_usrlibdir=$ac_im_libdir; break
6043 # Screen out bogus values from the imake configuration. They are
6044 # bogus both because they are the default anyway, and because
6045 # using them would break gcc on systems where it needs fixed includes.
6046 case $ac_im_incroot in
6048 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes=$ac_im_incroot;;
6050 case $ac_im_usrlibdir in
6052 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6059 # Standard set of common directories for X headers.
6060 # Check X11 before X11Rn because it is often a symlink to the current release.
6072 /usr/local/X11/include
6073 /usr/local/X11R6/include
6074 /usr/local/X11R5/include
6075 /usr/local/X11R4/include
6077 /usr/local/include/X11
6078 /usr/local/include/X11R6
6079 /usr/local/include/X11R5
6080 /usr/local/include/X11R4
6084 /usr/XFree86/include/X11
6088 /usr/unsupported/include
6090 /usr/local/x11r5/include
6091 /usr/lpp/Xamples/include
6093 /usr/openwin/include
6094 /usr/openwin/share/include'
6096 if test "$ac_x_includes" = no; then
6097 # Guess where to find include files, by looking for Intrinsic.h.
6098 # First, try using that file with no special directory specified.
6099 cat >conftest.$ac_ext <<_ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <X11/Intrinsic.h>
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
6108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6114 (exit $ac_status); } >/dev/null; then
6115 if test -s conftest.err; then
6116 ac_cpp_err=$ac_c_preproc_warn_flag
6117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6124 if test -z "$ac_cpp_err"; then
6125 # We can compile using X headers with no special include directory.
6128 echo "$as_me: failed program was
:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6131 for ac_dir in $ac_x_header_dirs; do
6132 if test -r "$ac_dir/X11
/Intrinsic.h
"; then
6133 ac_x_includes=$ac_dir
6138 rm -f conftest.err conftest.$ac_ext
6139 fi # $ac_x_includes = no
6141 if test "$ac_x_libraries" = no; then
6142 # Check for the libraries.
6143 # See if we find them without any special options.
6144 # Don't add to $LIBS permanently.
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #include <X11/Intrinsic.h>
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>conftest.er1
6166 grep -v '^ *+' conftest.er1 >conftest.err
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -z "$ac_c_werror_flag"
6172 || test ! -s conftest.err'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6183 (exit $ac_status); }; }; then
6185 # We can link X programs with no special library path.
6188 echo "$as_me: failed program was
:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6192 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6194 # Don't even attempt the hair of trying to link an X program!
6195 for ac_extension in a so sl; do
6196 if test -r $ac_dir/libXt.$ac_extension; then
6197 ac_x_libraries=$ac_dir
6203 rm -f conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205 fi # $ac_x_libraries = no
6207 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6208 # Didn't find X anywhere. Cache the known absence of X.
6209 ac_cv_have_x="have_x
=no
"
6211 # Record where we found X for the cache.
6212 ac_cv_have_x="have_x
=yes \
6213 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
6218 eval "$ac_cv_have_x"
6221 if test "$have_x" != yes; then
6222 echo "$as_me:$LINENO: result
: $have_x" >&5
6223 echo "${ECHO_T}$have_x" >&6
6226 # If each of the values was on the command line, it overrides each guess.
6227 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
6228 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6229 # Update the cache value to reflect the command line values.
6230 ac_cv_have_x="have_x
=yes \
6231 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
6232 echo "$as_me:$LINENO: result
: libraries
$x_libraries, headers
$x_includes" >&5
6233 echo "${ECHO_T}libraries
$x_libraries, headers
$x_includes" >&6
6243 for ac_header in string.h strings.h stdlib.h stdlib.h
6245 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6246 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
6247 echo "$as_me:$LINENO: checking
for $ac_header" >&5
6248 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
6249 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
6250 echo $ECHO_N "(cached
) $ECHO_C" >&6
6252 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
6253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6255 # Is the header compilable?
6256 echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
6257 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 $ac_includes_default
6265 #include <$ac_header>
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269 (eval $ac_compile) 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag"
6277 || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 ac_header_compiler=yes
6291 echo "$as_me: failed program was
:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6294 ac_header_compiler=no
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
6298 echo "${ECHO_T}$ac_header_compiler" >&6
6300 # Is the header present?
6301 echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
6302 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6
6303 cat >conftest.$ac_ext <<_ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 #include <$ac_header>
6311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
6312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6318 (exit $ac_status); } >/dev/null; then
6319 if test -s conftest.err; then
6320 ac_cpp_err=$ac_c_preproc_warn_flag
6321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6328 if test -z "$ac_cpp_err"; then
6329 ac_header_preproc=yes
6331 echo "$as_me: failed program was
:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 ac_header_preproc=no
6336 rm -f conftest.err conftest.$ac_ext
6337 echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
6338 echo "${ECHO_T}$ac_header_preproc" >&6
6340 # So? What about this header?
6341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6343 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
6344 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
6345 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
6346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
6347 ac_header_preproc=yes
6350 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
6351 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
6352 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
6353 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
6354 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
6355 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
6356 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
6357 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
6358 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
6359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
6360 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
6361 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
6364 ## ------------------------------------------ ##
6365 ## Report this to the AC_PACKAGE_NAME lists. ##
6366 ## ------------------------------------------ ##
6369 sed "s
/^
/$as_me: WARNING
: /" >&2
6372 echo "$as_me:$LINENO: checking
for $ac_header" >&5
6373 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
6374 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
6375 echo $ECHO_N "(cached
) $ECHO_C" >&6
6377 eval "$as_ac_Header=\
$ac_header_preproc"
6379 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6393 echo "$as_me:$LINENO: checking
for fabs
in -lm" >&5
6394 echo $ECHO_N "checking
for fabs
in -lm...
$ECHO_C" >&6
6395 if test "${ac_cv_lib_m_fabs+set}" = set; then
6396 echo $ECHO_N "(cached
) $ECHO_C" >&6
6398 ac_check_lib_save_LIBS=$LIBS
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6407 /* Override any gcc2 internal prototype to avoid an error. */
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6422 rm -f conftest.$ac_objext conftest$ac_exeext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424 (eval $ac_link) 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest$ac_exeext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_cv_lib_m_fabs=yes
6446 echo "$as_me: failed program was
:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6451 rm -f conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453 LIBS=$ac_check_lib_save_LIBS
6455 echo "$as_me:$LINENO: result
: $ac_cv_lib_m_fabs" >&5
6456 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
6457 if test $ac_cv_lib_m_fabs = yes; then
6458 cat >>confdefs.h <<_ACEOF
6469 for ac_func in aint anint sqrt
6471 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6472 echo "$as_me:$LINENO: checking
for $ac_func" >&5
6473 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6
6474 if eval "test \"\
${$as_ac_var+set}\" = set"; then
6475 echo $ECHO_N "(cached
) $ECHO_C" >&6
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6485 #define $ac_func innocuous_$ac_func
6487 /* System header to define __stub macros and hopefully few prototypes,
6488 which can conflict with char $ac_func (); below.
6489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6490 <limits.h> exists even on freestanding compilers. */
6493 # include <limits.h>
6495 # include <assert.h>
6500 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6508 /* The GNU C library defines this for functions which it implements
6509 to always fail with ENOSYS. Some functions are actually named
6510 something starting with __ and the normal name is an alias. */
6511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514 char (*f) () = $ac_func;
6523 return f != $ac_func;
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>conftest.er1
6532 grep -v '^ *+' conftest.er1 >conftest.err
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest$ac_exeext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 eval "$as_ac_var=yes"
6552 echo "$as_me: failed program was
:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 eval "$as_ac_var=no
"
6557 rm -f conftest.err conftest.$ac_objext \
6558 conftest$ac_exeext conftest.$ac_ext
6560 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_var'}'`" >&5
6561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6562 if test `eval echo '${'$as_ac_var'}'` = yes; then
6563 cat >>confdefs.h <<_ACEOF
6564 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
6572 ac_sources="$sim_link_files"
6573 ac_dests="$sim_link_links"
6574 while test -n "$ac_sources"; do
6575 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6576 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6577 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
6579 ac_config_links="$ac_config_links $ac_config_links_1"
6582 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
6583 cgen_breaks="break cgen_rtx_error
";
6586 ac_config_files="$ac_config_files Makefile.sim
:Makefile.
in"
6588 ac_config_files="$ac_config_files Make-common.sim
:..
/common
/Make-common.
in"
6590 ac_config_files="$ac_config_files .gdbinit
:..
/common
/gdbinit.
in"
6592 ac_config_commands="$ac_config_commands Makefile
"
6594 ac_config_commands="$ac_config_commands stamp-h
"
6596 cat >confcache <<\_ACEOF
6597 # This file is a shell script that caches the results of configure
6598 # tests run on this system so they can be shared between configure
6599 # scripts and configure runs, see configure's option --config-cache.
6600 # It is not useful on other systems. If it contains results you don't
6601 # want to keep, you may remove or edit it.
6603 # config.status only pays attention to the cache file if you give it
6604 # the --recheck option to rerun configure.
6606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6612 # The following way of writing the cache mishandles newlines in values,
6613 # but we know of no workaround that is simple, portable, and efficient.
6614 # So, don't put newlines in cache variables' values.
6615 # Ultrix sh set writes to stderr and can't be redirected directly,
6616 # and sets the high bit in the cache file unless we assign to the vars.
6619 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6621 # `set' does not quote correctly, so add quotes (double-quote
6622 # substitution turns \\\\ into \\, and sed turns \\ into \).
6625 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
6628 # `set' quotes correctly as required by POSIX, so do not add quotes.
6630 "s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1=\\2/p
"
6637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6639 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6641 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6642 if test -w $cache_file; then
6643 test "x
$cache_file" != "x
/dev
/null
" && echo "updating cache
$cache_file"
6644 cat confcache >$cache_file
6646 echo "not updating unwritable cache
$cache_file"
6651 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
6652 # Let make expand exec_prefix.
6653 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
6655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6657 # trailing colons and then remove the whole line if VPATH becomes empty
6658 # (actually we leave an empty line to preserve line numbers).
6659 if test "x
$srcdir" = x.; then
6660 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6661 s/:*\$(srcdir):*/:/;
6662 s/:*\${srcdir}:*/:/;
6664 s/^\([^=]*=[ ]*\):*/\1/;
6670 DEFS=-DHAVE_CONFIG_H
6674 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
6675 # 1. Remove the extension, and $U if already installed.
6676 ac_i=`echo "$ac_i" |
6677 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6679 ac_libobjs="$ac_libobjs $ac_i\
$U.
$ac_objext"
6680 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6684 LTLIBOBJS=$ac_ltlibobjs
6688 : ${CONFIG_STATUS=./config.status}
6689 ac_clean_files_save=$ac_clean_files
6690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6691 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
6692 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
6693 cat >$CONFIG_STATUS <<_ACEOF
6695 # Generated by $as_me.
6696 # Run this file to recreate the current configuration.
6697 # Compiler output produced by configure, useful for debugging
6698 # configure, is in config.log if it exists.
6703 SHELL=\${CONFIG_SHELL-$SHELL}
6706 cat >>$CONFIG_STATUS <<\_ACEOF
6707 ## --------------------- ##
6708 ## M4sh Initialization. ##
6709 ## --------------------- ##
6711 # Be Bourne compatible
6712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6715 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6716 # is contrary to our usage. Disable this feature.
6717 alias -g '${1+"$@"}'='"$@
"'
6718 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6721 DUALCASE=1; export DUALCASE # for MKS sh
6723 # Support unset when possible.
6724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6731 # Work around bugs in pre-3.0 UWIN ksh.
6732 $as_unset ENV MAIL MAILPATH
6739 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6740 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6741 LC_TELEPHONE LC_TIME
6743 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6744 eval $as_var=C; export $as_var
6750 # Required to use basename.
6751 if expr a : '\(a\)' >/dev/null 2>&1; then
6757 if (basename /) >/dev/null 2>&1 && test "X
`basename / 2>&1`" = "X
/"; then
6758 as_basename=basename
6764 # Name of the executable.
6765 as_me=`$as_basename "$0" ||
6766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6767 X"$0" : 'X\(//\)$' \| \
6768 X"$0" : 'X\(/\)$' \| \
6769 . : '\(.\)' 2>/dev/null ||
6771 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6772 /^X\/\(\/\/\)$/{ s//\1/; q; }
6773 /^X\/\(\/\).*/{ s//\1/; q; }
6777 # PATH needs CR, and LINENO needs CR and PATH.
6778 # Avoid depending upon Character Ranges.
6779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6782 as_cr_digits='0123456789'
6783 as_cr_alnum=$as_cr_Letters$as_cr_digits
6785 # The user is always right.
6786 if test "${PATH_SEPARATOR+set}" != set; then
6787 echo "#! /bin/sh" >conf$$.sh
6788 echo "exit 0" >>conf$$.sh
6790 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6801 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6802 test "x$as_lineno_1" != "x$as_lineno_2" &&
6803 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6804 # Find who we are. Look in the path if we contain no path at all
6807 *[\\/]* ) as_myself
=$0 ;;
6808 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir
=.
6813 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6818 # We did not find ourselves, most probably we were run as `sh COMMAND'
6819 # in which case we are not to be found in the path.
6820 if test "x$as_myself" = x
; then
6823 if test ! -f "$as_myself"; then
6824 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6825 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6826 { (exit 1); exit 1; }; }
6828 case $CONFIG_SHELL in
6830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6831 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6834 test -z "$as_dir" && as_dir
=.
6835 for as_base
in sh bash ksh sh5
; do
6838 if ("$as_dir/$as_base" -c '
6841 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6842 test "x$as_lineno_1" != "x$as_lineno_2" &&
6843 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6844 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6845 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6846 CONFIG_SHELL
=$as_dir/$as_base
6848 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6856 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6857 # uniformly replaced by the line number. The first 'sed' inserts a
6858 # line-number line before each line; the second 'sed' does the real
6859 # work. The second script uses 'N' to pair each line-number line
6860 # with the numbered line, and appends trailing '-' during
6861 # substitution so that $LINENO is not a special case at line end.
6862 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6863 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6864 sed '=' <$as_myself |
6869 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6872 s,^['$as_cr_digits']*\n,,
6874 chmod +x
$as_me.lineno ||
6875 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6876 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6877 { (exit 1); exit 1; }; }
6879 # Don't try to exec as it changes $[0], causing all sort of problems
6880 # (the dirname of $[0] is not the place where we might find the
6881 # original and so on. Autoconf is especially sensible to this).
6883 # Exit status is that of the last command.
6888 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6889 *c
*,-n*) ECHO_N
= ECHO_C
='
6891 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6892 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6895 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6901 rm -f conf$$ conf$$.exe conf$$.
file
6903 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6904 # We could just check for DJGPP; but this test a) works b) is more generic
6905 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6906 if test -f conf$$.exe
; then
6907 # Don't use ln at all; we don't have any links
6912 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6917 rm -f conf$$ conf$$.exe conf$$.
file
6919 if mkdir
-p .
2>/dev
/null
; then
6922 test -d .
/-p && rmdir .
/-p
6926 as_executable_p
="test -f"
6928 # Sed expression to map a string onto a valid CPP name.
6929 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6931 # Sed expression to map a string onto a valid variable name.
6932 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6936 # We need space, tab and new line, in precisely that order.
6946 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6947 # report actual input values of CONFIG_FILES etc. instead of their
6948 # values after options handling. Logging --version etc. is OK.
6952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6953 ## Running $as_me. ##
6958 This file was extended by $as_me, which was
6959 generated by GNU Autoconf 2.59. Invocation command line was
6961 CONFIG_FILES = $CONFIG_FILES
6962 CONFIG_HEADERS = $CONFIG_HEADERS
6963 CONFIG_LINKS = $CONFIG_LINKS
6964 CONFIG_COMMANDS = $CONFIG_COMMANDS
6968 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6972 # Files that config.status was made for.
6973 if test -n "$ac_config_files"; then
6974 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6977 if test -n "$ac_config_headers"; then
6978 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6981 if test -n "$ac_config_links"; then
6982 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6985 if test -n "$ac_config_commands"; then
6986 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6989 cat >>$CONFIG_STATUS <<\_ACEOF
6992 \`$as_me' instantiates files from templates according to the
6993 current configuration.
6995 Usage: $0 [OPTIONS] [FILE]...
6997 -h, --help print this help, then exit
6998 -V, --version print version number, then exit
6999 -q, --quiet do not print progress messages
7000 -d, --debug don't remove temporary files
7001 --recheck update $as_me by reconfiguring in the same conditions
7002 --file=FILE[:TEMPLATE]
7003 instantiate the configuration file FILE
7004 --header=FILE[:TEMPLATE]
7005 instantiate the configuration header FILE
7007 Configuration files:
7010 Configuration headers:
7013 Configuration links:
7016 Configuration commands:
7019 Report bugs to <bug-autoconf@gnu.org>."
7022 cat >>$CONFIG_STATUS <<_ACEOF
7025 configured by $0, generated by GNU Autoconf 2.59,
7026 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7028 Copyright (C) 2003 Free Software Foundation, Inc.
7029 This config.status script is free software; the Free Software Foundation
7030 gives unlimited permission to copy, distribute and modify it."
7035 cat >>$CONFIG_STATUS <<\_ACEOF
7036 # If no file are specified by the user, then we need to provide default
7037 # value. By we need to know if files were specified by the user.
7043 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7044 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7052 *) # This is not an option, so the user has probably given explicit
7055 ac_need_defaults
=false
;;
7059 # Handling of the options.
7061 cat >>$CONFIG_STATUS <<\_ACEOF
7062 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7064 --version |
--vers* |
-V )
7065 echo "$ac_cs_version"; exit 0 ;;
7067 # Conflict between --help and --header
7068 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7069 Try \`$0 --help' for more information." >&5
7070 echo "$as_me: error: ambiguous option: $1
7071 Try \`$0 --help' for more information." >&2;}
7072 { (exit 1); exit 1; }; };;
7073 --help |
--hel |
-h )
7074 echo "$ac_cs_usage"; exit 0 ;;
7075 --debug |
--d* |
-d )
7077 --file |
--fil |
--fi |
--f )
7079 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7080 ac_need_defaults
=false
;;
7081 --header |
--heade |
--head |
--hea )
7083 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7084 ac_need_defaults
=false
;;
7085 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7086 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7090 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7091 Try \`$0 --help' for more information." >&5
7092 echo "$as_me: error: unrecognized option: $1
7093 Try \`$0 --help' for more information." >&2;}
7094 { (exit 1); exit 1; }; } ;;
7096 *) ac_config_targets
="$ac_config_targets $1" ;;
7102 ac_configure_extra_args
=
7104 if $ac_cs_silent; then
7106 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7110 cat >>$CONFIG_STATUS <<_ACEOF
7111 if \$ac_cs_recheck; then
7112 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7113 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7122 cat >>$CONFIG_STATUS <<\_ACEOF
7123 for ac_config_target
in $ac_config_targets
7125 case "$ac_config_target" in
7126 # Handling of arguments.
7127 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7128 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7129 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7130 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
7131 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
7132 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
7133 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
7134 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7135 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7136 { (exit 1); exit 1; }; };;
7140 # If the user did not use the arguments to specify the items to instantiate,
7141 # then the envvar interface is used. Set only those that are not.
7142 # We use the long form for the default assignment because of an extremely
7143 # bizarre bug on SunOS 4.1.3.
7144 if $ac_need_defaults; then
7145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7147 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
7148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7151 # Have a temporary directory for convenience. Make it in the build tree
7152 # simply because there is no reason to put it here, and in addition,
7153 # creating and moving files from /tmp can sometimes cause problems.
7154 # Create a temporary directory, and hook for its removal unless debugging.
7157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7158 trap '{ (exit 1); exit 1; }' 1 2 13 15
7161 # Create a (secure) tmp directory for tmp files.
7164 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7165 test -n "$tmp" && test -d "$tmp"
7168 tmp
=.
/confstat$$
-$RANDOM
7169 (umask 077 && mkdir
$tmp)
7172 echo "$me: cannot create a temporary directory in ." >&2
7173 { (exit 1); exit 1; }
7178 cat >>$CONFIG_STATUS <<_ACEOF
7181 # CONFIG_FILES section.
7184 # No need to generate the scripts if there are no CONFIG_FILES.
7185 # This happens for instance when ./config.status config.h
7186 if test -n "\$CONFIG_FILES"; then
7187 # Protect against being on the right side of a sed subst in config.status.
7188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7190 s,@SHELL@,$SHELL,;t t
7191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7197 s,@exec_prefix@,$exec_prefix,;t t
7198 s,@prefix@,$prefix,;t t
7199 s,@program_transform_name@,$program_transform_name,;t t
7200 s,@bindir@,$bindir,;t t
7201 s,@sbindir@,$sbindir,;t t
7202 s,@libexecdir@,$libexecdir,;t t
7203 s,@datadir@,$datadir,;t t
7204 s,@sysconfdir@,$sysconfdir,;t t
7205 s,@sharedstatedir@,$sharedstatedir,;t t
7206 s,@localstatedir@,$localstatedir,;t t
7207 s,@libdir@,$libdir,;t t
7208 s,@includedir@,$includedir,;t t
7209 s,@oldincludedir@,$oldincludedir,;t t
7210 s,@infodir@,$infodir,;t t
7211 s,@mandir@,$mandir,;t t
7212 s,@build_alias@,$build_alias,;t t
7213 s,@host_alias@,$host_alias,;t t
7214 s,@target_alias@,$target_alias,;t t
7216 s,@ECHO_C@,$ECHO_C,;t t
7217 s,@ECHO_N@,$ECHO_N,;t t
7218 s,@ECHO_T@,$ECHO_T,;t t
7220 s,@sim_environment@,$sim_environment,;t t
7221 s,@sim_alignment@,$sim_alignment,;t t
7222 s,@sim_assert@,$sim_assert,;t t
7223 s,@sim_bitsize@,$sim_bitsize,;t t
7224 s,@sim_endian@,$sim_endian,;t t
7225 s,@sim_hostendian@,$sim_hostendian,;t t
7226 s,@sim_float@,$sim_float,;t t
7227 s,@sim_scache@,$sim_scache,;t t
7228 s,@sim_default_model@,$sim_default_model,;t t
7229 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7230 s,@sim_hw_objs@,$sim_hw_objs,;t t
7231 s,@sim_hw@,$sim_hw,;t t
7232 s,@sim_inline@,$sim_inline,;t t
7233 s,@sim_packages@,$sim_packages,;t t
7234 s,@sim_regparm@,$sim_regparm,;t t
7235 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7236 s,@sim_smp@,$sim_smp,;t t
7237 s,@sim_stdcall@,$sim_stdcall,;t t
7238 s,@sim_xor_endian@,$sim_xor_endian,;t t
7239 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7240 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7241 s,@build@,$build,;t t
7242 s,@build_cpu@,$build_cpu,;t t
7243 s,@build_vendor@,$build_vendor,;t t
7244 s,@build_os@,$build_os,;t t
7246 s,@host_cpu@,$host_cpu,;t t
7247 s,@host_vendor@,$host_vendor,;t t
7248 s,@host_os@,$host_os,;t t
7249 s,@target@,$target,;t t
7250 s,@target_cpu@,$target_cpu,;t t
7251 s,@target_vendor@,$target_vendor,;t t
7252 s,@target_os@,$target_os,;t t
7254 s,@CFLAGS@,$CFLAGS,;t t
7255 s,@LDFLAGS@,$LDFLAGS,;t t
7256 s,@CPPFLAGS@,$CPPFLAGS,;t t
7257 s,@ac_ct_CC@,$ac_ct_CC,;t t
7258 s,@EXEEXT@,$EXEEXT,;t t
7259 s,@OBJEXT@,$OBJEXT,;t t
7260 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7261 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7262 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7263 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7264 s,@HDEFINES@,$HDEFINES,;t t
7266 s,@RANLIB@,$RANLIB,;t t
7267 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7268 s,@USE_NLS@,$USE_NLS,;t t
7269 s,@LIBINTL@,$LIBINTL,;t t
7270 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7271 s,@INCINTL@,$INCINTL,;t t
7272 s,@XGETTEXT@,$XGETTEXT,;t t
7273 s,@GMSGFMT@,$GMSGFMT,;t t
7274 s,@POSUB@,$POSUB,;t t
7275 s,@CATALOGS@,$CATALOGS,;t t
7276 s,@DATADIRNAME@,$DATADIRNAME,;t t
7277 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7278 s,@GENCAT@,$GENCAT,;t t
7279 s,@CATOBJEXT@,$CATOBJEXT,;t t
7281 s,@EGREP@,$EGREP,;t t
7282 s,@MAINT@,$MAINT,;t t
7283 s,@sim_bswap@,$sim_bswap,;t t
7284 s,@sim_cflags@,$sim_cflags,;t t
7285 s,@sim_debug@,$sim_debug,;t t
7286 s,@sim_stdio@,$sim_stdio,;t t
7287 s,@sim_trace@,$sim_trace,;t t
7288 s,@sim_profile@,$sim_profile,;t t
7289 s,@PKGVERSION@,$PKGVERSION,;t t
7290 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
7291 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
7292 s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
7293 s,@sim_igen_flags@,$sim_igen_flags,;t t
7294 s,@sim_m16_flags@,$sim_m16_flags,;t t
7295 s,@sim_gen@,$sim_gen,;t t
7296 s,@sim_multi_flags@,$sim_multi_flags,;t t
7297 s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
7298 s,@sim_multi_src@,$sim_multi_src,;t t
7299 s,@sim_multi_obj@,$sim_multi_obj,;t t
7300 s,@mips_extra_objs@,$mips_extra_objs,;t t
7301 s,@mips_igen_engine@,$mips_igen_engine,;t t
7302 s,@mips_extra_libs@,$mips_extra_libs,;t t
7303 s,@cgen_breaks@,$cgen_breaks,;t t
7304 s,@LIBOBJS@,$LIBOBJS,;t t
7305 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7310 cat >>$CONFIG_STATUS <<\_ACEOF
7311 # Split the substitutions into bite-sized pieces for seds with
7312 # small command number limits, like on Digital OSF/1 and HP-UX.
7314 ac_sed_frag
=1 # Number of current file.
7315 ac_beg
=1 # First line for current file.
7316 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7319 while $ac_more_lines; do
7320 if test $ac_beg -gt 1; then
7321 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7323 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7325 if test ! -s $tmp/subs.frag
; then
7328 # The purpose of the label and of the branching condition is to
7329 # speed up the sed processing (if there are no `@' at all, there
7330 # is no need to browse any of the substitutions).
7331 # These are the two extra sed commands mentioned above.
7333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7334 if test -z "$ac_sed_cmds"; then
7335 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7337 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7339 ac_sed_frag
=`expr $ac_sed_frag + 1`
7341 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7344 if test -z "$ac_sed_cmds"; then
7347 fi # test -n "$CONFIG_FILES"
7350 cat >>$CONFIG_STATUS <<\_ACEOF
7351 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7354 - |
*:- |
*:-:* ) # input from stdin
7356 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7357 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7358 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7359 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7360 * ) ac_file_in
=$ac_file.
in ;;
7363 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7364 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7366 X"$ac_file" : 'X\(//\)[^/]' \| \
7367 X"$ac_file" : 'X\(//\)$' \| \
7368 X"$ac_file" : 'X\(/\)' \| \
7369 . : '\(.\)' 2>/dev/null ||
7371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7373 /^X\(\/\/\)$/{ s//\1/; q; }
7374 /^X\(\/\).*/{ s//\1/; q; }
7376 { if $as_mkdir_p; then
7381 while test ! -d "$as_dir"; do
7382 as_dirs
="$as_dir $as_dirs"
7383 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7385 X"$as_dir" : 'X\(//\)[^/]' \| \
7386 X"$as_dir" : 'X\(//\)$' \| \
7387 X"$as_dir" : 'X\(/\)' \| \
7388 . : '\(.\)' 2>/dev/null ||
7390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7392 /^X\(\/\/\)$/{ s//\1/; q; }
7393 /^X\(\/\).*/{ s//\1/; q; }
7396 test ! -n "$as_dirs" || mkdir
$as_dirs
7397 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7398 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7399 { (exit 1); exit 1; }; }; }
7403 if test "$ac_dir" != .
; then
7404 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7405 # A "../" for each directory in $ac_dir_suffix.
7406 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7408 ac_dir_suffix
= ac_top_builddir
=
7412 .
) # No --srcdir option. We are building in place.
7414 if test -z "$ac_top_builddir"; then
7417 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7419 [\\/]* | ?
:[\\/]* ) # Absolute path.
7420 ac_srcdir
=$srcdir$ac_dir_suffix;
7421 ac_top_srcdir
=$srcdir ;;
7423 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7424 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7427 # Do not use `cd foo && pwd` to compute absolute paths, because
7428 # the directories may not exist.
7430 .
) ac_abs_builddir
="$ac_dir";;
7433 .
) ac_abs_builddir
=`pwd`;;
7434 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7435 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7438 case $ac_abs_builddir in
7439 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7441 case ${ac_top_builddir}.
in
7442 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7443 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7444 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7447 case $ac_abs_builddir in
7448 .
) ac_abs_srcdir
=$ac_srcdir;;
7451 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7452 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7453 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7456 case $ac_abs_builddir in
7457 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7459 case $ac_top_srcdir in
7460 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7461 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7462 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7468 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7469 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7472 if test x
"$ac_file" != x-
; then
7473 { echo "$as_me:$LINENO: creating $ac_file" >&5
7474 echo "$as_me: creating $ac_file" >&6;}
7477 # Let's still pretend it is `configure' which instantiates (i.e., don't
7478 # use $as_me), people would be surprised to read:
7479 # /* config.h. Generated by config.status. */
7480 if test x
"$ac_file" = x-
; then
7483 configure_input
="$ac_file. "
7485 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7486 sed 's,.*/,,'` by configure."
7488 # First look for the input files in the build tree, otherwise in the
7490 ac_file_inputs
=`IFS=:
7491 for f in $ac_file_in; do
7493 -) echo $tmp/stdin ;;
7495 # Absolute (can't be DOS-style, as IFS=:)
7496 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7497 echo "$as_me: error: cannot find input file: $f" >&2;}
7498 { (exit 1); exit 1; }; }
7501 if test -f "$f"; then
7504 elif test -f "$srcdir/$f"; then
7509 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7510 echo "$as_me: error: cannot find input file: $f" >&2;}
7511 { (exit 1); exit 1; }; }
7514 done` ||
{ (exit 1); exit 1; }
7516 cat >>$CONFIG_STATUS <<_ACEOF
7520 cat >>$CONFIG_STATUS <<\_ACEOF
7522 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7523 s
,@configure_input@
,$configure_input,;t t
7524 s
,@srcdir@
,$ac_srcdir,;t t
7525 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7526 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7527 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7528 s
,@builddir@
,$ac_builddir,;t t
7529 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7530 s
,@top_builddir@
,$ac_top_builddir,;t t
7531 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7532 s
,@INSTALL@
,$ac_INSTALL,;t t
7533 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7535 if test x"$ac_file" != x-; then
7536 mv $tmp/out $ac_file
7544 cat >>$CONFIG_STATUS <<\_ACEOF
7547 # CONFIG_HEADER section.
7550 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7551 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7553 # ac_d sets the value in "#define NAME VALUE" lines.
7554 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7555 ac_dB
='[ ].*$,\1#\2'
7558 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7559 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7560 ac_uB
='$,\1#\2define\3'
7564 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7567 - |
*:- |
*:-:* ) # input from stdin
7569 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7570 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7571 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7572 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7573 * ) ac_file_in
=$ac_file.
in ;;
7576 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7577 echo "$as_me: creating $ac_file" >&6;}
7579 # First look for the input files in the build tree, otherwise in the
7581 ac_file_inputs
=`IFS=:
7582 for f in $ac_file_in; do
7584 -) echo $tmp/stdin ;;
7586 # Absolute (can't be DOS-style, as IFS=:)
7587 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7588 echo "$as_me: error: cannot find input file: $f" >&2;}
7589 { (exit 1); exit 1; }; }
7590 # Do quote $f, to prevent DOS paths from being IFS'd.
7593 if test -f "$f"; then
7596 elif test -f "$srcdir/$f"; then
7601 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7602 echo "$as_me: error: cannot find input file: $f" >&2;}
7603 { (exit 1); exit 1; }; }
7606 done` ||
{ (exit 1); exit 1; }
7607 # Remove the trailing spaces.
7608 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7612 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7613 # `conftest.undefs', that substitutes the proper values into
7614 # config.h.in to produce config.h. The first handles `#define'
7615 # templates, and the second `#undef' templates.
7616 # And first: Protect against being on the right side of a sed subst in
7617 # config.status. Protect against being in an unquoted here document
7619 rm -f conftest.defines conftest.undefs
7620 # Using a here document instead of a string reduces the quoting nightmare.
7621 # Putting comments in sed scripts is not portable.
7623 # `end' is used to avoid that the second main sed command (meant for
7624 # 0-ary CPP macros) applies to n-ary macro definitions.
7625 # See the Autoconf documentation for `clear'.
7626 cat >confdef2sed.
sed <<\_ACEOF
7631 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7633 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7636 # If some macros were called several times there might be several times
7637 # the same #defines, which is useless. Nevertheless, we may not want to
7638 # sort them, since we want the *last* AC-DEFINE to be honored.
7639 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7640 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7641 rm -f confdef2sed.sed
7643 # This sed command replaces #undef with comments. This is necessary, for
7644 # example, in the case of _POSIX_SOURCE, which is predefined and required
7645 # on some systems where configure will not decide to define it.
7646 cat >>conftest.undefs <<\_ACEOF
7647 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7650 # Break up conftest.defines because some shells have a limit on the size
7651 # of here documents, and old seds have small limits too (100 cmds).
7652 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7653 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7654 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7655 echo ' :' >>$CONFIG_STATUS
7657 while grep . conftest.defines >/dev/null
7659 # Write a limited-size here document to $tmp/defines.sed.
7660 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7661 # Speed up: don't consider the non `#define' lines.
7662 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7663 # Work around the forget-to-reset-the-flag bug.
7664 echo 't clr' >>$CONFIG_STATUS
7665 echo ': clr' >>$CONFIG_STATUS
7666 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7668 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7672 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7673 rm -f conftest.defines
7674 mv conftest.
tail conftest.defines
7676 rm -f conftest.defines
7677 echo ' fi # grep' >>$CONFIG_STATUS
7678 echo >>$CONFIG_STATUS
7680 # Break up conftest.undefs because some shells have a limit on the size
7681 # of here documents, and old seds have small limits too (100 cmds).
7682 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7684 while grep . conftest.undefs
>/dev
/null
7686 # Write a limited-size here document to $tmp/undefs.sed.
7687 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7688 # Speed up: don't consider the non
`#undef'
7689 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7690 # Work around the forget-to-reset-the-flag bug.
7691 echo 't clr' >>$CONFIG_STATUS
7692 echo ': clr' >>$CONFIG_STATUS
7693 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7695 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7699 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7700 rm -f conftest.undefs
7701 mv conftest.tail conftest.undefs
7703 rm -f conftest.undefs
7705 cat >>$CONFIG_STATUS <<\_ACEOF
7706 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7707 # use $as_me), people would be surprised to read:
7708 # /* config.h. Generated by config.status. */
7709 if test x
"$ac_file" = x-
; then
7710 echo "/* Generated by configure. */" >$tmp/config.h
7712 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7714 cat $tmp/in >>$tmp/config.h
7716 if test x
"$ac_file" != x-
; then
7717 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7718 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7719 echo "$as_me: $ac_file is unchanged" >&6;}
7721 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7723 X"$ac_file" : 'X\(//\)[^/]' \| \
7724 X"$ac_file" : 'X\(//\)$' \| \
7725 X"$ac_file" : 'X\(/\)' \| \
7726 . : '\(.\)' 2>/dev/null ||
7728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7730 /^X\(\/\/\)$/{ s//\1/; q; }
7731 /^X\(\/\).*/{ s//\1/; q; }
7733 { if $as_mkdir_p; then
7738 while test ! -d "$as_dir"; do
7739 as_dirs
="$as_dir $as_dirs"
7740 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7742 X"$as_dir" : 'X\(//\)[^/]' \| \
7743 X"$as_dir" : 'X\(//\)$' \| \
7744 X"$as_dir" : 'X\(/\)' \| \
7745 . : '\(.\)' 2>/dev/null ||
7747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7749 /^X\(\/\/\)$/{ s//\1/; q; }
7750 /^X\(\/\).*/{ s//\1/; q; }
7753 test ! -n "$as_dirs" || mkdir
$as_dirs
7754 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7756 { (exit 1); exit 1; }; }; }
7759 mv $tmp/config.h
$ac_file
7767 cat >>$CONFIG_STATUS <<\_ACEOF
7770 # CONFIG_LINKS section.
7773 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
7774 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7775 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7777 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7778 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7780 if test ! -r $srcdir/$ac_source; then
7781 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7782 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7783 { (exit 1); exit 1; }; }
7787 # Make relative symlinks.
7788 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7790 X"$ac_dest" : 'X\(//\)[^/]' \| \
7791 X"$ac_dest" : 'X\(//\)$' \| \
7792 X"$ac_dest" : 'X\(/\)' \| \
7793 . : '\(.\)' 2>/dev/null ||
7795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7797 /^X\(\/\/\)$/{ s//\1/; q; }
7798 /^X\(\/\).*/{ s//\1/; q; }
7800 { if $as_mkdir_p; then
7801 mkdir
-p "$ac_dest_dir"
7803 as_dir
="$ac_dest_dir"
7805 while test ! -d "$as_dir"; do
7806 as_dirs
="$as_dir $as_dirs"
7807 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7809 X"$as_dir" : 'X\(//\)[^/]' \| \
7810 X"$as_dir" : 'X\(//\)$' \| \
7811 X"$as_dir" : 'X\(/\)' \| \
7812 . : '\(.\)' 2>/dev/null ||
7814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7816 /^X\(\/\/\)$/{ s//\1/; q; }
7817 /^X\(\/\).*/{ s//\1/; q; }
7820 test ! -n "$as_dirs" || mkdir
$as_dirs
7821 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7822 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7823 { (exit 1); exit 1; }; }; }
7827 if test "$ac_dest_dir" != .
; then
7828 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7829 # A "../" for each directory in $ac_dir_suffix.
7830 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7832 ac_dir_suffix
= ac_top_builddir
=
7836 .
) # No --srcdir option. We are building in place.
7838 if test -z "$ac_top_builddir"; then
7841 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7843 [\\/]* | ?
:[\\/]* ) # Absolute path.
7844 ac_srcdir
=$srcdir$ac_dir_suffix;
7845 ac_top_srcdir
=$srcdir ;;
7847 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7848 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7851 # Do not use `cd foo && pwd` to compute absolute paths, because
7852 # the directories may not exist.
7854 .
) ac_abs_builddir
="$ac_dest_dir";;
7856 case "$ac_dest_dir" in
7857 .
) ac_abs_builddir
=`pwd`;;
7858 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
7859 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
7862 case $ac_abs_builddir in
7863 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7865 case ${ac_top_builddir}.
in
7866 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7867 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7868 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7871 case $ac_abs_builddir in
7872 .
) ac_abs_srcdir
=$ac_srcdir;;
7875 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7876 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7877 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7880 case $ac_abs_builddir in
7881 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7883 case $ac_top_srcdir in
7884 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7885 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7886 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7892 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
7893 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
7896 # Try a symlink, then a hard link, then a copy.
7897 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
7898 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
7899 cp -p $srcdir/$ac_source $ac_dest ||
7900 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7901 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
7902 { (exit 1); exit 1; }; }
7905 cat >>$CONFIG_STATUS <<\_ACEOF
7908 # CONFIG_COMMANDS section.
7910 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
7911 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7912 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7913 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7914 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7915 X"$ac_dest" : 'X\(//\)[^/]' \| \
7916 X"$ac_dest" : 'X\(//\)$' \| \
7917 X"$ac_dest" : 'X\(/\)' \| \
7918 . : '\(.\)' 2>/dev/null ||
7920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7922 /^X\(\/\/\)$/{ s//\1/; q; }
7923 /^X\(\/\).*/{ s//\1/; q; }
7925 { if $as_mkdir_p; then
7930 while test ! -d "$as_dir"; do
7931 as_dirs
="$as_dir $as_dirs"
7932 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7934 X"$as_dir" : 'X\(//\)[^/]' \| \
7935 X"$as_dir" : 'X\(//\)$' \| \
7936 X"$as_dir" : 'X\(/\)' \| \
7937 . : '\(.\)' 2>/dev/null ||
7939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7941 /^X\(\/\/\)$/{ s//\1/; q; }
7942 /^X\(\/\).*/{ s//\1/; q; }
7945 test ! -n "$as_dirs" || mkdir
$as_dirs
7946 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7947 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7948 { (exit 1); exit 1; }; }; }
7952 if test "$ac_dir" != .
; then
7953 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7954 # A "../" for each directory in $ac_dir_suffix.
7955 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7957 ac_dir_suffix
= ac_top_builddir
=
7961 .
) # No --srcdir option. We are building in place.
7963 if test -z "$ac_top_builddir"; then
7966 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7968 [\\/]* | ?
:[\\/]* ) # Absolute path.
7969 ac_srcdir
=$srcdir$ac_dir_suffix;
7970 ac_top_srcdir
=$srcdir ;;
7972 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7973 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7976 # Do not use `cd foo && pwd` to compute absolute paths, because
7977 # the directories may not exist.
7979 .
) ac_abs_builddir
="$ac_dir";;
7982 .
) ac_abs_builddir
=`pwd`;;
7983 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7984 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7987 case $ac_abs_builddir in
7988 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7990 case ${ac_top_builddir}.
in
7991 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7992 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7993 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7996 case $ac_abs_builddir in
7997 .
) ac_abs_srcdir
=$ac_srcdir;;
8000 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8001 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8002 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8005 case $ac_abs_builddir in
8006 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8008 case $ac_top_srcdir in
8009 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8010 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8011 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8016 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8017 echo "$as_me: executing $ac_dest commands" >&6;}
8019 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8020 rm -f Makesim1.tmp Makesim2.tmp Makefile
8021 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
8022 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
8023 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8024 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8025 <Makefile.sim
>Makefile
8026 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8028 stamp-h
) echo > stamp-h
;;
8033 cat >>$CONFIG_STATUS <<\_ACEOF
8035 { (exit 0); exit 0; }
8037 chmod +x
$CONFIG_STATUS
8038 ac_clean_files
=$ac_clean_files_save
8041 # configure is writing to config.log, and then calls config.status.
8042 # config.status does its own redirection, appending to config.log.
8043 # Unfortunately, on DOS this fails, as config.log is still kept open
8044 # by configure, so config.status won't be able to write to it; its
8045 # output is simply discarded. So we exec the FD to /dev/null,
8046 # effectively closing config.log, so it can be properly (re)opened and
8047 # appended to by config.status. When coming back to configure, we
8048 # need to make the FD available again.
8049 if test "$no_create" != yes; then
8051 ac_config_status_args
=
8052 test "$silent" = yes &&
8053 ac_config_status_args
="$ac_config_status_args --quiet"
8055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8058 # would make configure fail if this is the last instruction.
8059 $ac_cs_success ||
{ (exit 1); exit 1; }