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 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 CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile 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 cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --enable-maintainer-mode Enable developer functionality.
854 --enable-sim-bswap Use Host specific BSWAP instruction.
855 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
856 --enable-sim-debug=opts Enable debugging flags
857 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
858 --enable-sim-trace=opts Enable tracing flags
859 --enable-sim-profile=opts Enable profiling flags
860 --enable-sim-endian=endian Specify target byte endian orientation.
861 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
862 --enable-sim-hostendian=end Specify
host byte endian orientation.
863 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
864 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
865 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
866 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
867 --enable-sim-inline=inlines Specify
which functions should be inlined.
868 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
870 Some influential environment variables
:
871 CC C compiler
command
872 CFLAGS C compiler flags
873 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
874 nonstandard directory
<lib dir
>
875 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
876 headers
in a nonstandard directory
<include dir
>
879 Use these variables to override the choices made by
`configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
897 ac_dir_suffix= ac_top_builddir=
901 .) # No --srcdir option. We are building in place.
903 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 # Do not use `cd foo
&& pwd` to compute absolute paths, because
917 # the directories may not exist.
919 .) ac_abs_builddir="$ac_dir";;
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
1001 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1002 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1003 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1004 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1005 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1007 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1008 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1010 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1011 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1012 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1013 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1014 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1015 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1016 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_must_keep_next=false
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078 -* ) ac_must_keep_next=true ;;
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close
' the trap.
1096 trap 'exit_status
=$?
1097 # Save into config.log some information that might help in debugging.
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1107 # The following way of writing the cache mishandles newlines in values,
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1130 for ac_var
in $ac_subst_vars
1132 eval ac_val
=$
`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1137 if test -n "$ac_subst_files"; then
1144 for ac_var
in $ac_subst_files
1146 eval ac_val
=$
`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -s confdefs.h
; then
1159 sed "/^$/d" confdefs.h |
sort
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1166 rm -f core
*.core
&&
1167 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's
/^
/|
/' "$ac_site_file" >&5
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1242 # Check that the precious variables saved in the cache have kept the same
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1255 ac_cache_corrupted=: ;;
1257 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1264 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1289 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1296 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318 # This file contains common code used by all simulators.
1320 # common.m4 invokes AC macros used by all simulators and by the common
1321 # directory. It is intended to be included before any target specific
1322 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1323 # the Makefile. It is intended to be invoked last.
1325 # The simulator's configure.
in should
look like
:
1327 # dnl Process this file with autoconf to produce a configure script.
1329 # AC_INIT(Makefile.in)
1331 # sinclude(../common/common.m4)
1333 # ... target specific stuff ...
1335 # autoconf.info says this should be called right after AC_INIT.
1336 ac_config_headers
="$ac_config_headers config.h:config.in"
1339 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1340 if test -f $ac_dir/install-sh
; then
1342 ac_install_sh
="$ac_aux_dir/install-sh -c"
1344 elif test -f $ac_dir/install.sh
; then
1346 ac_install_sh
="$ac_aux_dir/install.sh -c"
1348 elif test -f $ac_dir/shtool
; then
1350 ac_install_sh
="$ac_aux_dir/shtool install -c"
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363 # Make sure we can run config.sub.
1364 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1365 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1366 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1367 { (exit 1); exit 1; }; }
1369 echo "$as_me:$LINENO: checking build system type" >&5
1370 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1371 if test "${ac_cv_build+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 ac_cv_build_alias
=$build_alias
1375 test -z "$ac_cv_build_alias" &&
1376 ac_cv_build_alias
=`$ac_config_guess`
1377 test -z "$ac_cv_build_alias" &&
1378 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1379 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1380 { (exit 1); exit 1; }; }
1381 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1382 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1383 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1384 { (exit 1); exit 1; }; }
1387 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1388 echo "${ECHO_T}$ac_cv_build" >&6
1390 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1391 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1392 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1395 echo "$as_me:$LINENO: checking host system type" >&5
1396 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1397 if test "${ac_cv_host+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 ac_cv_host_alias
=$host_alias
1401 test -z "$ac_cv_host_alias" &&
1402 ac_cv_host_alias
=$ac_cv_build_alias
1403 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1404 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1405 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1406 { (exit 1); exit 1; }; }
1409 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1410 echo "${ECHO_T}$ac_cv_host" >&6
1412 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1413 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1414 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417 echo "$as_me:$LINENO: checking target system type" >&5
1418 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1419 if test "${ac_cv_target+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 ac_cv_target_alias
=$target_alias
1423 test "x$ac_cv_target_alias" = "x" &&
1424 ac_cv_target_alias
=$ac_cv_host_alias
1425 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1426 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1427 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1428 { (exit 1); exit 1; }; }
1431 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1432 echo "${ECHO_T}$ac_cv_target" >&6
1433 target
=$ac_cv_target
1434 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1435 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1436 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439 # The aliases save the names the user supplied, while $host etc.
1440 # will get canonicalized.
1441 test -n "$target_alias" &&
1442 test "$program_prefix$program_suffix$program_transform_name" = \
1444 program_prefix
=${target_alias}-
1445 test "$program_prefix" != NONE
&&
1446 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1447 # Use a double $ so make ignores it.
1448 test "$program_suffix" != NONE
&&
1449 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1450 # Double any \ or $. echo might interpret backslashes.
1451 # By default was `s,x,x', remove it if useless.
1452 cat <<\_ACEOF
>conftest.
sed
1453 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1455 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1459 ac_cpp
='$CPP $CPPFLAGS'
1460 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC
="$CC" # Let the user override the test.
1474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir
=.
1479 for ac_exec_ext
in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1500 if test -z "$ac_cv_prog_CC"; then
1502 # Extract the first word of "gcc", so it can be a program name with args.
1503 set dummy gcc
; ac_word
=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir
=.
1517 for ac_exec_ext
in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC
="gcc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1542 if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC
="$CC" # Let the user override the test.
1554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir
=.
1559 for ac_exec_ext
in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1580 if test -z "$ac_cv_prog_CC"; then
1582 # Extract the first word of "cc", so it can be a program name with args.
1583 set dummy cc
; ac_word
=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir
=.
1597 for ac_exec_ext
in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC
="cc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1623 if test -z "$CC"; then
1624 # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc
; ac_word
=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC
="$CC" # Let the user override the test.
1635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir
=.
1640 for ac_exec_ext
in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643 ac_prog_rejected
=yes
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 if test $ac_prog_rejected = yes; then
1654 # We found a bogon in the path, so make sure we never use it.
1655 set dummy
$ac_cv_prog_CC
1657 if test $# != 0; then
1658 # We chose a different compiler from the bogus one.
1659 # However, it has the same basename, so the bogon will be chosen
1660 # first if we set CC to just the basename; use the full file name.
1662 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1668 if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1677 if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC
="$CC" # Let the user override the test.
1691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1695 test -z "$as_dir" && as_dir
=.
1696 for ac_exec_ext
in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1716 test -n "$CC" && break
1719 if test -z "$CC"; then
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy
$ac_prog; ac_word
=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1737 test -z "$as_dir" && as_dir
=.
1738 for ac_exec_ext
in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC
="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 test -n "$ac_ct_CC" && break
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775 "checking for C compiler version" >&5
1776 ac_compiler
=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1793 cat >conftest.
$ac_ext <<_ACEOF
1796 cat confdefs.h
>>conftest.
$ac_ext
1797 cat >>conftest.
$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1808 ac_clean_files_save
=$ac_clean_files
1809 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1813 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1828 # b.out is created by i960 compilers.
1829 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1831 test -f "$ac_file" ||
continue
1833 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1836 # This is the source file.
1839 # We found the default executable, but exeext='' is most
1843 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.
$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
1864 ac_exeext
=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875 if { ac_try
='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1883 if test "$cross_compiling" = maybe
; then
1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1899 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1900 ac_clean_files
=$ac_clean_files_save
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1919 for ac_file
in conftest.exe conftest conftest.
*; do
1920 test -f "$ac_file" ||
continue
1922 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1923 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1937 rm -f conftest
$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1941 rm -f conftest.
$ac_ext
1942 EXEEXT
=$ac_cv_exeext
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.
$ac_ext <<_ACEOF
1952 cat confdefs.h
>>conftest.
$ac_ext
1953 cat >>conftest.
$ac_ext <<_ACEOF
1954 /* end confdefs.h. */
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1972 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1973 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.
$ac_ext >&5
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1988 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT
=$ac_cv_objext
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 cat >conftest.
$ac_ext <<_ACEOF
2002 cat confdefs.h
>>conftest.
$ac_ext
2003 cat >>conftest.
$ac_ext <<_ACEOF
2004 /* end confdefs.h. */
2017 rm -f conftest.
$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
2021 grep -v '^ *+' conftest.er1
>conftest.err
2023 cat conftest.err
>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try
='test -z "$ac_c_werror_flag"
2027 || test ! -s conftest.err'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; } &&
2033 { ac_try
='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.
$ac_ext >&5
2046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2047 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS
=${CFLAGS+set}
2054 ac_save_CFLAGS
=$CFLAGS
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.
$ac_ext <<_ACEOF
2064 cat confdefs.h
>>conftest.
$ac_ext
2065 cat >>conftest.
$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2076 rm -f conftest.
$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2080 grep -v '^ *+' conftest.er1
>conftest.err
2082 cat conftest.err
>&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try
='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try
='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.
$ac_ext >&5
2105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2109 if test "$ac_test_CFLAGS" = set; then
2110 CFLAGS
=$ac_save_CFLAGS
2111 elif test $ac_cv_prog_cc_g = yes; then
2112 if test "$GCC" = yes; then
2118 if test "$GCC" = yes; then
2124 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 ac_cv_prog_cc_stdc
=no
2131 cat >conftest.
$ac_ext <<_ACEOF
2134 cat confdefs.h
>>conftest.
$ac_ext
2135 cat >>conftest.
$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2139 #include <sys/types.h>
2140 #include <sys/stat.h>
2141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2142 struct buf { int x; };
2143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144 static char *e (p, i)
2150 static char *f (char * (*g) (char **, int), char **p, ...)
2155 s = g (p, va_arg (v,int));
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not '\xHH' hex character constants.
2162 These don't provoke an error unfortunately, instead are silently treated
2163 as 'x'. The following induces an error, until -std1 is added to get
2164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2165 array size at least. It's necessary to write '\x00'==0 to get something
2166 that's true only with -std1. */
2167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2183 # Don't try gcc -ansi; that turns off useful extensions and
2184 # breaks some systems' header files.
2185 # AIX -qlanglvl=ansi
2186 # Ultrix and OSF/1 -std1
2187 # HP-UX 10.20 and later -Ae
2188 # HP-UX older versions -Aa -D_HPUX_SOURCE
2189 # SVR4 -Xc -D__EXTENSIONS__
2190 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2192 CC
="$ac_save_CC $ac_arg"
2193 rm -f conftest.
$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1
>conftest.err
2199 cat conftest.err
>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try
='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try
='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 ac_cv_prog_cc_stdc
=$ac_arg
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.
$ac_ext >&5
2222 rm -f conftest.err conftest.
$ac_objext
2224 rm -f conftest.
$ac_ext conftest.
$ac_objext
2229 case "x$ac_cv_prog_cc_stdc" in
2231 echo "$as_me:$LINENO: result: none needed" >&5
2232 echo "${ECHO_T}none needed" >&6 ;;
2234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2239 # Some people use a C++ compiler to compile C. Since we use `exit',
2240 # in C++ we need to declare it. In case someone uses the same compiler
2241 # for both compiling C and C++ we need to have the C++ compiler decide
2242 # the declaration of exit, since it's the most demanding environment.
2243 cat >conftest.
$ac_ext <<_ACEOF
2248 rm -f conftest.
$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2252 grep -v '^ *+' conftest.er1
>conftest.err
2254 cat conftest.err
>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try
='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try
='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 for ac_declaration
in \
2272 'extern "C" void std::exit (int) throw (); using std::exit;' \
2273 'extern "C" void std::exit (int); using std::exit;' \
2274 'extern "C" void exit (int) throw ();' \
2275 'extern "C" void exit (int);' \
2278 cat >conftest.
$ac_ext <<_ACEOF
2281 cat confdefs.h
>>conftest.
$ac_ext
2282 cat >>conftest.
$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2294 rm -f conftest.
$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>conftest.er1
2298 grep -v '^ *+' conftest.er1
>conftest.err
2300 cat conftest.err
>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try
='test -z "$ac_c_werror_flag"
2304 || test ! -s conftest.err'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try
='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.
$ac_ext >&5
2323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2324 cat >conftest.
$ac_ext <<_ACEOF
2327 cat confdefs.h
>>conftest.
$ac_ext
2328 cat >>conftest.
$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2339 rm -f conftest.
$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2343 grep -v '^ *+' conftest.er1
>conftest.err
2345 cat conftest.err
>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try
='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try
='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.
$ac_ext >&5
2367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2370 if test -n "$ac_declaration"; then
2371 echo '#ifdef __cplusplus' >>confdefs.h
2372 echo $ac_declaration >>confdefs.h
2373 echo '#endif' >>confdefs.h
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.
$ac_ext >&5
2381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2383 ac_cpp
='$CPP $CPPFLAGS'
2384 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2388 # Find a good install program. We prefer a C program (faster),
2389 # so one script is as good as another. But avoid the broken or
2390 # incompatible versions:
2391 # SysV /etc/install, /usr/sbin/install
2392 # SunOS /usr/etc/install
2393 # IRIX /sbin/install
2395 # AmigaOS /C/install, which installs bootblocks on floppy discs
2396 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2397 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2398 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2399 # OS/2's system install, which has a completely different semantic
2400 # ./install, which can be erroneously created by make from ./install.sh.
2401 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2402 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2403 if test -z "$INSTALL"; then
2404 if test "${ac_cv_path_install+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir
=.
2412 # Account for people who put trailing slashes in PATH elements.
2414 .
/ | .
// |
/cC
/* | \
2415 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2416 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2419 # OSF1 and SCO ODT 3.0 have their own names for install.
2420 # Don't use installbsd from OSF since it installs stuff as root
2422 for ac_prog
in ginstall scoinst
install; do
2423 for ac_exec_ext
in '' $ac_executable_extensions; do
2424 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2425 if test $ac_prog = install &&
2426 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2427 # AIX install. It has an incompatible calling convention.
2429 elif test $ac_prog = install &&
2430 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2431 # program-specific install script used by HP pwplus--don't use.
2434 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2446 if test "${ac_cv_path_install+set}" = set; then
2447 INSTALL
=$ac_cv_path_install
2449 # As a last resort, use the slow shell script. We don't cache a
2450 # path for INSTALL within a source directory, because that will
2451 # break other packages using the cache if that directory is
2452 # removed, or if the path is relative.
2453 INSTALL
=$ac_install_sh
2456 echo "$as_me:$LINENO: result: $INSTALL" >&5
2457 echo "${ECHO_T}$INSTALL" >&6
2459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2460 # It thinks the first close brace ends the variable substitution.
2461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2463 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2465 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2468 # Put a plausible default for CC_FOR_BUILD in Makefile.
2469 if test "x$cross_compiling" = "xno"; then
2470 CC_FOR_BUILD
='$(CC)'
2480 if test -n "$ac_tool_prefix"; then
2481 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2482 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2483 echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485 if test "${ac_cv_prog_RANLIB+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 if test -n "$RANLIB"; then
2489 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir
=.
2496 for ac_exec_ext
in '' $ac_executable_extensions; do
2497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 RANLIB
=$ac_cv_prog_RANLIB
2508 if test -n "$RANLIB"; then
2509 echo "$as_me:$LINENO: result: $RANLIB" >&5
2510 echo "${ECHO_T}$RANLIB" >&6
2512 echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2517 if test -z "$ac_cv_prog_RANLIB"; then
2518 ac_ct_RANLIB
=$RANLIB
2519 # Extract the first word of "ranlib", so it can be a program name with args.
2520 set dummy ranlib
; ac_word
=$2
2521 echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$ac_ct_RANLIB"; then
2527 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir
=.
2534 for ac_exec_ext
in '' $ac_executable_extensions; do
2535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2546 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2547 if test -n "$ac_ct_RANLIB"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2549 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2551 echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 RANLIB
=$ac_ct_RANLIB
2557 RANLIB
="$ac_cv_prog_RANLIB"
2564 # Check for common headers.
2565 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2566 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2569 ac_cpp
='$CPP $CPPFLAGS'
2570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2573 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2574 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2575 # On Suns, sometimes $CPP names a directory.
2576 if test -n "$CPP" && test -d "$CPP"; then
2579 if test -z "$CPP"; then
2580 if test "${ac_cv_prog_CPP+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 # Double quotes because CPP needs to be expanded
2584 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2587 for ac_c_preproc_warn_flag
in '' yes
2589 # Use a header file that comes with gcc, so configuring glibc
2590 # with a fresh cross-compiler works.
2591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2592 # <limits.h> exists even on freestanding compilers.
2593 # On the NeXT, cc -E runs the code through the compiler's parser,
2594 # not just through cpp. "Syntax error" is here to catch this case.
2595 cat >conftest.
$ac_ext <<_ACEOF
2598 cat confdefs.h
>>conftest.
$ac_ext
2599 cat >>conftest.
$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2602 # include <limits.h>
2604 # include <assert.h>
2608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2609 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } >/dev
/null
; then
2616 if test -s conftest.err
; then
2617 ac_cpp_err
=$ac_c_preproc_warn_flag
2618 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2625 if test -z "$ac_cpp_err"; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.
$ac_ext >&5
2631 # Broken: fails on valid input.
2634 rm -f conftest.err conftest.
$ac_ext
2636 # OK, works on sane cases. Now check whether non-existent headers
2637 # can be detected and how.
2638 cat >conftest.
$ac_ext <<_ACEOF
2641 cat confdefs.h
>>conftest.
$ac_ext
2642 cat >>conftest.
$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644 #include <ac_nonexistent.h>
2646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2647 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2649 grep -v '^ *+' conftest.er1
>conftest.err
2651 cat conftest.err
>&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } >/dev
/null
; then
2654 if test -s conftest.err
; then
2655 ac_cpp_err
=$ac_c_preproc_warn_flag
2656 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2663 if test -z "$ac_cpp_err"; then
2664 # Broken: success on invalid input.
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.
$ac_ext >&5
2670 # Passes both tests.
2674 rm -f conftest.err conftest.
$ac_ext
2677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2678 rm -f conftest.err conftest.
$ac_ext
2679 if $ac_preproc_ok; then
2691 echo "$as_me:$LINENO: result: $CPP" >&5
2692 echo "${ECHO_T}$CPP" >&6
2694 for ac_c_preproc_warn_flag
in '' yes
2696 # Use a header file that comes with gcc, so configuring glibc
2697 # with a fresh cross-compiler works.
2698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2699 # <limits.h> exists even on freestanding compilers.
2700 # On the NeXT, cc -E runs the code through the compiler's parser,
2701 # not just through cpp. "Syntax error" is here to catch this case.
2702 cat >conftest.
$ac_ext <<_ACEOF
2705 cat confdefs.h
>>conftest.
$ac_ext
2706 cat >>conftest.
$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2709 # include <limits.h>
2711 # include <assert.h>
2715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2716 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2718 grep -v '^ *+' conftest.er1
>conftest.err
2720 cat conftest.err
>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } >/dev
/null
; then
2723 if test -s conftest.err
; then
2724 ac_cpp_err
=$ac_c_preproc_warn_flag
2725 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2732 if test -z "$ac_cpp_err"; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.
$ac_ext >&5
2738 # Broken: fails on valid input.
2741 rm -f conftest.err conftest.
$ac_ext
2743 # OK, works on sane cases. Now check whether non-existent headers
2744 # can be detected and how.
2745 cat >conftest.
$ac_ext <<_ACEOF
2748 cat confdefs.h
>>conftest.
$ac_ext
2749 cat >>conftest.
$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2751 #include <ac_nonexistent.h>
2753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2754 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2756 grep -v '^ *+' conftest.er1
>conftest.err
2758 cat conftest.err
>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } >/dev
/null
; then
2761 if test -s conftest.err
; then
2762 ac_cpp_err
=$ac_c_preproc_warn_flag
2763 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2770 if test -z "$ac_cpp_err"; then
2771 # Broken: success on invalid input.
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.
$ac_ext >&5
2777 # Passes both tests.
2781 rm -f conftest.err conftest.
$ac_ext
2784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2785 rm -f conftest.err conftest.
$ac_ext
2786 if $ac_preproc_ok; then
2789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2797 ac_cpp
='$CPP $CPPFLAGS'
2798 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2803 echo "$as_me:$LINENO: checking for egrep" >&5
2804 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2805 if test "${ac_cv_prog_egrep+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2809 then ac_cv_prog_egrep
='grep -E'
2810 else ac_cv_prog_egrep
='egrep'
2813 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2814 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2815 EGREP
=$ac_cv_prog_egrep
2818 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2819 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2820 if test "${ac_cv_header_stdc+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 cat >conftest.
$ac_ext <<_ACEOF
2826 cat confdefs.h
>>conftest.
$ac_ext
2827 cat >>conftest.
$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2842 rm -f conftest.
$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1
>conftest.err
2848 cat conftest.err
>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try
='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try
='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_header_stdc
=yes
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.
$ac_ext >&5
2869 ac_cv_header_stdc
=no
2871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2873 if test $ac_cv_header_stdc = yes; then
2874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2875 cat >conftest.
$ac_ext <<_ACEOF
2878 cat confdefs.h
>>conftest.
$ac_ext
2879 cat >>conftest.
$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2885 $EGREP "memchr" >/dev
/null
2>&1; then
2888 ac_cv_header_stdc
=no
2894 if test $ac_cv_header_stdc = yes; then
2895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2896 cat >conftest.
$ac_ext <<_ACEOF
2899 cat confdefs.h
>>conftest.
$ac_ext
2900 cat >>conftest.
$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2906 $EGREP "free" >/dev
/null
2>&1; then
2909 ac_cv_header_stdc
=no
2915 if test $ac_cv_header_stdc = yes; then
2916 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2917 if test "$cross_compiling" = yes; then
2920 cat >conftest.
$ac_ext <<_ACEOF
2923 cat confdefs.h
>>conftest.
$ac_ext
2924 cat >>conftest.
$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2927 #if ((' ' & 0x0FF) == 0x020)
2928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2931 # define ISLOWER(c) \
2932 (('a' <= (c) && (c) <= 'i') \
2933 || ('j' <= (c) && (c) <= 'r') \
2934 || ('s' <= (c) && (c) <= 'z'))
2935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2943 for (i = 0; i < 256; i++)
2944 if (XOR (islower (i), ISLOWER (i))
2945 || toupper (i) != TOUPPER (i))
2950 rm -f conftest
$ac_exeext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2952 (eval $ac_link) 2>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: program exited with status $ac_status" >&5
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.
$ac_ext >&5
2968 ac_cv_header_stdc
=no
2970 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2974 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2975 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2976 if test $ac_cv_header_stdc = yes; then
2978 cat >>confdefs.h
<<\_ACEOF
2979 #define STDC_HEADERS 1
2984 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2994 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2995 inttypes.h stdint.h unistd.h
2997 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2998 echo "$as_me:$LINENO: checking for $ac_header" >&5
2999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 cat >conftest.
$ac_ext <<_ACEOF
3006 cat confdefs.h
>>conftest.
$ac_ext
3007 cat >>conftest.
$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 $ac_includes_default
3011 #include <$ac_header>
3013 rm -f conftest.
$ac_objext
3014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015 (eval $ac_compile) 2>conftest.er1
3017 grep -v '^ *+' conftest.er1
>conftest.err
3019 cat conftest.err
>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try
='test -z "$ac_c_werror_flag"
3023 || test ! -s conftest.err'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try
='test -s conftest.$ac_objext'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 eval "$as_ac_Header=yes"
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.
$ac_ext >&5
3040 eval "$as_ac_Header=no"
3042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3047 cat >>confdefs.h
<<_ACEOF
3048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3061 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
3063 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3065 echo "$as_me:$LINENO: checking for $ac_header" >&5
3066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3073 # Is the header compilable?
3074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3076 cat >conftest.
$ac_ext <<_ACEOF
3079 cat confdefs.h
>>conftest.
$ac_ext
3080 cat >>conftest.
$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082 $ac_includes_default
3083 #include <$ac_header>
3085 rm -f conftest.
$ac_objext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3087 (eval $ac_compile) 2>conftest.er1
3089 grep -v '^ *+' conftest.er1
>conftest.err
3091 cat conftest.err
>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try
='test -z "$ac_c_werror_flag"
3095 || test ! -s conftest.err'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try
='test -s conftest.$ac_objext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 ac_header_compiler
=yes
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.
$ac_ext >&5
3112 ac_header_compiler
=no
3114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3116 echo "${ECHO_T}$ac_header_compiler" >&6
3118 # Is the header present?
3119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3121 cat >conftest.
$ac_ext <<_ACEOF
3124 cat confdefs.h
>>conftest.
$ac_ext
3125 cat >>conftest.
$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <$ac_header>
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1
>conftest.err
3134 cat conftest.err
>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev
/null
; then
3137 if test -s conftest.err
; then
3138 ac_cpp_err
=$ac_c_preproc_warn_flag
3139 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3146 if test -z "$ac_cpp_err"; then
3147 ac_header_preproc
=yes
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.
$ac_ext >&5
3152 ac_header_preproc
=no
3154 rm -f conftest.err conftest.
$ac_ext
3155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3156 echo "${ECHO_T}$ac_header_preproc" >&6
3158 # So? What about this header?
3159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3165 ac_header_preproc
=yes
3168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3182 ## ------------------------------------------ ##
3183 ## Report this to the AC_PACKAGE_NAME lists. ##
3184 ## ------------------------------------------ ##
3187 sed "s/^/$as_me: WARNING: /" >&2
3190 echo "$as_me:$LINENO: checking for $ac_header" >&5
3191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 eval "$as_ac_Header=\$ac_header_preproc"
3197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3202 cat >>confdefs.h
<<_ACEOF
3203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3212 for ac_header
in sys
/time.h sys
/resource.h
3214 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3216 echo "$as_me:$LINENO: checking for $ac_header" >&5
3217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3224 # Is the header compilable?
3225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3227 cat >conftest.
$ac_ext <<_ACEOF
3230 cat confdefs.h
>>conftest.
$ac_ext
3231 cat >>conftest.
$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 $ac_includes_default
3234 #include <$ac_header>
3236 rm -f conftest.
$ac_objext
3237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>conftest.er1
3240 grep -v '^ *+' conftest.er1
>conftest.err
3242 cat conftest.err
>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try
='test -z "$ac_c_werror_flag"
3246 || test ! -s conftest.err'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try
='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_header_compiler
=yes
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.
$ac_ext >&5
3263 ac_header_compiler
=no
3265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3267 echo "${ECHO_T}$ac_header_compiler" >&6
3269 # Is the header present?
3270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3272 cat >conftest.
$ac_ext <<_ACEOF
3275 cat confdefs.h
>>conftest.
$ac_ext
3276 cat >>conftest.
$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include <$ac_header>
3280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3283 grep -v '^ *+' conftest.er1
>conftest.err
3285 cat conftest.err
>&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } >/dev
/null
; then
3288 if test -s conftest.err
; then
3289 ac_cpp_err
=$ac_c_preproc_warn_flag
3290 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3297 if test -z "$ac_cpp_err"; then
3298 ac_header_preproc
=yes
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.
$ac_ext >&5
3303 ac_header_preproc
=no
3305 rm -f conftest.err conftest.
$ac_ext
3306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3307 echo "${ECHO_T}$ac_header_preproc" >&6
3309 # So? What about this header?
3310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3316 ac_header_preproc
=yes
3319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3326 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3333 ## ------------------------------------------ ##
3334 ## Report this to the AC_PACKAGE_NAME lists. ##
3335 ## ------------------------------------------ ##
3338 sed "s/^/$as_me: WARNING: /" >&2
3341 echo "$as_me:$LINENO: checking for $ac_header" >&5
3342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 eval "$as_ac_Header=\$ac_header_preproc"
3348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3353 cat >>confdefs.h
<<_ACEOF
3354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3363 for ac_header
in fcntl.h fpu_control.h
3365 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3367 echo "$as_me:$LINENO: checking for $ac_header" >&5
3368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3375 # Is the header compilable?
3376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3378 cat >conftest.
$ac_ext <<_ACEOF
3381 cat confdefs.h
>>conftest.
$ac_ext
3382 cat >>conftest.
$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 $ac_includes_default
3385 #include <$ac_header>
3387 rm -f conftest.
$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389 (eval $ac_compile) 2>conftest.er1
3391 grep -v '^ *+' conftest.er1
>conftest.err
3393 cat conftest.err
>&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try
='test -z "$ac_c_werror_flag"
3397 || test ! -s conftest.err'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; } &&
3403 { ac_try
='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 ac_header_compiler
=yes
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.
$ac_ext >&5
3414 ac_header_compiler
=no
3416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3418 echo "${ECHO_T}$ac_header_compiler" >&6
3420 # Is the header present?
3421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3423 cat >conftest.
$ac_ext <<_ACEOF
3426 cat confdefs.h
>>conftest.
$ac_ext
3427 cat >>conftest.
$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 #include <$ac_header>
3431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3434 grep -v '^ *+' conftest.er1
>conftest.err
3436 cat conftest.err
>&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev
/null
; then
3439 if test -s conftest.err
; then
3440 ac_cpp_err
=$ac_c_preproc_warn_flag
3441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3448 if test -z "$ac_cpp_err"; then
3449 ac_header_preproc
=yes
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.
$ac_ext >&5
3454 ac_header_preproc
=no
3456 rm -f conftest.err conftest.
$ac_ext
3457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3458 echo "${ECHO_T}$ac_header_preproc" >&6
3460 # So? What about this header?
3461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3467 ac_header_preproc
=yes
3470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3484 ## ------------------------------------------ ##
3485 ## Report this to the AC_PACKAGE_NAME lists. ##
3486 ## ------------------------------------------ ##
3489 sed "s/^/$as_me: WARNING: /" >&2
3492 echo "$as_me:$LINENO: checking for $ac_header" >&5
3493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 eval "$as_ac_Header=\$ac_header_preproc"
3499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3504 cat >>confdefs.h
<<_ACEOF
3505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3515 for ac_header
in dlfcn.h errno.h sys
/stat.h
3517 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3519 echo "$as_me:$LINENO: checking for $ac_header" >&5
3520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3527 # Is the header compilable?
3528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3530 cat >conftest.
$ac_ext <<_ACEOF
3533 cat confdefs.h
>>conftest.
$ac_ext
3534 cat >>conftest.
$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536 $ac_includes_default
3537 #include <$ac_header>
3539 rm -f conftest.
$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3543 grep -v '^ *+' conftest.er1
>conftest.err
3545 cat conftest.err
>&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try
='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try
='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_header_compiler
=yes
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.
$ac_ext >&5
3566 ac_header_compiler
=no
3568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3570 echo "${ECHO_T}$ac_header_compiler" >&6
3572 # Is the header present?
3573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3575 cat >conftest.
$ac_ext <<_ACEOF
3578 cat confdefs.h
>>conftest.
$ac_ext
3579 cat >>conftest.
$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #include <$ac_header>
3583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3584 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3586 grep -v '^ *+' conftest.er1
>conftest.err
3588 cat conftest.err
>&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev
/null
; then
3591 if test -s conftest.err
; then
3592 ac_cpp_err
=$ac_c_preproc_warn_flag
3593 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3600 if test -z "$ac_cpp_err"; then
3601 ac_header_preproc
=yes
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.
$ac_ext >&5
3606 ac_header_preproc
=no
3608 rm -f conftest.err conftest.
$ac_ext
3609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3610 echo "${ECHO_T}$ac_header_preproc" >&6
3612 # So? What about this header?
3613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3619 ac_header_preproc
=yes
3622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3636 ## ------------------------------------------ ##
3637 ## Report this to the AC_PACKAGE_NAME lists. ##
3638 ## ------------------------------------------ ##
3641 sed "s/^/$as_me: WARNING: /" >&2
3644 echo "$as_me:$LINENO: checking for $ac_header" >&5
3645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 eval "$as_ac_Header=\$ac_header_preproc"
3651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3656 cat >>confdefs.h
<<_ACEOF
3657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3668 for ac_func
in getrusage
time sigaction __setfpucw
3670 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3671 echo "$as_me:$LINENO: checking for $ac_func" >&5
3672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3673 if eval "test \"\${$as_ac_var+set}\" = set"; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 cat >conftest.
$ac_ext <<_ACEOF
3679 cat confdefs.h
>>conftest.
$ac_ext
3680 cat >>conftest.
$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3684 #define $ac_func innocuous_$ac_func
3686 /* System header to define __stub macros and hopefully few prototypes,
3687 which can conflict with char $ac_func (); below.
3688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3689 <limits.h> exists even on freestanding compilers. */
3692 # include <limits.h>
3694 # include <assert.h>
3699 /* Override any gcc2 internal prototype to avoid an error. */
3704 /* We use char because int might match the return type of a gcc2
3705 builtin and then its argument prototype would still apply. */
3707 /* The GNU C library defines this for functions which it implements
3708 to always fail with ENOSYS. Some functions are actually named
3709 something starting with __ and the normal name is an alias. */
3710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3713 char (*f) () = $ac_func;
3722 return f != $ac_func;
3727 rm -f conftest.
$ac_objext conftest
$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>conftest.er1
3731 grep -v '^ *+' conftest.er1
>conftest.err
3733 cat conftest.err
>&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try
='test -z "$ac_c_werror_flag"
3737 || test ! -s conftest.err'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; } &&
3743 { ac_try
='test -s conftest$ac_exeext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 eval "$as_ac_var=yes"
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.
$ac_ext >&5
3754 eval "$as_ac_var=no"
3756 rm -f conftest.err conftest.
$ac_objext \
3757 conftest
$ac_exeext conftest.
$ac_ext
3759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3761 if test `eval echo '${'$as_ac_var'}'` = yes; then
3762 cat >>confdefs.h
<<_ACEOF
3763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3770 # Check for socket libraries
3772 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3773 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3774 if test "${ac_cv_lib_socket_bind+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 ac_check_lib_save_LIBS
=$LIBS
3778 LIBS
="-lsocket $LIBS"
3779 cat >conftest.
$ac_ext <<_ACEOF
3782 cat confdefs.h
>>conftest.
$ac_ext
3783 cat >>conftest.
$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3786 /* Override any gcc2 internal prototype to avoid an error. */
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3801 rm -f conftest.
$ac_objext conftest
$ac_exeext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3803 (eval $ac_link) 2>conftest.er1
3805 grep -v '^ *+' conftest.er1
>conftest.err
3807 cat conftest.err
>&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try
='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try
='test -s conftest$ac_exeext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_lib_socket_bind
=yes
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.
$ac_ext >&5
3828 ac_cv_lib_socket_bind
=no
3830 rm -f conftest.err conftest.
$ac_objext \
3831 conftest
$ac_exeext conftest.
$ac_ext
3832 LIBS
=$ac_check_lib_save_LIBS
3834 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
3835 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
3836 if test $ac_cv_lib_socket_bind = yes; then
3837 cat >>confdefs.h
<<_ACEOF
3838 #define HAVE_LIBSOCKET 1
3841 LIBS
="-lsocket $LIBS"
3846 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3847 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3848 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 ac_check_lib_save_LIBS
=$LIBS
3853 cat >conftest.
$ac_ext <<_ACEOF
3856 cat confdefs.h
>>conftest.
$ac_ext
3857 cat >>conftest.
$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3860 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3866 char gethostbyname ();
3875 rm -f conftest.
$ac_objext conftest
$ac_exeext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3877 (eval $ac_link) 2>conftest.er1
3879 grep -v '^ *+' conftest.er1
>conftest.err
3881 cat conftest.err
>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try
='test -z "$ac_c_werror_flag"
3885 || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try
='test -s conftest$ac_exeext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_cv_lib_nsl_gethostbyname
=yes
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.
$ac_ext >&5
3902 ac_cv_lib_nsl_gethostbyname
=no
3904 rm -f conftest.err conftest.
$ac_objext \
3905 conftest
$ac_exeext conftest.
$ac_ext
3906 LIBS
=$ac_check_lib_save_LIBS
3908 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3909 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3910 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3911 cat >>confdefs.h
<<_ACEOF
3912 #define HAVE_LIBNSL 1
3920 .
${srcdir}/..
/..
/bfd
/configure.
host
3924 USE_MAINTAINER_MODE
=no
3925 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3926 if test "${enable_maintainer_mode+set}" = set; then
3927 enableval
="$enable_maintainer_mode"
3928 case "${enableval}" in
3929 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3931 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
3932 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
3933 { (exit 1); exit 1; }; }; MAINT
="#" ;;
3935 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3936 echo "Setting maintainer mode" 6>&1
3943 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3944 if test "${enable_sim_bswap+set}" = set; then
3945 enableval
="$enable_sim_bswap"
3946 case "${enableval}" in
3947 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3948 no
) sim_bswap
="-DWITH_BSWAP=0";;
3949 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
3950 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
3951 { (exit 1); exit 1; }; }; sim_bswap
="";;
3953 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3954 echo "Setting bswap flags = $sim_bswap" 6>&1
3961 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3962 if test "${enable_sim_cflags+set}" = set; then
3963 enableval
="$enable_sim_cflags"
3964 case "${enableval}" in
3965 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3966 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
3967 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
3968 { (exit 1); exit 1; }; }; sim_cflags
="";;
3970 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3972 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3973 echo "Setting sim cflags = $sim_cflags" 6>&1
3980 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3981 if test "${enable_sim_debug+set}" = set; then
3982 enableval
="$enable_sim_debug"
3983 case "${enableval}" in
3984 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3985 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3986 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3988 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3989 echo "Setting sim debug = $sim_debug" 6>&1
3996 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3997 if test "${enable_sim_stdio+set}" = set; then
3998 enableval
="$enable_sim_stdio"
3999 case "${enableval}" in
4000 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4001 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4002 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4003 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4004 { (exit 1); exit 1; }; }; sim_stdio
="";;
4006 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4007 echo "Setting stdio flags = $sim_stdio" 6>&1
4014 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4015 if test "${enable_sim_trace+set}" = set; then
4016 enableval
="$enable_sim_trace"
4017 case "${enableval}" in
4018 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4019 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4021 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4024 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4025 if test x
"$sim_trace" = x
; then
4026 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4028 sim_trace
="${sim_trace}|TRACE_$x"
4031 sim_trace
="$sim_trace)'" ;;
4033 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4034 echo "Setting sim trace = $sim_trace" 6>&1
4041 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4042 if test "${enable_sim_profile+set}" = set; then
4043 enableval
="$enable_sim_profile"
4044 case "${enableval}" in
4045 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4046 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4048 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4051 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4052 if test x
"$sim_profile" = x
; then
4053 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4055 sim_profile
="${sim_profile}|PROFILE_$x"
4058 sim_profile
="$sim_profile)'" ;;
4060 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4061 echo "Setting sim profile = $sim_profile" 6>&1
4064 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4068 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4069 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4070 if test "${ac_cv_type_signal+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 cat >conftest.
$ac_ext <<_ACEOF
4076 cat confdefs.h
>>conftest.
$ac_ext
4077 cat >>conftest.
$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #include <sys/types.h>
4085 extern "C" void (*signal (int, void (*)(int)))(int);
4087 void (*signal ()) ();
4098 rm -f conftest.
$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>conftest.er1
4102 grep -v '^ *+' conftest.er1
>conftest.err
4104 cat conftest.err
>&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try
='test -z "$ac_c_werror_flag"
4108 || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try
='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_type_signal
=void
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.
$ac_ext >&5
4125 ac_cv_type_signal
=int
4127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4129 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4130 echo "${ECHO_T}$ac_cv_type_signal" >&6
4132 cat >>confdefs.h
<<_ACEOF
4133 #define RETSIGTYPE $ac_cv_type_signal
4143 sim_link_links
=tconfig.h
4144 if test -f ${srcdir}/tconfig.
in
4146 sim_link_files
=tconfig.
in
4148 sim_link_files
=..
/common
/tconfig.
in
4151 # targ-vals.def points to the libc macro description file.
4153 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4155 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4156 sim_link_links
="${sim_link_links} targ-vals.def"
4158 # This file contains common code used by all simulators.
4160 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
4161 # directory. It is intended to be invoked before any target specific stuff.
4162 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
4163 # It is intended to be invoked last.
4165 # The simulator's configure.in should look like:
4167 # dnl Process this file with autoconf to produce a configure script.
4168 # sinclude(../common/aclocal.m4)
4170 # AC_INIT(Makefile.in)
4174 # ... target specific stuff ...
4225 sim_inline
="-DDEFAULT_INLINE=0"
4262 # This file is derived from `gettext.m4'. The difference is that the
4263 # included macros assume Cygnus-style source and build trees.
4265 # Macro to add for using GNU gettext.
4266 # Ulrich Drepper <drepper@cygnus.com>, 1995.
4268 # This file file be copied and used freely without restrictions. It can
4269 # be used in projects which are not available under the GNU Public License
4270 # but which still want to provide support for the GNU gettext functionality.
4271 # Please note that the actual code is *not* freely available.
4279 # Search path for a program which passes the given test.
4280 # Ulrich Drepper <drepper@cygnus.com>, 1996.
4282 # This file file be copied and used freely without restrictions. It can
4283 # be used in projects which are not available under the GNU Public License
4284 # but which still want to provide support for the GNU gettext functionality.
4285 # Please note that the actual code is *not* freely available.
4291 # Check whether LC_MESSAGES is available in <locale.h>.
4292 # Ulrich Drepper <drepper@cygnus.com>, 1995.
4294 # This file file be copied and used freely without restrictions. It can
4295 # be used in projects which are not available under the GNU Public License
4296 # but which still want to provide support for the GNU gettext functionality.
4297 # Please note that the actual code is *not* freely available.
4308 wire_endian
="LITTLE_ENDIAN"
4310 # Check whether --enable-sim-endian or --disable-sim-endian was given.
4311 if test "${enable_sim_endian+set}" = set; then
4312 enableval
="$enable_sim_endian"
4313 case "${enableval}" in
4314 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4315 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4316 yes) if test x
"$wire_endian" != x
; then
4317 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4319 if test x
"$default_endian" != x
; then
4320 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4322 echo "No hard-wired endian for target $target" 1>&6
4323 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
4326 no
) if test x
"$default_endian" != x
; then
4327 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4329 if test x
"$wire_endian" != x
; then
4330 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4332 echo "No default endian for target $target" 1>&6
4333 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4336 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
4337 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
4338 { (exit 1); exit 1; }; }; sim_endian
="";;
4340 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
4341 echo "Setting endian flags = $sim_endian" 6>&1
4344 if test x
"$default_endian" != x
; then
4345 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4347 if test x
"$wire_endian" != x
; then
4348 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4354 wire_alignment
="NONSTRICT_ALIGNMENT"
4355 default_alignment
=""
4357 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4358 if test "${enable_sim_alignment+set}" = set; then
4359 enableval
="$enable_sim_alignment"
4360 case "${enableval}" in
4361 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4362 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4363 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4364 yes) if test x
"$wire_alignment" != x
; then
4365 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4367 if test x
"$default_alignment" != x
; then
4368 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4370 echo "No hard-wired alignment for target $target" 1>&6
4371 sim_alignment
="-DWITH_ALIGNMENT=0"
4374 no
) if test x
"$default_alignment" != x
; then
4375 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4377 if test x
"$wire_alignment" != x
; then
4378 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4380 echo "No default alignment for target $target" 1>&6
4381 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4384 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4385 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4386 { (exit 1); exit 1; }; }; sim_alignment
="";;
4388 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4389 echo "Setting alignment flags = $sim_alignment" 6>&1
4392 if test x
"$default_alignment" != x
; then
4393 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4395 if test x
"$wire_alignment" != x
; then
4396 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4403 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4404 if test "${enable_sim_hostendian+set}" = set; then
4405 enableval
="$enable_sim_hostendian"
4406 case "${enableval}" in
4407 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4408 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4409 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4410 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4411 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4412 { (exit 1); exit 1; }; }; sim_hostendian
="";;
4414 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4415 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4419 if test "x$cross_compiling" = "xno"; then
4420 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4421 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4422 if test "${ac_cv_c_bigendian+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 # See if sys/param.h defines the BYTE_ORDER macro.
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <sys/types.h>
4433 #include <sys/param.h>
4438 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4446 rm -f conftest.
$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>conftest.er1
4450 grep -v '^ *+' conftest.er1
>conftest.err
4452 cat conftest.err
>&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try
='test -z "$ac_c_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try
='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 # It does; now see whether it defined to BIG_ENDIAN or not.
4469 cat >conftest.
$ac_ext <<_ACEOF
4472 cat confdefs.h
>>conftest.
$ac_ext
4473 cat >>conftest.
$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <sys/types.h>
4476 #include <sys/param.h>
4481 #if BYTE_ORDER != BIG_ENDIAN
4489 rm -f conftest.
$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>conftest.er1
4493 grep -v '^ *+' conftest.er1
>conftest.err
4495 cat conftest.err
>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try
='test -z "$ac_c_werror_flag"
4499 || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try
='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_c_bigendian
=yes
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.
$ac_ext >&5
4516 ac_cv_c_bigendian
=no
4518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.
$ac_ext >&5
4523 # It does not; compile a test program.
4524 if test "$cross_compiling" = yes; then
4525 # try to guess the endianness by grepping values into an object file
4526 ac_cv_c_bigendian
=unknown
4527 cat >conftest.
$ac_ext <<_ACEOF
4530 cat confdefs.h
>>conftest.
$ac_ext
4531 cat >>conftest.
$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4534 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4535 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4536 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4537 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4538 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4542 _ascii (); _ebcdic ();
4547 rm -f conftest.
$ac_objext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549 (eval $ac_compile) 2>conftest.er1
4551 grep -v '^ *+' conftest.er1
>conftest.err
4553 cat conftest.err
>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try
='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try
='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4570 ac_cv_c_bigendian
=yes
4572 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4573 if test "$ac_cv_c_bigendian" = unknown
; then
4574 ac_cv_c_bigendian
=no
4576 # finding both strings is unlikely to happen, but who knows?
4577 ac_cv_c_bigendian
=unknown
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.
$ac_ext >&5
4585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4587 cat >conftest.
$ac_ext <<_ACEOF
4590 cat confdefs.h
>>conftest.
$ac_ext
4591 cat >>conftest.
$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4596 /* Are we little or big endian? From Harbison&Steele. */
4600 char c[sizeof (long)];
4603 exit (u.c[sizeof (long) - 1] == 1);
4606 rm -f conftest
$ac_exeext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4608 (eval $ac_link) 2>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_c_bigendian
=no
4619 echo "$as_me: program exited with status $ac_status" >&5
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.
$ac_ext >&5
4624 ac_cv_c_bigendian
=yes
4626 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4631 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4632 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4633 case $ac_cv_c_bigendian in
4636 cat >>confdefs.h
<<\_ACEOF
4637 #define WORDS_BIGENDIAN 1
4643 { { echo "$as_me:$LINENO: error: unknown endianness
4644 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4645 echo "$as_me: error: unknown endianness
4646 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4647 { (exit 1); exit 1; }; } ;;
4650 if test $ac_cv_c_bigendian = yes; then
4651 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4653 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4656 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4660 # NOTE: Don't add -Wall or -Wunused, they both include
4661 # -Wunused-parameter which reports bogus warnings.
4662 # NOTE: If you add to this list, remember to update
4663 # gdb/doc/gdbint.texinfo.
4664 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4665 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
4666 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4667 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4668 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4669 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4670 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4671 # -Woverloaded-virtual -Winline -Werror"
4672 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4673 if test "${enable_build_warnings+set}" = set; then
4674 enableval
="$enable_build_warnings"
4675 case "${enableval}" in
4677 no
) build_warnings
="-w";;
4678 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4679 build_warnings
="${build_warnings} ${t}";;
4680 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4681 build_warnings
="${t} ${build_warnings}";;
4682 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4684 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4685 echo "Setting compiler warning flags = $build_warnings" 6>&1
4687 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
4688 if test "${enable_sim_build_warnings+set}" = set; then
4689 enableval
="$enable_sim_build_warnings"
4690 case "${enableval}" in
4692 no
) build_warnings
="-w";;
4693 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4694 build_warnings
="${build_warnings} ${t}";;
4695 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4696 build_warnings
="${t} ${build_warnings}";;
4697 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4699 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4700 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4704 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
4706 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4707 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
4708 # Separate out the -Werror flag as some files just cannot be
4709 # compiled with it enabled.
4710 for w
in ${build_warnings}; do
4712 -Werr*) WERROR_CFLAGS
=-Werror ;;
4713 *) # Check that GCC accepts it
4714 saved_CFLAGS
="$CFLAGS"
4716 cat >conftest.
$ac_ext <<_ACEOF
4719 cat confdefs.h
>>conftest.
$ac_ext
4720 cat >>conftest.
$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4731 rm -f conftest.
$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1
>conftest.err
4737 cat conftest.err
>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try
='test -z "$ac_c_werror_flag"
4741 || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try
='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 WARN_CFLAGS
="${WARN_CFLAGS} $w"
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.
$ac_ext >&5
4759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4760 CFLAGS
="$saved_CFLAGS"
4763 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4764 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
4768 default_sim_reserved_bits
="1"
4769 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
4770 if test "${enable_sim_reserved_bits+set}" = set; then
4771 enableval
="$enable_sim_reserved_bits"
4772 case "${enableval}" in
4773 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
4774 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
4775 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
4776 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
4777 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
4779 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
4780 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
4783 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
4785 wire_word_bitsize
="32"
4787 wire_address_bitsize
=""
4788 wire_cell_bitsize
=""
4789 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
4790 if test "${enable_sim_bitsize+set}" = set; then
4791 enableval
="$enable_sim_bitsize"
4793 case "${enableval}" in
4794 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
4795 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
4796 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
4797 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
4798 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
4799 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
4801 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
4803 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
4804 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
4806 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
4808 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
4809 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
4810 { (exit 1); exit 1; }; } ;;
4813 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
4816 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
4817 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
4818 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
4819 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
4820 { (exit 1); exit 1; }; } ;;
4823 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
4826 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
4827 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
4828 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
4829 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
4830 { (exit 1); exit 1; }; } ;;
4832 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
4833 echo "Setting bitsize flags = $sim_bitsize" 6>&1
4837 if test x
"$wire_word_bitsize" != x
; then
4838 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
4840 if test x
"$wire_word_msb" != x
; then
4841 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
4843 if test x
"$wire_address_bitsize" != x
; then
4844 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
4846 if test x
"$wire_cell_bitsize" != x
; then
4847 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
4851 default_sim_inline
=""
4852 # Check whether --enable-sim-inline or --disable-sim-inline was given.
4853 if test "${enable_sim_inline+set}" = set; then
4854 enableval
="$enable_sim_inline"
4856 case "$enableval" in
4857 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4858 0) sim_inline
="-DDEFAULT_INLINE=0";;
4859 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
4860 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
4861 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4864 *_INLINE
=*) new_flag
="-D$x";;
4865 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4866 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
4867 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
4869 if test x
"$sim_inline" = x
""; then
4870 sim_inline
="$new_flag"
4872 sim_inline
="$sim_inline $new_flag"
4876 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4877 echo "Setting inline flags = $sim_inline" 6>&1
4881 if test "x$cross_compiling" = "xno"; then
4882 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
4883 sim_inline
="${default_sim_inline}"
4884 if test x
"$silent" != x
"yes"; then
4885 echo "Setting inline flags = $sim_inline" 6>&1
4891 sim_inline
="-DDEFAULT_INLINE=0"
4895 if test x
"yes" = x
"yes"; then
4901 hardware
="core pal glue"
4903 hardware
="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop"
4905 sim_hw_cflags
="-DWITH_HW=1"
4907 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4908 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
4909 if test "${enable_sim_hardware+set}" = set; then
4910 enableval
="$enable_sim_hardware"
4912 case "${enableval}" in
4915 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4916 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4917 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4919 if test "$sim_hw_p" != yes; then
4921 sim_hw_cflags
="-DWITH_HW=0"
4924 sim_hw_cflags
="-DWITH_HW=1"
4927 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
4928 for i
in x
$hardware ; do
4932 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
4936 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
4937 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4941 if test "$sim_hw_p" != yes; then
4943 sim_hw_cflags
="-DWITH_HW=0"
4946 if test x
"$silent" != x
"yes"; then
4947 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4958 for ac_func
in time chmod utime fork execve execv chown
4960 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4961 echo "$as_me:$LINENO: checking for $ac_func" >&5
4962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4963 if eval "test \"\${$as_ac_var+set}\" = set"; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 cat >conftest.
$ac_ext <<_ACEOF
4969 cat confdefs.h
>>conftest.
$ac_ext
4970 cat >>conftest.
$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4974 #define $ac_func innocuous_$ac_func
4976 /* System header to define __stub macros and hopefully few prototypes,
4977 which can conflict with char $ac_func (); below.
4978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4979 <limits.h> exists even on freestanding compilers. */
4982 # include <limits.h>
4984 # include <assert.h>
4989 /* Override any gcc2 internal prototype to avoid an error. */
4994 /* We use char because int might match the return type of a gcc2
4995 builtin and then its argument prototype would still apply. */
4997 /* The GNU C library defines this for functions which it implements
4998 to always fail with ENOSYS. Some functions are actually named
4999 something starting with __ and the normal name is an alias. */
5000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5003 char (*f) () = $ac_func;
5012 return f != $ac_func;
5017 rm -f conftest.
$ac_objext conftest
$ac_exeext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5019 (eval $ac_link) 2>conftest.er1
5021 grep -v '^ *+' conftest.er1
>conftest.err
5023 cat conftest.err
>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try
='test -z "$ac_c_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try
='test -s conftest$ac_exeext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 eval "$as_ac_var=yes"
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.
$ac_ext >&5
5044 eval "$as_ac_var=no"
5046 rm -f conftest.err conftest.
$ac_objext \
5047 conftest
$ac_exeext conftest.
$ac_ext
5049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5051 if test `eval echo '${'$as_ac_var'}'` = yes; then
5052 cat >>confdefs.h
<<_ACEOF
5053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5065 for ac_header
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
5067 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5069 echo "$as_me:$LINENO: checking for $ac_header" >&5
5070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5077 # Is the header compilable?
5078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5080 cat >conftest.
$ac_ext <<_ACEOF
5083 cat confdefs.h
>>conftest.
$ac_ext
5084 cat >>conftest.
$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 $ac_includes_default
5087 #include <$ac_header>
5089 rm -f conftest.
$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>conftest.er1
5093 grep -v '^ *+' conftest.er1
>conftest.err
5095 cat conftest.err
>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try
='test -z "$ac_c_werror_flag"
5099 || test ! -s conftest.err'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; } &&
5105 { ac_try
='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_header_compiler
=yes
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.
$ac_ext >&5
5116 ac_header_compiler
=no
5118 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120 echo "${ECHO_T}$ac_header_compiler" >&6
5122 # Is the header present?
5123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5125 cat >conftest.
$ac_ext <<_ACEOF
5128 cat confdefs.h
>>conftest.
$ac_ext
5129 cat >>conftest.
$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 #include <$ac_header>
5133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5134 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5136 grep -v '^ *+' conftest.er1
>conftest.err
5138 cat conftest.err
>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } >/dev
/null
; then
5141 if test -s conftest.err
; then
5142 ac_cpp_err
=$ac_c_preproc_warn_flag
5143 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5150 if test -z "$ac_cpp_err"; then
5151 ac_header_preproc
=yes
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.
$ac_ext >&5
5156 ac_header_preproc
=no
5158 rm -f conftest.err conftest.
$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5160 echo "${ECHO_T}$ac_header_preproc" >&6
5162 # So? What about this header?
5163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5169 ac_header_preproc
=yes
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5186 ## ------------------------------------------ ##
5187 ## Report this to the AC_PACKAGE_NAME lists. ##
5188 ## ------------------------------------------ ##
5191 sed "s/^/$as_me: WARNING: /" >&2
5194 echo "$as_me:$LINENO: checking for $ac_header" >&5
5195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 eval "$as_ac_Header=\$ac_header_preproc"
5201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5206 cat >>confdefs.h
<<_ACEOF
5207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5216 ac_sources
="$sim_link_files"
5217 ac_dests
="$sim_link_links"
5218 while test -n "$ac_sources"; do
5219 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
5220 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
5221 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
5223 ac_config_links
="$ac_config_links $ac_config_links_1"
5226 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
5227 cgen_breaks
="break cgen_rtx_error";
5230 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
5232 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
5234 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
5236 ac_config_commands
="$ac_config_commands Makefile"
5238 ac_config_commands
="$ac_config_commands stamp-h"
5240 cat >confcache
<<\_ACEOF
5241 # This file is a shell script that caches the results of configure
5242 # tests run on this system so they can be shared between configure
5243 # scripts and configure runs, see configure's option --config-cache.
5244 # It is not useful on other systems. If it contains results you don't
5245 # want to keep, you may remove or edit it.
5247 # config.status only pays attention to the cache file if you give it
5248 # the --recheck option to rerun configure.
5250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5256 # The following way of writing the cache mishandles newlines in values,
5257 # but we know of no workaround that is simple, portable, and efficient.
5258 # So, don't put newlines in cache variables' values.
5259 # Ultrix sh set writes to stderr and can't be redirected directly,
5260 # and sets the high bit in the cache file unless we assign to the vars.
5263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5265 # `set' does not quote correctly, so add quotes (double-quote
5266 # substitution turns \\\\ into \\, and sed turns \\ into \).
5269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5272 # `set' quotes correctly as required by POSIX, so do not add quotes.
5274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5283 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5285 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5286 if test -w $cache_file; then
5287 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5288 cat confcache
>$cache_file
5290 echo "not updating unwritable cache $cache_file"
5295 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5296 # Let make expand exec_prefix.
5297 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5301 # trailing colons and then remove the whole line if VPATH becomes empty
5302 # (actually we leave an empty line to preserve line numbers).
5303 if test "x$srcdir" = x.
; then
5304 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5305 s/:*\$(srcdir):*/:/;
5306 s/:*\${srcdir}:*/:/;
5308 s/^\([^=]*=[ ]*\):*/\1/;
5314 DEFS
=-DHAVE_CONFIG_H
5318 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5319 # 1. Remove the extension, and $U if already installed.
5320 ac_i
=`echo "$ac_i" |
5321 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5323 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
5324 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
5328 LTLIBOBJS
=$ac_ltlibobjs
5332 : ${CONFIG_STATUS=./config.status}
5333 ac_clean_files_save
=$ac_clean_files
5334 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5337 cat >$CONFIG_STATUS <<_ACEOF
5339 # Generated by $as_me.
5340 # Run this file to recreate the current configuration.
5341 # Compiler output produced by configure, useful for debugging
5342 # configure, is in config.log if it exists.
5347 SHELL=\${CONFIG_SHELL-$SHELL}
5350 cat >>$CONFIG_STATUS <<\_ACEOF
5351 ## --------------------- ##
5352 ## M4sh Initialization. ##
5353 ## --------------------- ##
5355 # Be Bourne compatible
5356 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
5359 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5360 # is contrary to our usage. Disable this feature.
5361 alias -g '${1+"$@"}'='"$@"'
5362 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
5365 DUALCASE
=1; export DUALCASE
# for MKS sh
5367 # Support unset when possible.
5368 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5375 # Work around bugs in pre-3.0 UWIN ksh.
5376 $as_unset ENV MAIL MAILPATH
5383 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5384 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5385 LC_TELEPHONE LC_TIME
5387 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5388 eval $as_var=C
; export $as_var
5394 # Required to use basename.
5395 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5401 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
5402 as_basename
=basename
5408 # Name of the executable.
5409 as_me
=`$as_basename "$0" ||
5410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5411 X"$0" : 'X\(//\)$' \| \
5412 X"$0" : 'X\(/\)$' \| \
5413 . : '\(.\)' 2>/dev/null ||
5415 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5416 /^X\/\(\/\/\)$/{ s//\1/; q; }
5417 /^X\/\(\/\).*/{ s//\1/; q; }
5421 # PATH needs CR, and LINENO needs CR and PATH.
5422 # Avoid depending upon Character Ranges.
5423 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5424 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5425 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5426 as_cr_digits
='0123456789'
5427 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5429 # The user is always right.
5430 if test "${PATH_SEPARATOR+set}" != set; then
5431 echo "#! /bin/sh" >conf$$.sh
5432 echo "exit 0" >>conf$$.sh
5434 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5445 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
5446 test "x$as_lineno_1" != "x$as_lineno_2" &&
5447 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
5448 # Find who we are. Look in the path if we contain no path at all
5451 *[\\/]* ) as_myself
=$0 ;;
5452 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5456 test -z "$as_dir" && as_dir
=.
5457 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
5462 # We did not find ourselves, most probably we were run as `sh COMMAND'
5463 # in which case we are not to be found in the path.
5464 if test "x$as_myself" = x
; then
5467 if test ! -f "$as_myself"; then
5468 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5469 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5470 { (exit 1); exit 1; }; }
5472 case $CONFIG_SHELL in
5474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5475 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
5478 test -z "$as_dir" && as_dir
=.
5479 for as_base
in sh bash ksh sh5
; do
5482 if ("$as_dir/$as_base" -c '
5485 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5486 test "x$as_lineno_1" != "x$as_lineno_2" &&
5487 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
5488 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
5489 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
5490 CONFIG_SHELL
=$as_dir/$as_base
5492 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5500 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5501 # uniformly replaced by the line number. The first 'sed' inserts a
5502 # line-number line before each line; the second 'sed' does the real
5503 # work. The second script uses 'N' to pair each line-number line
5504 # with the numbered line, and appends trailing '-' during
5505 # substitution so that $LINENO is not a special case at line end.
5506 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5507 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5508 sed '=' <$as_myself |
5513 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5516 s,^['$as_cr_digits']*\n,,
5518 chmod +x
$as_me.lineno ||
5519 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5520 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5521 { (exit 1); exit 1; }; }
5523 # Don't try to exec as it changes $[0], causing all sort of problems
5524 # (the dirname of $[0] is not the place where we might find the
5525 # original and so on. Autoconf is especially sensible to this).
5527 # Exit status is that of the last command.
5532 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5533 *c
*,-n*) ECHO_N
= ECHO_C
='
5535 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
5536 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
5539 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5545 rm -f conf$$ conf$$.exe conf$$.
file
5547 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5548 # We could just check for DJGPP; but this test a) works b) is more generic
5549 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5550 if test -f conf$$.exe
; then
5551 # Don't use ln at all; we don't have any links
5556 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5561 rm -f conf$$ conf$$.exe conf$$.
file
5563 if mkdir
-p .
2>/dev
/null
; then
5566 test -d .
/-p && rmdir .
/-p
5570 as_executable_p
="test -f"
5572 # Sed expression to map a string onto a valid CPP name.
5573 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5575 # Sed expression to map a string onto a valid variable name.
5576 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5580 # We need space, tab and new line, in precisely that order.
5590 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5591 # report actual input values of CONFIG_FILES etc. instead of their
5592 # values after options handling. Logging --version etc. is OK.
5596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5597 ## Running $as_me. ##
5602 This file was extended by $as_me, which was
5603 generated by GNU Autoconf 2.59. Invocation command line was
5605 CONFIG_FILES = $CONFIG_FILES
5606 CONFIG_HEADERS = $CONFIG_HEADERS
5607 CONFIG_LINKS = $CONFIG_LINKS
5608 CONFIG_COMMANDS = $CONFIG_COMMANDS
5612 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5616 # Files that config.status was made for.
5617 if test -n "$ac_config_files"; then
5618 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5621 if test -n "$ac_config_headers"; then
5622 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5625 if test -n "$ac_config_links"; then
5626 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5629 if test -n "$ac_config_commands"; then
5630 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5633 cat >>$CONFIG_STATUS <<\_ACEOF
5636 \`$as_me' instantiates files from templates according to the
5637 current configuration.
5639 Usage: $0 [OPTIONS] [FILE]...
5641 -h, --help print this help, then exit
5642 -V, --version print version number, then exit
5643 -q, --quiet do not print progress messages
5644 -d, --debug don't remove temporary files
5645 --recheck update $as_me by reconfiguring in the same conditions
5646 --file=FILE[:TEMPLATE]
5647 instantiate the configuration file FILE
5648 --header=FILE[:TEMPLATE]
5649 instantiate the configuration header FILE
5651 Configuration files:
5654 Configuration headers:
5657 Configuration links:
5660 Configuration commands:
5663 Report bugs to <bug-autoconf@gnu.org>."
5666 cat >>$CONFIG_STATUS <<_ACEOF
5669 configured by $0, generated by GNU Autoconf 2.59,
5670 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5672 Copyright (C) 2003 Free Software Foundation, Inc.
5673 This config.status script is free software; the Free Software Foundation
5674 gives unlimited permission to copy, distribute and modify it."
5679 cat >>$CONFIG_STATUS <<\_ACEOF
5680 # If no file are specified by the user, then we need to provide default
5681 # value. By we need to know if files were specified by the user.
5687 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5688 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5696 *) # This is not an option, so the user has probably given explicit
5699 ac_need_defaults
=false
;;
5703 # Handling of the options.
5705 cat >>$CONFIG_STATUS <<\_ACEOF
5706 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5708 --version |
--vers* |
-V )
5709 echo "$ac_cs_version"; exit 0 ;;
5711 # Conflict between --help and --header
5712 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5713 Try \`$0 --help' for more information." >&5
5714 echo "$as_me: error: ambiguous option: $1
5715 Try \`$0 --help' for more information." >&2;}
5716 { (exit 1); exit 1; }; };;
5717 --help |
--hel |
-h )
5718 echo "$ac_cs_usage"; exit 0 ;;
5719 --debug |
--d* |
-d )
5721 --file |
--fil |
--fi |
--f )
5723 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
5724 ac_need_defaults
=false
;;
5725 --header |
--heade |
--head |
--hea )
5727 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
5728 ac_need_defaults
=false
;;
5729 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5730 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5734 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5735 Try \`$0 --help' for more information." >&5
5736 echo "$as_me: error: unrecognized option: $1
5737 Try \`$0 --help' for more information." >&2;}
5738 { (exit 1); exit 1; }; } ;;
5740 *) ac_config_targets
="$ac_config_targets $1" ;;
5746 ac_configure_extra_args
=
5748 if $ac_cs_silent; then
5750 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5754 cat >>$CONFIG_STATUS <<_ACEOF
5755 if \$ac_cs_recheck; then
5756 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5757 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5766 cat >>$CONFIG_STATUS <<\_ACEOF
5767 for ac_config_target
in $ac_config_targets
5769 case "$ac_config_target" in
5770 # Handling of arguments.
5771 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5772 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5773 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5774 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
5775 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
5776 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
5777 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
5778 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5779 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5780 { (exit 1); exit 1; }; };;
5784 # If the user did not use the arguments to specify the items to instantiate,
5785 # then the envvar interface is used. Set only those that are not.
5786 # We use the long form for the default assignment because of an extremely
5787 # bizarre bug on SunOS 4.1.3.
5788 if $ac_need_defaults; then
5789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5791 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
5792 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5795 # Have a temporary directory for convenience. Make it in the build tree
5796 # simply because there is no reason to put it here, and in addition,
5797 # creating and moving files from /tmp can sometimes cause problems.
5798 # Create a temporary directory, and hook for its removal unless debugging.
5801 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5802 trap '{ (exit 1); exit 1; }' 1 2 13 15
5805 # Create a (secure) tmp directory for tmp files.
5808 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5809 test -n "$tmp" && test -d "$tmp"
5812 tmp
=.
/confstat$$
-$RANDOM
5813 (umask 077 && mkdir
$tmp)
5816 echo "$me: cannot create a temporary directory in ." >&2
5817 { (exit 1); exit 1; }
5822 cat >>$CONFIG_STATUS <<_ACEOF
5825 # CONFIG_FILES section.
5828 # No need to generate the scripts if there are no CONFIG_FILES.
5829 # This happens for instance when ./config.status config.h
5830 if test -n "\$CONFIG_FILES"; then
5831 # Protect against being on the right side of a sed subst in config.status.
5832 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5833 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5834 s,@SHELL@,$SHELL,;t t
5835 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5836 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5837 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5838 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5839 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5840 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5841 s,@exec_prefix@,$exec_prefix,;t t
5842 s,@prefix@,$prefix,;t t
5843 s,@program_transform_name@,$program_transform_name,;t t
5844 s,@bindir@,$bindir,;t t
5845 s,@sbindir@,$sbindir,;t t
5846 s,@libexecdir@,$libexecdir,;t t
5847 s,@datadir@,$datadir,;t t
5848 s,@sysconfdir@,$sysconfdir,;t t
5849 s,@sharedstatedir@,$sharedstatedir,;t t
5850 s,@localstatedir@,$localstatedir,;t t
5851 s,@libdir@,$libdir,;t t
5852 s,@includedir@,$includedir,;t t
5853 s,@oldincludedir@,$oldincludedir,;t t
5854 s,@infodir@,$infodir,;t t
5855 s,@mandir@,$mandir,;t t
5856 s,@build_alias@,$build_alias,;t t
5857 s,@host_alias@,$host_alias,;t t
5858 s,@target_alias@,$target_alias,;t t
5860 s,@ECHO_C@,$ECHO_C,;t t
5861 s,@ECHO_N@,$ECHO_N,;t t
5862 s,@ECHO_T@,$ECHO_T,;t t
5864 s,@build@,$build,;t t
5865 s,@build_cpu@,$build_cpu,;t t
5866 s,@build_vendor@,$build_vendor,;t t
5867 s,@build_os@,$build_os,;t t
5869 s,@host_cpu@,$host_cpu,;t t
5870 s,@host_vendor@,$host_vendor,;t t
5871 s,@host_os@,$host_os,;t t
5872 s,@target@,$target,;t t
5873 s,@target_cpu@,$target_cpu,;t t
5874 s,@target_vendor@,$target_vendor,;t t
5875 s,@target_os@,$target_os,;t t
5877 s,@CFLAGS@,$CFLAGS,;t t
5878 s,@LDFLAGS@,$LDFLAGS,;t t
5879 s,@CPPFLAGS@,$CPPFLAGS,;t t
5880 s,@ac_ct_CC@,$ac_ct_CC,;t t
5881 s,@EXEEXT@,$EXEEXT,;t t
5882 s,@OBJEXT@,$OBJEXT,;t t
5883 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5884 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5885 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5886 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5887 s,@HDEFINES@,$HDEFINES,;t t
5889 s,@RANLIB@,$RANLIB,;t t
5890 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5892 s,@EGREP@,$EGREP,;t t
5893 s,@MAINT@,$MAINT,;t t
5894 s,@sim_bswap@,$sim_bswap,;t t
5895 s,@sim_cflags@,$sim_cflags,;t t
5896 s,@sim_debug@,$sim_debug,;t t
5897 s,@sim_stdio@,$sim_stdio,;t t
5898 s,@sim_trace@,$sim_trace,;t t
5899 s,@sim_profile@,$sim_profile,;t t
5900 s,@sim_environment@,$sim_environment,;t t
5901 s,@sim_alignment@,$sim_alignment,;t t
5902 s,@sim_assert@,$sim_assert,;t t
5903 s,@sim_bitsize@,$sim_bitsize,;t t
5904 s,@sim_endian@,$sim_endian,;t t
5905 s,@sim_hostendian@,$sim_hostendian,;t t
5906 s,@sim_float@,$sim_float,;t t
5907 s,@sim_scache@,$sim_scache,;t t
5908 s,@sim_default_model@,$sim_default_model,;t t
5909 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5910 s,@sim_hw_objs@,$sim_hw_objs,;t t
5911 s,@sim_hw@,$sim_hw,;t t
5912 s,@sim_inline@,$sim_inline,;t t
5913 s,@sim_packages@,$sim_packages,;t t
5914 s,@sim_regparm@,$sim_regparm,;t t
5915 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5916 s,@sim_smp@,$sim_smp,;t t
5917 s,@sim_stdcall@,$sim_stdcall,;t t
5918 s,@sim_xor_endian@,$sim_xor_endian,;t t
5919 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5920 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
5921 s,@cgen_breaks@,$cgen_breaks,;t t
5922 s,@LIBOBJS@,$LIBOBJS,;t t
5923 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5928 cat >>$CONFIG_STATUS <<\_ACEOF
5929 # Split the substitutions into bite-sized pieces for seds with
5930 # small command number limits, like on Digital OSF/1 and HP-UX.
5932 ac_sed_frag
=1 # Number of current file.
5933 ac_beg
=1 # First line for current file.
5934 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5937 while $ac_more_lines; do
5938 if test $ac_beg -gt 1; then
5939 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5941 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5943 if test ! -s $tmp/subs.frag
; then
5946 # The purpose of the label and of the branching condition is to
5947 # speed up the sed processing (if there are no `@' at all, there
5948 # is no need to browse any of the substitutions).
5949 # These are the two extra sed commands mentioned above.
5951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5952 if test -z "$ac_sed_cmds"; then
5953 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5955 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5957 ac_sed_frag
=`expr $ac_sed_frag + 1`
5959 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5962 if test -z "$ac_sed_cmds"; then
5965 fi # test -n "$CONFIG_FILES"
5968 cat >>$CONFIG_STATUS <<\_ACEOF
5969 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5970 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5972 - |
*:- |
*:-:* ) # input from stdin
5974 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5975 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5976 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5977 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5978 * ) ac_file_in
=$ac_file.
in ;;
5981 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5982 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5984 X"$ac_file" : 'X\(//\)[^/]' \| \
5985 X"$ac_file" : 'X\(//\)$' \| \
5986 X"$ac_file" : 'X\(/\)' \| \
5987 . : '\(.\)' 2>/dev/null ||
5989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5991 /^X\(\/\/\)$/{ s//\1/; q; }
5992 /^X\(\/\).*/{ s//\1/; q; }
5994 { if $as_mkdir_p; then
5999 while test ! -d "$as_dir"; do
6000 as_dirs
="$as_dir $as_dirs"
6001 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6003 X"$as_dir" : 'X\(//\)[^/]' \| \
6004 X"$as_dir" : 'X\(//\)$' \| \
6005 X"$as_dir" : 'X\(/\)' \| \
6006 . : '\(.\)' 2>/dev/null ||
6008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6010 /^X\(\/\/\)$/{ s//\1/; q; }
6011 /^X\(\/\).*/{ s//\1/; q; }
6014 test ! -n "$as_dirs" || mkdir
$as_dirs
6015 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6016 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6017 { (exit 1); exit 1; }; }; }
6021 if test "$ac_dir" != .
; then
6022 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6023 # A "../" for each directory in $ac_dir_suffix.
6024 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6026 ac_dir_suffix
= ac_top_builddir
=
6030 .
) # No --srcdir option. We are building in place.
6032 if test -z "$ac_top_builddir"; then
6035 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6037 [\\/]* | ?
:[\\/]* ) # Absolute path.
6038 ac_srcdir
=$srcdir$ac_dir_suffix;
6039 ac_top_srcdir
=$srcdir ;;
6041 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6042 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6045 # Do not use `cd foo && pwd` to compute absolute paths, because
6046 # the directories may not exist.
6048 .
) ac_abs_builddir
="$ac_dir";;
6051 .
) ac_abs_builddir
=`pwd`;;
6052 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
6053 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
6056 case $ac_abs_builddir in
6057 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6059 case ${ac_top_builddir}.
in
6060 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6061 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6062 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6065 case $ac_abs_builddir in
6066 .
) ac_abs_srcdir
=$ac_srcdir;;
6069 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6070 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6071 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6074 case $ac_abs_builddir in
6075 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6077 case $ac_top_srcdir in
6078 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6079 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6080 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6086 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6087 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
6090 if test x
"$ac_file" != x-
; then
6091 { echo "$as_me:$LINENO: creating $ac_file" >&5
6092 echo "$as_me: creating $ac_file" >&6;}
6095 # Let's still pretend it is `configure' which instantiates (i.e., don't
6096 # use $as_me), people would be surprised to read:
6097 # /* config.h. Generated by config.status. */
6098 if test x
"$ac_file" = x-
; then
6101 configure_input
="$ac_file. "
6103 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6104 sed 's,.*/,,'` by configure."
6106 # First look for the input files in the build tree, otherwise in the
6108 ac_file_inputs
=`IFS=:
6109 for f in $ac_file_in; do
6111 -) echo $tmp/stdin ;;
6113 # Absolute (can't be DOS-style, as IFS=:)
6114 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6115 echo "$as_me: error: cannot find input file: $f" >&2;}
6116 { (exit 1); exit 1; }; }
6119 if test -f "$f"; then
6122 elif test -f "$srcdir/$f"; then
6127 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6128 echo "$as_me: error: cannot find input file: $f" >&2;}
6129 { (exit 1); exit 1; }; }
6132 done` ||
{ (exit 1); exit 1; }
6134 cat >>$CONFIG_STATUS <<_ACEOF
6138 cat >>$CONFIG_STATUS <<\_ACEOF
6140 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6141 s
,@configure_input@
,$configure_input,;t t
6142 s
,@srcdir@
,$ac_srcdir,;t t
6143 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6144 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6145 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6146 s
,@builddir@
,$ac_builddir,;t t
6147 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6148 s
,@top_builddir@
,$ac_top_builddir,;t t
6149 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6150 s
,@INSTALL@
,$ac_INSTALL,;t t
6151 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6153 if test x"$ac_file" != x-; then
6154 mv $tmp/out $ac_file
6162 cat >>$CONFIG_STATUS <<\_ACEOF
6165 # CONFIG_HEADER section.
6168 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6169 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6171 # ac_d sets the value in "#define NAME VALUE" lines.
6172 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6173 ac_dB
='[ ].*$,\1#\2'
6176 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6177 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6178 ac_uB
='$,\1#\2define\3'
6182 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6185 - |
*:- |
*:-:* ) # input from stdin
6187 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6188 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6189 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6190 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6191 * ) ac_file_in
=$ac_file.
in ;;
6194 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6195 echo "$as_me: creating $ac_file" >&6;}
6197 # First look for the input files in the build tree, otherwise in the
6199 ac_file_inputs
=`IFS=:
6200 for f in $ac_file_in; do
6202 -) echo $tmp/stdin ;;
6204 # Absolute (can't be DOS-style, as IFS=:)
6205 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6206 echo "$as_me: error: cannot find input file: $f" >&2;}
6207 { (exit 1); exit 1; }; }
6208 # Do quote $f, to prevent DOS paths from being IFS'd.
6211 if test -f "$f"; then
6214 elif test -f "$srcdir/$f"; then
6219 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6220 echo "$as_me: error: cannot find input file: $f" >&2;}
6221 { (exit 1); exit 1; }; }
6224 done` ||
{ (exit 1); exit 1; }
6225 # Remove the trailing spaces.
6226 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6230 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6231 # `conftest.undefs', that substitutes the proper values into
6232 # config.h.in to produce config.h. The first handles `#define'
6233 # templates, and the second `#undef' templates.
6234 # And first: Protect against being on the right side of a sed subst in
6235 # config.status. Protect against being in an unquoted here document
6237 rm -f conftest.defines conftest.undefs
6238 # Using a here document instead of a string reduces the quoting nightmare.
6239 # Putting comments in sed scripts is not portable.
6241 # `end' is used to avoid that the second main sed command (meant for
6242 # 0-ary CPP macros) applies to n-ary macro definitions.
6243 # See the Autoconf documentation for `clear'.
6244 cat >confdef2sed.
sed <<\_ACEOF
6249 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6251 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6254 # If some macros were called several times there might be several times
6255 # the same #defines, which is useless. Nevertheless, we may not want to
6256 # sort them, since we want the *last* AC-DEFINE to be honored.
6257 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6258 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6259 rm -f confdef2sed.sed
6261 # This sed command replaces #undef with comments. This is necessary, for
6262 # example, in the case of _POSIX_SOURCE, which is predefined and required
6263 # on some systems where configure will not decide to define it.
6264 cat >>conftest.undefs <<\_ACEOF
6265 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6268 # Break up conftest.defines because some shells have a limit on the size
6269 # of here documents, and old seds have small limits too (100 cmds).
6270 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6271 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6272 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6273 echo ' :' >>$CONFIG_STATUS
6275 while grep . conftest.defines >/dev/null
6277 # Write a limited-size here document to $tmp/defines.sed.
6278 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6279 # Speed up: don't consider the non `#define' lines.
6280 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6281 # Work around the forget-to-reset-the-flag bug.
6282 echo 't clr' >>$CONFIG_STATUS
6283 echo ': clr' >>$CONFIG_STATUS
6284 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
6286 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6290 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6291 rm -f conftest.defines
6292 mv conftest.
tail conftest.defines
6294 rm -f conftest.defines
6295 echo ' fi # grep' >>$CONFIG_STATUS
6296 echo >>$CONFIG_STATUS
6298 # Break up conftest.undefs because some shells have a limit on the size
6299 # of here documents, and old seds have small limits too (100 cmds).
6300 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6302 while grep . conftest.undefs
>/dev
/null
6304 # Write a limited-size here document to $tmp/undefs.sed.
6305 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6306 # Speed up: don't consider the non
`#undef'
6307 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6308 # Work around the forget-to-reset-the-flag bug.
6309 echo 't clr' >>$CONFIG_STATUS
6310 echo ': clr' >>$CONFIG_STATUS
6311 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6313 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6317 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6318 rm -f conftest.undefs
6319 mv conftest.tail conftest.undefs
6321 rm -f conftest.undefs
6323 cat >>$CONFIG_STATUS <<\_ACEOF
6324 # Let's still pretend it is `configure
' which instantiates (i.e., don't
6325 # use $as_me), people would be surprised to read:
6326 # /* config.h. Generated by config.status. */
6327 if test x
"$ac_file" = x-
; then
6328 echo "/* Generated by configure. */" >$tmp/config.h
6330 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6332 cat $tmp/in >>$tmp/config.h
6334 if test x
"$ac_file" != x-
; then
6335 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
6336 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6337 echo "$as_me: $ac_file is unchanged" >&6;}
6339 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6341 X"$ac_file" : 'X\(//\)[^/]' \| \
6342 X"$ac_file" : 'X\(//\)$' \| \
6343 X"$ac_file" : 'X\(/\)' \| \
6344 . : '\(.\)' 2>/dev/null ||
6346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6348 /^X\(\/\/\)$/{ s//\1/; q; }
6349 /^X\(\/\).*/{ s//\1/; q; }
6351 { if $as_mkdir_p; then
6356 while test ! -d "$as_dir"; do
6357 as_dirs
="$as_dir $as_dirs"
6358 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6360 X"$as_dir" : 'X\(//\)[^/]' \| \
6361 X"$as_dir" : 'X\(//\)$' \| \
6362 X"$as_dir" : 'X\(/\)' \| \
6363 . : '\(.\)' 2>/dev/null ||
6365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6367 /^X\(\/\/\)$/{ s//\1/; q; }
6368 /^X\(\/\).*/{ s//\1/; q; }
6371 test ! -n "$as_dirs" || mkdir
$as_dirs
6372 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6373 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6374 { (exit 1); exit 1; }; }; }
6377 mv $tmp/config.h
$ac_file
6385 cat >>$CONFIG_STATUS <<\_ACEOF
6388 # CONFIG_LINKS section.
6391 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
6392 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
6393 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6395 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6396 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
6398 if test ! -r $srcdir/$ac_source; then
6399 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6400 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6401 { (exit 1); exit 1; }; }
6405 # Make relative symlinks.
6406 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
6407 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6408 X"$ac_dest" : 'X\(//\)[^/]' \| \
6409 X"$ac_dest" : 'X\(//\)$' \| \
6410 X"$ac_dest" : 'X\(/\)' \| \
6411 . : '\(.\)' 2>/dev/null ||
6413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6415 /^X\(\/\/\)$/{ s//\1/; q; }
6416 /^X\(\/\).*/{ s//\1/; q; }
6418 { if $as_mkdir_p; then
6419 mkdir
-p "$ac_dest_dir"
6421 as_dir
="$ac_dest_dir"
6423 while test ! -d "$as_dir"; do
6424 as_dirs
="$as_dir $as_dirs"
6425 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6427 X"$as_dir" : 'X\(//\)[^/]' \| \
6428 X"$as_dir" : 'X\(//\)$' \| \
6429 X"$as_dir" : 'X\(/\)' \| \
6430 . : '\(.\)' 2>/dev/null ||
6432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6434 /^X\(\/\/\)$/{ s//\1/; q; }
6435 /^X\(\/\).*/{ s//\1/; q; }
6438 test ! -n "$as_dirs" || mkdir
$as_dirs
6439 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6440 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6441 { (exit 1); exit 1; }; }; }
6445 if test "$ac_dest_dir" != .
; then
6446 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6447 # A "../" for each directory in $ac_dir_suffix.
6448 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6450 ac_dir_suffix
= ac_top_builddir
=
6454 .
) # No --srcdir option. We are building in place.
6456 if test -z "$ac_top_builddir"; then
6459 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6461 [\\/]* | ?
:[\\/]* ) # Absolute path.
6462 ac_srcdir
=$srcdir$ac_dir_suffix;
6463 ac_top_srcdir
=$srcdir ;;
6465 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6466 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6469 # Do not use `cd foo && pwd` to compute absolute paths, because
6470 # the directories may not exist.
6472 .
) ac_abs_builddir
="$ac_dest_dir";;
6474 case "$ac_dest_dir" in
6475 .
) ac_abs_builddir
=`pwd`;;
6476 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
6477 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
6480 case $ac_abs_builddir in
6481 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6483 case ${ac_top_builddir}.
in
6484 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6485 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6486 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6489 case $ac_abs_builddir in
6490 .
) ac_abs_srcdir
=$ac_srcdir;;
6493 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6494 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6495 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6498 case $ac_abs_builddir in
6499 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6501 case $ac_top_srcdir in
6502 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6503 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6504 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6510 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
6511 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
6514 # Try a symlink, then a hard link, then a copy.
6515 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
6516 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
6517 cp -p $srcdir/$ac_source $ac_dest ||
6518 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6519 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6520 { (exit 1); exit 1; }; }
6523 cat >>$CONFIG_STATUS <<\_ACEOF
6526 # CONFIG_COMMANDS section.
6528 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
6529 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
6530 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6531 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
6532 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6533 X"$ac_dest" : 'X\(//\)[^/]' \| \
6534 X"$ac_dest" : 'X\(//\)$' \| \
6535 X"$ac_dest" : 'X\(/\)' \| \
6536 . : '\(.\)' 2>/dev/null ||
6538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6540 /^X\(\/\/\)$/{ s//\1/; q; }
6541 /^X\(\/\).*/{ s//\1/; q; }
6543 { if $as_mkdir_p; then
6548 while test ! -d "$as_dir"; do
6549 as_dirs
="$as_dir $as_dirs"
6550 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6552 X"$as_dir" : 'X\(//\)[^/]' \| \
6553 X"$as_dir" : 'X\(//\)$' \| \
6554 X"$as_dir" : 'X\(/\)' \| \
6555 . : '\(.\)' 2>/dev/null ||
6557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6559 /^X\(\/\/\)$/{ s//\1/; q; }
6560 /^X\(\/\).*/{ s//\1/; q; }
6563 test ! -n "$as_dirs" || mkdir
$as_dirs
6564 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6565 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6566 { (exit 1); exit 1; }; }; }
6570 if test "$ac_dir" != .
; then
6571 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6572 # A "../" for each directory in $ac_dir_suffix.
6573 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6575 ac_dir_suffix
= ac_top_builddir
=
6579 .
) # No --srcdir option. We are building in place.
6581 if test -z "$ac_top_builddir"; then
6584 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6586 [\\/]* | ?
:[\\/]* ) # Absolute path.
6587 ac_srcdir
=$srcdir$ac_dir_suffix;
6588 ac_top_srcdir
=$srcdir ;;
6590 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6591 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6594 # Do not use `cd foo && pwd` to compute absolute paths, because
6595 # the directories may not exist.
6597 .
) ac_abs_builddir
="$ac_dir";;
6600 .
) ac_abs_builddir
=`pwd`;;
6601 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
6602 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
6605 case $ac_abs_builddir in
6606 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6608 case ${ac_top_builddir}.
in
6609 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6610 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6611 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6614 case $ac_abs_builddir in
6615 .
) ac_abs_srcdir
=$ac_srcdir;;
6618 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6619 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6620 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6623 case $ac_abs_builddir in
6624 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6626 case $ac_top_srcdir in
6627 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6628 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6629 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6634 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6635 echo "$as_me: executing $ac_dest commands" >&6;}
6637 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6638 rm -f Makesim1.tmp Makesim2.tmp Makefile
6639 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
6640 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
6641 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6642 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6643 <Makefile.sim
>Makefile
6644 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6646 stamp-h
) echo > stamp-h
;;
6651 cat >>$CONFIG_STATUS <<\_ACEOF
6653 { (exit 0); exit 0; }
6655 chmod +x
$CONFIG_STATUS
6656 ac_clean_files
=$ac_clean_files_save
6659 # configure is writing to config.log, and then calls config.status.
6660 # config.status does its own redirection, appending to config.log.
6661 # Unfortunately, on DOS this fails, as config.log is still kept open
6662 # by configure, so config.status won't be able to write to it; its
6663 # output is simply discarded. So we exec the FD to /dev/null,
6664 # effectively closing config.log, so it can be properly (re)opened and
6665 # appended to by config.status. When coming back to configure, we
6666 # need to make the FD available again.
6667 if test "$no_create" != yes; then
6669 ac_config_status_args
=
6670 test "$silent" = yes &&
6671 ac_config_status_args
="$ac_config_status_args --quiet"
6673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6676 # would make configure fail if this is the last instruction.
6677 $ac_cs_success ||
{ (exit 1); exit 1; }