2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP LIBOBJS CC_FOR_BUILD CFLAGS_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB sim_cflags sim_warnings sim_line_nr sim_config sim_opcode sim_switch sim_dup sim_decode_mechanism sim_jump sim_filter sim_icache sim_hw_src sim_hw_obj sim_pk_src sim_pk_obj sim_bswap sim_igen_smp sim_hostbitsize sim_env sim_timebase sim_trace sim_reserved sim_monitor sim_model sim_model_issue sim_stdio sim_termio sim_devzero sim_callback sim_targ_vals sim_fpu_cflags sim_fpu LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --build=BUILD configure
for building on BUILD
[guessed
]
842 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
843 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
847 if test -n "$ac_init_help"; then
852 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
853 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
854 --enable-sim-alignment=align Specify strict or nonstrict alignment.
855 --enable-sim-assert Specify whether to perform random assertions.
856 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
857 --enable-sim-bswap Use the BSWAP instruction on Intel
486s and Pentiums.
858 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
859 --enable-sim-config=file Override default config
file
860 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
861 --enable-sim-default-model=which Specify default PowerPC to model.
862 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
863 --enable-sim-endian=endian Specify target byte endian orientation.
864 --enable-sim-env=env Specify target environment
(operating
, virtual
, user
).
865 --enable-sim-filter=rule Specify filter rules.
866 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
867 --enable-sim-hardware=list Specify the hardware to be included
in the build.
868 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
869 --enable-sim-hostendian=end Specify
host byte endian orientation.
870 --enable-sim-icache=size Specify instruction-decode cache size and
type.
871 --enable-sim-inline=inlines Specify
which functions should be inlined.
872 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
873 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
874 --enable-sim-model=which Specify PowerPC to model.
875 --enable-sim-model-issue Specify whether to simulate model specific actions
876 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
877 --enable-sim-opcode=which Override default opcode lookup.
878 --enable-sim-packages=list Specify the packages to be included
in the build.
879 --enable-sim-regparm=nr-parm Pass parameters
in registers instead of on the stack
- x86
/GCC specific.
880 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
881 --enable-sim-smp=n Specify number of processors to configure
for.
882 --enable-sim-stdcall=type Use an alternative
function call
/return mechanism
- x86
/GCC specific.
883 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
884 --enable-sim-switch Use a switch instead of a table
for instruction call.
885 --enable-sim-timebase Specify whether the PPC timebase is supported.
886 --enable-sim-trace Specify whether tracing is supported.
887 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
888 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
891 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
892 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
893 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
894 --with-bugurl=URL Direct users to URL to report a bug
896 Some influential environment variables
:
897 CC C compiler
command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
900 nonstandard directory
<lib dir
>
901 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
902 headers
in a nonstandard directory
<include dir
>
905 Use these variables to override the choices made by
`configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
923 ac_dir_suffix= ac_top_builddir=
927 .) # No --srcdir option. We are building in place.
929 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Do not use `cd foo
&& pwd` to compute absolute paths, because
943 # the directories may not exist.
945 .) ac_abs_builddir="$ac_dir";;
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 case $ac_abs_builddir in
954 .) ac_abs_top_builddir=${ac_top_builddir}.;;
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 case $ac_abs_builddir in
963 .) ac_abs_srcdir=$ac_srcdir;;
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 case $ac_abs_builddir in
972 .) ac_abs_top_srcdir=$ac_top_srcdir;;
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982 # Check for guested configure; otherwise get Cygnus style configure.
983 if test -f $ac_srcdir/configure.gnu; then
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
988 $SHELL $ac_srcdir/configure --help=recursive
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1004 Copyright (C) 2003 Free Software Foundation, Inc.
1005 This configure script is free software; the Free Software Foundation
1006 gives unlimited permission to copy, distribute and modify it.
1012 This file contains any messages produced by compilers while
1013 running configure, to aid debugging if configure makes a mistake.
1015 It was created by $as_me, which was
1016 generated by GNU Autoconf 2.59. Invocation command line was
1027 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1028 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1029 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1030 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1031 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1033 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1034 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1036 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1037 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1038 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1039 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1040 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1041 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1042 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1066 # Keep a trace of the command line.
1067 # Strip out --no-create and --no-recursion so they do not pile up.
1068 # Strip out --silent because we don't want to record it for future runs.
1069 # Also quote any args containing shell meta-characters.
1070 # Make two passes to allow for proper duplicate-argument suppression.
1075 ac_must_keep_next=false
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1086 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 -* ) ac_must_keep_next=true ;;
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1114 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117 # When interrupted or exit'd, cleanup temporary files, and complete
1118 # config.log. We remove comments because anyway the quotes in there
1119 # would cause problems or look ugly.
1120 # WARNING: Be sure not to use single quotes in there, as some shells,
1121 # such as our DU 5.0 friend, will then `close
' the trap.
1122 trap 'exit_status
=$?
1123 # Save into config.log some information that might help in debugging.
1128 ## ---------------- ##
1129 ## Cache variables. ##
1130 ## ---------------- ##
1133 # The following way of writing the cache mishandles newlines in values,
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1151 ## ----------------- ##
1152 ## Output variables. ##
1153 ## ----------------- ##
1156 for ac_var
in $ac_subst_vars
1158 eval ac_val
=$
`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1163 if test -n "$ac_subst_files"; then
1170 for ac_var
in $ac_subst_files
1172 eval ac_val
=$
`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1178 if test -s confdefs.h
; then
1185 sed "/^$/d" confdefs.h |
sort
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1192 rm -f core
*.core
&&
1193 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1196 for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1202 rm -rf conftest* confdefs.h
1203 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206 # Predefined preprocessor variables.
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_NAME "$PACKAGE_NAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_STRING "$PACKAGE_STRING"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233 # Let the site file select an alternate cache file if it wants to.
1234 # Prefer explicitly selected file to automatically selected ones.
1235 if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 for ac_site_file in $CONFIG_SITE; do
1243 if test -r "$ac_site_file"; then
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245 echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's
/^
/|
/' "$ac_site_file" >&5
1251 if test -r "$cache_file"; then
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256 echo "$as_me: loading cache $cache_file" >&6;}
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264 echo "$as_me: creating cache $cache_file" >&6;}
1268 # Check that the precious variables saved in the cache have kept the same
1270 ac_cache_corrupted=false
1271 for ac_var in `(set) 2>&1 |
1272 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
1277 case $ac_old_set,$ac_new_set in
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1281 ac_cache_corrupted=: ;;
1283 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1284 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 # differences in whitespace do not lead to failure.
1290 ac_old_val_w=`echo x $ac_old_val`
1291 ac_new_val_w=`echo x $ac_new_val`
1292 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1293 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1294 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1295 ac_cache_corrupted=:
1297 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1298 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1299 eval $ac_var=\$ac_old_val
1301 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1302 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1303 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1304 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1322 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1323 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1324 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1325 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1360 if test -f $ac_dir/install-sh; then
1362 ac_install_sh="$ac_aux_dir/install-sh -c"
1364 elif test -f $ac_dir/install.sh; then
1366 ac_install_sh="$ac_aux_dir/install.sh -c"
1368 elif test -f $ac_dir/shtool; then
1370 ac_install_sh="$ac_aux_dir/shtool install -c"
1374 if test -z "$ac_aux_dir"; then
1375 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1376 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1377 { (exit 1); exit 1; }; }
1379 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1380 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1381 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1383 # Find a good install program. We prefer a C program (faster),
1384 # so one script is as good as another. But avoid the broken or
1385 # incompatible versions:
1386 # SysV /etc/install, /usr/sbin/install
1387 # SunOS /usr/etc/install
1388 # IRIX /sbin/install
1390 # AmigaOS /C/install, which installs bootblocks on floppy discs
1391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1394 # OS/2's system install, which has a completely different semantic
1395 # ./install, which can be erroneously created by make from ./install.sh.
1396 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1397 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1398 if test -z "$INSTALL"; then
1399 if test "${ac_cv_path_install+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 test -z "$as_dir" && as_dir=.
1407 # Account for people who put trailing slashes in PATH elements.
1409 ./ | .// | /cC/* | \
1410 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1411 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1414 # OSF1 and SCO ODT 3.0 have their own names for install.
1415 # Don't use installbsd from OSF since it installs stuff as root
1417 for ac_prog in ginstall scoinst install; do
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1420 if test $ac_prog = install &&
1421 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1422 # AIX install. It has an incompatible calling convention.
1424 elif test $ac_prog = install &&
1425 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1426 # program-specific install script used by HP pwplus--don't use.
1429 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1441 if test "${ac_cv_path_install+set}" = set; then
1442 INSTALL=$ac_cv_path_install
1444 # As a last resort, use the slow shell script. We don't cache a
1445 # path for INSTALL within a source directory, because that will
1446 # break other packages using the cache if that directory is
1447 # removed, or if the path is relative.
1448 INSTALL=$ac_install_sh
1451 echo "$as_me:$LINENO: result: $INSTALL" >&5
1452 echo "${ECHO_T}$INSTALL" >&6
1454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1455 # It thinks the first close brace ends the variable substitution.
1456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1460 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467 if test -n "$ac_tool_prefix"; then
1468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC="$CC" # Let the user override the test.
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 if test -n "$CC"; then
1496 echo "$as_me:$LINENO: result: $CC" >&5
1497 echo "${ECHO_T}$CC" >&6
1499 echo "$as_me:$LINENO: result: no" >&5
1500 echo "${ECHO_T}no" >&6
1504 if test -z "$ac_cv_prog_CC"; then
1506 # Extract the first word of "gcc", so it can be a program name with args.
1507 set dummy gcc; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 if test -n "$ac_ct_CC"; then
1514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_prog_ac_ct_CC="gcc"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1533 if test -n "$ac_ct_CC"; then
1534 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1535 echo "${ECHO_T}$ac_ct_CC" >&6
1537 echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1546 if test -z "$CC"; then
1547 if test -n "$ac_tool_prefix"; then
1548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1549 set dummy ${ac_tool_prefix}cc; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_CC+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 if test -n "$CC"; then
1556 ac_cv_prog_CC="$CC" # Let the user override the test.
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_CC="${ac_tool_prefix}cc"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 if test -n "$CC"; then
1576 echo "$as_me:$LINENO: result: $CC" >&5
1577 echo "${ECHO_T}$CC" >&6
1579 echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1584 if test -z "$ac_cv_prog_CC"; then
1586 # Extract the first word of "cc", so it can be a program name with args.
1587 set dummy cc; ac_word=$2
1588 echo "$as_me:$LINENO: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 if test -n "$ac_ct_CC"; then
1594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 ac_cv_prog_ac_ct_CC="cc"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1613 if test -n "$ac_ct_CC"; then
1614 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1615 echo "${ECHO_T}$ac_ct_CC" >&6
1617 echo "$as_me:$LINENO: result: no" >&5
1618 echo "${ECHO_T}no" >&6
1627 if test -z "$CC"; then
1628 # Extract the first word of "cc", so it can be a program name with args.
1629 set dummy cc; ac_word=$2
1630 echo "$as_me:$LINENO: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_prog_CC+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 if test -n "$CC"; then
1636 ac_cv_prog_CC="$CC" # Let the user override the test.
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1647 ac_prog_rejected=yes
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 if test $ac_prog_rejected = yes; then
1658 # We found a bogon in the path, so make sure we never use it.
1659 set dummy $ac_cv_prog_CC
1661 if test $# != 0; then
1662 # We chose a different compiler from the bogus one.
1663 # However, it has the same basename, so the bogon will be chosen
1664 # first if we set CC to just the basename; use the full file name.
1666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1672 if test -n "$CC"; then
1673 echo "$as_me:$LINENO: result: $CC" >&5
1674 echo "${ECHO_T}$CC" >&6
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1681 if test -z "$CC"; then
1682 if test -n "$ac_tool_prefix"; then
1685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 if test -n "$CC"; then
1713 echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1720 test -n "$CC" && break
1723 if test -z "$CC"; then
1727 # Extract the first word of "$ac_prog", so it can be a program name with args.
1728 set dummy $ac_prog; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 if test -n "$ac_ct_CC"; then
1735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_ac_ct_CC="$ac_prog"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1754 if test -n "$ac_ct_CC"; then
1755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1756 echo "${ECHO_T}$ac_ct_CC" >&6
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 test -n "$ac_ct_CC" && break
1771 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1772 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1773 { { echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
1774 See \
`config.log' for more details." >&5
1775 echo "$as_me: error: no acceptable C compiler found in \$PATH
1776 See \`config.log
' for more details." >&2;}
1777 { (exit 1); exit 1; }; }; }
1779 # Provide some information about the compiler.
1780 echo "$as_me:$LINENO:" \
1781 "checking for C compiler version" >&5
1782 ac_compiler=`set X $ac_compile; echo $2`
1783 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1784 (eval $ac_compiler --version </dev/null >&5) 2>&5
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1789 (eval $ac_compiler -v </dev/null >&5) 2>&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1794 (eval $ac_compiler -V </dev/null >&5) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1799 cat >conftest.$ac_ext <<_ACEOF
1802 cat confdefs.h >>conftest.$ac_ext
1803 cat >>conftest.$ac_ext <<_ACEOF
1804 /* end confdefs.h. */
1814 ac_clean_files_save=$ac_clean_files
1815 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1816 # Try to create an executable without -o first, disregard a.out.
1817 # It will help us diagnose broken compilers, and finding out an intuition
1819 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1820 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1821 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1822 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1823 (eval $ac_link_default) 2>&5
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 # Find the output, starting from the most likely. This scheme is
1828 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1831 # Be careful to initialize this variable, since it used to be cached.
1832 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1834 # b.out is created by i960 compilers.
1835 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1837 test -f "$ac_file" ||
continue
1839 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1842 # This is the source file.
1845 # We found the default executable, but exeext='' is most
1849 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1850 # FIXME: I believe we export ac_cv_exeext for Libtool,
1851 # but it would be cool to find out if it's true. Does anybody
1852 # maintain Libtool? --akim.
1860 echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.
$ac_ext >&5
1863 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1864 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1865 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&2;}
1869 { (exit 77); exit 77; }; }; }
1872 ac_exeext
=$ac_cv_exeext
1873 echo "$as_me:$LINENO: result: $ac_file" >&5
1874 echo "${ECHO_T}$ac_file" >&6
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1879 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1880 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1881 # If not cross compiling, check that we can run a simple program.
1882 if test "$cross_compiling" != yes; then
1883 if { ac_try
='./$ac_file'
1884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; }; then
1891 if test "$cross_compiling" = maybe
; then
1894 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1895 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&5
1899 echo "$as_me: error: cannot run C compiled programs.
1900 If you meant to cross compile, use \`--host'.
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }; }
1906 echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1909 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1910 ac_clean_files
=$ac_clean_files_save
1911 # Check the compiler produces executables we can run. If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1914 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1915 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1916 echo "${ECHO_T}$cross_compiling" >&6
1918 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1919 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1921 (eval $ac_link) 2>&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; then
1925 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1926 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1927 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 for ac_file
in conftest.exe conftest conftest.
*; do
1930 test -f "$ac_file" ||
continue
1932 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1933 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1940 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1941 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&2;}
1946 { (exit 1); exit 1; }; }; }
1949 rm -f conftest
$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1951 echo "${ECHO_T}$ac_cv_exeext" >&6
1953 rm -f conftest.
$ac_ext
1954 EXEEXT
=$ac_cv_exeext
1956 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1958 if test "${ac_cv_objext+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 cat >conftest.
$ac_ext <<_ACEOF
1964 cat confdefs.h
>>conftest.
$ac_ext
1965 cat >>conftest.
$ac_ext <<_ACEOF
1966 /* end confdefs.h. */
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; then
1982 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1984 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1985 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.
$ac_ext >&5
1993 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1994 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }; }
2002 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2004 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2005 echo "${ECHO_T}$ac_cv_objext" >&6
2006 OBJEXT
=$ac_cv_objext
2008 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2009 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2010 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 cat >conftest.
$ac_ext <<_ACEOF
2016 cat confdefs.h
>>conftest.
$ac_ext
2017 cat >>conftest.
$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2031 rm -f conftest.
$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>conftest.er1
2035 grep -v '^ *+' conftest.er1
>conftest.err
2037 cat conftest.err
>&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try
='test -z "$ac_c_werror_flag"
2041 || test ! -s conftest.err'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; } &&
2047 { ac_try
='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2055 echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.
$ac_ext >&5
2060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2061 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2064 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2066 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2067 ac_test_CFLAGS
=${CFLAGS+set}
2068 ac_save_CFLAGS
=$CFLAGS
2070 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_g+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.
$ac_ext <<_ACEOF
2078 cat confdefs.h
>>conftest.
$ac_ext
2079 cat >>conftest.
$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2090 rm -f conftest.
$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>conftest.er1
2094 grep -v '^ *+' conftest.er1
>conftest.err
2096 cat conftest.err
>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try
='test -z "$ac_c_werror_flag"
2100 || test ! -s conftest.err'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; } &&
2106 { ac_try
='test -s conftest.$ac_objext'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2114 echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.
$ac_ext >&5
2119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2121 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2122 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2123 if test "$ac_test_CFLAGS" = set; then
2124 CFLAGS
=$ac_save_CFLAGS
2125 elif test $ac_cv_prog_cc_g = yes; then
2126 if test "$GCC" = yes; then
2132 if test "$GCC" = yes; then
2138 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2139 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2140 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 ac_cv_prog_cc_stdc
=no
2145 cat >conftest.
$ac_ext <<_ACEOF
2148 cat confdefs.h
>>conftest.
$ac_ext
2149 cat >>conftest.
$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2153 #include <sys/types.h>
2154 #include <sys/stat.h>
2155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2156 struct buf { int x; };
2157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2158 static char *e (p, i)
2164 static char *f (char * (*g) (char **, int), char **p, ...)
2169 s = g (p, va_arg (v,int));
2174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2175 function prototypes and stuff, but not '\xHH' hex character constants.
2176 These don't provoke an error unfortunately, instead are silently treated
2177 as 'x'. The following induces an error, until -std1 is added to get
2178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2179 array size at least. It's necessary to write '\x00'==0 to get something
2180 that's true only with -std1. */
2181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2183 int test (int i, double x);
2184 struct s1 {int (*f) (int a);};
2185 struct s2 {int (*f) (double a);};
2186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2197 # Don't try gcc -ansi; that turns off useful extensions and
2198 # breaks some systems' header files.
2199 # AIX -qlanglvl=ansi
2200 # Ultrix and OSF/1 -std1
2201 # HP-UX 10.20 and later -Ae
2202 # HP-UX older versions -Aa -D_HPUX_SOURCE
2203 # SVR4 -Xc -D__EXTENSIONS__
2204 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2206 CC
="$ac_save_CC $ac_arg"
2207 rm -f conftest.
$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>conftest.er1
2211 grep -v '^ *+' conftest.er1
>conftest.err
2213 cat conftest.err
>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try
='test -z "$ac_c_werror_flag"
2217 || test ! -s conftest.err'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; } &&
2223 { ac_try
='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 ac_cv_prog_cc_stdc
=$ac_arg
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.
$ac_ext >&5
2236 rm -f conftest.err conftest.
$ac_objext
2238 rm -f conftest.
$ac_ext conftest.
$ac_objext
2243 case "x$ac_cv_prog_cc_stdc" in
2245 echo "$as_me:$LINENO: result: none needed" >&5
2246 echo "${ECHO_T}none needed" >&6 ;;
2248 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2249 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2250 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2253 # Some people use a C++ compiler to compile C. Since we use `exit',
2254 # in C++ we need to declare it. In case someone uses the same compiler
2255 # for both compiling C and C++ we need to have the C++ compiler decide
2256 # the declaration of exit, since it's the most demanding environment.
2257 cat >conftest.
$ac_ext <<_ACEOF
2262 rm -f conftest.
$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2266 grep -v '^ *+' conftest.er1
>conftest.err
2268 cat conftest.err
>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try
='test -z "$ac_c_werror_flag"
2272 || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try
='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 for ac_declaration
in \
2286 'extern "C" void std::exit (int) throw (); using std::exit;' \
2287 'extern "C" void std::exit (int); using std::exit;' \
2288 'extern "C" void exit (int) throw ();' \
2289 'extern "C" void exit (int);' \
2292 cat >conftest.
$ac_ext <<_ACEOF
2295 cat confdefs.h
>>conftest.
$ac_ext
2296 cat >>conftest.
$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2308 rm -f conftest.
$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>conftest.er1
2312 grep -v '^ *+' conftest.er1
>conftest.err
2314 cat conftest.err
>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try
='test -z "$ac_c_werror_flag"
2318 || test ! -s conftest.err'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; } &&
2324 { ac_try
='test -s conftest.$ac_objext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.
$ac_ext >&5
2337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2338 cat >conftest.
$ac_ext <<_ACEOF
2341 cat confdefs.h
>>conftest.
$ac_ext
2342 cat >>conftest.
$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2353 rm -f conftest.
$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2357 grep -v '^ *+' conftest.er1
>conftest.err
2359 cat conftest.err
>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try
='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try
='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
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
2384 if test -n "$ac_declaration"; then
2385 echo '#ifdef __cplusplus' >>confdefs.h
2386 echo $ac_declaration >>confdefs.h
2387 echo '#endif' >>confdefs.h
2391 echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.
$ac_ext >&5
2395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2397 ac_cpp
='$CPP $CPPFLAGS'
2398 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2403 # Put a plausible default for CC_FOR_BUILD in Makefile.
2404 if test "x$cross_compiling" = "xno"; then
2405 CC_FOR_BUILD
='$(CC)'
2409 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
2412 # If we haven't got the data from the intl directory,
2413 # assume NLS is disabled.
2422 if test -f ..
/..
/intl
/config.intl
; then
2423 . ..
/..
/intl
/config.intl
2425 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2426 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2427 if test x
"$USE_NLS" != xyes
; then
2428 echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2431 echo "$as_me:$LINENO: result: yes" >&5
2432 echo "${ECHO_T}yes" >&6
2434 cat >>confdefs.h
<<\_ACEOF
2435 #define ENABLE_NLS 1
2439 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2440 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2441 # Look for .po and .gmo files in the source directory.
2444 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
2445 # If there aren't any .gmo files the shell will give us the
2446 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2448 case "$cat" in *\
**)
2451 # The quadruple backslash is collapsed to a double backslash
2452 # by the backticks, then collapsed again by the double quotes,
2453 # leaving us with one backslash in the sed expression (right
2454 # before the dot that mustn't act as a wildcard).
2455 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2456 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
2457 # The user is allowed to set LINGUAS to a list of languages to
2458 # install catalogs for. If it's empty that means "all of them."
2459 if test "x$LINGUAS" = x
; then
2460 CATALOGS
="$CATALOGS $cat"
2461 XLINGUAS
="$XLINGUAS $lang"
2463 case "$LINGUAS" in *$lang*)
2464 CATALOGS
="$CATALOGS $cat"
2465 XLINGUAS
="$XLINGUAS $lang"
2471 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2472 echo "${ECHO_T}$LINGUAS" >&6
2486 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2487 if test "${enable_sim_alignment+set}" = set; then
2488 enableval
="$enable_sim_alignment"
2489 case "${enableval}" in
2490 yes | strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2491 no | nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2492 0 | default | DEFAULT
) sim_alignment
="-DWITH_ALIGNMENT=0";;
2493 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2494 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2495 { (exit 1); exit 1; }; }; sim_alignment
="";;
2497 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
2498 echo "Setting alignment flags = $sim_alignment" 6>&1
2504 # Check whether --enable-sim-assert or --disable-sim-assert was given.
2505 if test "${enable_sim_assert+set}" = set; then
2506 enableval
="$enable_sim_assert"
2507 case "${enableval}" in
2508 yes) sim_assert
="-DWITH_ASSERT=1";;
2509 no
) sim_assert
="-DWITH_ASSERT=0";;
2510 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2511 echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2512 { (exit 1); exit 1; }; }; sim_assert
="";;
2514 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
2515 echo "Setting assert flags = $sim_assert" 6>&1
2521 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2522 if test "${enable_sim_bitsize+set}" = set; then
2523 enableval
="$enable_sim_bitsize"
2524 case "${enableval}" in
2525 32|
64) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2526 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
2527 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
2528 { (exit 1); exit 1; }; }; sim_bitsize
="";;
2530 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
2531 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2537 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2538 if test "${enable_sim_bswap+set}" = set; then
2539 enableval
="$enable_sim_bswap"
2540 case "${enableval}" in
2541 yes) sim_bswap
="-DWITH_BSWAP=1";;
2542 no
) sim_bswap
="-DWITH_BSWAP=0";;
2543 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2544 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2545 { (exit 1); exit 1; }; }; sim_bswap
="";;
2547 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
2548 echo "Setting bswap flags = $sim_bswap" 6>&1
2554 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2555 if test "${enable_sim_cflags+set}" = set; then
2556 enableval
="$enable_sim_cflags"
2557 case "${enableval}" in
2558 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
2560 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2562 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
2563 echo "Setting sim cflags = $sim_cflags" 6>&1
2569 # Check whether --enable-sim-config or --disable-sim-config was given.
2570 if test "${enable_sim_config+set}" = set; then
2571 enableval
="$enable_sim_config"
2572 case "${enableval}" in
2573 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2574 echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2575 { (exit 1); exit 1; }; };;
2576 *) if test -f "${srcdir}/${enableval}"; then
2577 sim_config
="${enableval}";
2578 elif test -f "${srcdir}/${enableval}-config.h"; then
2579 sim_config
="${enableval}-config.h"
2581 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2582 echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2583 { (exit 1); exit 1; }; };
2584 sim_config
=std-config.h
2587 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
2588 echo "Setting config flags = $sim_config" 6>&1
2591 sim_config
="std-config.h"
2592 if test x
"$silent" != x
"yes"; then
2593 echo "Setting config flags = $sim_config" 6>&1
2597 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2598 if test "${enable_sim_decode_mechanism+set}" = set; then
2599 enableval
="$enable_sim_decode_mechanism"
2600 case "${enableval}" in
2601 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2602 echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2603 { (exit 1); exit 1; }; };;
2604 array|switch|padded-switch|goto-switch
) sim_decode_mechanism
="-T ${enableval}";;
2605 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2606 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2607 { (exit 1); exit 1; }; };
2608 sim_decode_mechanism
="switch";;
2610 if test x
"$silent" != x
"yes" && test x
"$sim_decode_mechanism" != x
""; then
2611 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2614 sim_decode_mechanism
=""
2615 if test x
"$silent" != x
"yes"; then
2616 echo "Setting decode mechanism flags = $sim_decode_mechanism"
2620 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2621 if test "${enable_sim_default_model+set}" = set; then
2622 enableval
="$enable_sim_default_model"
2623 case "${enableval}" in
2624 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2625 echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2626 { (exit 1); exit 1; }; };;
2627 *) sim_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
2629 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
2630 echo "Setting default-model flags = $sim_default_model" 6>&1
2633 sim_default_model
=""
2636 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2637 if test "${enable_sim_duplicate+set}" = set; then
2638 enableval
="$enable_sim_duplicate"
2639 case "${enableval}" in
2642 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2643 echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2644 { (exit 1); exit 1; }; }; sim_dup
="";;
2646 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
2647 echo "Setting duplicate flags = $sim_dup" 6>&1
2651 if test x
"$silent" != x
"yes"; then
2652 echo "Setting duplicate flags = $sim_dup" 6>&1
2656 # Check whether --enable-sim-endian or --disable-sim-endian was given.
2657 if test "${enable_sim_endian+set}" = set; then
2658 enableval
="$enable_sim_endian"
2659 case "${enableval}" in
2660 yes) case "$target" in
2661 *powerpc-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2662 *powerpcle-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2663 *) echo "Unknown target $target" 1>&6; sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2665 no
) sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2666 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2667 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2668 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2669 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2670 { (exit 1); exit 1; }; }; sim_endian
="";;
2672 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
2673 echo "Setting endian flags = $sim_endian" 6>&1
2679 # Check whether --enable-sim-env or --disable-sim-env was given.
2680 if test "${enable_sim_env+set}" = set; then
2681 enableval
="$enable_sim_env"
2682 case "${enableval}" in
2683 operating | os | oea
) sim_env
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2684 virtual | vea
) sim_env
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2685 user | uea
) sim_env
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2686 no
) sim_env
="-DWITH_ENVIRONMENT=0";;
2687 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2688 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2689 { (exit 1); exit 1; }; }; sim_env
="";;
2691 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
2692 echo "Setting env flags = $sim_env" 6>&1
2698 # Check whether --enable-sim-filter or --disable-sim-filter was given.
2699 if test "${enable_sim_filter+set}" = set; then
2700 enableval
="$enable_sim_filter"
2701 case "${enableval}" in
2702 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2703 echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2704 { (exit 1); exit 1; }; }; sim_filter
="";;
2706 *) sim_filter
="-F $enableval";;
2708 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
2709 echo "Setting filter flags = $sim_filter" 6>&1
2712 sim_filter
="-F 32,f,o"
2713 if test x
"$silent" != x
"yes"; then
2714 echo "Setting filter flags = $sim_filter" 6>&1
2718 # Check whether --enable-sim-float or --disable-sim-float was given.
2719 if test "${enable_sim_float+set}" = set; then
2720 enableval
="$enable_sim_float"
2721 case "${enableval}" in
2722 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2723 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2724 altivec
) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2725 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2726 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2727 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2728 { (exit 1); exit 1; }; }; sim_float
="";;
2730 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
2731 echo "Setting float flags = $sim_float" 6>&1
2736 *altivec
*) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2737 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2743 echo "$as_me:$LINENO: checking if union semun defined" >&5
2744 echo $ECHO_N "checking if union semun defined... $ECHO_C" >&6
2745 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 cat >conftest.
$ac_ext <<_ACEOF
2751 cat confdefs.h
>>conftest.
$ac_ext
2752 cat >>conftest.
$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2755 #include <sys/types.h>
2756 #include <sys/ipc.h>
2757 #include <sys/sem.h>
2766 rm -f conftest.
$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2770 grep -v '^ *+' conftest.er1
>conftest.err
2772 cat conftest.err
>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try
='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try
='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 ac_cv_has_union_semun
="yes"
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.
$ac_ext >&5
2793 ac_cv_has_union_semun
="no"
2795 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2796 echo "$as_me:$LINENO: result: $ac_cv_has_union_semun" >&5
2797 echo "${ECHO_T}$ac_cv_has_union_semun" >&6
2800 echo "$as_me:$LINENO: result: $ac_cv_HAS_UNION_SEMUN" >&5
2801 echo "${ECHO_T}$ac_cv_HAS_UNION_SEMUN" >&6
2804 if test "$ac_cv_has_union_semun" = "yes"; then
2805 echo "$as_me:$LINENO: checking whether System V semaphores are supported" >&5
2806 echo $ECHO_N "checking whether System V semaphores are supported... $ECHO_C" >&6
2807 if test "${ac_cv_sysv_sem+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test "$cross_compiling" = yes; then
2814 cat >conftest.
$ac_ext <<_ACEOF
2817 cat confdefs.h
>>conftest.
$ac_ext
2818 cat >>conftest.
$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2821 #include <sys/types.h>
2822 #include <sys/ipc.h>
2823 #include <sys/sem.h>
2827 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
2830 arg.val = 0; /* avoid implicit type cast to union */
2831 if (semctl(id, 0, IPC_RMID, arg) == -1)
2837 rm -f conftest
$ac_exeext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2839 (eval $ac_link) 2>&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 ac_cv_sysv_sem
="yes"
2850 echo "$as_me: program exited with status $ac_status" >&5
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.
$ac_ext >&5
2857 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2861 echo "$as_me:$LINENO: result: $ac_cv_sysv_sem" >&5
2862 echo "${ECHO_T}$ac_cv_sysv_sem" >&6
2863 else # semun is not defined
2864 echo "$as_me:$LINENO: checking whether System V semaphores are supported" >&5
2865 echo $ECHO_N "checking whether System V semaphores are supported... $ECHO_C" >&6
2866 if test "${ac_cv_sysv_sem+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test "$cross_compiling" = yes; then
2873 cat >conftest.
$ac_ext <<_ACEOF
2876 cat confdefs.h
>>conftest.
$ac_ext
2877 cat >>conftest.
$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2880 #include <sys/types.h>
2881 #include <sys/ipc.h>
2882 #include <sys/sem.h>
2885 struct semid_ds *buf;
2891 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
2894 arg.val = 0; /* avoid implicit type cast to union */
2895 if (semctl(id, 0, IPC_RMID, arg) == -1)
2901 rm -f conftest
$ac_exeext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903 (eval $ac_link) 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_sysv_sem
="yes"
2914 echo "$as_me: program exited with status $ac_status" >&5
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.
$ac_ext >&5
2921 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2925 echo "$as_me:$LINENO: result: $ac_cv_sysv_sem" >&5
2926 echo "${ECHO_T}$ac_cv_sysv_sem" >&6
2929 echo "$as_me:$LINENO: checking whether System V shared memory is supported" >&5
2930 echo $ECHO_N "checking whether System V shared memory is supported... $ECHO_C" >&6
2931 if test "${ac_cv_sysv_shm+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 if test "$cross_compiling" = yes; then
2938 cat >conftest.
$ac_ext <<_ACEOF
2941 cat confdefs.h
>>conftest.
$ac_ext
2942 cat >>conftest.
$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2945 #include <sys/types.h>
2946 #include <sys/ipc.h>
2947 #include <sys/shm.h>
2949 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
2952 if (shmctl(id, IPC_RMID, 0) == -1)
2958 rm -f conftest
$ac_exeext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2960 (eval $ac_link) 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 ac_cv_sysv_shm
="yes"
2971 echo "$as_me: program exited with status $ac_status" >&5
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.
$ac_ext >&5
2978 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2982 echo "$as_me:$LINENO: result: $ac_cv_sysv_shm" >&5
2983 echo "${ECHO_T}$ac_cv_sysv_shm" >&6
2985 if test x
"$ac_cv_sysv_shm" = x
"yes" -a x
"$ac_cv_sysv_sem" = x
"yes" ; then
2986 sim_sysv_ipc_hw
=",sem,shm";
2991 if test x
"$ac_cv_has_union_semun" = x
"yes" -a x
"$ac_cv_sysv_sem" = x
"yes" ; then
2992 sim_hwflags
="-DHAS_UNION_SEMUN";
2996 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2997 if test "${enable_sim_hardware+set}" = set; then
2998 enableval
="$enable_sim_hardware"
2999 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3000 case "${enableval}" in
3002 no
) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
3003 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
3004 { (exit 1); exit 1; }; }; hardware
="";;
3005 ,*) hardware
="${hardware}${enableval}";;
3006 *,) hardware
="${enableval}${hardware}";;
3007 *) hardware
="${enableval}"'';;
3009 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3010 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3011 if test x
"$silent" != x
"yes" && test x
"$hardware" != x
""; then
3012 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3015 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3016 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3017 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3018 if test x
"$silent" != x
"yes"; then
3019 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3022 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
3023 if test "${enable_sim_hostbitsize+set}" = set; then
3024 enableval
="$enable_sim_hostbitsize"
3025 case "${enableval}" in
3026 32|
64) sim_hostbitsize
="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3027 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
3028 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
3029 { (exit 1); exit 1; }; }; sim_hostbitsize
="";;
3031 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
3032 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3038 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3039 if test "${enable_sim_hostendian+set}" = set; then
3040 enableval
="$enable_sim_hostendian"
3041 case "${enableval}" in
3042 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3043 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3044 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3045 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
3046 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
3047 { (exit 1); exit 1; }; }; sim_hostendian
="";;
3049 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3050 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3054 if test "x$cross_compiling" = "xno"; then
3055 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3056 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3057 if test "${ac_cv_c_bigendian+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 # See if sys/param.h defines the BYTE_ORDER macro.
3061 cat >conftest.
$ac_ext <<_ACEOF
3064 cat confdefs.h
>>conftest.
$ac_ext
3065 cat >>conftest.
$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #include <sys/types.h>
3068 #include <sys/param.h>
3073 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3081 rm -f conftest.
$ac_objext
3082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083 (eval $ac_compile) 2>conftest.er1
3085 grep -v '^ *+' conftest.er1
>conftest.err
3087 cat conftest.err
>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try
='test -z "$ac_c_werror_flag"
3091 || test ! -s conftest.err'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try
='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 # It does; now see whether it defined to BIG_ENDIAN or not.
3104 cat >conftest.
$ac_ext <<_ACEOF
3107 cat confdefs.h
>>conftest.
$ac_ext
3108 cat >>conftest.
$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110 #include <sys/types.h>
3111 #include <sys/param.h>
3116 #if BYTE_ORDER != BIG_ENDIAN
3124 rm -f conftest.
$ac_objext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126 (eval $ac_compile) 2>conftest.er1
3128 grep -v '^ *+' conftest.er1
>conftest.err
3130 cat conftest.err
>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try
='test -z "$ac_c_werror_flag"
3134 || test ! -s conftest.err'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try
='test -s conftest.$ac_objext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_cv_c_bigendian
=yes
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.
$ac_ext >&5
3151 ac_cv_c_bigendian
=no
3153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.
$ac_ext >&5
3158 # It does not; compile a test program.
3159 if test "$cross_compiling" = yes; then
3160 # try to guess the endianness by grepping values into an object file
3161 ac_cv_c_bigendian
=unknown
3162 cat >conftest.
$ac_ext <<_ACEOF
3165 cat confdefs.h
>>conftest.
$ac_ext
3166 cat >>conftest.
$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3169 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3170 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3171 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3172 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3173 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3177 _ascii (); _ebcdic ();
3182 rm -f conftest.
$ac_objext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3184 (eval $ac_compile) 2>conftest.er1
3186 grep -v '^ *+' conftest.er1
>conftest.err
3188 cat conftest.err
>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try
='test -z "$ac_c_werror_flag"
3192 || test ! -s conftest.err'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try
='test -s conftest.$ac_objext'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3205 ac_cv_c_bigendian
=yes
3207 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3208 if test "$ac_cv_c_bigendian" = unknown
; then
3209 ac_cv_c_bigendian
=no
3211 # finding both strings is unlikely to happen, but who knows?
3212 ac_cv_c_bigendian
=unknown
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.
$ac_ext >&5
3220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3222 cat >conftest.
$ac_ext <<_ACEOF
3225 cat confdefs.h
>>conftest.
$ac_ext
3226 cat >>conftest.
$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3231 /* Are we little or big endian? From Harbison&Steele. */
3235 char c[sizeof (long)];
3238 exit (u.c[sizeof (long) - 1] == 1);
3241 rm -f conftest
$ac_exeext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3243 (eval $ac_link) 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; }; then
3252 ac_cv_c_bigendian
=no
3254 echo "$as_me: program exited with status $ac_status" >&5
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.
$ac_ext >&5
3259 ac_cv_c_bigendian
=yes
3261 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3266 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3267 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3268 case $ac_cv_c_bigendian in
3271 cat >>confdefs.h
<<\_ACEOF
3272 #define WORDS_BIGENDIAN 1
3278 { { echo "$as_me:$LINENO: error: unknown endianness
3279 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3280 echo "$as_me: error: unknown endianness
3281 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3282 { (exit 1); exit 1; }; } ;;
3285 if test $ac_cv_c_bigendian = yes; then
3286 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3288 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3291 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3295 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3296 if test "${enable_sim_icache+set}" = set; then
3297 enableval
="$enable_sim_icache"
3299 case "${enableval}" in
3300 yes) icache
="1024"; sim_icache
="-I $icache";;
3301 no
) sim_icache
="-R";;
3304 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3306 define
) sim_icache
="${sim_icache}R";;
3307 semantic
) sim_icache
="${sim_icache}C";;
3308 insn
) sim_icache
="${sim_icache}S";;
3309 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
3310 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3311 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3312 { (exit 1); exit 1; }; }; sim_icache
="";;
3315 sim_icache
="${sim_icache}I $icache";;
3317 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
3318 echo "Setting instruction cache size to $icache ($sim_icache)"
3321 sim_icache
="-CSRI 1024"
3322 if test x
"$silent" != x
"yes"; then
3323 echo "Setting instruction cache size to 1024 ($sim_icache)"
3327 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3328 if test "${enable_sim_inline+set}" = set; then
3329 enableval
="$enable_sim_inline"
3331 case "$enableval" in
3332 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3333 0) sim_inline
="-DDEFAULT_INLINE=0";;
3334 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
3335 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3336 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3339 *_INLINE
=*) new_flag
="-D$x";;
3340 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3341 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
3342 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
3344 if test x
"$sim_inline" = x
""; then
3345 sim_inline
="$new_flag"
3347 sim_inline
="$sim_inline $new_flag"
3351 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3352 echo "Setting inline flags = $sim_inline" 6>&1
3355 if test x
"$GCC" != ""; then
3356 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3357 if test x
"$silent" != x
"yes"; then
3358 echo "Setting inline flags = $sim_inline" 6>&1
3365 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3366 if test "${enable_sim_jump+set}" = set; then
3367 enableval
="$enable_sim_jump"
3368 case "${enableval}" in
3369 yes) sim_jump
="-J";;
3371 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3372 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3373 { (exit 1); exit 1; }; }; sim_jump
="";;
3375 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
3376 echo "Setting jump flag = $sim_jump" 6>&1
3380 if test x
"$silent" != x
"yes"; then
3381 echo "Setting jump flag = $sim_jump" 6>&1
3385 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3386 if test "${enable_sim_line_nr+set}" = set; then
3387 enableval
="$enable_sim_line_nr"
3388 case "${enableval}" in
3389 yes) sim_line_nr
="";;
3390 no
) sim_line_nr
="-L";;
3391 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3392 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3393 { (exit 1); exit 1; }; }; sim_line_nr
="";;
3395 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
3396 echo "Setting warning flags = $sim_line_nr" 6>&1
3402 # Check whether --enable-sim-model or --disable-sim-model was given.
3403 if test "${enable_sim_model+set}" = set; then
3404 enableval
="$enable_sim_model"
3405 case "${enableval}" in
3406 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3407 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3408 { (exit 1); exit 1; }; };;
3409 *) sim_model
="-DWITH_MODEL=${enableval}";;
3411 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
3412 echo "Setting model flags = $sim_model" 6>&1
3418 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3419 if test "${enable_sim_model_issue+set}" = set; then
3420 enableval
="$enable_sim_model_issue"
3421 case "${enableval}" in
3422 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3423 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3424 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3425 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3426 { (exit 1); exit 1; }; }; sim_model_issue
="";;
3428 if test x
"$silent" != x
"yes"; then
3429 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3435 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3436 if test "${enable_sim_monitor+set}" = set; then
3437 enableval
="$enable_sim_monitor"
3438 case "${enableval}" in
3439 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3440 no
) sim_monitor
="-DWITH_MON=0";;
3441 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3442 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3443 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3444 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3445 { (exit 1); exit 1; }; }; sim_env
="";;
3447 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
3448 echo "Setting monitor flags = $sim_monitor" 6>&1
3454 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3455 if test "${enable_sim_opcode+set}" = set; then
3456 enableval
="$enable_sim_opcode"
3457 case "${enableval}" in
3458 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3459 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3460 { (exit 1); exit 1; }; };;
3461 *) if test -f "${srcdir}/${enableval}"; then
3462 sim_opcode
="${enableval}"
3463 elif test -f "${srcdir}/dc-${enableval}"; then
3464 sim_opcode
="dc-${enableval}"
3466 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3467 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3468 { (exit 1); exit 1; }; };
3469 sim_opcode
="dc-complex"
3472 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
3473 echo "Setting opcode flags = $sim_opcode" 6>&1
3476 sim_opcode
="dc-complex"
3477 if test x
"$silent" != x
"yes"; then
3478 echo "Setting opcode flags = $sim_opcode"
3482 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3483 if test "${enable_sim_packages+set}" = set; then
3484 enableval
="$enable_sim_packages"
3486 case "${enableval}" in
3488 no
) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3489 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3490 { (exit 1); exit 1; }; }; packages
="";;
3491 ,*) packages
="${packages}${enableval}";;
3492 *,) packages
="${enableval}${packages}";;
3493 *) packages
="${enableval}"'';;
3495 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3496 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3497 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
3498 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3502 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3503 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3504 if test x
"$silent" != x
"yes"; then
3505 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3509 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3510 if test "${enable_sim_regparm+set}" = set; then
3511 enableval
="$enable_sim_regparm"
3512 case "${enableval}" in
3513 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
3514 no
) sim_regparm
="" ;;
3515 yes) sim_regparm
="-DWITH_REGPARM=3";;
3516 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3517 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3518 { (exit 1); exit 1; }; }; sim_regparm
="";;
3520 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
3521 echo "Setting regparm flags = $sim_regparm" 6>&1
3527 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3528 if test "${enable_sim_reserved_bits+set}" = set; then
3529 enableval
="$enable_sim_reserved_bits"
3530 case "${enableval}" in
3531 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
3532 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
3533 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3534 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3535 { (exit 1); exit 1; }; }; sim_reserved
="";;
3537 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
3538 echo "Setting reserved flags = $sim_reserved" 6>&1
3544 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3545 if test "${enable_sim_smp+set}" = set; then
3546 enableval
="$enable_sim_smp"
3547 case "${enableval}" in
3548 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3549 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3550 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3552 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3553 echo "Setting smp flags = $sim_smp" 6>&1
3556 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
3557 if test x
"$silent" != x
"yes"; then
3558 echo "Setting smp flags = $sim_smp" 6>&1
3562 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3563 if test "${enable_sim_stdcall+set}" = set; then
3564 enableval
="$enable_sim_stdcall"
3565 case "${enableval}" in
3566 no
) sim_stdcall
="" ;;
3567 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
3568 yes) sim_stdcall
="-DWITH_STDCALL=1";;
3569 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3570 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3571 { (exit 1); exit 1; }; }; sim_stdcall
="";;
3573 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
3574 echo "Setting function call flags = $sim_stdcall" 6>&1
3580 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3581 if test "${enable_sim_stdio+set}" = set; then
3582 enableval
="$enable_sim_stdio"
3583 case "${enableval}" in
3584 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3585 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3586 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3587 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3588 { (exit 1); exit 1; }; }; sim_stdio
="";;
3590 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3591 echo "Setting stdio flags = $sim_stdio" 6>&1
3597 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3598 if test "${enable_sim_switch+set}" = set; then
3599 enableval
="$enable_sim_switch"
3600 case "${enableval}" in
3601 yes) sim_switch
="-s";;
3603 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3604 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3605 { (exit 1); exit 1; }; }; sim_switch
="";;
3607 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
3608 echo "Setting switch flags = $sim_switch" 6>&1
3612 if test x
"$silent" != x
"yes"; then
3613 echo "Setting switch flags = $sim_switch" 6>&1
3617 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3618 if test "${enable_sim_timebase+set}" = set; then
3619 enableval
="$enable_sim_timebase"
3620 case "${enableval}" in
3621 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
3622 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
3623 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3624 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3625 { (exit 1); exit 1; }; }; sim_timebase
="";;
3627 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
3628 echo "Setting timebase flags = $sim_timebase" 6>&1
3634 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3635 if test "${enable_sim_trace+set}" = set; then
3636 enableval
="$enable_sim_trace"
3637 case "${enableval}" in
3638 yes) sim_trace
="-DWITH_TRACE=1";;
3639 no
) sim_trace
="-DWITH_TRACE=0";;
3640 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3641 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3642 { (exit 1); exit 1; }; }; sim_trace
="";;
3644 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3645 echo "Setting trace flags = $sim_trace" 6>&1
3651 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3652 if test "${enable_sim_warnings+set}" = set; then
3653 enableval
="$enable_sim_warnings"
3654 case "${enableval}" in
3655 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3656 no
) sim_warnings
="-w";;
3657 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3659 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
3660 echo "Setting warning flags = $sim_warnings" 6>&1
3666 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3667 if test "${enable_sim_xor_endian+set}" = set; then
3668 enableval
="$enable_sim_xor_endian"
3669 case "${enableval}" in
3670 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
3671 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
3672 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
3674 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
3675 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3683 # Check whether --with-pkgversion or --without-pkgversion was given.
3684 if test "${with_pkgversion+set}" = set; then
3685 withval
="$with_pkgversion"
3687 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3688 echo "$as_me: error: package version not specified" >&2;}
3689 { (exit 1); exit 1; }; } ;;
3691 *) PKGVERSION
="($withval) " ;;
3701 # Check whether --with-bugurl or --without-bugurl was given.
3702 if test "${with_bugurl+set}" = set; then
3703 withval
="$with_bugurl"
3705 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3706 echo "$as_me: error: bug URL not specified" >&2;}
3707 { (exit 1); exit 1; }; } ;;
3710 *) BUGURL
="$withval"
3714 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
3723 REPORT_BUGS_TO
="<$BUGURL>"
3724 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
3731 cat >>confdefs.h
<<_ACEOF
3732 #define PKGVERSION "$PKGVERSION"
3736 cat >>confdefs.h
<<_ACEOF
3737 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3741 # Make sure we can run config.sub.
3742 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3743 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3744 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3745 { (exit 1); exit 1; }; }
3747 echo "$as_me:$LINENO: checking build system type" >&5
3748 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3749 if test "${ac_cv_build+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 ac_cv_build_alias
=$build_alias
3753 test -z "$ac_cv_build_alias" &&
3754 ac_cv_build_alias
=`$ac_config_guess`
3755 test -z "$ac_cv_build_alias" &&
3756 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3757 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3758 { (exit 1); exit 1; }; }
3759 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3760 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3761 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3762 { (exit 1); exit 1; }; }
3765 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3766 echo "${ECHO_T}$ac_cv_build" >&6
3768 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3769 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3770 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3773 echo "$as_me:$LINENO: checking host system type" >&5
3774 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3775 if test "${ac_cv_host+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cv_host_alias
=$host_alias
3779 test -z "$ac_cv_host_alias" &&
3780 ac_cv_host_alias
=$ac_cv_build_alias
3781 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3782 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3783 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3784 { (exit 1); exit 1; }; }
3787 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3788 echo "${ECHO_T}$ac_cv_host" >&6
3790 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3791 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3792 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3795 echo "$as_me:$LINENO: checking target system type" >&5
3796 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3797 if test "${ac_cv_target+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 ac_cv_target_alias
=$target_alias
3801 test "x$ac_cv_target_alias" = "x" &&
3802 ac_cv_target_alias
=$ac_cv_host_alias
3803 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3804 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3805 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3806 { (exit 1); exit 1; }; }
3809 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3810 echo "${ECHO_T}$ac_cv_target" >&6
3811 target
=$ac_cv_target
3812 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3813 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3814 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3817 # The aliases save the names the user supplied, while $host etc.
3818 # will get canonicalized.
3819 test -n "$target_alias" &&
3820 test "$program_prefix$program_suffix$program_transform_name" = \
3822 program_prefix
=${target_alias}-
3823 test "$program_prefix" != NONE
&&
3824 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3825 # Use a double $ so make ignores it.
3826 test "$program_suffix" != NONE
&&
3827 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3828 # Double any \ or $. echo might interpret backslashes.
3829 # By default was `s,x,x', remove it if useless.
3830 cat <<\_ACEOF
>conftest.
sed
3831 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3833 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3837 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
3838 # using the same condition.
3840 ac_cpp
='$CPP $CPPFLAGS'
3841 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3844 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3845 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3846 # On Suns, sometimes $CPP names a directory.
3847 if test -n "$CPP" && test -d "$CPP"; then
3850 if test -z "$CPP"; then
3851 if test "${ac_cv_prog_CPP+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 # Double quotes because CPP needs to be expanded
3855 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3858 for ac_c_preproc_warn_flag
in '' yes
3860 # Use a header file that comes with gcc, so configuring glibc
3861 # with a fresh cross-compiler works.
3862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3863 # <limits.h> exists even on freestanding compilers.
3864 # On the NeXT, cc -E runs the code through the compiler's parser,
3865 # not just through cpp. "Syntax error" is here to catch this case.
3866 cat >conftest.
$ac_ext <<_ACEOF
3869 cat confdefs.h
>>conftest.
$ac_ext
3870 cat >>conftest.
$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3873 # include <limits.h>
3875 # include <assert.h>
3879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3880 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3882 grep -v '^ *+' conftest.er1
>conftest.err
3884 cat conftest.err
>&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } >/dev
/null
; then
3887 if test -s conftest.err
; then
3888 ac_cpp_err
=$ac_c_preproc_warn_flag
3889 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3896 if test -z "$ac_cpp_err"; then
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.
$ac_ext >&5
3902 # Broken: fails on valid input.
3905 rm -f conftest.err conftest.
$ac_ext
3907 # OK, works on sane cases. Now check whether non-existent headers
3908 # can be detected and how.
3909 cat >conftest.
$ac_ext <<_ACEOF
3912 cat confdefs.h
>>conftest.
$ac_ext
3913 cat >>conftest.
$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3915 #include <ac_nonexistent.h>
3917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3918 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3920 grep -v '^ *+' conftest.er1
>conftest.err
3922 cat conftest.err
>&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } >/dev
/null
; then
3925 if test -s conftest.err
; then
3926 ac_cpp_err
=$ac_c_preproc_warn_flag
3927 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3934 if test -z "$ac_cpp_err"; then
3935 # Broken: success on invalid input.
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.
$ac_ext >&5
3941 # Passes both tests.
3945 rm -f conftest.err conftest.
$ac_ext
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.err conftest.
$ac_ext
3950 if $ac_preproc_ok; then
3962 echo "$as_me:$LINENO: result: $CPP" >&5
3963 echo "${ECHO_T}$CPP" >&6
3965 for ac_c_preproc_warn_flag
in '' yes
3967 # Use a header file that comes with gcc, so configuring glibc
3968 # with a fresh cross-compiler works.
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970 # <limits.h> exists even on freestanding compilers.
3971 # On the NeXT, cc -E runs the code through the compiler's parser,
3972 # not just through cpp. "Syntax error" is here to catch this case.
3973 cat >conftest.
$ac_ext <<_ACEOF
3976 cat confdefs.h
>>conftest.
$ac_ext
3977 cat >>conftest.
$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3980 # include <limits.h>
3982 # include <assert.h>
3986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3987 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3989 grep -v '^ *+' conftest.er1
>conftest.err
3991 cat conftest.err
>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev
/null
; then
3994 if test -s conftest.err
; then
3995 ac_cpp_err
=$ac_c_preproc_warn_flag
3996 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4003 if test -z "$ac_cpp_err"; then
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.
$ac_ext >&5
4009 # Broken: fails on valid input.
4012 rm -f conftest.err conftest.
$ac_ext
4014 # OK, works on sane cases. Now check whether non-existent headers
4015 # can be detected and how.
4016 cat >conftest.
$ac_ext <<_ACEOF
4019 cat confdefs.h
>>conftest.
$ac_ext
4020 cat >>conftest.
$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 #include <ac_nonexistent.h>
4024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4025 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4027 grep -v '^ *+' conftest.er1
>conftest.err
4029 cat conftest.err
>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } >/dev
/null
; then
4032 if test -s conftest.err
; then
4033 ac_cpp_err
=$ac_c_preproc_warn_flag
4034 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4041 if test -z "$ac_cpp_err"; then
4042 # Broken: success on invalid input.
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.
$ac_ext >&5
4048 # Passes both tests.
4052 rm -f conftest.err conftest.
$ac_ext
4055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4056 rm -f conftest.err conftest.
$ac_ext
4057 if $ac_preproc_ok; then
4060 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4061 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4063 See \`config.log' for more details." >&5
4064 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4065 See \`config.log' for more details." >&2;}
4066 { (exit 1); exit 1; }; }; }
4070 ac_cpp
='$CPP $CPPFLAGS'
4071 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4076 echo "$as_me:$LINENO: checking for egrep" >&5
4077 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4078 if test "${ac_cv_prog_egrep+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4082 then ac_cv_prog_egrep
='grep -E'
4083 else ac_cv_prog_egrep
='egrep'
4086 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4087 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4088 EGREP
=$ac_cv_prog_egrep
4091 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4093 if test "${ac_cv_header_stdc+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 cat >conftest.
$ac_ext <<_ACEOF
4099 cat confdefs.h
>>conftest.
$ac_ext
4100 cat >>conftest.
$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4115 rm -f conftest.
$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4119 grep -v '^ *+' conftest.er1
>conftest.err
4121 cat conftest.err
>&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try
='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try
='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc
=yes
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.
$ac_ext >&5
4142 ac_cv_header_stdc
=no
4144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4146 if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.
$ac_ext <<_ACEOF
4151 cat confdefs.h
>>conftest.
$ac_ext
4152 cat >>conftest.
$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev
/null
2>&1; then
4161 ac_cv_header_stdc
=no
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.
$ac_ext <<_ACEOF
4172 cat confdefs.h
>>conftest.
$ac_ext
4173 cat >>conftest.
$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev
/null
2>&1; then
4182 ac_cv_header_stdc
=no
4188 if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4193 cat >conftest.
$ac_ext <<_ACEOF
4196 cat confdefs.h
>>conftest.
$ac_ext
4197 cat >>conftest.
$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4204 # define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4223 rm -f conftest
$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.
$ac_ext >&5
4241 ac_cv_header_stdc
=no
4243 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4251 cat >>confdefs.h
<<\_ACEOF
4252 #define STDC_HEADERS 1
4257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4268 inttypes.h stdint.h unistd.h
4270 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 echo "$as_me:$LINENO: checking for $ac_header" >&5
4272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 cat >conftest.
$ac_ext <<_ACEOF
4279 cat confdefs.h
>>conftest.
$ac_ext
4280 cat >>conftest.
$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 $ac_includes_default
4284 #include <$ac_header>
4286 rm -f conftest.
$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4290 grep -v '^ *+' conftest.er1
>conftest.err
4292 cat conftest.err
>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try
='test -z "$ac_c_werror_flag"
4296 || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try
='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 eval "$as_ac_Header=yes"
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.
$ac_ext >&5
4313 eval "$as_ac_Header=no"
4315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320 cat >>confdefs.h
<<_ACEOF
4321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4329 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4330 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4331 if test "${ac_cv_search_zlibVersion+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 ac_func_search_save_LIBS
=$LIBS
4335 ac_cv_search_zlibVersion
=no
4336 cat >conftest.
$ac_ext <<_ACEOF
4339 cat confdefs.h
>>conftest.
$ac_ext
4340 cat >>conftest.
$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4343 /* Override any gcc2 internal prototype to avoid an error. */
4347 /* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */
4349 char zlibVersion ();
4358 rm -f conftest.
$ac_objext conftest
$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>conftest.er1
4362 grep -v '^ *+' conftest.er1
>conftest.err
4364 cat conftest.err
>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try
='test -z "$ac_c_werror_flag"
4368 || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try
='test -s conftest$ac_exeext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_search_zlibVersion
="none required"
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.
$ac_ext >&5
4386 rm -f conftest.err conftest.
$ac_objext \
4387 conftest
$ac_exeext conftest.
$ac_ext
4388 if test "$ac_cv_search_zlibVersion" = no
; then
4390 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4391 cat >conftest.
$ac_ext <<_ACEOF
4394 cat confdefs.h
>>conftest.
$ac_ext
4395 cat >>conftest.
$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4398 /* Override any gcc2 internal prototype to avoid an error. */
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4404 char zlibVersion ();
4413 rm -f conftest.
$ac_objext conftest
$ac_exeext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>conftest.er1
4417 grep -v '^ *+' conftest.er1
>conftest.err
4419 cat conftest.err
>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try
='test -z "$ac_c_werror_flag"
4423 || test ! -s conftest.err'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; } &&
4429 { ac_try
='test -s conftest$ac_exeext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_search_zlibVersion
="-l$ac_lib"
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.
$ac_ext >&5
4442 rm -f conftest.err conftest.
$ac_objext \
4443 conftest
$ac_exeext conftest.
$ac_ext
4446 LIBS
=$ac_func_search_save_LIBS
4448 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4449 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4450 if test "$ac_cv_search_zlibVersion" != no
; then
4451 test "$ac_cv_search_zlibVersion" = "none required" || LIBS
="$ac_cv_search_zlibVersion $LIBS"
4453 for ac_header
in zlib.h
4455 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4457 echo "$as_me:$LINENO: checking for $ac_header" >&5
4458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4465 # Is the header compilable?
4466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4468 cat >conftest.
$ac_ext <<_ACEOF
4471 cat confdefs.h
>>conftest.
$ac_ext
4472 cat >>conftest.
$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 $ac_includes_default
4475 #include <$ac_header>
4477 rm -f conftest.
$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4481 grep -v '^ *+' conftest.er1
>conftest.err
4483 cat conftest.err
>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try
='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try
='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_header_compiler
=yes
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.
$ac_ext >&5
4504 ac_header_compiler
=no
4506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4508 echo "${ECHO_T}$ac_header_compiler" >&6
4510 # Is the header present?
4511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4513 cat >conftest.
$ac_ext <<_ACEOF
4516 cat confdefs.h
>>conftest.
$ac_ext
4517 cat >>conftest.
$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <$ac_header>
4521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4522 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4524 grep -v '^ *+' conftest.er1
>conftest.err
4526 cat conftest.err
>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } >/dev
/null
; then
4529 if test -s conftest.err
; then
4530 ac_cpp_err
=$ac_c_preproc_warn_flag
4531 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4538 if test -z "$ac_cpp_err"; then
4539 ac_header_preproc
=yes
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.
$ac_ext >&5
4544 ac_header_preproc
=no
4546 rm -f conftest.err conftest.
$ac_ext
4547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4548 echo "${ECHO_T}$ac_header_preproc" >&6
4550 # So? What about this header?
4551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4557 ac_header_preproc
=yes
4560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4574 ## ------------------------------------------ ##
4575 ## Report this to the AC_PACKAGE_NAME lists. ##
4576 ## ------------------------------------------ ##
4579 sed "s/^/$as_me: WARNING: /" >&2
4582 echo "$as_me:$LINENO: checking for $ac_header" >&5
4583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 eval "$as_ac_Header=\$ac_header_preproc"
4589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4594 cat >>confdefs.h
<<_ACEOF
4595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605 .
${srcdir}/..
/..
/bfd
/configure.
host
4610 cat >>confdefs.h
<<\_ACEOF
4611 #define USE_WIN32API 1
4617 ac_config_headers
="$ac_config_headers config.h:config.in"
4621 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4622 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4623 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 cat >conftest.
$ac_ext <<_ACEOF
4629 cat confdefs.h
>>conftest.
$ac_ext
4630 cat >>conftest.
$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4636 static struct stat ac_aggr;
4637 if (ac_aggr.st_blksize)
4643 rm -f conftest.
$ac_objext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>conftest.er1
4647 grep -v '^ *+' conftest.er1
>conftest.err
4649 cat conftest.err
>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try
='test -z "$ac_c_werror_flag"
4653 || test ! -s conftest.err'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; } &&
4659 { ac_try
='test -s conftest.$ac_objext'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4665 ac_cv_member_struct_stat_st_blksize
=yes
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.
$ac_ext >&5
4670 cat >conftest.
$ac_ext <<_ACEOF
4673 cat confdefs.h
>>conftest.
$ac_ext
4674 cat >>conftest.
$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 $ac_includes_default
4680 static struct stat ac_aggr;
4681 if (sizeof ac_aggr.st_blksize)
4687 rm -f conftest.
$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>conftest.er1
4691 grep -v '^ *+' conftest.er1
>conftest.err
4693 cat conftest.err
>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try
='test -z "$ac_c_werror_flag"
4697 || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try
='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_member_struct_stat_st_blksize
=yes
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.
$ac_ext >&5
4714 ac_cv_member_struct_stat_st_blksize
=no
4716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4720 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4721 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4722 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4724 cat >>confdefs.h
<<_ACEOF
4725 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4729 cat >>confdefs.h
<<\_ACEOF
4730 #define HAVE_ST_BLKSIZE 1
4736 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4737 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4738 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 cat >conftest.
$ac_ext <<_ACEOF
4744 cat confdefs.h
>>conftest.
$ac_ext
4745 cat >>conftest.
$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 $ac_includes_default
4751 static struct stat ac_aggr;
4752 if (ac_aggr.st_blocks)
4758 rm -f conftest.
$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760 (eval $ac_compile) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1
>conftest.err
4764 cat conftest.err
>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try
='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try
='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_member_struct_stat_st_blocks
=yes
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.
$ac_ext >&5
4785 cat >conftest.
$ac_ext <<_ACEOF
4788 cat confdefs.h
>>conftest.
$ac_ext
4789 cat >>conftest.
$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4795 static struct stat ac_aggr;
4796 if (sizeof ac_aggr.st_blocks)
4802 rm -f conftest.
$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1
>conftest.err
4808 cat conftest.err
>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try
='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try
='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_member_struct_stat_st_blocks
=yes
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.
$ac_ext >&5
4829 ac_cv_member_struct_stat_st_blocks
=no
4831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4835 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4836 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4837 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4839 cat >>confdefs.h
<<_ACEOF
4840 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4844 cat >>confdefs.h
<<\_ACEOF
4845 #define HAVE_ST_BLOCKS 1
4850 "fileblocks.$ac_objext" | \
4851 *" fileblocks.$ac_objext" | \
4852 "fileblocks.$ac_objext "* | \
4853 *" fileblocks.$ac_objext "* ) ;;
4854 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
4861 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4862 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4863 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 cat >conftest.
$ac_ext <<_ACEOF
4869 cat confdefs.h
>>conftest.
$ac_ext
4870 cat >>conftest.
$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4876 static struct stat ac_aggr;
4877 if (ac_aggr.st_rdev)
4883 rm -f conftest.
$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1
>conftest.err
4889 cat conftest.err
>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try
='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try
='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_cv_member_struct_stat_st_rdev
=yes
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.
$ac_ext >&5
4910 cat >conftest.
$ac_ext <<_ACEOF
4913 cat confdefs.h
>>conftest.
$ac_ext
4914 cat >>conftest.
$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 $ac_includes_default
4920 static struct stat ac_aggr;
4921 if (sizeof ac_aggr.st_rdev)
4927 rm -f conftest.
$ac_objext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929 (eval $ac_compile) 2>conftest.er1
4931 grep -v '^ *+' conftest.er1
>conftest.err
4933 cat conftest.err
>&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } &&
4936 { ac_try
='test -z "$ac_c_werror_flag"
4937 || test ! -s conftest.err'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; } &&
4943 { ac_try
='test -s conftest.$ac_objext'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4949 ac_cv_member_struct_stat_st_rdev
=yes
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.
$ac_ext >&5
4954 ac_cv_member_struct_stat_st_rdev
=no
4956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4960 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4961 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4962 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4964 cat >>confdefs.h
<<_ACEOF
4965 #define HAVE_STRUCT_STAT_ST_RDEV 1
4969 cat >>confdefs.h
<<\_ACEOF
4970 #define HAVE_ST_RDEV 1
4976 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4977 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4978 if test "${ac_cv_struct_tm+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 cat >conftest.
$ac_ext <<_ACEOF
4984 cat confdefs.h
>>conftest.
$ac_ext
4985 cat >>conftest.
$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 #include <sys/types.h>
4993 struct tm *tp; tp->tm_sec;
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_struct_tm
=time.h
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5025 ac_cv_struct_tm
=sys
/time.h
5027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5030 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5031 if test $ac_cv_struct_tm = sys
/time.h
; then
5033 cat >>confdefs.h
<<\_ACEOF
5034 #define TM_IN_SYS_TIME 1
5039 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5040 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5041 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 cat >conftest.
$ac_ext <<_ACEOF
5047 cat confdefs.h
>>conftest.
$ac_ext
5048 cat >>conftest.
$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 #include <sys/types.h>
5051 #include <$ac_cv_struct_tm>
5057 static struct tm ac_aggr;
5058 if (ac_aggr.tm_zone)
5064 rm -f conftest.
$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>conftest.er1
5068 grep -v '^ *+' conftest.er1
>conftest.err
5070 cat conftest.err
>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try
='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try
='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_cv_member_struct_tm_tm_zone
=yes
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.
$ac_ext >&5
5091 cat >conftest.
$ac_ext <<_ACEOF
5094 cat confdefs.h
>>conftest.
$ac_ext
5095 cat >>conftest.
$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 #include <sys/types.h>
5098 #include <$ac_cv_struct_tm>
5104 static struct tm ac_aggr;
5105 if (sizeof ac_aggr.tm_zone)
5111 rm -f conftest.
$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>conftest.er1
5115 grep -v '^ *+' conftest.er1
>conftest.err
5117 cat conftest.err
>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try
='test -z "$ac_c_werror_flag"
5121 || test ! -s conftest.err'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; } &&
5127 { ac_try
='test -s conftest.$ac_objext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 ac_cv_member_struct_tm_tm_zone
=yes
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.
$ac_ext >&5
5138 ac_cv_member_struct_tm_tm_zone
=no
5140 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5144 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5145 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5146 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5148 cat >>confdefs.h
<<_ACEOF
5149 #define HAVE_STRUCT_TM_TM_ZONE 1
5155 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5157 cat >>confdefs.h
<<\_ACEOF
5158 #define HAVE_TM_ZONE 1
5162 echo "$as_me:$LINENO: checking for tzname" >&5
5163 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5164 if test "${ac_cv_var_tzname+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 cat >conftest.
$ac_ext <<_ACEOF
5170 cat confdefs.h
>>conftest.
$ac_ext
5171 cat >>conftest.
$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5174 #ifndef tzname /* For SGI. */
5175 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5186 rm -f conftest.
$ac_objext conftest
$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188 (eval $ac_link) 2>conftest.er1
5190 grep -v '^ *+' conftest.er1
>conftest.err
5192 cat conftest.err
>&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try
='test -z "$ac_c_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try
='test -s conftest$ac_exeext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_var_tzname
=yes
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.
$ac_ext >&5
5215 rm -f conftest.err conftest.
$ac_objext \
5216 conftest
$ac_exeext conftest.
$ac_ext
5218 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5219 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5220 if test $ac_cv_var_tzname = yes; then
5222 cat >>confdefs.h
<<\_ACEOF
5223 #define HAVE_TZNAME 1
5230 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5231 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5232 if test "${ac_cv_type_uid_t+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 cat >conftest.
$ac_ext <<_ACEOF
5238 cat confdefs.h
>>conftest.
$ac_ext
5239 cat >>conftest.
$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5241 #include <sys/types.h>
5244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5245 $EGREP "uid_t" >/dev
/null
2>&1; then
5246 ac_cv_type_uid_t
=yes
5253 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5254 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5255 if test $ac_cv_type_uid_t = no
; then
5257 cat >>confdefs.h
<<\_ACEOF
5262 cat >>confdefs.h
<<\_ACEOF
5268 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
5269 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
5270 if test "${ac_cv_type_getgroups+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test "$cross_compiling" = yes; then
5274 ac_cv_type_getgroups
=cross
5276 cat >conftest.
$ac_ext <<_ACEOF
5279 cat confdefs.h
>>conftest.
$ac_ext
5280 cat >>conftest.
$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 /* Thanks to Mike Rendell for this test. */
5283 #include <sys/types.h>
5286 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5293 union { gid_t gval; long lval; } val;
5296 for (i = 0; i < NGID; i++)
5297 gidset[i] = val.gval;
5298 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5300 /* Exit non-zero if getgroups seems to require an array of ints. This
5301 happens when gid_t is short but getgroups modifies an array of ints. */
5302 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5305 rm -f conftest
$ac_exeext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5307 (eval $ac_link) 2>&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 ac_cv_type_getgroups
=gid_t
5318 echo "$as_me: program exited with status $ac_status" >&5
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.
$ac_ext >&5
5323 ac_cv_type_getgroups
=int
5325 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5327 if test $ac_cv_type_getgroups = cross
; then
5328 cat >conftest.
$ac_ext <<_ACEOF
5331 cat confdefs.h
>>conftest.
$ac_ext
5332 cat >>conftest.
$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5338 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
5339 ac_cv_type_getgroups
=gid_t
5341 ac_cv_type_getgroups
=int
5347 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
5348 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
5350 cat >>confdefs.h
<<_ACEOF
5351 #define GETGROUPS_T $ac_cv_type_getgroups
5355 echo "$as_me:$LINENO: checking for mode_t" >&5
5356 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5357 if test "${ac_cv_type_mode_t+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 cat >conftest.
$ac_ext <<_ACEOF
5363 cat confdefs.h
>>conftest.
$ac_ext
5364 cat >>conftest.
$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 $ac_includes_default
5372 if (sizeof (mode_t))
5378 rm -f conftest.
$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>conftest.er1
5382 grep -v '^ *+' conftest.er1
>conftest.err
5384 cat conftest.err
>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try
='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try
='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 ac_cv_type_mode_t
=yes
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.
$ac_ext >&5
5405 ac_cv_type_mode_t
=no
5407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5409 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5410 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5411 if test $ac_cv_type_mode_t = yes; then
5415 cat >>confdefs.h
<<_ACEOF
5421 echo "$as_me:$LINENO: checking for off_t" >&5
5422 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5423 if test "${ac_cv_type_off_t+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 cat >conftest.
$ac_ext <<_ACEOF
5429 cat confdefs.h
>>conftest.
$ac_ext
5430 cat >>conftest.
$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 $ac_includes_default
5444 rm -f conftest.
$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>conftest.er1
5448 grep -v '^ *+' conftest.er1
>conftest.err
5450 cat conftest.err
>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try
='test -z "$ac_c_werror_flag"
5454 || test ! -s conftest.err'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; } &&
5460 { ac_try
='test -s conftest.$ac_objext'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5466 ac_cv_type_off_t
=yes
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.
$ac_ext >&5
5473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5475 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5476 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5477 if test $ac_cv_type_off_t = yes; then
5481 cat >>confdefs.h
<<_ACEOF
5487 echo "$as_me:$LINENO: checking for pid_t" >&5
5488 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5489 if test "${ac_cv_type_pid_t+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 cat >conftest.
$ac_ext <<_ACEOF
5495 cat confdefs.h
>>conftest.
$ac_ext
5496 cat >>conftest.
$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5510 rm -f conftest.
$ac_objext
5511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5512 (eval $ac_compile) 2>conftest.er1
5514 grep -v '^ *+' conftest.er1
>conftest.err
5516 cat conftest.err
>&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try
='test -z "$ac_c_werror_flag"
5520 || test ! -s conftest.err'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; } &&
5526 { ac_try
='test -s conftest.$ac_objext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_type_pid_t
=yes
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.
$ac_ext >&5
5539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5541 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5542 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5543 if test $ac_cv_type_pid_t = yes; then
5547 cat >>confdefs.h
<<_ACEOF
5553 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5554 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5555 if test "${ac_cv_type_signal+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 cat >conftest.
$ac_ext <<_ACEOF
5561 cat confdefs.h
>>conftest.
$ac_ext
5562 cat >>conftest.
$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 #include <sys/types.h>
5570 extern "C" void (*signal (int, void (*)(int)))(int);
5572 void (*signal ()) ();
5583 rm -f conftest.
$ac_objext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>conftest.er1
5587 grep -v '^ *+' conftest.er1
>conftest.err
5589 cat conftest.err
>&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try
='test -z "$ac_c_werror_flag"
5593 || test ! -s conftest.err'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; } &&
5599 { ac_try
='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_type_signal
=void
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.
$ac_ext >&5
5610 ac_cv_type_signal
=int
5612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5614 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5615 echo "${ECHO_T}$ac_cv_type_signal" >&6
5617 cat >>confdefs.h
<<_ACEOF
5618 #define RETSIGTYPE $ac_cv_type_signal
5622 echo "$as_me:$LINENO: checking for size_t" >&5
5623 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5624 if test "${ac_cv_type_size_t+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 cat >conftest.
$ac_ext <<_ACEOF
5630 cat confdefs.h
>>conftest.
$ac_ext
5631 cat >>conftest.
$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 $ac_includes_default
5639 if (sizeof (size_t))
5645 rm -f conftest.
$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647 (eval $ac_compile) 2>conftest.er1
5649 grep -v '^ *+' conftest.er1
>conftest.err
5651 cat conftest.err
>&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try
='test -z "$ac_c_werror_flag"
5655 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try
='test -s conftest.$ac_objext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_type_size_t
=yes
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.
$ac_ext >&5
5672 ac_cv_type_size_t
=no
5674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5676 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5677 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5678 if test $ac_cv_type_size_t = yes; then
5682 cat >>confdefs.h
<<_ACEOF
5683 #define size_t unsigned
5688 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5689 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5690 if test "${ac_cv_type_uid_t+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 cat >conftest.
$ac_ext <<_ACEOF
5696 cat confdefs.h
>>conftest.
$ac_ext
5697 cat >>conftest.
$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #include <sys/types.h>
5702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5703 $EGREP "uid_t" >/dev
/null
2>&1; then
5704 ac_cv_type_uid_t
=yes
5711 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5712 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5713 if test $ac_cv_type_uid_t = no
; then
5715 cat >>confdefs.h
<<\_ACEOF
5720 cat >>confdefs.h
<<\_ACEOF
5777 for ac_func
in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir
chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl
kill link lseek lstat mkdir pipe readlink
rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp
time umask unlink
5779 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5780 echo "$as_me:$LINENO: checking for $ac_func" >&5
5781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_var+set}\" = set"; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 cat >conftest.
$ac_ext <<_ACEOF
5788 cat confdefs.h
>>conftest.
$ac_ext
5789 cat >>conftest.
$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5793 #define $ac_func innocuous_$ac_func
5795 /* System header to define __stub macros and hopefully few prototypes,
5796 which can conflict with char $ac_func (); below.
5797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798 <limits.h> exists even on freestanding compilers. */
5801 # include <limits.h>
5803 # include <assert.h>
5808 /* Override any gcc2 internal prototype to avoid an error. */
5813 /* We use char because int might match the return type of a gcc2
5814 builtin and then its argument prototype would still apply. */
5816 /* The GNU C library defines this for functions which it implements
5817 to always fail with ENOSYS. Some functions are actually named
5818 something starting with __ and the normal name is an alias. */
5819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5822 char (*f) () = $ac_func;
5831 return f != $ac_func;
5836 rm -f conftest.
$ac_objext conftest
$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1
>conftest.err
5842 cat conftest.err
>&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try
='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try
='test -s conftest$ac_exeext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 eval "$as_ac_var=yes"
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.
$ac_ext >&5
5863 eval "$as_ac_var=no"
5865 rm -f conftest.err conftest.
$ac_objext \
5866 conftest
$ac_exeext conftest.
$ac_ext
5868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5870 if test `eval echo '${'$as_ac_var'}'` = yes; then
5871 cat >>confdefs.h
<<_ACEOF
5872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5897 for ac_header
in fcntl.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mount.h sys
/param.h sys
/resource.h sys
/stat.h sys
/termio.h sys
/termios.h sys
/time.h sys
/times.h sys
/types.h
time.h unistd.h sys
/vfs.h sys
/statfs.h
5899 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5901 echo "$as_me:$LINENO: checking for $ac_header" >&5
5902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5909 # Is the header compilable?
5910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5912 cat >conftest.
$ac_ext <<_ACEOF
5915 cat confdefs.h
>>conftest.
$ac_ext
5916 cat >>conftest.
$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919 #include <$ac_header>
5921 rm -f conftest.
$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>conftest.er1
5925 grep -v '^ *+' conftest.er1
>conftest.err
5927 cat conftest.err
>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try
='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try
='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_header_compiler
=yes
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.
$ac_ext >&5
5948 ac_header_compiler
=no
5950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5952 echo "${ECHO_T}$ac_header_compiler" >&6
5954 # Is the header present?
5955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5957 cat >conftest.
$ac_ext <<_ACEOF
5960 cat confdefs.h
>>conftest.
$ac_ext
5961 cat >>conftest.
$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <$ac_header>
5965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5966 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5968 grep -v '^ *+' conftest.er1
>conftest.err
5970 cat conftest.err
>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } >/dev
/null
; then
5973 if test -s conftest.err
; then
5974 ac_cpp_err
=$ac_c_preproc_warn_flag
5975 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5982 if test -z "$ac_cpp_err"; then
5983 ac_header_preproc
=yes
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.
$ac_ext >&5
5988 ac_header_preproc
=no
5990 rm -f conftest.err conftest.
$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5992 echo "${ECHO_T}$ac_header_preproc" >&6
5994 # So? What about this header?
5995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6001 ac_header_preproc
=yes
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6018 ## ------------------------------------------ ##
6019 ## Report this to the AC_PACKAGE_NAME lists. ##
6020 ## ------------------------------------------ ##
6023 sed "s/^/$as_me: WARNING: /" >&2
6026 echo "$as_me:$LINENO: checking for $ac_header" >&5
6027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 eval "$as_ac_Header=\$ac_header_preproc"
6033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6038 cat >>confdefs.h
<<_ACEOF
6039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6053 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6054 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6055 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 cat >conftest.
$ac_ext <<_ACEOF
6062 cat confdefs.h
>>conftest.
$ac_ext
6063 cat >>conftest.
$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 #include <sys/types.h>
6077 rm -f conftest.
$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079 (eval $ac_compile) 2>conftest.er1
6081 grep -v '^ *+' conftest.er1
>conftest.err
6083 cat conftest.err
>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try
='test -z "$ac_c_werror_flag"
6087 || test ! -s conftest.err'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try
='test -s conftest.$ac_objext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 eval "$as_ac_Header=yes"
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.
$ac_ext >&5
6104 eval "$as_ac_Header=no"
6106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6111 cat >>confdefs.h
<<_ACEOF
6112 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6115 ac_header_dirent
=$ac_hdr; break
6119 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6120 if test $ac_header_dirent = dirent.h
; then
6121 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6122 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6123 if test "${ac_cv_search_opendir+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 ac_func_search_save_LIBS
=$LIBS
6127 ac_cv_search_opendir
=no
6128 cat >conftest.
$ac_ext <<_ACEOF
6131 cat confdefs.h
>>conftest.
$ac_ext
6132 cat >>conftest.
$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6135 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6150 rm -f conftest.
$ac_objext conftest
$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>conftest.er1
6154 grep -v '^ *+' conftest.er1
>conftest.err
6156 cat conftest.err
>&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try
='test -z "$ac_c_werror_flag"
6160 || test ! -s conftest.err'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; } &&
6166 { ac_try
='test -s conftest$ac_exeext'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_cv_search_opendir
="none required"
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.
$ac_ext >&5
6178 rm -f conftest.err conftest.
$ac_objext \
6179 conftest
$ac_exeext conftest.
$ac_ext
6180 if test "$ac_cv_search_opendir" = no
; then
6181 for ac_lib
in dir
; do
6182 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6183 cat >conftest.
$ac_ext <<_ACEOF
6186 cat confdefs.h
>>conftest.
$ac_ext
6187 cat >>conftest.
$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6190 /* Override any gcc2 internal prototype to avoid an error. */
6194 /* We use char because int might match the return type of a gcc2
6195 builtin and then its argument prototype would still apply. */
6205 rm -f conftest.
$ac_objext conftest
$ac_exeext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6207 (eval $ac_link) 2>conftest.er1
6209 grep -v '^ *+' conftest.er1
>conftest.err
6211 cat conftest.err
>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try
='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try
='test -s conftest$ac_exeext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 ac_cv_search_opendir
="-l$ac_lib"
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.
$ac_ext >&5
6234 rm -f conftest.err conftest.
$ac_objext \
6235 conftest
$ac_exeext conftest.
$ac_ext
6238 LIBS
=$ac_func_search_save_LIBS
6240 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6241 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6242 if test "$ac_cv_search_opendir" != no
; then
6243 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
6248 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6249 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6250 if test "${ac_cv_search_opendir+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 ac_func_search_save_LIBS
=$LIBS
6254 ac_cv_search_opendir
=no
6255 cat >conftest.
$ac_ext <<_ACEOF
6258 cat confdefs.h
>>conftest.
$ac_ext
6259 cat >>conftest.
$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6262 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6277 rm -f conftest.
$ac_objext conftest
$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279 (eval $ac_link) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try
='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try
='test -s conftest$ac_exeext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_search_opendir
="none required"
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.
$ac_ext >&5
6305 rm -f conftest.err conftest.
$ac_objext \
6306 conftest
$ac_exeext conftest.
$ac_ext
6307 if test "$ac_cv_search_opendir" = no
; then
6309 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6310 cat >conftest.
$ac_ext <<_ACEOF
6313 cat confdefs.h
>>conftest.
$ac_ext
6314 cat >>conftest.
$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6317 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6332 rm -f conftest.
$ac_objext conftest
$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>conftest.er1
6336 grep -v '^ *+' conftest.er1
>conftest.err
6338 cat conftest.err
>&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try
='test -z "$ac_c_werror_flag"
6342 || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try
='test -s conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_cv_search_opendir
="-l$ac_lib"
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.
$ac_ext >&5
6361 rm -f conftest.err conftest.
$ac_objext \
6362 conftest
$ac_exeext conftest.
$ac_ext
6365 LIBS
=$ac_func_search_save_LIBS
6367 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6368 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6369 if test "$ac_cv_search_opendir" != no
; then
6370 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
6378 echo "$as_me:$LINENO: checking for struct termios" >&5
6379 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
6380 if test "${ac_cv_termios_struct+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 cat >conftest.
$ac_ext <<_ACEOF
6386 cat confdefs.h
>>conftest.
$ac_ext
6387 cat >>conftest.
$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 #include <sys/types.h>
6390 #include <sys/termios.h>
6394 static struct termios x;
6404 rm -f conftest.
$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6408 grep -v '^ *+' conftest.er1
>conftest.err
6410 cat conftest.err
>&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try
='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try
='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_termios_struct
=yes
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.
$ac_ext >&5
6431 ac_cv_termios_struct
=no
6433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6436 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
6437 echo "${ECHO_T}$ac_cv_termios_struct" >&6
6438 if test $ac_cv_termios_struct = yes; then
6439 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
6442 if test "$ac_cv_termios_struct" = "yes"; then
6443 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
6444 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
6445 if test "${ac_cv_termios_cline+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 cat >conftest.
$ac_ext <<_ACEOF
6451 cat confdefs.h
>>conftest.
$ac_ext
6452 cat >>conftest.
$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <sys/termios.h>
6459 static struct termios x; x.c_line = 0;
6464 rm -f conftest.
$ac_objext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6466 (eval $ac_compile) 2>conftest.er1
6468 grep -v '^ *+' conftest.er1
>conftest.err
6470 cat conftest.err
>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try
='test -z "$ac_c_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try
='test -s conftest.$ac_objext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 ac_cv_termios_cline
=yes
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.
$ac_ext >&5
6491 ac_cv_termios_cline
=no
6493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6497 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
6498 echo "${ECHO_T}$ac_cv_termios_cline" >&6
6499 if test $ac_cv_termios_cline = yes; then
6500 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
6503 ac_cv_termios_cline
=no
6506 if test "$ac_cv_termios_struct" != "yes"; then
6507 echo "$as_me:$LINENO: checking for struct termio" >&5
6508 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
6509 if test "${ac_cv_termio_struct+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 cat >conftest.
$ac_ext <<_ACEOF
6515 cat confdefs.h
>>conftest.
$ac_ext
6516 cat >>conftest.
$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 #include <sys/types.h>
6519 #include <sys/termio.h>
6523 static struct termio x;
6533 rm -f conftest.
$ac_objext
6534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6535 (eval $ac_compile) 2>conftest.er1
6537 grep -v '^ *+' conftest.er1
>conftest.err
6539 cat conftest.err
>&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try
='test -z "$ac_c_werror_flag"
6543 || test ! -s conftest.err'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try
='test -s conftest.$ac_objext'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 ac_cv_termio_struct
=yes
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.
$ac_ext >&5
6560 ac_cv_termio_struct
=no
6562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
6566 echo "${ECHO_T}$ac_cv_termio_struct" >&6
6567 if test $ac_cv_termio_struct = yes; then
6568 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
6571 ac_cv_termio_struct
=no
6574 if test "$ac_cv_termio_struct" = "yes"; then
6575 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
6576 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
6577 if test "${ac_cv_termio_cline+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 cat >conftest.
$ac_ext <<_ACEOF
6583 cat confdefs.h
>>conftest.
$ac_ext
6584 cat >>conftest.
$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <sys/types.h>
6587 #include <sys/termio.h>
6591 static struct termio x; x.c_line = 0;
6596 rm -f conftest.
$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>conftest.er1
6600 grep -v '^ *+' conftest.er1
>conftest.err
6602 cat conftest.err
>&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try
='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try
='test -s conftest.$ac_objext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_termio_cline
=yes
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.
$ac_ext >&5
6623 ac_cv_termio_cline
=no
6625 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6630 echo "${ECHO_T}$ac_cv_termio_cline" >&6
6631 if test $ac_cv_termio_cline = yes; then
6632 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
6635 ac_cv_termio_cline
=no
6638 echo "$as_me:$LINENO: checking for struct statfs" >&5
6639 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6640 if test "${ac_cv_struct_statfs+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 cat >conftest.
$ac_ext <<_ACEOF
6646 cat confdefs.h
>>conftest.
$ac_ext
6647 cat >>conftest.
$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 #include <sys/types.h>
6650 #ifdef HAVE_SYS_PARAM_H
6651 #include <sys/param.h>
6653 #ifdef HAVE_SYS_MOUNT_H
6654 #include <sys/mount.h>
6656 #ifdef HAVE_SYS_VFS_H
6657 #include <sys/vfs.h>
6659 #ifdef HAVE_SYS_STATFS_H
6660 #include <sys/statfs.h>
6665 static struct statfs s;
6670 rm -f conftest.
$ac_objext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>conftest.er1
6674 grep -v '^ *+' conftest.er1
>conftest.err
6676 cat conftest.err
>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try
='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try
='test -s conftest.$ac_objext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_cv_struct_statfs
=yes
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.
$ac_ext >&5
6697 ac_cv_struct_statfs
=no
6699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6703 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6704 if test $ac_cv_struct_statfs = yes; then
6706 cat >>confdefs.h
<<\_ACEOF
6707 #define HAVE_STRUCT_STATFS 1
6712 echo "$as_me:$LINENO: checking for long long" >&5
6713 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6714 if test "${ac_cv_type_long_long+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.
$ac_ext <<_ACEOF
6720 cat confdefs.h
>>conftest.
$ac_ext
6721 cat >>conftest.
$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 $ac_includes_default
6727 if ((long long *) 0)
6729 if (sizeof (long long))
6735 rm -f conftest.
$ac_objext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>conftest.er1
6739 grep -v '^ *+' conftest.er1
>conftest.err
6741 cat conftest.err
>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try
='test -z "$ac_c_werror_flag"
6745 || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try
='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 ac_cv_type_long_long
=yes
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.
$ac_ext >&5
6762 ac_cv_type_long_long
=no
6764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6766 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6767 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6768 if test $ac_cv_type_long_long = yes; then
6770 cat >>confdefs.h
<<_ACEOF
6771 #define HAVE_LONG_LONG 1
6779 echo "$as_me:$LINENO: checking for /dev/zero" >&5
6780 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6781 if test "${ac_cv_devzero+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 if test "$cross_compiling" = yes; then
6787 cat >conftest.
$ac_ext <<_ACEOF
6790 cat confdefs.h
>>conftest.
$ac_ext
6791 cat >>conftest.
$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6797 int fd = open ("/dev/zero", O_RDONLY);
6800 for (i = 0; i < sizeof (buf); i++)
6802 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6804 for (i = 0; i < sizeof (buf); i++)
6810 rm -f conftest
$ac_exeext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6812 (eval $ac_link) 2>&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6823 echo "$as_me: program exited with status $ac_status" >&5
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.
$ac_ext >&5
6830 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6834 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6835 echo "${ECHO_T}$ac_cv_devzero" >&6
6836 if test $ac_cv_devzero = yes; then
6837 sim_devzero
="-DHAVE_DEVZERO"
6842 echo "$as_me:$LINENO: checking for common simulator directory" >&5
6843 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6844 if test -f "${srcdir}/../common/callback.c"; then
6845 echo "$as_me:$LINENO: result: yes" >&5
6846 echo "${ECHO_T}yes" >&6
6847 sim_callback
="callback.o targ-map.o"
6848 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
6850 echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6
6856 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6857 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6858 if test -f "${srcdir}/../common/sim-fpu.c"; then
6859 echo "$as_me:$LINENO: result: yes" >&5
6860 echo "${ECHO_T}yes" >&6
6861 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6864 echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6880 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6881 echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6883 if test "${ac_cv_prog_RANLIB+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 if test -n "$RANLIB"; then
6887 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir
=.
6894 for ac_exec_ext
in '' $ac_executable_extensions; do
6895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 RANLIB
=$ac_cv_prog_RANLIB
6906 if test -n "$RANLIB"; then
6907 echo "$as_me:$LINENO: result: $RANLIB" >&5
6908 echo "${ECHO_T}$RANLIB" >&6
6910 echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6
6915 if test -z "$ac_cv_prog_RANLIB"; then
6916 ac_ct_RANLIB
=$RANLIB
6917 # Extract the first word of "ranlib", so it can be a program name with args.
6918 set dummy ranlib
; ac_word
=$2
6919 echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 if test -n "$ac_ct_RANLIB"; then
6925 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir
=.
6932 for ac_exec_ext
in '' $ac_executable_extensions; do
6933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6944 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6945 if test -n "$ac_ct_RANLIB"; then
6946 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6947 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6949 echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6
6953 RANLIB
=$ac_ct_RANLIB
6955 RANLIB
="$ac_cv_prog_RANLIB"
7003 ac_config_files
="$ac_config_files Makefile"
7004 ac_config_commands
="$ac_config_commands default"
7005 cat >confcache
<<\_ACEOF
7006 # This file is a shell script that caches the results of configure
7007 # tests run on this system so they can be shared between configure
7008 # scripts and configure runs, see configure's option --config-cache.
7009 # It is not useful on other systems. If it contains results you don't
7010 # want to keep, you may remove or edit it.
7012 # config.status only pays attention to the cache file if you give it
7013 # the --recheck option to rerun configure.
7015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7021 # The following way of writing the cache mishandles newlines in values,
7022 # but we know of no workaround that is simple, portable, and efficient.
7023 # So, don't put newlines in cache variables' values.
7024 # Ultrix sh set writes to stderr and can't be redirected directly,
7025 # and sets the high bit in the cache file unless we assign to the vars.
7028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7030 # `set' does not quote correctly, so add quotes (double-quote
7031 # substitution turns \\\\ into \\, and sed turns \\ into \).
7034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7037 # `set' quotes correctly as required by POSIX, so do not add quotes.
7039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7048 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7050 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7051 if test -w $cache_file; then
7052 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7053 cat confcache
>$cache_file
7055 echo "not updating unwritable cache $cache_file"
7060 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7061 # Let make expand exec_prefix.
7062 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7066 # trailing colons and then remove the whole line if VPATH becomes empty
7067 # (actually we leave an empty line to preserve line numbers).
7068 if test "x$srcdir" = x.
; then
7069 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7070 s/:*\$(srcdir):*/:/;
7071 s/:*\${srcdir}:*/:/;
7073 s/^\([^=]*=[ ]*\):*/\1/;
7079 DEFS
=-DHAVE_CONFIG_H
7083 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7084 # 1. Remove the extension, and $U if already installed.
7085 ac_i
=`echo "$ac_i" |
7086 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7088 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7089 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7093 LTLIBOBJS
=$ac_ltlibobjs
7097 : ${CONFIG_STATUS=./config.status}
7098 ac_clean_files_save
=$ac_clean_files
7099 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7100 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7101 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7102 cat >$CONFIG_STATUS <<_ACEOF
7104 # Generated by $as_me.
7105 # Run this file to recreate the current configuration.
7106 # Compiler output produced by configure, useful for debugging
7107 # configure, is in config.log if it exists.
7112 SHELL=\${CONFIG_SHELL-$SHELL}
7115 cat >>$CONFIG_STATUS <<\_ACEOF
7116 ## --------------------- ##
7117 ## M4sh Initialization. ##
7118 ## --------------------- ##
7120 # Be Bourne compatible
7121 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7124 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7125 # is contrary to our usage. Disable this feature.
7126 alias -g '${1+"$@"}'='"$@"'
7127 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7130 DUALCASE
=1; export DUALCASE
# for MKS sh
7132 # Support unset when possible.
7133 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7140 # Work around bugs in pre-3.0 UWIN ksh.
7141 $as_unset ENV MAIL MAILPATH
7148 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7149 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7150 LC_TELEPHONE LC_TIME
7152 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7153 eval $as_var=C
; export $as_var
7159 # Required to use basename.
7160 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7166 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7167 as_basename
=basename
7173 # Name of the executable.
7174 as_me
=`$as_basename "$0" ||
7175 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7176 X"$0" : 'X\(//\)$' \| \
7177 X"$0" : 'X\(/\)$' \| \
7178 . : '\(.\)' 2>/dev/null ||
7180 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7181 /^X\/\(\/\/\)$/{ s//\1/; q; }
7182 /^X\/\(\/\).*/{ s//\1/; q; }
7186 # PATH needs CR, and LINENO needs CR and PATH.
7187 # Avoid depending upon Character Ranges.
7188 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7189 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7190 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7191 as_cr_digits
='0123456789'
7192 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7194 # The user is always right.
7195 if test "${PATH_SEPARATOR+set}" != set; then
7196 echo "#! /bin/sh" >conf$$.sh
7197 echo "exit 0" >>conf$$.sh
7199 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7210 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7211 test "x$as_lineno_1" != "x$as_lineno_2" &&
7212 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7213 # Find who we are. Look in the path if we contain no path at all
7216 *[\\/]* ) as_myself
=$0 ;;
7217 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir
=.
7222 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7227 # We did not find ourselves, most probably we were run as `sh COMMAND'
7228 # in which case we are not to be found in the path.
7229 if test "x$as_myself" = x
; then
7232 if test ! -f "$as_myself"; then
7233 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7234 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7235 { (exit 1); exit 1; }; }
7237 case $CONFIG_SHELL in
7239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7240 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7243 test -z "$as_dir" && as_dir
=.
7244 for as_base
in sh bash ksh sh5
; do
7247 if ("$as_dir/$as_base" -c '
7250 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7251 test "x$as_lineno_1" != "x$as_lineno_2" &&
7252 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7253 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7254 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7255 CONFIG_SHELL
=$as_dir/$as_base
7257 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7265 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7266 # uniformly replaced by the line number. The first 'sed' inserts a
7267 # line-number line before each line; the second 'sed' does the real
7268 # work. The second script uses 'N' to pair each line-number line
7269 # with the numbered line, and appends trailing '-' during
7270 # substitution so that $LINENO is not a special case at line end.
7271 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7272 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7273 sed '=' <$as_myself |
7278 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7281 s,^['$as_cr_digits']*\n,,
7283 chmod +x
$as_me.lineno ||
7284 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7285 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7286 { (exit 1); exit 1; }; }
7288 # Don't try to exec as it changes $[0], causing all sort of problems
7289 # (the dirname of $[0] is not the place where we might find the
7290 # original and so on. Autoconf is especially sensible to this).
7292 # Exit status is that of the last command.
7297 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7298 *c
*,-n*) ECHO_N
= ECHO_C
='
7300 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7301 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7304 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7310 rm -f conf$$ conf$$.exe conf$$.
file
7312 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7313 # We could just check for DJGPP; but this test a) works b) is more generic
7314 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7315 if test -f conf$$.exe
; then
7316 # Don't use ln at all; we don't have any links
7321 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7326 rm -f conf$$ conf$$.exe conf$$.
file
7328 if mkdir
-p .
2>/dev
/null
; then
7331 test -d .
/-p && rmdir .
/-p
7335 as_executable_p
="test -f"
7337 # Sed expression to map a string onto a valid CPP name.
7338 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7340 # Sed expression to map a string onto a valid variable name.
7341 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7345 # We need space, tab and new line, in precisely that order.
7355 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7356 # report actual input values of CONFIG_FILES etc. instead of their
7357 # values after options handling. Logging --version etc. is OK.
7361 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7362 ## Running $as_me. ##
7367 This file was extended by $as_me, which was
7368 generated by GNU Autoconf 2.59. Invocation command line was
7370 CONFIG_FILES = $CONFIG_FILES
7371 CONFIG_HEADERS = $CONFIG_HEADERS
7372 CONFIG_LINKS = $CONFIG_LINKS
7373 CONFIG_COMMANDS = $CONFIG_COMMANDS
7377 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7381 # Files that config.status was made for.
7382 if test -n "$ac_config_files"; then
7383 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7386 if test -n "$ac_config_headers"; then
7387 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7390 if test -n "$ac_config_links"; then
7391 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7394 if test -n "$ac_config_commands"; then
7395 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7398 cat >>$CONFIG_STATUS <<\_ACEOF
7401 \`$as_me' instantiates files from templates according to the
7402 current configuration.
7404 Usage: $0 [OPTIONS] [FILE]...
7406 -h, --help print this help, then exit
7407 -V, --version print version number, then exit
7408 -q, --quiet do not print progress messages
7409 -d, --debug don't remove temporary files
7410 --recheck update $as_me by reconfiguring in the same conditions
7411 --file=FILE[:TEMPLATE]
7412 instantiate the configuration file FILE
7413 --header=FILE[:TEMPLATE]
7414 instantiate the configuration header FILE
7416 Configuration files:
7419 Configuration headers:
7422 Configuration commands:
7425 Report bugs to <bug-autoconf@gnu.org>."
7428 cat >>$CONFIG_STATUS <<_ACEOF
7431 configured by $0, generated by GNU Autoconf 2.59,
7432 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7434 Copyright (C) 2003 Free Software Foundation, Inc.
7435 This config.status script is free software; the Free Software Foundation
7436 gives unlimited permission to copy, distribute and modify it."
7441 cat >>$CONFIG_STATUS <<\_ACEOF
7442 # If no file are specified by the user, then we need to provide default
7443 # value. By we need to know if files were specified by the user.
7449 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7450 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7458 *) # This is not an option, so the user has probably given explicit
7461 ac_need_defaults
=false
;;
7465 # Handling of the options.
7467 cat >>$CONFIG_STATUS <<\_ACEOF
7468 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7470 --version |
--vers* |
-V )
7471 echo "$ac_cs_version"; exit 0 ;;
7473 # Conflict between --help and --header
7474 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7475 Try \`$0 --help' for more information." >&5
7476 echo "$as_me: error: ambiguous option: $1
7477 Try \`$0 --help' for more information." >&2;}
7478 { (exit 1); exit 1; }; };;
7479 --help |
--hel |
-h )
7480 echo "$ac_cs_usage"; exit 0 ;;
7481 --debug |
--d* |
-d )
7483 --file |
--fil |
--fi |
--f )
7485 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7486 ac_need_defaults
=false
;;
7487 --header |
--heade |
--head |
--hea )
7489 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7490 ac_need_defaults
=false
;;
7491 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7492 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7496 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7497 Try \`$0 --help' for more information." >&5
7498 echo "$as_me: error: unrecognized option: $1
7499 Try \`$0 --help' for more information." >&2;}
7500 { (exit 1); exit 1; }; } ;;
7502 *) ac_config_targets
="$ac_config_targets $1" ;;
7508 ac_configure_extra_args
=
7510 if $ac_cs_silent; then
7512 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7516 cat >>$CONFIG_STATUS <<_ACEOF
7517 if \$ac_cs_recheck; then
7518 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7519 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7528 cat >>$CONFIG_STATUS <<\_ACEOF
7529 for ac_config_target
in $ac_config_targets
7531 case "$ac_config_target" in
7532 # Handling of arguments.
7533 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7534 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7535 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
7536 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7537 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7538 { (exit 1); exit 1; }; };;
7542 # If the user did not use the arguments to specify the items to instantiate,
7543 # then the envvar interface is used. Set only those that are not.
7544 # We use the long form for the default assignment because of an extremely
7545 # bizarre bug on SunOS 4.1.3.
7546 if $ac_need_defaults; then
7547 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7548 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7549 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7552 # Have a temporary directory for convenience. Make it in the build tree
7553 # simply because there is no reason to put it here, and in addition,
7554 # creating and moving files from /tmp can sometimes cause problems.
7555 # Create a temporary directory, and hook for its removal unless debugging.
7558 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7559 trap '{ (exit 1); exit 1; }' 1 2 13 15
7562 # Create a (secure) tmp directory for tmp files.
7565 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7566 test -n "$tmp" && test -d "$tmp"
7569 tmp
=.
/confstat$$
-$RANDOM
7570 (umask 077 && mkdir
$tmp)
7573 echo "$me: cannot create a temporary directory in ." >&2
7574 { (exit 1); exit 1; }
7579 cat >>$CONFIG_STATUS <<_ACEOF
7582 # CONFIG_FILES section.
7585 # No need to generate the scripts if there are no CONFIG_FILES.
7586 # This happens for instance when ./config.status config.h
7587 if test -n "\$CONFIG_FILES"; then
7588 # Protect against being on the right side of a sed subst in config.status.
7589 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7590 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7591 s,@sim_environment@,$sim_environment,;t t
7592 s,@sim_alignment@,$sim_alignment,;t t
7593 s,@sim_assert@,$sim_assert,;t t
7594 s,@sim_bitsize@,$sim_bitsize,;t t
7595 s,@sim_endian@,$sim_endian,;t t
7596 s,@sim_hostendian@,$sim_hostendian,;t t
7597 s,@sim_float@,$sim_float,;t t
7598 s,@sim_scache@,$sim_scache,;t t
7599 s,@sim_default_model@,$sim_default_model,;t t
7600 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7601 s,@sim_hw_objs@,$sim_hw_objs,;t t
7602 s,@sim_hw@,$sim_hw,;t t
7603 s,@sim_inline@,$sim_inline,;t t
7604 s,@sim_packages@,$sim_packages,;t t
7605 s,@sim_regparm@,$sim_regparm,;t t
7606 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7607 s,@sim_smp@,$sim_smp,;t t
7608 s,@sim_stdcall@,$sim_stdcall,;t t
7609 s,@sim_xor_endian@,$sim_xor_endian,;t t
7610 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7611 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7612 s,@SHELL@,$SHELL,;t t
7613 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7614 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7615 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7616 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7617 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7618 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7619 s,@exec_prefix@,$exec_prefix,;t t
7620 s,@prefix@,$prefix,;t t
7621 s,@program_transform_name@,$program_transform_name,;t t
7622 s,@bindir@,$bindir,;t t
7623 s,@sbindir@,$sbindir,;t t
7624 s,@libexecdir@,$libexecdir,;t t
7625 s,@datadir@,$datadir,;t t
7626 s,@sysconfdir@,$sysconfdir,;t t
7627 s,@sharedstatedir@,$sharedstatedir,;t t
7628 s,@localstatedir@,$localstatedir,;t t
7629 s,@libdir@,$libdir,;t t
7630 s,@includedir@,$includedir,;t t
7631 s,@oldincludedir@,$oldincludedir,;t t
7632 s,@infodir@,$infodir,;t t
7633 s,@mandir@,$mandir,;t t
7634 s,@build_alias@,$build_alias,;t t
7635 s,@host_alias@,$host_alias,;t t
7636 s,@target_alias@,$target_alias,;t t
7638 s,@ECHO_C@,$ECHO_C,;t t
7639 s,@ECHO_N@,$ECHO_N,;t t
7640 s,@ECHO_T@,$ECHO_T,;t t
7642 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7643 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7644 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7646 s,@CFLAGS@,$CFLAGS,;t t
7647 s,@LDFLAGS@,$LDFLAGS,;t t
7648 s,@CPPFLAGS@,$CPPFLAGS,;t t
7649 s,@ac_ct_CC@,$ac_ct_CC,;t t
7650 s,@EXEEXT@,$EXEEXT,;t t
7651 s,@OBJEXT@,$OBJEXT,;t t
7652 s,@USE_NLS@,$USE_NLS,;t t
7653 s,@LIBINTL@,$LIBINTL,;t t
7654 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7655 s,@INCINTL@,$INCINTL,;t t
7656 s,@XGETTEXT@,$XGETTEXT,;t t
7657 s,@GMSGFMT@,$GMSGFMT,;t t
7658 s,@POSUB@,$POSUB,;t t
7659 s,@CATALOGS@,$CATALOGS,;t t
7660 s,@DATADIRNAME@,$DATADIRNAME,;t t
7661 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7662 s,@GENCAT@,$GENCAT,;t t
7663 s,@CATOBJEXT@,$CATOBJEXT,;t t
7664 s,@PKGVERSION@,$PKGVERSION,;t t
7665 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
7666 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
7667 s,@build@,$build,;t t
7668 s,@build_cpu@,$build_cpu,;t t
7669 s,@build_vendor@,$build_vendor,;t t
7670 s,@build_os@,$build_os,;t t
7672 s,@host_cpu@,$host_cpu,;t t
7673 s,@host_vendor@,$host_vendor,;t t
7674 s,@host_os@,$host_os,;t t
7675 s,@target@,$target,;t t
7676 s,@target_cpu@,$target_cpu,;t t
7677 s,@target_vendor@,$target_vendor,;t t
7678 s,@target_os@,$target_os,;t t
7680 s,@EGREP@,$EGREP,;t t
7681 s,@LIBOBJS@,$LIBOBJS,;t t
7682 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7683 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7684 s,@HDEFINES@,$HDEFINES,;t t
7686 s,@RANLIB@,$RANLIB,;t t
7687 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7688 s,@sim_cflags@,$sim_cflags,;t t
7689 s,@sim_warnings@,$sim_warnings,;t t
7690 s,@sim_line_nr@,$sim_line_nr,;t t
7691 s,@sim_config@,$sim_config,;t t
7692 s,@sim_opcode@,$sim_opcode,;t t
7693 s,@sim_switch@,$sim_switch,;t t
7694 s,@sim_dup@,$sim_dup,;t t
7695 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7696 s,@sim_jump@,$sim_jump,;t t
7697 s,@sim_filter@,$sim_filter,;t t
7698 s,@sim_icache@,$sim_icache,;t t
7699 s,@sim_hw_src@,$sim_hw_src,;t t
7700 s,@sim_hw_obj@,$sim_hw_obj,;t t
7701 s,@sim_pk_src@,$sim_pk_src,;t t
7702 s,@sim_pk_obj@,$sim_pk_obj,;t t
7703 s,@sim_bswap@,$sim_bswap,;t t
7704 s,@sim_igen_smp@,$sim_igen_smp,;t t
7705 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7706 s,@sim_env@,$sim_env,;t t
7707 s,@sim_timebase@,$sim_timebase,;t t
7708 s,@sim_trace@,$sim_trace,;t t
7709 s,@sim_reserved@,$sim_reserved,;t t
7710 s,@sim_monitor@,$sim_monitor,;t t
7711 s,@sim_model@,$sim_model,;t t
7712 s,@sim_model_issue@,$sim_model_issue,;t t
7713 s,@sim_stdio@,$sim_stdio,;t t
7714 s,@sim_termio@,$sim_termio,;t t
7715 s,@sim_devzero@,$sim_devzero,;t t
7716 s,@sim_callback@,$sim_callback,;t t
7717 s,@sim_targ_vals@,$sim_targ_vals,;t t
7718 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7719 s,@sim_fpu@,$sim_fpu,;t t
7720 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7725 cat >>$CONFIG_STATUS <<\_ACEOF
7726 # Split the substitutions into bite-sized pieces for seds with
7727 # small command number limits, like on Digital OSF/1 and HP-UX.
7729 ac_sed_frag
=1 # Number of current file.
7730 ac_beg
=1 # First line for current file.
7731 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7734 while $ac_more_lines; do
7735 if test $ac_beg -gt 1; then
7736 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7738 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7740 if test ! -s $tmp/subs.frag
; then
7743 # The purpose of the label and of the branching condition is to
7744 # speed up the sed processing (if there are no `@' at all, there
7745 # is no need to browse any of the substitutions).
7746 # These are the two extra sed commands mentioned above.
7748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7749 if test -z "$ac_sed_cmds"; then
7750 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7752 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7754 ac_sed_frag
=`expr $ac_sed_frag + 1`
7756 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7759 if test -z "$ac_sed_cmds"; then
7762 fi # test -n "$CONFIG_FILES"
7765 cat >>$CONFIG_STATUS <<\_ACEOF
7766 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7769 - |
*:- |
*:-:* ) # input from stdin
7771 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7772 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7773 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7774 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7775 * ) ac_file_in
=$ac_file.
in ;;
7778 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7779 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7780 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7781 X"$ac_file" : 'X\(//\)[^/]' \| \
7782 X"$ac_file" : 'X\(//\)$' \| \
7783 X"$ac_file" : 'X\(/\)' \| \
7784 . : '\(.\)' 2>/dev/null ||
7786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7788 /^X\(\/\/\)$/{ s//\1/; q; }
7789 /^X\(\/\).*/{ s//\1/; q; }
7791 { if $as_mkdir_p; then
7796 while test ! -d "$as_dir"; do
7797 as_dirs
="$as_dir $as_dirs"
7798 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7800 X"$as_dir" : 'X\(//\)[^/]' \| \
7801 X"$as_dir" : 'X\(//\)$' \| \
7802 X"$as_dir" : 'X\(/\)' \| \
7803 . : '\(.\)' 2>/dev/null ||
7805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7807 /^X\(\/\/\)$/{ s//\1/; q; }
7808 /^X\(\/\).*/{ s//\1/; q; }
7811 test ! -n "$as_dirs" || mkdir
$as_dirs
7812 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7813 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7814 { (exit 1); exit 1; }; }; }
7818 if test "$ac_dir" != .
; then
7819 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7820 # A "../" for each directory in $ac_dir_suffix.
7821 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7823 ac_dir_suffix
= ac_top_builddir
=
7827 .
) # No --srcdir option. We are building in place.
7829 if test -z "$ac_top_builddir"; then
7832 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7834 [\\/]* | ?
:[\\/]* ) # Absolute path.
7835 ac_srcdir
=$srcdir$ac_dir_suffix;
7836 ac_top_srcdir
=$srcdir ;;
7838 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7839 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7842 # Do not use `cd foo && pwd` to compute absolute paths, because
7843 # the directories may not exist.
7845 .
) ac_abs_builddir
="$ac_dir";;
7848 .
) ac_abs_builddir
=`pwd`;;
7849 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7850 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7853 case $ac_abs_builddir in
7854 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7856 case ${ac_top_builddir}.
in
7857 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7858 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7859 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7862 case $ac_abs_builddir in
7863 .
) ac_abs_srcdir
=$ac_srcdir;;
7866 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7867 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7868 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7871 case $ac_abs_builddir in
7872 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7874 case $ac_top_srcdir in
7875 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7876 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7877 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7883 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7884 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7887 if test x
"$ac_file" != x-
; then
7888 { echo "$as_me:$LINENO: creating $ac_file" >&5
7889 echo "$as_me: creating $ac_file" >&6;}
7892 # Let's still pretend it is `configure' which instantiates (i.e., don't
7893 # use $as_me), people would be surprised to read:
7894 # /* config.h. Generated by config.status. */
7895 if test x
"$ac_file" = x-
; then
7898 configure_input
="$ac_file. "
7900 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7901 sed 's,.*/,,'` by configure."
7903 # First look for the input files in the build tree, otherwise in the
7905 ac_file_inputs
=`IFS=:
7906 for f in $ac_file_in; do
7908 -) echo $tmp/stdin ;;
7910 # Absolute (can't be DOS-style, as IFS=:)
7911 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7912 echo "$as_me: error: cannot find input file: $f" >&2;}
7913 { (exit 1); exit 1; }; }
7916 if test -f "$f"; then
7919 elif test -f "$srcdir/$f"; then
7924 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7925 echo "$as_me: error: cannot find input file: $f" >&2;}
7926 { (exit 1); exit 1; }; }
7929 done` ||
{ (exit 1); exit 1; }
7931 cat >>$CONFIG_STATUS <<_ACEOF
7935 cat >>$CONFIG_STATUS <<\_ACEOF
7937 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7938 s
,@configure_input@
,$configure_input,;t t
7939 s
,@srcdir@
,$ac_srcdir,;t t
7940 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7941 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7942 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7943 s
,@builddir@
,$ac_builddir,;t t
7944 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7945 s
,@top_builddir@
,$ac_top_builddir,;t t
7946 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7947 s
,@INSTALL@
,$ac_INSTALL,;t t
7948 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7950 if test x"$ac_file" != x-; then
7951 mv $tmp/out $ac_file
7959 cat >>$CONFIG_STATUS <<\_ACEOF
7962 # CONFIG_HEADER section.
7965 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7966 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7968 # ac_d sets the value in "#define NAME VALUE" lines.
7969 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7970 ac_dB
='[ ].*$,\1#\2'
7973 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7974 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7975 ac_uB
='$,\1#\2define\3'
7979 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7982 - |
*:- |
*:-:* ) # input from stdin
7984 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7985 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7986 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7987 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7988 * ) ac_file_in
=$ac_file.
in ;;
7991 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7992 echo "$as_me: creating $ac_file" >&6;}
7994 # First look for the input files in the build tree, otherwise in the
7996 ac_file_inputs
=`IFS=:
7997 for f in $ac_file_in; do
7999 -) echo $tmp/stdin ;;
8001 # Absolute (can't be DOS-style, as IFS=:)
8002 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8003 echo "$as_me: error: cannot find input file: $f" >&2;}
8004 { (exit 1); exit 1; }; }
8005 # Do quote $f, to prevent DOS paths from being IFS'd.
8008 if test -f "$f"; then
8011 elif test -f "$srcdir/$f"; then
8016 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8017 echo "$as_me: error: cannot find input file: $f" >&2;}
8018 { (exit 1); exit 1; }; }
8021 done` ||
{ (exit 1); exit 1; }
8022 # Remove the trailing spaces.
8023 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8027 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8028 # `conftest.undefs', that substitutes the proper values into
8029 # config.h.in to produce config.h. The first handles `#define'
8030 # templates, and the second `#undef' templates.
8031 # And first: Protect against being on the right side of a sed subst in
8032 # config.status. Protect against being in an unquoted here document
8034 rm -f conftest.defines conftest.undefs
8035 # Using a here document instead of a string reduces the quoting nightmare.
8036 # Putting comments in sed scripts is not portable.
8038 # `end' is used to avoid that the second main sed command (meant for
8039 # 0-ary CPP macros) applies to n-ary macro definitions.
8040 # See the Autoconf documentation for `clear'.
8041 cat >confdef2sed.
sed <<\_ACEOF
8046 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8048 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8051 # If some macros were called several times there might be several times
8052 # the same #defines, which is useless. Nevertheless, we may not want to
8053 # sort them, since we want the *last* AC-DEFINE to be honored.
8054 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8055 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8056 rm -f confdef2sed.sed
8058 # This sed command replaces #undef with comments. This is necessary, for
8059 # example, in the case of _POSIX_SOURCE, which is predefined and required
8060 # on some systems where configure will not decide to define it.
8061 cat >>conftest.undefs <<\_ACEOF
8062 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8065 # Break up conftest.defines because some shells have a limit on the size
8066 # of here documents, and old seds have small limits too (100 cmds).
8067 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8068 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8069 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8070 echo ' :' >>$CONFIG_STATUS
8072 while grep . conftest.defines >/dev/null
8074 # Write a limited-size here document to $tmp/defines.sed.
8075 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8076 # Speed up: don't consider the non `#define' lines.
8077 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8078 # Work around the forget-to-reset-the-flag bug.
8079 echo 't clr' >>$CONFIG_STATUS
8080 echo ': clr' >>$CONFIG_STATUS
8081 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8083 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8087 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8088 rm -f conftest.defines
8089 mv conftest.
tail conftest.defines
8091 rm -f conftest.defines
8092 echo ' fi # grep' >>$CONFIG_STATUS
8093 echo >>$CONFIG_STATUS
8095 # Break up conftest.undefs because some shells have a limit on the size
8096 # of here documents, and old seds have small limits too (100 cmds).
8097 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8099 while grep . conftest.undefs
>/dev
/null
8101 # Write a limited-size here document to $tmp/undefs.sed.
8102 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8103 # Speed up: don't consider the non
`#undef'
8104 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8105 # Work around the forget-to-reset-the-flag bug.
8106 echo 't clr' >>$CONFIG_STATUS
8107 echo ': clr' >>$CONFIG_STATUS
8108 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8110 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8114 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8115 rm -f conftest.undefs
8116 mv conftest.tail conftest.undefs
8118 rm -f conftest.undefs
8120 cat >>$CONFIG_STATUS <<\_ACEOF
8121 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8122 # use $as_me), people would be surprised to read:
8123 # /* config.h. Generated by config.status. */
8124 if test x
"$ac_file" = x-
; then
8125 echo "/* Generated by configure. */" >$tmp/config.h
8127 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8129 cat $tmp/in >>$tmp/config.h
8131 if test x
"$ac_file" != x-
; then
8132 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8133 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8134 echo "$as_me: $ac_file is unchanged" >&6;}
8136 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8138 X"$ac_file" : 'X\(//\)[^/]' \| \
8139 X"$ac_file" : 'X\(//\)$' \| \
8140 X"$ac_file" : 'X\(/\)' \| \
8141 . : '\(.\)' 2>/dev/null ||
8143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8145 /^X\(\/\/\)$/{ s//\1/; q; }
8146 /^X\(\/\).*/{ s//\1/; q; }
8148 { if $as_mkdir_p; then
8153 while test ! -d "$as_dir"; do
8154 as_dirs
="$as_dir $as_dirs"
8155 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8157 X"$as_dir" : 'X\(//\)[^/]' \| \
8158 X"$as_dir" : 'X\(//\)$' \| \
8159 X"$as_dir" : 'X\(/\)' \| \
8160 . : '\(.\)' 2>/dev/null ||
8162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8164 /^X\(\/\/\)$/{ s//\1/; q; }
8165 /^X\(\/\).*/{ s//\1/; q; }
8168 test ! -n "$as_dirs" || mkdir
$as_dirs
8169 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8171 { (exit 1); exit 1; }; }; }
8174 mv $tmp/config.h
$ac_file
8182 cat >>$CONFIG_STATUS <<\_ACEOF
8185 # CONFIG_COMMANDS section.
8187 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
8188 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8189 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8190 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8191 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8192 X"$ac_dest" : 'X\(//\)[^/]' \| \
8193 X"$ac_dest" : 'X\(//\)$' \| \
8194 X"$ac_dest" : 'X\(/\)' \| \
8195 . : '\(.\)' 2>/dev/null ||
8197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8199 /^X\(\/\/\)$/{ s//\1/; q; }
8200 /^X\(\/\).*/{ s//\1/; q; }
8202 { if $as_mkdir_p; then
8207 while test ! -d "$as_dir"; do
8208 as_dirs
="$as_dir $as_dirs"
8209 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8211 X"$as_dir" : 'X\(//\)[^/]' \| \
8212 X"$as_dir" : 'X\(//\)$' \| \
8213 X"$as_dir" : 'X\(/\)' \| \
8214 . : '\(.\)' 2>/dev/null ||
8216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8218 /^X\(\/\/\)$/{ s//\1/; q; }
8219 /^X\(\/\).*/{ s//\1/; q; }
8222 test ! -n "$as_dirs" || mkdir
$as_dirs
8223 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8225 { (exit 1); exit 1; }; }; }
8229 if test "$ac_dir" != .
; then
8230 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8231 # A "../" for each directory in $ac_dir_suffix.
8232 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8234 ac_dir_suffix
= ac_top_builddir
=
8238 .
) # No --srcdir option. We are building in place.
8240 if test -z "$ac_top_builddir"; then
8243 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8245 [\\/]* | ?
:[\\/]* ) # Absolute path.
8246 ac_srcdir
=$srcdir$ac_dir_suffix;
8247 ac_top_srcdir
=$srcdir ;;
8249 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8250 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8253 # Do not use `cd foo && pwd` to compute absolute paths, because
8254 # the directories may not exist.
8256 .
) ac_abs_builddir
="$ac_dir";;
8259 .
) ac_abs_builddir
=`pwd`;;
8260 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8261 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8264 case $ac_abs_builddir in
8265 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8267 case ${ac_top_builddir}.
in
8268 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8269 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8270 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8273 case $ac_abs_builddir in
8274 .
) ac_abs_srcdir
=$ac_srcdir;;
8277 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8278 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8279 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8282 case $ac_abs_builddir in
8283 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8285 case $ac_top_srcdir in
8286 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8287 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8288 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8293 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8294 echo "$as_me: executing $ac_dest commands" >&6;}
8296 default
) case x
$CONFIG_HEADERS in xconfig.h
:config.
in) echo > stamp-h
;; esac ;;
8301 cat >>$CONFIG_STATUS <<\_ACEOF
8303 { (exit 0); exit 0; }
8305 chmod +x
$CONFIG_STATUS
8306 ac_clean_files
=$ac_clean_files_save
8309 # configure is writing to config.log, and then calls config.status.
8310 # config.status does its own redirection, appending to config.log.
8311 # Unfortunately, on DOS this fails, as config.log is still kept open
8312 # by configure, so config.status won't be able to write to it; its
8313 # output is simply discarded. So we exec the FD to /dev/null,
8314 # effectively closing config.log, so it can be properly (re)opened and
8315 # appended to by config.status. When coming back to configure, we
8316 # need to make the FD available again.
8317 if test "$no_create" != yes; then
8319 ac_config_status_args
=
8320 test "$silent" = yes &&
8321 ac_config_status_args
="$ac_config_status_args --quiet"
8323 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8325 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8326 # would make configure fail if this is the last instruction.
8327 $ac_cs_success ||
{ (exit 1); exit 1; }