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'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --enable-sim-alignment=align Specify strict or nonstrict alignment.
854 --enable-sim-assert Specify whether to perform random assertions.
855 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
856 --enable-sim-bswap Use the BSWAP instruction on Intel
486s and Pentiums.
857 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
858 --enable-sim-config=file Override default config
file
859 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
860 --enable-sim-default-model=which Specify default PowerPC to model.
861 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
862 --enable-sim-endian=endian Specify target byte endian orientation.
863 --enable-sim-env=env Specify target environment
(operating
, virtual
, user
).
864 --enable-sim-filter=rule Specify filter rules.
865 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
866 --enable-sim-hardware=list Specify the hardware to be included
in the build.
867 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
868 --enable-sim-hostendian=end Specify
host byte endian orientation.
869 --enable-sim-icache=size Specify instruction-decode cache size and
type.
870 --enable-sim-inline=inlines Specify
which functions should be inlined.
871 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
872 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
873 --enable-sim-model=which Specify PowerPC to model.
874 --enable-sim-model-issue Specify whether to simulate model specific actions
875 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
876 --enable-sim-opcode=which Override default opcode lookup.
877 --enable-sim-packages=list Specify the packages to be included
in the build.
878 --enable-sim-regparm=nr-parm Pass parameters
in registers instead of on the stack
- x86
/GCC specific.
879 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
880 --enable-sim-smp=n Specify number of processors to configure
for.
881 --enable-sim-stdcall=type Use an alternative
function call
/return mechanism
- x86
/GCC specific.
882 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
883 --enable-sim-switch Use a switch instead of a table
for instruction call.
884 --enable-sim-timebase Specify whether the PPC timebase is supported.
885 --enable-sim-trace Specify whether tracing is supported.
886 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
887 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
890 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
891 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
892 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
893 --with-bugurl=URL Direct users to URL to report a bug
895 Some influential environment variables
:
896 CC C compiler
command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
899 nonstandard directory
<lib dir
>
900 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
901 headers
in a nonstandard directory
<include dir
>
904 Use these variables to override the choices made by
`configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
922 ac_dir_suffix= ac_top_builddir=
926 .) # No --srcdir option. We are building in place.
928 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 # Do not use `cd foo
&& pwd` to compute absolute paths, because
942 # the directories may not exist.
944 .) ac_abs_builddir="$ac_dir";;
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
952 case $ac_abs_builddir in
953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
961 case $ac_abs_builddir in
962 .) ac_abs_srcdir=$ac_srcdir;;
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
970 case $ac_abs_builddir in
971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999 test -n "$ac_init_help" && exit 0
1000 if $ac_init_version; then
1003 Copyright (C) 2003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.59. Invocation command line was
1026 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1027 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1028 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1029 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1030 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1033 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1035 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1037 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1038 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1039 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1040 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1041 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_must_keep_next=false
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103 -* ) ac_must_keep_next=true ;;
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log. We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close
' the trap.
1121 trap 'exit_status
=$?
1122 # Save into config.log some information that might help in debugging.
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1132 # The following way of writing the cache mishandles newlines in values,
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1155 for ac_var
in $ac_subst_vars
1157 eval ac_val
=$
`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1162 if test -n "$ac_subst_files"; then
1169 for ac_var
in $ac_subst_files
1171 eval ac_val
=$
`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1177 if test -s confdefs.h
; then
1184 sed "/^$/d" confdefs.h |
sort
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1191 rm -f core
*.core
&&
1192 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1195 for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205 # Predefined preprocessor variables.
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241 for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's
/^
/|
/' "$ac_site_file" >&5
1250 if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1267 # Check that the precious variables saved in the cache have kept the same
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1280 ac_cache_corrupted=: ;;
1282 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1289 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291 echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293 echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1314 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1321 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1345 if test -f $ac_dir/install-sh; then
1347 ac_install_sh="$ac_aux_dir/install-sh -c"
1349 elif test -f $ac_dir/install.sh; then
1351 ac_install_sh="$ac_aux_dir/install.sh -c"
1353 elif test -f $ac_dir/shtool; then
1355 ac_install_sh="$ac_aux_dir/shtool install -c"
1359 if test -z "$ac_aux_dir"; then
1360 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1361 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1362 { (exit 1); exit 1; }; }
1364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368 # Find a good install program. We prefer a C program (faster),
1369 # so one script is as good as another. But avoid the broken or
1370 # incompatible versions:
1371 # SysV /etc/install, /usr/sbin/install
1372 # SunOS /usr/etc/install
1373 # IRIX /sbin/install
1375 # AmigaOS /C/install, which installs bootblocks on floppy discs
1376 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1379 # OS/2's system install, which has a completely different semantic
1380 # ./install, which can be erroneously created by make from ./install.sh.
1381 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1383 if test -z "$INSTALL"; then
1384 if test "${ac_cv_path_install+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1391 test -z "$as_dir" && as_dir
=.
1392 # Account for people who put trailing slashes in PATH elements.
1394 .
/ | .
// |
/cC
/* | \
1395 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1396 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1399 # OSF1 and SCO ODT 3.0 have their own names for install.
1400 # Don't use installbsd from OSF since it installs stuff as root
1402 for ac_prog
in ginstall scoinst
install; do
1403 for ac_exec_ext
in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1405 if test $ac_prog = install &&
1406 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1407 # AIX install. It has an incompatible calling convention.
1409 elif test $ac_prog = install &&
1410 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1411 # program-specific install script used by HP pwplus--don't use.
1414 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1426 if test "${ac_cv_path_install+set}" = set; then
1427 INSTALL
=$ac_cv_path_install
1429 # As a last resort, use the slow shell script. We don't cache a
1430 # path for INSTALL within a source directory, because that will
1431 # break other packages using the cache if that directory is
1432 # removed, or if the path is relative.
1433 INSTALL
=$ac_install_sh
1436 echo "$as_me:$LINENO: result: $INSTALL" >&5
1437 echo "${ECHO_T}$INSTALL" >&6
1439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1440 # It thinks the first close brace ends the variable substitution.
1441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1445 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1448 ac_cpp
='$CPP $CPPFLAGS'
1449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1452 if test -n "$ac_tool_prefix"; then
1453 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1454 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 if test -n "$CC"; then
1461 ac_cv_prog_CC
="$CC" # Let the user override the test.
1463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1467 test -z "$as_dir" && as_dir
=.
1468 for ac_exec_ext
in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 if test -n "$CC"; then
1481 echo "$as_me:$LINENO: result: $CC" >&5
1482 echo "${ECHO_T}$CC" >&6
1484 echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1489 if test -z "$ac_cv_prog_CC"; then
1491 # Extract the first word of "gcc", so it can be a program name with args.
1492 set dummy gcc
; ac_word
=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 if test -n "$ac_ct_CC"; then
1499 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1505 test -z "$as_dir" && as_dir
=.
1506 for ac_exec_ext
in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_prog_ac_ct_CC
="gcc"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1518 if test -n "$ac_ct_CC"; then
1519 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1520 echo "${ECHO_T}$ac_ct_CC" >&6
1522 echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1531 if test -z "$CC"; then
1532 if test -n "$ac_tool_prefix"; then
1533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1534 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 if test -n "$CC"; then
1541 ac_cv_prog_CC
="$CC" # Let the user override the test.
1543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir
=.
1548 for ac_exec_ext
in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 if test -n "$CC"; then
1561 echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1569 if test -z "$ac_cv_prog_CC"; then
1571 # Extract the first word of "cc", so it can be a program name with args.
1572 set dummy cc
; ac_word
=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 if test -n "$ac_ct_CC"; then
1579 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir
=.
1586 for ac_exec_ext
in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_ac_ct_CC
="cc"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1598 if test -n "$ac_ct_CC"; then
1599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1600 echo "${ECHO_T}$ac_ct_CC" >&6
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1612 if test -z "$CC"; then
1613 # Extract the first word of "cc", so it can be a program name with args.
1614 set dummy cc
; ac_word
=$2
1615 echo "$as_me:$LINENO: checking for $ac_word" >&5
1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617 if test "${ac_cv_prog_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 if test -n "$CC"; then
1621 ac_cv_prog_CC
="$CC" # Let the user override the test.
1624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir
=.
1629 for ac_exec_ext
in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1632 ac_prog_rejected
=yes
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 if test $ac_prog_rejected = yes; then
1643 # We found a bogon in the path, so make sure we never use it.
1644 set dummy
$ac_cv_prog_CC
1646 if test $# != 0; then
1647 # We chose a different compiler from the bogus one.
1648 # However, it has the same basename, so the bogon will be chosen
1649 # first if we set CC to just the basename; use the full file name.
1651 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1657 if test -n "$CC"; then
1658 echo "$as_me:$LINENO: result: $CC" >&5
1659 echo "${ECHO_T}$CC" >&6
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1666 if test -z "$CC"; then
1667 if test -n "$ac_tool_prefix"; then
1670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1671 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC
="$CC" # Let the user override the test.
1680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir
=.
1685 for ac_exec_ext
in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 if test -n "$CC"; then
1698 echo "$as_me:$LINENO: result: $CC" >&5
1699 echo "${ECHO_T}$CC" >&6
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1705 test -n "$CC" && break
1708 if test -z "$CC"; then
1712 # Extract the first word of "$ac_prog", so it can be a program name with args.
1713 set dummy
$ac_prog; ac_word
=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 if test -n "$ac_ct_CC"; then
1720 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1726 test -z "$as_dir" && as_dir
=.
1727 for ac_exec_ext
in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_ac_ct_CC
="$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1739 if test -n "$ac_ct_CC"; then
1740 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1741 echo "${ECHO_T}$ac_ct_CC" >&6
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 test -n "$ac_ct_CC" && break
1756 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1757 See \`config.log' for more details." >&5
1758 echo "$as_me: error: no acceptable C compiler found in \$PATH
1759 See \`config.log' for more details." >&2;}
1760 { (exit 1); exit 1; }; }
1762 # Provide some information about the compiler.
1763 echo "$as_me:$LINENO:" \
1764 "checking for C compiler version" >&5
1765 ac_compiler
=`set X $ac_compile; echo $2`
1766 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1767 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); }
1771 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1772 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }
1776 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1777 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }
1782 cat >conftest.
$ac_ext <<_ACEOF
1785 cat confdefs.h
>>conftest.
$ac_ext
1786 cat >>conftest.
$ac_ext <<_ACEOF
1787 /* end confdefs.h. */
1797 ac_clean_files_save
=$ac_clean_files
1798 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1799 # Try to create an executable without -o first, disregard a.out.
1800 # It will help us diagnose broken compilers, and finding out an intuition
1802 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1803 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1804 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1805 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1806 (eval $ac_link_default) 2>&5
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }; then
1810 # Find the output, starting from the most likely. This scheme is
1811 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1814 # Be careful to initialize this variable, since it used to be cached.
1815 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1817 # b.out is created by i960 compilers.
1818 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1820 test -f "$ac_file" ||
continue
1822 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1825 # This is the source file.
1828 # We found the default executable, but exeext='' is most
1832 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 # FIXME: I believe we export ac_cv_exeext for Libtool,
1834 # but it would be cool to find out if it's true. Does anybody
1835 # maintain Libtool? --akim.
1843 echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.
$ac_ext >&5
1846 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1847 See \`config.log' for more details." >&5
1848 echo "$as_me: error: C compiler cannot create executables
1849 See \`config.log' for more details." >&2;}
1850 { (exit 77); exit 77; }; }
1853 ac_exeext
=$ac_cv_exeext
1854 echo "$as_me:$LINENO: result: $ac_file" >&5
1855 echo "${ECHO_T}$ac_file" >&6
1857 # Check the compiler produces executables we can run. If not, either
1858 # the compiler is broken, or we cross compile.
1859 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1860 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1862 # If not cross compiling, check that we can run a simple program.
1863 if test "$cross_compiling" != yes; then
1864 if { ac_try
='./$ac_file'
1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; }; then
1872 if test "$cross_compiling" = maybe
; then
1875 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1876 If you meant to cross compile, use \`--host'.
1877 See \`config.log' for more details." >&5
1878 echo "$as_me: error: cannot run C compiled programs.
1879 If you meant to cross compile, use \`--host'.
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }
1885 echo "$as_me:$LINENO: result: yes" >&5
1886 echo "${ECHO_T}yes" >&6
1888 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1889 ac_clean_files
=$ac_clean_files_save
1890 # Check the compiler produces executables we can run. If not, either
1891 # the compiler is broken, or we cross compile.
1892 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1893 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1894 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1895 echo "${ECHO_T}$cross_compiling" >&6
1897 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1898 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1900 (eval $ac_link) 2>&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1906 # work properly (i.e., refer to `conftest.exe'), while it won't with
1908 for ac_file
in conftest.exe conftest conftest.
*; do
1909 test -f "$ac_file" ||
continue
1911 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1912 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1922 See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
1926 rm -f conftest
$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1928 echo "${ECHO_T}$ac_cv_exeext" >&6
1930 rm -f conftest.
$ac_ext
1931 EXEEXT
=$ac_cv_exeext
1933 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1934 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1935 if test "${ac_cv_objext+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 cat >conftest.
$ac_ext <<_ACEOF
1941 cat confdefs.h
>>conftest.
$ac_ext
1942 cat >>conftest.
$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1953 rm -f conftest.o conftest.obj
1954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955 (eval $ac_compile) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; then
1959 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1961 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1962 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1967 echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.
$ac_ext >&5
1970 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1973 See \`config.log' for more details." >&2;}
1974 { (exit 1); exit 1; }; }
1977 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1979 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1980 echo "${ECHO_T}$ac_cv_objext" >&6
1981 OBJEXT
=$ac_cv_objext
1983 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1984 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1985 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 cat >conftest.
$ac_ext <<_ACEOF
1991 cat confdefs.h
>>conftest.
$ac_ext
1992 cat >>conftest.
$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
2006 rm -f conftest.
$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>conftest.er1
2010 grep -v '^ *+' conftest.er1
>conftest.err
2012 cat conftest.err
>&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try
='test -z "$ac_c_werror_flag"
2016 || test ! -s conftest.err'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; } &&
2022 { ac_try
='test -s conftest.$ac_objext'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.
$ac_ext >&5
2035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2036 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2039 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2041 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2042 ac_test_CFLAGS
=${CFLAGS+set}
2043 ac_save_CFLAGS
=$CFLAGS
2045 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2047 if test "${ac_cv_prog_cc_g+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 cat >conftest.
$ac_ext <<_ACEOF
2053 cat confdefs.h
>>conftest.
$ac_ext
2054 cat >>conftest.
$ac_ext <<_ACEOF
2055 /* end confdefs.h. */
2065 rm -f conftest.
$ac_objext
2066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>conftest.er1
2069 grep -v '^ *+' conftest.er1
>conftest.err
2071 cat conftest.err
>&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try
='test -z "$ac_c_werror_flag"
2075 || test ! -s conftest.err'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; } &&
2081 { ac_try
='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
2089 echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.
$ac_ext >&5
2094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2096 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2097 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2098 if test "$ac_test_CFLAGS" = set; then
2099 CFLAGS
=$ac_save_CFLAGS
2100 elif test $ac_cv_prog_cc_g = yes; then
2101 if test "$GCC" = yes; then
2107 if test "$GCC" = yes; then
2113 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2114 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 ac_cv_prog_cc_stdc
=no
2120 cat >conftest.
$ac_ext <<_ACEOF
2123 cat confdefs.h
>>conftest.
$ac_ext
2124 cat >>conftest.
$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2128 #include <sys/types.h>
2129 #include <sys/stat.h>
2130 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2131 struct buf { int x; };
2132 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2133 static char *e (p, i)
2139 static char *f (char * (*g) (char **, int), char **p, ...)
2144 s = g (p, va_arg (v,int));
2149 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2150 function prototypes and stuff, but not '\xHH' hex character constants.
2151 These don't provoke an error unfortunately, instead are silently treated
2152 as 'x'. The following induces an error, until -std1 is added to get
2153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2154 array size at least. It's necessary to write '\x00'==0 to get something
2155 that's true only with -std1. */
2156 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX -qlanglvl=ansi
2175 # Ultrix and OSF/1 -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions -Aa -D_HPUX_SOURCE
2178 # SVR4 -Xc -D__EXTENSIONS__
2179 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2181 CC
="$ac_save_CC $ac_arg"
2182 rm -f conftest.
$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2186 grep -v '^ *+' conftest.er1
>conftest.err
2188 cat conftest.err
>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try
='test -z "$ac_c_werror_flag"
2192 || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try
='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_cv_prog_cc_stdc
=$ac_arg
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.
$ac_ext >&5
2211 rm -f conftest.err conftest.
$ac_objext
2213 rm -f conftest.
$ac_ext conftest.
$ac_objext
2218 case "x$ac_cv_prog_cc_stdc" in
2220 echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2228 # Some people use a C++ compiler to compile C. Since we use `exit',
2229 # in C++ we need to declare it. In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.
$ac_ext <<_ACEOF
2237 rm -f conftest.
$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2241 grep -v '^ *+' conftest.er1
>conftest.err
2243 cat conftest.err
>&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try
='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try
='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 for ac_declaration
in \
2261 'extern "C" void std::exit (int) throw (); using std::exit;' \
2262 'extern "C" void std::exit (int); using std::exit;' \
2263 'extern "C" void exit (int) throw ();' \
2264 'extern "C" void exit (int);' \
2267 cat >conftest.
$ac_ext <<_ACEOF
2270 cat confdefs.h
>>conftest.
$ac_ext
2271 cat >>conftest.
$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2283 rm -f conftest.
$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2287 grep -v '^ *+' conftest.er1
>conftest.err
2289 cat conftest.err
>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try
='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try
='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.
$ac_ext >&5
2312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2313 cat >conftest.
$ac_ext <<_ACEOF
2316 cat confdefs.h
>>conftest.
$ac_ext
2317 cat >>conftest.
$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2328 rm -f conftest.
$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2332 grep -v '^ *+' conftest.er1
>conftest.err
2334 cat conftest.err
>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try
='test -z "$ac_c_werror_flag"
2338 || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try
='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.
$ac_ext >&5
2356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2359 if test -n "$ac_declaration"; then
2360 echo '#ifdef __cplusplus' >>confdefs.h
2361 echo $ac_declaration >>confdefs.h
2362 echo '#endif' >>confdefs.h
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.
$ac_ext >&5
2370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2372 ac_cpp
='$CPP $CPPFLAGS'
2373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2378 # Put a plausible default for CC_FOR_BUILD in Makefile.
2379 if test "x$cross_compiling" = "xno"; then
2380 CC_FOR_BUILD
='$(CC)'
2384 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
2387 # If we haven't got the data from the intl directory,
2388 # assume NLS is disabled.
2397 if test -f ..
/..
/intl
/config.intl
; then
2398 . ..
/..
/intl
/config.intl
2400 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2401 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2402 if test x
"$USE_NLS" != xyes
; then
2403 echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6
2406 echo "$as_me:$LINENO: result: yes" >&5
2407 echo "${ECHO_T}yes" >&6
2409 cat >>confdefs.h
<<\_ACEOF
2410 #define ENABLE_NLS 1
2414 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2415 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2416 # Look for .po and .gmo files in the source directory.
2419 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
2420 # If there aren't any .gmo files the shell will give us the
2421 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2423 case "$cat" in *\
**)
2426 # The quadruple backslash is collapsed to a double backslash
2427 # by the backticks, then collapsed again by the double quotes,
2428 # leaving us with one backslash in the sed expression (right
2429 # before the dot that mustn't act as a wildcard).
2430 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2431 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
2432 # The user is allowed to set LINGUAS to a list of languages to
2433 # install catalogs for. If it's empty that means "all of them."
2434 if test "x$LINGUAS" = x
; then
2435 CATALOGS
="$CATALOGS $cat"
2436 XLINGUAS
="$XLINGUAS $lang"
2438 case "$LINGUAS" in *$lang*)
2439 CATALOGS
="$CATALOGS $cat"
2440 XLINGUAS
="$XLINGUAS $lang"
2446 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2447 echo "${ECHO_T}$LINGUAS" >&6
2461 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2462 if test "${enable_sim_alignment+set}" = set; then
2463 enableval
="$enable_sim_alignment"
2464 case "${enableval}" in
2465 yes | strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2466 no | nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2467 0 | default | DEFAULT
) sim_alignment
="-DWITH_ALIGNMENT=0";;
2468 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2469 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2470 { (exit 1); exit 1; }; }; sim_alignment
="";;
2472 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
2473 echo "Setting alignment flags = $sim_alignment" 6>&1
2479 # Check whether --enable-sim-assert or --disable-sim-assert was given.
2480 if test "${enable_sim_assert+set}" = set; then
2481 enableval
="$enable_sim_assert"
2482 case "${enableval}" in
2483 yes) sim_assert
="-DWITH_ASSERT=1";;
2484 no
) sim_assert
="-DWITH_ASSERT=0";;
2485 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2486 echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2487 { (exit 1); exit 1; }; }; sim_assert
="";;
2489 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
2490 echo "Setting assert flags = $sim_assert" 6>&1
2496 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2497 if test "${enable_sim_bitsize+set}" = set; then
2498 enableval
="$enable_sim_bitsize"
2499 case "${enableval}" in
2500 32|
64) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2501 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
2502 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
2503 { (exit 1); exit 1; }; }; sim_bitsize
="";;
2505 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
2506 echo "Setting bitsize flags = $sim_bitsize" 6>&1
2512 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2513 if test "${enable_sim_bswap+set}" = set; then
2514 enableval
="$enable_sim_bswap"
2515 case "${enableval}" in
2516 yes) sim_bswap
="-DWITH_BSWAP=1";;
2517 no
) sim_bswap
="-DWITH_BSWAP=0";;
2518 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2519 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2520 { (exit 1); exit 1; }; }; sim_bswap
="";;
2522 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
2523 echo "Setting bswap flags = $sim_bswap" 6>&1
2529 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2530 if test "${enable_sim_cflags+set}" = set; then
2531 enableval
="$enable_sim_cflags"
2532 case "${enableval}" in
2533 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
2535 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2537 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
2538 echo "Setting sim cflags = $sim_cflags" 6>&1
2544 # Check whether --enable-sim-config or --disable-sim-config was given.
2545 if test "${enable_sim_config+set}" = set; then
2546 enableval
="$enable_sim_config"
2547 case "${enableval}" in
2548 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2549 echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2550 { (exit 1); exit 1; }; };;
2551 *) if test -f "${srcdir}/${enableval}"; then
2552 sim_config
="${enableval}";
2553 elif test -f "${srcdir}/${enableval}-config.h"; then
2554 sim_config
="${enableval}-config.h"
2556 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2557 echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2558 { (exit 1); exit 1; }; };
2559 sim_config
=std-config.h
2562 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
2563 echo "Setting config flags = $sim_config" 6>&1
2566 sim_config
="std-config.h"
2567 if test x
"$silent" != x
"yes"; then
2568 echo "Setting config flags = $sim_config" 6>&1
2572 # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2573 if test "${enable_sim_decode_mechanism+set}" = set; then
2574 enableval
="$enable_sim_decode_mechanism"
2575 case "${enableval}" in
2576 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2577 echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2578 { (exit 1); exit 1; }; };;
2579 array|switch|padded-switch|goto-switch
) sim_decode_mechanism
="-T ${enableval}";;
2580 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2581 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2582 { (exit 1); exit 1; }; };
2583 sim_decode_mechanism
="switch";;
2585 if test x
"$silent" != x
"yes" && test x
"$sim_decode_mechanism" != x
""; then
2586 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2589 sim_decode_mechanism
=""
2590 if test x
"$silent" != x
"yes"; then
2591 echo "Setting decode mechanism flags = $sim_decode_mechanism"
2595 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2596 if test "${enable_sim_default_model+set}" = set; then
2597 enableval
="$enable_sim_default_model"
2598 case "${enableval}" in
2599 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2600 echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2601 { (exit 1); exit 1; }; };;
2602 *) sim_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
2604 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
2605 echo "Setting default-model flags = $sim_default_model" 6>&1
2608 sim_default_model
=""
2611 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2612 if test "${enable_sim_duplicate+set}" = set; then
2613 enableval
="$enable_sim_duplicate"
2614 case "${enableval}" in
2617 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2618 echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2619 { (exit 1); exit 1; }; }; sim_dup
="";;
2621 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
2622 echo "Setting duplicate flags = $sim_dup" 6>&1
2626 if test x
"$silent" != x
"yes"; then
2627 echo "Setting duplicate flags = $sim_dup" 6>&1
2631 # Check whether --enable-sim-endian or --disable-sim-endian was given.
2632 if test "${enable_sim_endian+set}" = set; then
2633 enableval
="$enable_sim_endian"
2634 case "${enableval}" in
2635 yes) case "$target" in
2636 *powerpc-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2637 *powerpcle-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2638 *) echo "Unknown target $target" 1>&6; sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2640 no
) sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
2641 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2642 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2643 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2644 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2645 { (exit 1); exit 1; }; }; sim_endian
="";;
2647 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
2648 echo "Setting endian flags = $sim_endian" 6>&1
2654 # Check whether --enable-sim-env or --disable-sim-env was given.
2655 if test "${enable_sim_env+set}" = set; then
2656 enableval
="$enable_sim_env"
2657 case "${enableval}" in
2658 operating | os | oea
) sim_env
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2659 virtual | vea
) sim_env
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2660 user | uea
) sim_env
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2661 no
) sim_env
="-DWITH_ENVIRONMENT=0";;
2662 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2663 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2664 { (exit 1); exit 1; }; }; sim_env
="";;
2666 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
2667 echo "Setting env flags = $sim_env" 6>&1
2673 # Check whether --enable-sim-filter or --disable-sim-filter was given.
2674 if test "${enable_sim_filter+set}" = set; then
2675 enableval
="$enable_sim_filter"
2676 case "${enableval}" in
2677 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2678 echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2679 { (exit 1); exit 1; }; }; sim_filter
="";;
2681 *) sim_filter
="-F $enableval";;
2683 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
2684 echo "Setting filter flags = $sim_filter" 6>&1
2687 sim_filter
="-F 32,f,o"
2688 if test x
"$silent" != x
"yes"; then
2689 echo "Setting filter flags = $sim_filter" 6>&1
2693 # Check whether --enable-sim-float or --disable-sim-float was given.
2694 if test "${enable_sim_float+set}" = set; then
2695 enableval
="$enable_sim_float"
2696 case "${enableval}" in
2697 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2698 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2699 altivec
) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2700 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2701 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2702 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2703 { (exit 1); exit 1; }; }; sim_float
="";;
2705 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
2706 echo "Setting float flags = $sim_float" 6>&1
2711 *altivec
*) sim_float
="-DWITH_ALTIVEC" ; sim_filter
="${sim_filter},av" ;;
2712 *spe
*|
*simd
*) sim_float
="-DWITH_E500" ; sim_filter
="${sim_filter},e500" ;;
2718 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2719 if test "${enable_sim_hardware+set}" = set; then
2720 enableval
="$enable_sim_hardware"
2721 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2722 case "${enableval}" in
2724 no
) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2725 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2726 { (exit 1); exit 1; }; }; hardware
="";;
2727 ,*) hardware
="${hardware}${enableval}";;
2728 *,) hardware
="${enableval}${hardware}";;
2729 *) hardware
="${enableval}"'';;
2731 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2732 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2733 if test x
"$silent" != x
"yes" && test x
"$hardware" != x
""; then
2734 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2737 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2738 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2739 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2740 if test x
"$silent" != x
"yes"; then
2741 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2745 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2746 if test "${enable_sim_hostbitsize+set}" = set; then
2747 enableval
="$enable_sim_hostbitsize"
2748 case "${enableval}" in
2749 32|
64) sim_hostbitsize
="-DWITH_HOST_WORD_BITSIZE=$enableval";;
2750 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
2751 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
2752 { (exit 1); exit 1; }; }; sim_hostbitsize
="";;
2754 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
2755 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
2762 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
2763 if test "${enable_sim_hostendian+set}" = set; then
2764 enableval
="$enable_sim_hostendian"
2765 case "${enableval}" in
2766 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
2767 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
2768 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
2769 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
2770 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
2771 { (exit 1); exit 1; }; }; sim_hostendian
="";;
2773 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
2774 echo "Setting hostendian flags = $sim_hostendian" 6>&1
2778 if test "x$cross_compiling" = "xno"; then
2779 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2780 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2781 if test "${ac_cv_c_bigendian+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 # See if sys/param.h defines the BYTE_ORDER macro.
2785 cat >conftest.
$ac_ext <<_ACEOF
2788 cat confdefs.h
>>conftest.
$ac_ext
2789 cat >>conftest.
$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2791 #include <sys/types.h>
2792 #include <sys/param.h>
2797 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2805 rm -f conftest.
$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>conftest.er1
2809 grep -v '^ *+' conftest.er1
>conftest.err
2811 cat conftest.err
>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try
='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try
='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 # It does; now see whether it defined to BIG_ENDIAN or not.
2828 cat >conftest.
$ac_ext <<_ACEOF
2831 cat confdefs.h
>>conftest.
$ac_ext
2832 cat >>conftest.
$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <sys/types.h>
2835 #include <sys/param.h>
2840 #if BYTE_ORDER != BIG_ENDIAN
2848 rm -f conftest.
$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>conftest.er1
2852 grep -v '^ *+' conftest.er1
>conftest.err
2854 cat conftest.err
>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try
='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try
='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_cv_c_bigendian
=yes
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.
$ac_ext >&5
2875 ac_cv_c_bigendian
=no
2877 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.
$ac_ext >&5
2882 # It does not; compile a test program.
2883 if test "$cross_compiling" = yes; then
2884 # try to guess the endianness by grepping values into an object file
2885 ac_cv_c_bigendian
=unknown
2886 cat >conftest.
$ac_ext <<_ACEOF
2889 cat confdefs.h
>>conftest.
$ac_ext
2890 cat >>conftest.
$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2893 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2894 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2895 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2896 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2897 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2901 _ascii (); _ebcdic ();
2906 rm -f conftest.
$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1
>conftest.err
2912 cat conftest.err
>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try
='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try
='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
2929 ac_cv_c_bigendian
=yes
2931 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
2932 if test "$ac_cv_c_bigendian" = unknown
; then
2933 ac_cv_c_bigendian
=no
2935 # finding both strings is unlikely to happen, but who knows?
2936 ac_cv_c_bigendian
=unknown
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.
$ac_ext >&5
2944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2946 cat >conftest.
$ac_ext <<_ACEOF
2949 cat confdefs.h
>>conftest.
$ac_ext
2950 cat >>conftest.
$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2955 /* Are we little or big endian? From Harbison&Steele. */
2959 char c[sizeof (long)];
2962 exit (u.c[sizeof (long) - 1] == 1);
2965 rm -f conftest
$ac_exeext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2967 (eval $ac_link) 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_cv_c_bigendian
=no
2978 echo "$as_me: program exited with status $ac_status" >&5
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.
$ac_ext >&5
2983 ac_cv_c_bigendian
=yes
2985 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2990 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2991 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2992 case $ac_cv_c_bigendian in
2995 cat >>confdefs.h
<<\_ACEOF
2996 #define WORDS_BIGENDIAN 1
3002 { { echo "$as_me:$LINENO: error: unknown endianness
3003 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3004 echo "$as_me: error: unknown endianness
3005 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3006 { (exit 1); exit 1; }; } ;;
3009 if test $ac_cv_c_bigendian = yes; then
3010 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3012 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3015 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3019 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3020 if test "${enable_sim_icache+set}" = set; then
3021 enableval
="$enable_sim_icache"
3023 case "${enableval}" in
3024 yes) icache
="1024"; sim_icache
="-I $icache";;
3025 no
) sim_icache
="-R";;
3028 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3030 define
) sim_icache
="${sim_icache}R";;
3031 semantic
) sim_icache
="${sim_icache}C";;
3032 insn
) sim_icache
="${sim_icache}S";;
3033 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
3034 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3035 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3036 { (exit 1); exit 1; }; }; sim_icache
="";;
3039 sim_icache
="${sim_icache}I $icache";;
3041 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
3042 echo "Setting instruction cache size to $icache ($sim_icache)"
3045 sim_icache
="-CSRI 1024"
3046 if test x
"$silent" != x
"yes"; then
3047 echo "Setting instruction cache size to 1024 ($sim_icache)"
3051 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3052 if test "${enable_sim_inline+set}" = set; then
3053 enableval
="$enable_sim_inline"
3055 case "$enableval" in
3056 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3057 0) sim_inline
="-DDEFAULT_INLINE=0";;
3058 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
3059 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3060 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3063 *_INLINE
=*) new_flag
="-D$x";;
3064 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3065 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
3066 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
3068 if test x
"$sim_inline" = x
""; then
3069 sim_inline
="$new_flag"
3071 sim_inline
="$sim_inline $new_flag"
3075 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3076 echo "Setting inline flags = $sim_inline" 6>&1
3079 if test x
"$GCC" != ""; then
3080 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3081 if test x
"$silent" != x
"yes"; then
3082 echo "Setting inline flags = $sim_inline" 6>&1
3089 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3090 if test "${enable_sim_jump+set}" = set; then
3091 enableval
="$enable_sim_jump"
3092 case "${enableval}" in
3093 yes) sim_jump
="-J";;
3095 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3096 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3097 { (exit 1); exit 1; }; }; sim_jump
="";;
3099 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
3100 echo "Setting jump flag = $sim_jump" 6>&1
3104 if test x
"$silent" != x
"yes"; then
3105 echo "Setting jump flag = $sim_jump" 6>&1
3109 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3110 if test "${enable_sim_line_nr+set}" = set; then
3111 enableval
="$enable_sim_line_nr"
3112 case "${enableval}" in
3113 yes) sim_line_nr
="";;
3114 no
) sim_line_nr
="-L";;
3115 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3116 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3117 { (exit 1); exit 1; }; }; sim_line_nr
="";;
3119 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
3120 echo "Setting warning flags = $sim_line_nr" 6>&1
3126 # Check whether --enable-sim-model or --disable-sim-model was given.
3127 if test "${enable_sim_model+set}" = set; then
3128 enableval
="$enable_sim_model"
3129 case "${enableval}" in
3130 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3131 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3132 { (exit 1); exit 1; }; };;
3133 *) sim_model
="-DWITH_MODEL=${enableval}";;
3135 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
3136 echo "Setting model flags = $sim_model" 6>&1
3142 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3143 if test "${enable_sim_model_issue+set}" = set; then
3144 enableval
="$enable_sim_model_issue"
3145 case "${enableval}" in
3146 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3147 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3148 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3149 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3150 { (exit 1); exit 1; }; }; sim_model_issue
="";;
3152 if test x
"$silent" != x
"yes"; then
3153 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3159 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3160 if test "${enable_sim_monitor+set}" = set; then
3161 enableval
="$enable_sim_monitor"
3162 case "${enableval}" in
3163 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3164 no
) sim_monitor
="-DWITH_MON=0";;
3165 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3166 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3167 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3168 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3169 { (exit 1); exit 1; }; }; sim_env
="";;
3171 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
3172 echo "Setting monitor flags = $sim_monitor" 6>&1
3178 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3179 if test "${enable_sim_opcode+set}" = set; then
3180 enableval
="$enable_sim_opcode"
3181 case "${enableval}" in
3182 yes|no
) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3183 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3184 { (exit 1); exit 1; }; };;
3185 *) if test -f "${srcdir}/${enableval}"; then
3186 sim_opcode
="${enableval}"
3187 elif test -f "${srcdir}/dc-${enableval}"; then
3188 sim_opcode
="dc-${enableval}"
3190 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3191 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3192 { (exit 1); exit 1; }; };
3193 sim_opcode
="dc-complex"
3196 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
3197 echo "Setting opcode flags = $sim_opcode" 6>&1
3200 sim_opcode
="dc-complex"
3201 if test x
"$silent" != x
"yes"; then
3202 echo "Setting opcode flags = $sim_opcode"
3206 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3207 if test "${enable_sim_packages+set}" = set; then
3208 enableval
="$enable_sim_packages"
3210 case "${enableval}" in
3212 no
) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3213 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3214 { (exit 1); exit 1; }; }; packages
="";;
3215 ,*) packages
="${packages}${enableval}";;
3216 *,) packages
="${enableval}${packages}";;
3217 *) packages
="${enableval}"'';;
3219 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3220 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3221 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
3222 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3226 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3227 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3228 if test x
"$silent" != x
"yes"; then
3229 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3233 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3234 if test "${enable_sim_regparm+set}" = set; then
3235 enableval
="$enable_sim_regparm"
3236 case "${enableval}" in
3237 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
3238 no
) sim_regparm
="" ;;
3239 yes) sim_regparm
="-DWITH_REGPARM=3";;
3240 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3241 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3242 { (exit 1); exit 1; }; }; sim_regparm
="";;
3244 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
3245 echo "Setting regparm flags = $sim_regparm" 6>&1
3251 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3252 if test "${enable_sim_reserved_bits+set}" = set; then
3253 enableval
="$enable_sim_reserved_bits"
3254 case "${enableval}" in
3255 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
3256 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
3257 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3258 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3259 { (exit 1); exit 1; }; }; sim_reserved
="";;
3261 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
3262 echo "Setting reserved flags = $sim_reserved" 6>&1
3268 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3269 if test "${enable_sim_smp+set}" = set; then
3270 enableval
="$enable_sim_smp"
3271 case "${enableval}" in
3272 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3273 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3274 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3276 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3277 echo "Setting smp flags = $sim_smp" 6>&1
3280 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
3281 if test x
"$silent" != x
"yes"; then
3282 echo "Setting smp flags = $sim_smp" 6>&1
3286 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3287 if test "${enable_sim_stdcall+set}" = set; then
3288 enableval
="$enable_sim_stdcall"
3289 case "${enableval}" in
3290 no
) sim_stdcall
="" ;;
3291 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
3292 yes) sim_stdcall
="-DWITH_STDCALL=1";;
3293 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3294 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3295 { (exit 1); exit 1; }; }; sim_stdcall
="";;
3297 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
3298 echo "Setting function call flags = $sim_stdcall" 6>&1
3304 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3305 if test "${enable_sim_stdio+set}" = set; then
3306 enableval
="$enable_sim_stdio"
3307 case "${enableval}" in
3308 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3309 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3310 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3311 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3312 { (exit 1); exit 1; }; }; sim_stdio
="";;
3314 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3315 echo "Setting stdio flags = $sim_stdio" 6>&1
3321 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3322 if test "${enable_sim_switch+set}" = set; then
3323 enableval
="$enable_sim_switch"
3324 case "${enableval}" in
3325 yes) sim_switch
="-s";;
3327 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3328 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3329 { (exit 1); exit 1; }; }; sim_switch
="";;
3331 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
3332 echo "Setting switch flags = $sim_switch" 6>&1
3336 if test x
"$silent" != x
"yes"; then
3337 echo "Setting switch flags = $sim_switch" 6>&1
3341 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3342 if test "${enable_sim_timebase+set}" = set; then
3343 enableval
="$enable_sim_timebase"
3344 case "${enableval}" in
3345 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
3346 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
3347 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3348 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3349 { (exit 1); exit 1; }; }; sim_timebase
="";;
3351 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
3352 echo "Setting timebase flags = $sim_timebase" 6>&1
3358 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3359 if test "${enable_sim_trace+set}" = set; then
3360 enableval
="$enable_sim_trace"
3361 case "${enableval}" in
3362 yes) sim_trace
="-DWITH_TRACE=1";;
3363 no
) sim_trace
="-DWITH_TRACE=0";;
3364 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3365 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3366 { (exit 1); exit 1; }; }; sim_trace
="";;
3368 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3369 echo "Setting trace flags = $sim_trace" 6>&1
3375 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3376 if test "${enable_sim_warnings+set}" = set; then
3377 enableval
="$enable_sim_warnings"
3378 case "${enableval}" in
3379 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3380 no
) sim_warnings
="-w";;
3381 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3383 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
3384 echo "Setting warning flags = $sim_warnings" 6>&1
3390 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3391 if test "${enable_sim_xor_endian+set}" = set; then
3392 enableval
="$enable_sim_xor_endian"
3393 case "${enableval}" in
3394 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
3395 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
3396 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
3398 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
3399 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3407 # Check whether --with-pkgversion or --without-pkgversion was given.
3408 if test "${with_pkgversion+set}" = set; then
3409 withval
="$with_pkgversion"
3411 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3412 echo "$as_me: error: package version not specified" >&2;}
3413 { (exit 1); exit 1; }; } ;;
3415 *) PKGVERSION
="($withval) " ;;
3425 # Check whether --with-bugurl or --without-bugurl was given.
3426 if test "${with_bugurl+set}" = set; then
3427 withval
="$with_bugurl"
3429 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3430 echo "$as_me: error: bug URL not specified" >&2;}
3431 { (exit 1); exit 1; }; } ;;
3434 *) BUGURL
="$withval"
3438 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
3447 REPORT_BUGS_TO
="<$BUGURL>"
3448 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
3455 cat >>confdefs.h
<<_ACEOF
3456 #define PKGVERSION "$PKGVERSION"
3460 cat >>confdefs.h
<<_ACEOF
3461 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3465 # Make sure we can run config.sub.
3466 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3467 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3468 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3469 { (exit 1); exit 1; }; }
3471 echo "$as_me:$LINENO: checking build system type" >&5
3472 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3473 if test "${ac_cv_build+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 ac_cv_build_alias
=$build_alias
3477 test -z "$ac_cv_build_alias" &&
3478 ac_cv_build_alias
=`$ac_config_guess`
3479 test -z "$ac_cv_build_alias" &&
3480 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3481 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3482 { (exit 1); exit 1; }; }
3483 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3485 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3486 { (exit 1); exit 1; }; }
3489 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3490 echo "${ECHO_T}$ac_cv_build" >&6
3492 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3493 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3494 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3497 echo "$as_me:$LINENO: checking host system type" >&5
3498 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3499 if test "${ac_cv_host+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 ac_cv_host_alias
=$host_alias
3503 test -z "$ac_cv_host_alias" &&
3504 ac_cv_host_alias
=$ac_cv_build_alias
3505 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3506 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3507 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3508 { (exit 1); exit 1; }; }
3511 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3512 echo "${ECHO_T}$ac_cv_host" >&6
3514 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3515 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3516 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3519 echo "$as_me:$LINENO: checking target system type" >&5
3520 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3521 if test "${ac_cv_target+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 ac_cv_target_alias
=$target_alias
3525 test "x$ac_cv_target_alias" = "x" &&
3526 ac_cv_target_alias
=$ac_cv_host_alias
3527 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3528 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3529 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3530 { (exit 1); exit 1; }; }
3533 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3534 echo "${ECHO_T}$ac_cv_target" >&6
3535 target
=$ac_cv_target
3536 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3537 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3538 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3541 # The aliases save the names the user supplied, while $host etc.
3542 # will get canonicalized.
3543 test -n "$target_alias" &&
3544 test "$program_prefix$program_suffix$program_transform_name" = \
3546 program_prefix
=${target_alias}-
3547 test "$program_prefix" != NONE
&&
3548 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3549 # Use a double $ so make ignores it.
3550 test "$program_suffix" != NONE
&&
3551 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3552 # Double any \ or $. echo might interpret backslashes.
3553 # By default was `s,x,x', remove it if useless.
3554 cat <<\_ACEOF
>conftest.
sed
3555 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3557 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3561 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
3562 # using the same condition.
3564 ac_cpp
='$CPP $CPPFLAGS'
3565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3568 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3569 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3570 # On Suns, sometimes $CPP names a directory.
3571 if test -n "$CPP" && test -d "$CPP"; then
3574 if test -z "$CPP"; then
3575 if test "${ac_cv_prog_CPP+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 # Double quotes because CPP needs to be expanded
3579 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3582 for ac_c_preproc_warn_flag
in '' yes
3584 # Use a header file that comes with gcc, so configuring glibc
3585 # with a fresh cross-compiler works.
3586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3587 # <limits.h> exists even on freestanding compilers.
3588 # On the NeXT, cc -E runs the code through the compiler's parser,
3589 # not just through cpp. "Syntax error" is here to catch this case.
3590 cat >conftest.
$ac_ext <<_ACEOF
3593 cat confdefs.h
>>conftest.
$ac_ext
3594 cat >>conftest.
$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3597 # include <limits.h>
3599 # include <assert.h>
3603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3604 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3606 grep -v '^ *+' conftest.er1
>conftest.err
3608 cat conftest.err
>&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } >/dev
/null
; then
3611 if test -s conftest.err
; then
3612 ac_cpp_err
=$ac_c_preproc_warn_flag
3613 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3620 if test -z "$ac_cpp_err"; then
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.
$ac_ext >&5
3626 # Broken: fails on valid input.
3629 rm -f conftest.err conftest.
$ac_ext
3631 # OK, works on sane cases. Now check whether non-existent headers
3632 # can be detected and how.
3633 cat >conftest.
$ac_ext <<_ACEOF
3636 cat confdefs.h
>>conftest.
$ac_ext
3637 cat >>conftest.
$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 #include <ac_nonexistent.h>
3641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3642 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3644 grep -v '^ *+' conftest.er1
>conftest.err
3646 cat conftest.err
>&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } >/dev
/null
; then
3649 if test -s conftest.err
; then
3650 ac_cpp_err
=$ac_c_preproc_warn_flag
3651 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3658 if test -z "$ac_cpp_err"; then
3659 # Broken: success on invalid input.
3662 echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.
$ac_ext >&5
3665 # Passes both tests.
3669 rm -f conftest.err conftest.
$ac_ext
3672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3673 rm -f conftest.err conftest.
$ac_ext
3674 if $ac_preproc_ok; then
3686 echo "$as_me:$LINENO: result: $CPP" >&5
3687 echo "${ECHO_T}$CPP" >&6
3689 for ac_c_preproc_warn_flag
in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.
$ac_ext <<_ACEOF
3700 cat confdefs.h
>>conftest.
$ac_ext
3701 cat >>conftest.
$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3704 # include <limits.h>
3706 # include <assert.h>
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1
>conftest.err
3715 cat conftest.err
>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev
/null
; then
3718 if test -s conftest.err
; then
3719 ac_cpp_err
=$ac_c_preproc_warn_flag
3720 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3727 if test -z "$ac_cpp_err"; then
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.
$ac_ext >&5
3733 # Broken: fails on valid input.
3736 rm -f conftest.err conftest.
$ac_ext
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.
$ac_ext <<_ACEOF
3743 cat confdefs.h
>>conftest.
$ac_ext
3744 cat >>conftest.
$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1
>conftest.err
3753 cat conftest.err
>&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev
/null
; then
3756 if test -s conftest.err
; then
3757 ac_cpp_err
=$ac_c_preproc_warn_flag
3758 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3765 if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.
$ac_ext >&5
3772 # Passes both tests.
3776 rm -f conftest.err conftest.
$ac_ext
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.
$ac_ext
3781 if $ac_preproc_ok; then
3784 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3785 See \`config.log' for more details." >&5
3786 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3787 See \`config.log' for more details." >&2;}
3788 { (exit 1); exit 1; }; }
3792 ac_cpp
='$CPP $CPPFLAGS'
3793 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3798 echo "$as_me:$LINENO: checking for egrep" >&5
3799 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3800 if test "${ac_cv_prog_egrep+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3804 then ac_cv_prog_egrep
='grep -E'
3805 else ac_cv_prog_egrep
='egrep'
3808 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3809 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3810 EGREP
=$ac_cv_prog_egrep
3813 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3815 if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 cat >conftest.
$ac_ext <<_ACEOF
3821 cat confdefs.h
>>conftest.
$ac_ext
3822 cat >>conftest.
$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3837 rm -f conftest.
$ac_objext
3838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>conftest.er1
3841 grep -v '^ *+' conftest.er1
>conftest.err
3843 cat conftest.err
>&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try
='test -z "$ac_c_werror_flag"
3847 || test ! -s conftest.err'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; } &&
3853 { ac_try
='test -s conftest.$ac_objext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_header_stdc
=yes
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.
$ac_ext >&5
3864 ac_cv_header_stdc
=no
3866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3868 if test $ac_cv_header_stdc = yes; then
3869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3870 cat >conftest.
$ac_ext <<_ACEOF
3873 cat confdefs.h
>>conftest.
$ac_ext
3874 cat >>conftest.
$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 $EGREP "memchr" >/dev
/null
2>&1; then
3883 ac_cv_header_stdc
=no
3889 if test $ac_cv_header_stdc = yes; then
3890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3891 cat >conftest.
$ac_ext <<_ACEOF
3894 cat confdefs.h
>>conftest.
$ac_ext
3895 cat >>conftest.
$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901 $EGREP "free" >/dev
/null
2>&1; then
3904 ac_cv_header_stdc
=no
3910 if test $ac_cv_header_stdc = yes; then
3911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3912 if test "$cross_compiling" = yes; then
3915 cat >conftest.
$ac_ext <<_ACEOF
3918 cat confdefs.h
>>conftest.
$ac_ext
3919 cat >>conftest.
$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3922 #if ((' ' & 0x0FF) == 0x020)
3923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3926 # define ISLOWER(c) \
3927 (('a' <= (c) && (c) <= 'i') \
3928 || ('j' <= (c) && (c) <= 'r') \
3929 || ('s' <= (c) && (c) <= 'z'))
3930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3938 for (i = 0; i < 256; i++)
3939 if (XOR (islower (i), ISLOWER (i))
3940 || toupper (i) != TOUPPER (i))
3945 rm -f conftest
$ac_exeext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3947 (eval $ac_link) 2>&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3958 echo "$as_me: program exited with status $ac_status" >&5
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.
$ac_ext >&5
3963 ac_cv_header_stdc
=no
3965 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3969 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3970 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3971 if test $ac_cv_header_stdc = yes; then
3973 cat >>confdefs.h
<<\_ACEOF
3974 #define STDC_HEADERS 1
3979 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3989 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3990 inttypes.h stdint.h unistd.h
3992 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3993 echo "$as_me:$LINENO: checking for $ac_header" >&5
3994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 cat >conftest.
$ac_ext <<_ACEOF
4001 cat confdefs.h
>>conftest.
$ac_ext
4002 cat >>conftest.
$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 $ac_includes_default
4006 #include <$ac_header>
4008 rm -f conftest.
$ac_objext
4009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4010 (eval $ac_compile) 2>conftest.er1
4012 grep -v '^ *+' conftest.er1
>conftest.err
4014 cat conftest.err
>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } &&
4017 { ac_try
='test -z "$ac_c_werror_flag"
4018 || test ! -s conftest.err'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; } &&
4024 { ac_try
='test -s conftest.$ac_objext'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 eval "$as_ac_Header=yes"
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.
$ac_ext >&5
4035 eval "$as_ac_Header=no"
4037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4042 cat >>confdefs.h
<<_ACEOF
4043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4052 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4053 if test "${ac_cv_search_zlibVersion+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 ac_func_search_save_LIBS
=$LIBS
4057 ac_cv_search_zlibVersion
=no
4058 cat >conftest.
$ac_ext <<_ACEOF
4061 cat confdefs.h
>>conftest.
$ac_ext
4062 cat >>conftest.
$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4065 /* Override any gcc2 internal prototype to avoid an error. */
4069 /* We use char because int might match the return type of a gcc2
4070 builtin and then its argument prototype would still apply. */
4071 char zlibVersion ();
4080 rm -f conftest.
$ac_objext conftest
$ac_exeext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4082 (eval $ac_link) 2>conftest.er1
4084 grep -v '^ *+' conftest.er1
>conftest.err
4086 cat conftest.err
>&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } &&
4089 { ac_try
='test -z "$ac_c_werror_flag"
4090 || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try
='test -s conftest$ac_exeext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_search_zlibVersion
="none required"
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.
$ac_ext >&5
4108 rm -f conftest.err conftest.
$ac_objext \
4109 conftest
$ac_exeext conftest.
$ac_ext
4110 if test "$ac_cv_search_zlibVersion" = no
; then
4112 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4113 cat >conftest.
$ac_ext <<_ACEOF
4116 cat confdefs.h
>>conftest.
$ac_ext
4117 cat >>conftest.
$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4120 /* Override any gcc2 internal prototype to avoid an error. */
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4126 char zlibVersion ();
4135 rm -f conftest.
$ac_objext conftest
$ac_exeext
4136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4137 (eval $ac_link) 2>conftest.er1
4139 grep -v '^ *+' conftest.er1
>conftest.err
4141 cat conftest.err
>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try
='test -z "$ac_c_werror_flag"
4145 || test ! -s conftest.err'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try
='test -s conftest$ac_exeext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_cv_search_zlibVersion
="-l$ac_lib"
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.
$ac_ext >&5
4164 rm -f conftest.err conftest.
$ac_objext \
4165 conftest
$ac_exeext conftest.
$ac_ext
4168 LIBS
=$ac_func_search_save_LIBS
4170 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4171 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4172 if test "$ac_cv_search_zlibVersion" != no
; then
4173 test "$ac_cv_search_zlibVersion" = "none required" || LIBS
="$ac_cv_search_zlibVersion $LIBS"
4175 for ac_header
in zlib.h
4177 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo "$as_me:$LINENO: checking for $ac_header" >&5
4180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4187 # Is the header compilable?
4188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4190 cat >conftest.
$ac_ext <<_ACEOF
4193 cat confdefs.h
>>conftest.
$ac_ext
4194 cat >>conftest.
$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 $ac_includes_default
4197 #include <$ac_header>
4199 rm -f conftest.
$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>conftest.er1
4203 grep -v '^ *+' conftest.er1
>conftest.err
4205 cat conftest.err
>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try
='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try
='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_header_compiler
=yes
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.
$ac_ext >&5
4226 ac_header_compiler
=no
4228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4230 echo "${ECHO_T}$ac_header_compiler" >&6
4232 # Is the header present?
4233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4235 cat >conftest.
$ac_ext <<_ACEOF
4238 cat confdefs.h
>>conftest.
$ac_ext
4239 cat >>conftest.
$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <$ac_header>
4243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4246 grep -v '^ *+' conftest.er1
>conftest.err
4248 cat conftest.err
>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev
/null
; then
4251 if test -s conftest.err
; then
4252 ac_cpp_err
=$ac_c_preproc_warn_flag
4253 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4260 if test -z "$ac_cpp_err"; then
4261 ac_header_preproc
=yes
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.
$ac_ext >&5
4266 ac_header_preproc
=no
4268 rm -f conftest.err conftest.
$ac_ext
4269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4270 echo "${ECHO_T}$ac_header_preproc" >&6
4272 # So? What about this header?
4273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4279 ac_header_preproc
=yes
4282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4296 ## ------------------------------------------ ##
4297 ## Report this to the AC_PACKAGE_NAME lists. ##
4298 ## ------------------------------------------ ##
4301 sed "s/^/$as_me: WARNING: /" >&2
4304 echo "$as_me:$LINENO: checking for $ac_header" >&5
4305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 eval "$as_ac_Header=\$ac_header_preproc"
4311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 cat >>confdefs.h
<<_ACEOF
4317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4327 .
${srcdir}/..
/..
/bfd
/configure.
host
4332 cat >>confdefs.h
<<\_ACEOF
4333 #define USE_WIN32API 1
4339 ac_config_headers
="$ac_config_headers config.h:config.in"
4343 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4344 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4345 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 cat >conftest.
$ac_ext <<_ACEOF
4351 cat confdefs.h
>>conftest.
$ac_ext
4352 cat >>conftest.
$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 $ac_includes_default
4358 static struct stat ac_aggr;
4359 if (ac_aggr.st_blksize)
4365 rm -f conftest.
$ac_objext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1
>conftest.err
4371 cat conftest.err
>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try
='test -z "$ac_c_werror_flag"
4375 || test ! -s conftest.err'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try
='test -s conftest.$ac_objext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_member_struct_stat_st_blksize
=yes
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.
$ac_ext >&5
4392 cat >conftest.
$ac_ext <<_ACEOF
4395 cat confdefs.h
>>conftest.
$ac_ext
4396 cat >>conftest.
$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4402 static struct stat ac_aggr;
4403 if (sizeof ac_aggr.st_blksize)
4409 rm -f conftest.
$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
4413 grep -v '^ *+' conftest.er1
>conftest.err
4415 cat conftest.err
>&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try
='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try
='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_member_struct_stat_st_blksize
=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.
$ac_ext >&5
4436 ac_cv_member_struct_stat_st_blksize
=no
4438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4443 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4444 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4446 cat >>confdefs.h
<<_ACEOF
4447 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4451 cat >>confdefs.h
<<\_ACEOF
4452 #define HAVE_ST_BLKSIZE 1
4458 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4459 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4460 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 cat >conftest.
$ac_ext <<_ACEOF
4466 cat confdefs.h
>>conftest.
$ac_ext
4467 cat >>conftest.
$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 $ac_includes_default
4473 static struct stat ac_aggr;
4474 if (ac_aggr.st_blocks)
4480 rm -f conftest.
$ac_objext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4484 grep -v '^ *+' conftest.er1
>conftest.err
4486 cat conftest.err
>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try
='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try
='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_member_struct_stat_st_blocks
=yes
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.
$ac_ext >&5
4507 cat >conftest.
$ac_ext <<_ACEOF
4510 cat confdefs.h
>>conftest.
$ac_ext
4511 cat >>conftest.
$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4517 static struct stat ac_aggr;
4518 if (sizeof ac_aggr.st_blocks)
4524 rm -f conftest.
$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>conftest.er1
4528 grep -v '^ *+' conftest.er1
>conftest.err
4530 cat conftest.err
>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try
='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try
='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_cv_member_struct_stat_st_blocks
=yes
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.
$ac_ext >&5
4551 ac_cv_member_struct_stat_st_blocks
=no
4553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4557 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4558 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4559 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4561 cat >>confdefs.h
<<_ACEOF
4562 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4566 cat >>confdefs.h
<<\_ACEOF
4567 #define HAVE_ST_BLOCKS 1
4572 "fileblocks.$ac_objext" | \
4573 *" fileblocks.$ac_objext" | \
4574 "fileblocks.$ac_objext "* | \
4575 *" fileblocks.$ac_objext "* ) ;;
4576 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
4583 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4584 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4585 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 cat >conftest.
$ac_ext <<_ACEOF
4591 cat confdefs.h
>>conftest.
$ac_ext
4592 cat >>conftest.
$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 $ac_includes_default
4598 static struct stat ac_aggr;
4599 if (ac_aggr.st_rdev)
4605 rm -f conftest.
$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>conftest.er1
4609 grep -v '^ *+' conftest.er1
>conftest.err
4611 cat conftest.err
>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try
='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try
='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_cv_member_struct_stat_st_rdev
=yes
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.
$ac_ext >&5
4632 cat >conftest.
$ac_ext <<_ACEOF
4635 cat confdefs.h
>>conftest.
$ac_ext
4636 cat >>conftest.
$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4642 static struct stat ac_aggr;
4643 if (sizeof ac_aggr.st_rdev)
4649 rm -f conftest.
$ac_objext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>conftest.er1
4653 grep -v '^ *+' conftest.er1
>conftest.err
4655 cat conftest.err
>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try
='test -z "$ac_c_werror_flag"
4659 || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try
='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_cv_member_struct_stat_st_rdev
=yes
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.
$ac_ext >&5
4676 ac_cv_member_struct_stat_st_rdev
=no
4678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4683 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4684 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4686 cat >>confdefs.h
<<_ACEOF
4687 #define HAVE_STRUCT_STAT_ST_RDEV 1
4691 cat >>confdefs.h
<<\_ACEOF
4692 #define HAVE_ST_RDEV 1
4698 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4699 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4700 if test "${ac_cv_struct_tm+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 cat >conftest.
$ac_ext <<_ACEOF
4706 cat confdefs.h
>>conftest.
$ac_ext
4707 cat >>conftest.
$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 #include <sys/types.h>
4715 struct tm *tp; tp->tm_sec;
4720 rm -f conftest.
$ac_objext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722 (eval $ac_compile) 2>conftest.er1
4724 grep -v '^ *+' conftest.er1
>conftest.err
4726 cat conftest.err
>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try
='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try
='test -s conftest.$ac_objext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_struct_tm
=time.h
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.
$ac_ext >&5
4747 ac_cv_struct_tm
=sys
/time.h
4749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4751 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4752 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4753 if test $ac_cv_struct_tm = sys
/time.h
; then
4755 cat >>confdefs.h
<<\_ACEOF
4756 #define TM_IN_SYS_TIME 1
4761 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4762 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4763 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 cat >conftest.
$ac_ext <<_ACEOF
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 #include <sys/types.h>
4773 #include <$ac_cv_struct_tm>
4779 static struct tm ac_aggr;
4780 if (ac_aggr.tm_zone)
4786 rm -f conftest.
$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4790 grep -v '^ *+' conftest.er1
>conftest.err
4792 cat conftest.err
>&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try
='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try
='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_cv_member_struct_tm_tm_zone
=yes
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.
$ac_ext >&5
4813 cat >conftest.
$ac_ext <<_ACEOF
4816 cat confdefs.h
>>conftest.
$ac_ext
4817 cat >>conftest.
$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 #include <$ac_cv_struct_tm>
4826 static struct tm ac_aggr;
4827 if (sizeof ac_aggr.tm_zone)
4833 rm -f conftest.
$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4837 grep -v '^ *+' conftest.er1
>conftest.err
4839 cat conftest.err
>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try
='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try
='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_member_struct_tm_tm_zone
=yes
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.
$ac_ext >&5
4860 ac_cv_member_struct_tm_tm_zone
=no
4862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4866 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4867 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4868 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4870 cat >>confdefs.h
<<_ACEOF
4871 #define HAVE_STRUCT_TM_TM_ZONE 1
4877 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4879 cat >>confdefs.h
<<\_ACEOF
4880 #define HAVE_TM_ZONE 1
4884 echo "$as_me:$LINENO: checking for tzname" >&5
4885 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4886 if test "${ac_cv_var_tzname+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 cat >conftest.
$ac_ext <<_ACEOF
4892 cat confdefs.h
>>conftest.
$ac_ext
4893 cat >>conftest.
$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4896 #ifndef tzname /* For SGI. */
4897 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4908 rm -f conftest.
$ac_objext conftest
$ac_exeext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4910 (eval $ac_link) 2>conftest.er1
4912 grep -v '^ *+' conftest.er1
>conftest.err
4914 cat conftest.err
>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try
='test -z "$ac_c_werror_flag"
4918 || test ! -s conftest.err'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; } &&
4924 { ac_try
='test -s conftest$ac_exeext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_cv_var_tzname
=yes
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.
$ac_ext >&5
4937 rm -f conftest.err conftest.
$ac_objext \
4938 conftest
$ac_exeext conftest.
$ac_ext
4940 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4941 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4942 if test $ac_cv_var_tzname = yes; then
4944 cat >>confdefs.h
<<\_ACEOF
4945 #define HAVE_TZNAME 1
4952 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4953 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4954 if test "${ac_cv_type_uid_t+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 cat >conftest.
$ac_ext <<_ACEOF
4960 cat confdefs.h
>>conftest.
$ac_ext
4961 cat >>conftest.
$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 #include <sys/types.h>
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 $EGREP "uid_t" >/dev
/null
2>&1; then
4968 ac_cv_type_uid_t
=yes
4975 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4976 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4977 if test $ac_cv_type_uid_t = no
; then
4979 cat >>confdefs.h
<<\_ACEOF
4984 cat >>confdefs.h
<<\_ACEOF
4990 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
4991 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4992 if test "${ac_cv_type_getgroups+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 if test "$cross_compiling" = yes; then
4996 ac_cv_type_getgroups
=cross
4998 cat >conftest.
$ac_ext <<_ACEOF
5001 cat confdefs.h
>>conftest.
$ac_ext
5002 cat >>conftest.
$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 /* Thanks to Mike Rendell for this test. */
5005 #include <sys/types.h>
5008 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5015 union { gid_t gval; long lval; } val;
5018 for (i = 0; i < NGID; i++)
5019 gidset[i] = val.gval;
5020 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5022 /* Exit non-zero if getgroups seems to require an array of ints. This
5023 happens when gid_t is short but getgroups modifies an array of ints. */
5024 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5027 rm -f conftest
$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_cv_type_getgroups
=gid_t
5040 echo "$as_me: program exited with status $ac_status" >&5
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.
$ac_ext >&5
5045 ac_cv_type_getgroups
=int
5047 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5049 if test $ac_cv_type_getgroups = cross
; then
5050 cat >conftest.
$ac_ext <<_ACEOF
5053 cat confdefs.h
>>conftest.
$ac_ext
5054 cat >>conftest.
$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
5061 ac_cv_type_getgroups
=gid_t
5063 ac_cv_type_getgroups
=int
5069 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
5070 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
5072 cat >>confdefs.h
<<_ACEOF
5073 #define GETGROUPS_T $ac_cv_type_getgroups
5077 echo "$as_me:$LINENO: checking for mode_t" >&5
5078 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5079 if test "${ac_cv_type_mode_t+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 cat >conftest.
$ac_ext <<_ACEOF
5085 cat confdefs.h
>>conftest.
$ac_ext
5086 cat >>conftest.
$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 $ac_includes_default
5094 if (sizeof (mode_t))
5100 rm -f conftest.
$ac_objext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102 (eval $ac_compile) 2>conftest.er1
5104 grep -v '^ *+' conftest.er1
>conftest.err
5106 cat conftest.err
>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } &&
5109 { ac_try
='test -z "$ac_c_werror_flag"
5110 || test ! -s conftest.err'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; } &&
5116 { ac_try
='test -s conftest.$ac_objext'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5122 ac_cv_type_mode_t
=yes
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.
$ac_ext >&5
5127 ac_cv_type_mode_t
=no
5129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5131 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5132 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5133 if test $ac_cv_type_mode_t = yes; then
5137 cat >>confdefs.h
<<_ACEOF
5143 echo "$as_me:$LINENO: checking for off_t" >&5
5144 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5145 if test "${ac_cv_type_off_t+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 cat >conftest.
$ac_ext <<_ACEOF
5151 cat confdefs.h
>>conftest.
$ac_ext
5152 cat >>conftest.
$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5166 rm -f conftest.
$ac_objext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168 (eval $ac_compile) 2>conftest.er1
5170 grep -v '^ *+' conftest.er1
>conftest.err
5172 cat conftest.err
>&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } &&
5175 { ac_try
='test -z "$ac_c_werror_flag"
5176 || test ! -s conftest.err'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; } &&
5182 { ac_try
='test -s conftest.$ac_objext'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_cv_type_off_t
=yes
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.
$ac_ext >&5
5195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5197 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5198 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5199 if test $ac_cv_type_off_t = yes; then
5203 cat >>confdefs.h
<<_ACEOF
5209 echo "$as_me:$LINENO: checking for pid_t" >&5
5210 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5211 if test "${ac_cv_type_pid_t+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 cat >conftest.
$ac_ext <<_ACEOF
5217 cat confdefs.h
>>conftest.
$ac_ext
5218 cat >>conftest.
$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5232 rm -f conftest.
$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>conftest.er1
5236 grep -v '^ *+' conftest.er1
>conftest.err
5238 cat conftest.err
>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try
='test -s conftest.$ac_objext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_type_pid_t
=yes
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.
$ac_ext >&5
5261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5263 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5264 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5265 if test $ac_cv_type_pid_t = yes; then
5269 cat >>confdefs.h
<<_ACEOF
5275 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5276 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5277 if test "${ac_cv_type_signal+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 cat >conftest.
$ac_ext <<_ACEOF
5283 cat confdefs.h
>>conftest.
$ac_ext
5284 cat >>conftest.
$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 #include <sys/types.h>
5292 extern "C" void (*signal (int, void (*)(int)))(int);
5294 void (*signal ()) ();
5305 rm -f conftest.
$ac_objext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5307 (eval $ac_compile) 2>conftest.er1
5309 grep -v '^ *+' conftest.er1
>conftest.err
5311 cat conftest.err
>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try
='test -z "$ac_c_werror_flag"
5315 || test ! -s conftest.err'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; } &&
5321 { ac_try
='test -s conftest.$ac_objext'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5327 ac_cv_type_signal
=void
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.
$ac_ext >&5
5332 ac_cv_type_signal
=int
5334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5336 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5337 echo "${ECHO_T}$ac_cv_type_signal" >&6
5339 cat >>confdefs.h
<<_ACEOF
5340 #define RETSIGTYPE $ac_cv_type_signal
5344 echo "$as_me:$LINENO: checking for size_t" >&5
5345 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5346 if test "${ac_cv_type_size_t+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 cat >conftest.
$ac_ext <<_ACEOF
5352 cat confdefs.h
>>conftest.
$ac_ext
5353 cat >>conftest.
$ac_ext <<_ACEOF
5354 /* end confdefs.h. */
5355 $ac_includes_default
5361 if (sizeof (size_t))
5367 rm -f conftest.
$ac_objext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>conftest.er1
5371 grep -v '^ *+' conftest.er1
>conftest.err
5373 cat conftest.err
>&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try
='test -z "$ac_c_werror_flag"
5377 || test ! -s conftest.err'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; } &&
5383 { ac_try
='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_type_size_t
=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.
$ac_ext >&5
5394 ac_cv_type_size_t
=no
5396 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5399 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5400 if test $ac_cv_type_size_t = yes; then
5404 cat >>confdefs.h
<<_ACEOF
5405 #define size_t unsigned
5410 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5411 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5412 if test "${ac_cv_type_uid_t+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 cat >conftest.
$ac_ext <<_ACEOF
5418 cat confdefs.h
>>conftest.
$ac_ext
5419 cat >>conftest.
$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <sys/types.h>
5424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5425 $EGREP "uid_t" >/dev
/null
2>&1; then
5426 ac_cv_type_uid_t
=yes
5433 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5434 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5435 if test $ac_cv_type_uid_t = no
; then
5437 cat >>confdefs.h
<<\_ACEOF
5442 cat >>confdefs.h
<<\_ACEOF
5499 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
5501 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5502 echo "$as_me:$LINENO: checking for $ac_func" >&5
5503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5504 if eval "test \"\${$as_ac_var+set}\" = set"; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 cat >conftest.
$ac_ext <<_ACEOF
5510 cat confdefs.h
>>conftest.
$ac_ext
5511 cat >>conftest.
$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5515 #define $ac_func innocuous_$ac_func
5517 /* System header to define __stub macros and hopefully few prototypes,
5518 which can conflict with char $ac_func (); below.
5519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5520 <limits.h> exists even on freestanding compilers. */
5523 # include <limits.h>
5525 # include <assert.h>
5530 /* Override any gcc2 internal prototype to avoid an error. */
5535 /* We use char because int might match the return type of a gcc2
5536 builtin and then its argument prototype would still apply. */
5538 /* The GNU C library defines this for functions which it implements
5539 to always fail with ENOSYS. Some functions are actually named
5540 something starting with __ and the normal name is an alias. */
5541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5544 char (*f) () = $ac_func;
5553 return f != $ac_func;
5558 rm -f conftest.
$ac_objext conftest
$ac_exeext
5559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560 (eval $ac_link) 2>conftest.er1
5562 grep -v '^ *+' conftest.er1
>conftest.err
5564 cat conftest.err
>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } &&
5567 { ac_try
='test -z "$ac_c_werror_flag"
5568 || test ! -s conftest.err'
5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; } &&
5574 { ac_try
='test -s conftest$ac_exeext'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5580 eval "$as_ac_var=yes"
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.
$ac_ext >&5
5585 eval "$as_ac_var=no"
5587 rm -f conftest.err conftest.
$ac_objext \
5588 conftest
$ac_exeext conftest.
$ac_ext
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5592 if test `eval echo '${'$as_ac_var'}'` = yes; then
5593 cat >>confdefs.h
<<_ACEOF
5594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5619 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
5621 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5623 echo "$as_me:$LINENO: checking for $ac_header" >&5
5624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5631 # Is the header compilable?
5632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5634 cat >conftest.
$ac_ext <<_ACEOF
5637 cat confdefs.h
>>conftest.
$ac_ext
5638 cat >>conftest.
$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5641 #include <$ac_header>
5643 rm -f conftest.
$ac_objext
5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5645 (eval $ac_compile) 2>conftest.er1
5647 grep -v '^ *+' conftest.er1
>conftest.err
5649 cat conftest.err
>&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
5652 { ac_try
='test -z "$ac_c_werror_flag"
5653 || test ! -s conftest.err'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; } &&
5659 { ac_try
='test -s conftest.$ac_objext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 ac_header_compiler
=yes
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.
$ac_ext >&5
5670 ac_header_compiler
=no
5672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5674 echo "${ECHO_T}$ac_header_compiler" >&6
5676 # Is the header present?
5677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5679 cat >conftest.
$ac_ext <<_ACEOF
5682 cat confdefs.h
>>conftest.
$ac_ext
5683 cat >>conftest.
$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 #include <$ac_header>
5687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5688 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5690 grep -v '^ *+' conftest.er1
>conftest.err
5692 cat conftest.err
>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } >/dev
/null
; then
5695 if test -s conftest.err
; then
5696 ac_cpp_err
=$ac_c_preproc_warn_flag
5697 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5704 if test -z "$ac_cpp_err"; then
5705 ac_header_preproc
=yes
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.
$ac_ext >&5
5710 ac_header_preproc
=no
5712 rm -f conftest.err conftest.
$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5714 echo "${ECHO_T}$ac_header_preproc" >&6
5716 # So? What about this header?
5717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5723 ac_header_preproc
=yes
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5740 ## ------------------------------------------ ##
5741 ## Report this to the AC_PACKAGE_NAME lists. ##
5742 ## ------------------------------------------ ##
5745 sed "s/^/$as_me: WARNING: /" >&2
5748 echo "$as_me:$LINENO: checking for $ac_header" >&5
5749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 eval "$as_ac_Header=\$ac_header_preproc"
5755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5760 cat >>confdefs.h
<<_ACEOF
5761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5774 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5775 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5776 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5777 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 cat >conftest.
$ac_ext <<_ACEOF
5784 cat confdefs.h
>>conftest.
$ac_ext
5785 cat >>conftest.
$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 #include <sys/types.h>
5799 rm -f conftest.
$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1
>conftest.err
5805 cat conftest.err
>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try
='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try
='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 eval "$as_ac_Header=yes"
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.
$ac_ext >&5
5826 eval "$as_ac_Header=no"
5828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5833 cat >>confdefs.h
<<_ACEOF
5834 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5837 ac_header_dirent
=$ac_hdr; break
5841 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5842 if test $ac_header_dirent = dirent.h
; then
5843 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5844 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5845 if test "${ac_cv_search_opendir+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 ac_func_search_save_LIBS
=$LIBS
5849 ac_cv_search_opendir
=no
5850 cat >conftest.
$ac_ext <<_ACEOF
5853 cat confdefs.h
>>conftest.
$ac_ext
5854 cat >>conftest.
$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 /* Override any gcc2 internal prototype to avoid an error. */
5861 /* We use char because int might match the return type of a gcc2
5862 builtin and then its argument prototype would still apply. */
5872 rm -f conftest.
$ac_objext conftest
$ac_exeext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>conftest.er1
5876 grep -v '^ *+' conftest.er1
>conftest.err
5878 cat conftest.err
>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try
='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try
='test -s conftest$ac_exeext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_cv_search_opendir
="none required"
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.
$ac_ext >&5
5900 rm -f conftest.err conftest.
$ac_objext \
5901 conftest
$ac_exeext conftest.
$ac_ext
5902 if test "$ac_cv_search_opendir" = no
; then
5903 for ac_lib
in dir
; do
5904 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5905 cat >conftest.
$ac_ext <<_ACEOF
5908 cat confdefs.h
>>conftest.
$ac_ext
5909 cat >>conftest.
$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5912 /* Override any gcc2 internal prototype to avoid an error. */
5916 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */
5927 rm -f conftest.
$ac_objext conftest
$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>conftest.er1
5931 grep -v '^ *+' conftest.er1
>conftest.err
5933 cat conftest.err
>&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try
='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try
='test -s conftest$ac_exeext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_cv_search_opendir
="-l$ac_lib"
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5956 rm -f conftest.err conftest.
$ac_objext \
5957 conftest
$ac_exeext conftest.
$ac_ext
5960 LIBS
=$ac_func_search_save_LIBS
5962 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5963 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5964 if test "$ac_cv_search_opendir" != no
; then
5965 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
5970 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5971 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5972 if test "${ac_cv_search_opendir+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 ac_func_search_save_LIBS
=$LIBS
5976 ac_cv_search_opendir
=no
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5984 /* Override any gcc2 internal prototype to avoid an error. */
5988 /* We use char because int might match the return type of a gcc2
5989 builtin and then its argument prototype would still apply. */
5999 rm -f conftest.
$ac_objext conftest
$ac_exeext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001 (eval $ac_link) 2>conftest.er1
6003 grep -v '^ *+' conftest.er1
>conftest.err
6005 cat conftest.err
>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try
='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try
='test -s conftest$ac_exeext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_search_opendir
="none required"
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.
$ac_ext >&5
6027 rm -f conftest.err conftest.
$ac_objext \
6028 conftest
$ac_exeext conftest.
$ac_ext
6029 if test "$ac_cv_search_opendir" = no
; then
6031 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6039 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */
6054 rm -f conftest.
$ac_objext conftest
$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>conftest.er1
6058 grep -v '^ *+' conftest.er1
>conftest.err
6060 cat conftest.err
>&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try
='test -z "$ac_c_werror_flag"
6064 || test ! -s conftest.err'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; } &&
6070 { ac_try
='test -s conftest$ac_exeext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_search_opendir
="-l$ac_lib"
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.
$ac_ext >&5
6083 rm -f conftest.err conftest.
$ac_objext \
6084 conftest
$ac_exeext conftest.
$ac_ext
6087 LIBS
=$ac_func_search_save_LIBS
6089 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6090 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6091 if test "$ac_cv_search_opendir" != no
; then
6092 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
6100 echo "$as_me:$LINENO: checking for struct termios" >&5
6101 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
6102 if test "${ac_cv_termios_struct+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 cat >conftest.
$ac_ext <<_ACEOF
6108 cat confdefs.h
>>conftest.
$ac_ext
6109 cat >>conftest.
$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <sys/types.h>
6112 #include <sys/termios.h>
6116 static struct termios x;
6126 rm -f conftest.
$ac_objext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6128 (eval $ac_compile) 2>conftest.er1
6130 grep -v '^ *+' conftest.er1
>conftest.err
6132 cat conftest.err
>&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try
='test -z "$ac_c_werror_flag"
6136 || test ! -s conftest.err'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; } &&
6142 { ac_try
='test -s conftest.$ac_objext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 ac_cv_termios_struct
=yes
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.
$ac_ext >&5
6153 ac_cv_termios_struct
=no
6155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6158 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
6159 echo "${ECHO_T}$ac_cv_termios_struct" >&6
6160 if test $ac_cv_termios_struct = yes; then
6161 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
6164 if test "$ac_cv_termios_struct" = "yes"; then
6165 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
6166 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
6167 if test "${ac_cv_termios_cline+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 cat >conftest.
$ac_ext <<_ACEOF
6173 cat confdefs.h
>>conftest.
$ac_ext
6174 cat >>conftest.
$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 #include <sys/types.h>
6177 #include <sys/termios.h>
6181 static struct termios x; x.c_line = 0;
6186 rm -f conftest.
$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>conftest.er1
6190 grep -v '^ *+' conftest.er1
>conftest.err
6192 cat conftest.err
>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try
='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try
='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_termios_cline
=yes
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.
$ac_ext >&5
6213 ac_cv_termios_cline
=no
6215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6219 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
6220 echo "${ECHO_T}$ac_cv_termios_cline" >&6
6221 if test $ac_cv_termios_cline = yes; then
6222 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
6225 ac_cv_termios_cline
=no
6228 if test "$ac_cv_termios_struct" != "yes"; then
6229 echo "$as_me:$LINENO: checking for struct termio" >&5
6230 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
6231 if test "${ac_cv_termio_struct+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.
$ac_ext <<_ACEOF
6237 cat confdefs.h
>>conftest.
$ac_ext
6238 cat >>conftest.
$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <sys/types.h>
6241 #include <sys/termio.h>
6245 static struct termio x;
6255 rm -f conftest.
$ac_objext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6257 (eval $ac_compile) 2>conftest.er1
6259 grep -v '^ *+' conftest.er1
>conftest.err
6261 cat conftest.err
>&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
6264 { ac_try
='test -z "$ac_c_werror_flag"
6265 || test ! -s conftest.err'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try
='test -s conftest.$ac_objext'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6277 ac_cv_termio_struct
=yes
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.
$ac_ext >&5
6282 ac_cv_termio_struct
=no
6284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6287 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
6288 echo "${ECHO_T}$ac_cv_termio_struct" >&6
6289 if test $ac_cv_termio_struct = yes; then
6290 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
6293 ac_cv_termio_struct
=no
6296 if test "$ac_cv_termio_struct" = "yes"; then
6297 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
6298 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
6299 if test "${ac_cv_termio_cline+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 cat >conftest.
$ac_ext <<_ACEOF
6305 cat confdefs.h
>>conftest.
$ac_ext
6306 cat >>conftest.
$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 #include <sys/types.h>
6309 #include <sys/termio.h>
6313 static struct termio x; x.c_line = 0;
6318 rm -f conftest.
$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>conftest.er1
6322 grep -v '^ *+' conftest.er1
>conftest.err
6324 cat conftest.err
>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try
='test -z "$ac_c_werror_flag"
6328 || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try
='test -s conftest.$ac_objext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_cv_termio_cline
=yes
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.
$ac_ext >&5
6345 ac_cv_termio_cline
=no
6347 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6351 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6352 echo "${ECHO_T}$ac_cv_termio_cline" >&6
6353 if test $ac_cv_termio_cline = yes; then
6354 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
6357 ac_cv_termio_cline
=no
6360 echo "$as_me:$LINENO: checking for struct statfs" >&5
6361 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6362 if test "${ac_cv_struct_statfs+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 cat >conftest.
$ac_ext <<_ACEOF
6368 cat confdefs.h
>>conftest.
$ac_ext
6369 cat >>conftest.
$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 #include <sys/types.h>
6372 #ifdef HAVE_SYS_PARAM_H
6373 #include <sys/param.h>
6375 #ifdef HAVE_SYS_MOUNT_H
6376 #include <sys/mount.h>
6378 #ifdef HAVE_SYS_VFS_H
6379 #include <sys/vfs.h>
6381 #ifdef HAVE_SYS_STATFS_H
6382 #include <sys/statfs.h>
6387 static struct statfs s;
6392 rm -f conftest.
$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6396 grep -v '^ *+' conftest.er1
>conftest.err
6398 cat conftest.err
>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try
='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try
='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_struct_statfs
=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.
$ac_ext >&5
6419 ac_cv_struct_statfs
=no
6421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6425 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6426 if test $ac_cv_struct_statfs = yes; then
6428 cat >>confdefs.h
<<\_ACEOF
6429 #define HAVE_STRUCT_STATFS 1
6434 echo "$as_me:$LINENO: checking for long long" >&5
6435 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6436 if test "${ac_cv_type_long_long+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 cat >conftest.
$ac_ext <<_ACEOF
6442 cat confdefs.h
>>conftest.
$ac_ext
6443 cat >>conftest.
$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 $ac_includes_default
6449 if ((long long *) 0)
6451 if (sizeof (long long))
6457 rm -f conftest.
$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>conftest.er1
6461 grep -v '^ *+' conftest.er1
>conftest.err
6463 cat conftest.err
>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try
='test -z "$ac_c_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try
='test -s conftest.$ac_objext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_cv_type_long_long
=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.
$ac_ext >&5
6484 ac_cv_type_long_long
=no
6486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6488 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6489 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6490 if test $ac_cv_type_long_long = yes; then
6492 cat >>confdefs.h
<<_ACEOF
6493 #define HAVE_LONG_LONG 1
6501 echo "$as_me:$LINENO: checking for /dev/zero" >&5
6502 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6503 if test "${ac_cv_devzero+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 if test "$cross_compiling" = yes; then
6509 cat >conftest.
$ac_ext <<_ACEOF
6512 cat confdefs.h
>>conftest.
$ac_ext
6513 cat >>conftest.
$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6519 int fd = open ("/dev/zero", O_RDONLY);
6522 for (i = 0; i < sizeof (buf); i++)
6524 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6526 for (i = 0; i < sizeof (buf); i++)
6532 rm -f conftest
$ac_exeext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534 (eval $ac_link) 2>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6545 echo "$as_me: program exited with status $ac_status" >&5
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.
$ac_ext >&5
6552 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6556 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6557 echo "${ECHO_T}$ac_cv_devzero" >&6
6558 if test $ac_cv_devzero = yes; then
6559 sim_devzero
="-DHAVE_DEVZERO"
6564 echo "$as_me:$LINENO: checking for common simulator directory" >&5
6565 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6566 if test -f "${srcdir}/../common/callback.c"; then
6567 echo "$as_me:$LINENO: result: yes" >&5
6568 echo "${ECHO_T}yes" >&6
6569 sim_callback
="callback.o targ-map.o"
6570 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
6572 echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6
6578 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6579 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6580 if test -f "${srcdir}/../common/sim-fpu.c"; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582 echo "${ECHO_T}yes" >&6
6583 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6586 echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6602 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6603 echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6605 if test "${ac_cv_prog_RANLIB+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 if test -n "$RANLIB"; then
6609 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir
=.
6616 for ac_exec_ext
in '' $ac_executable_extensions; do
6617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 RANLIB
=$ac_cv_prog_RANLIB
6628 if test -n "$RANLIB"; then
6629 echo "$as_me:$LINENO: result: $RANLIB" >&5
6630 echo "${ECHO_T}$RANLIB" >&6
6632 echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6
6637 if test -z "$ac_cv_prog_RANLIB"; then
6638 ac_ct_RANLIB
=$RANLIB
6639 # Extract the first word of "ranlib", so it can be a program name with args.
6640 set dummy ranlib
; ac_word
=$2
6641 echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6643 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 if test -n "$ac_ct_RANLIB"; then
6647 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir
=.
6654 for ac_exec_ext
in '' $ac_executable_extensions; do
6655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6666 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6667 if test -n "$ac_ct_RANLIB"; then
6668 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6669 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6671 echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6
6675 RANLIB
=$ac_ct_RANLIB
6677 RANLIB
="$ac_cv_prog_RANLIB"
6725 ac_config_files
="$ac_config_files Makefile"
6726 ac_config_commands
="$ac_config_commands default"
6727 cat >confcache
<<\_ACEOF
6728 # This file is a shell script that caches the results of configure
6729 # tests run on this system so they can be shared between configure
6730 # scripts and configure runs, see configure's option --config-cache.
6731 # It is not useful on other systems. If it contains results you don't
6732 # want to keep, you may remove or edit it.
6734 # config.status only pays attention to the cache file if you give it
6735 # the --recheck option to rerun configure.
6737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6743 # The following way of writing the cache mishandles newlines in values,
6744 # but we know of no workaround that is simple, portable, and efficient.
6745 # So, don't put newlines in cache variables' values.
6746 # Ultrix sh set writes to stderr and can't be redirected directly,
6747 # and sets the high bit in the cache file unless we assign to the vars.
6750 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6752 # `set' does not quote correctly, so add quotes (double-quote
6753 # substitution turns \\\\ into \\, and sed turns \\ into \).
6756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6759 # `set' quotes correctly as required by POSIX, so do not add quotes.
6761 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6768 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6770 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6772 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6773 if test -w $cache_file; then
6774 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6775 cat confcache
>$cache_file
6777 echo "not updating unwritable cache $cache_file"
6782 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6783 # Let make expand exec_prefix.
6784 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6788 # trailing colons and then remove the whole line if VPATH becomes empty
6789 # (actually we leave an empty line to preserve line numbers).
6790 if test "x$srcdir" = x.
; then
6791 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6792 s/:*\$(srcdir):*/:/;
6793 s/:*\${srcdir}:*/:/;
6795 s/^\([^=]*=[ ]*\):*/\1/;
6801 DEFS
=-DHAVE_CONFIG_H
6805 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6806 # 1. Remove the extension, and $U if already installed.
6807 ac_i
=`echo "$ac_i" |
6808 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6810 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6811 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6815 LTLIBOBJS
=$ac_ltlibobjs
6819 : ${CONFIG_STATUS=./config.status}
6820 ac_clean_files_save
=$ac_clean_files
6821 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6822 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6823 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6824 cat >$CONFIG_STATUS <<_ACEOF
6826 # Generated by $as_me.
6827 # Run this file to recreate the current configuration.
6828 # Compiler output produced by configure, useful for debugging
6829 # configure, is in config.log if it exists.
6834 SHELL=\${CONFIG_SHELL-$SHELL}
6837 cat >>$CONFIG_STATUS <<\_ACEOF
6838 ## --------------------- ##
6839 ## M4sh Initialization. ##
6840 ## --------------------- ##
6842 # Be Bourne compatible
6843 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6846 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6847 # is contrary to our usage. Disable this feature.
6848 alias -g '${1+"$@"}'='"$@"'
6849 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6852 DUALCASE
=1; export DUALCASE
# for MKS sh
6854 # Support unset when possible.
6855 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6862 # Work around bugs in pre-3.0 UWIN ksh.
6863 $as_unset ENV MAIL MAILPATH
6870 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6871 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6872 LC_TELEPHONE LC_TIME
6874 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6875 eval $as_var=C
; export $as_var
6881 # Required to use basename.
6882 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6888 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6889 as_basename
=basename
6895 # Name of the executable.
6896 as_me
=`$as_basename "$0" ||
6897 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6898 X"$0" : 'X\(//\)$' \| \
6899 X"$0" : 'X\(/\)$' \| \
6900 . : '\(.\)' 2>/dev/null ||
6902 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6903 /^X\/\(\/\/\)$/{ s//\1/; q; }
6904 /^X\/\(\/\).*/{ s//\1/; q; }
6908 # PATH needs CR, and LINENO needs CR and PATH.
6909 # Avoid depending upon Character Ranges.
6910 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6911 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6912 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6913 as_cr_digits
='0123456789'
6914 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6916 # The user is always right.
6917 if test "${PATH_SEPARATOR+set}" != set; then
6918 echo "#! /bin/sh" >conf$$.sh
6919 echo "exit 0" >>conf$$.sh
6921 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6932 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6933 test "x$as_lineno_1" != "x$as_lineno_2" &&
6934 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6935 # Find who we are. Look in the path if we contain no path at all
6938 *[\\/]* ) as_myself
=$0 ;;
6939 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir
=.
6944 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6949 # We did not find ourselves, most probably we were run as `sh COMMAND'
6950 # in which case we are not to be found in the path.
6951 if test "x$as_myself" = x
; then
6954 if test ! -f "$as_myself"; then
6955 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6956 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6957 { (exit 1); exit 1; }; }
6959 case $CONFIG_SHELL in
6961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6962 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6965 test -z "$as_dir" && as_dir
=.
6966 for as_base
in sh bash ksh sh5
; do
6969 if ("$as_dir/$as_base" -c '
6972 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6973 test "x$as_lineno_1" != "x$as_lineno_2" &&
6974 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6975 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6976 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6977 CONFIG_SHELL
=$as_dir/$as_base
6979 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6987 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6988 # uniformly replaced by the line number. The first 'sed' inserts a
6989 # line-number line before each line; the second 'sed' does the real
6990 # work. The second script uses 'N' to pair each line-number line
6991 # with the numbered line, and appends trailing '-' during
6992 # substitution so that $LINENO is not a special case at line end.
6993 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6994 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6995 sed '=' <$as_myself |
7000 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7003 s,^['$as_cr_digits']*\n,,
7005 chmod +x
$as_me.lineno ||
7006 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7007 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7008 { (exit 1); exit 1; }; }
7010 # Don't try to exec as it changes $[0], causing all sort of problems
7011 # (the dirname of $[0] is not the place where we might find the
7012 # original and so on. Autoconf is especially sensible to this).
7014 # Exit status is that of the last command.
7019 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7020 *c
*,-n*) ECHO_N
= ECHO_C
='
7022 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7023 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7026 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7032 rm -f conf$$ conf$$.exe conf$$.
file
7034 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7035 # We could just check for DJGPP; but this test a) works b) is more generic
7036 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7037 if test -f conf$$.exe
; then
7038 # Don't use ln at all; we don't have any links
7043 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7048 rm -f conf$$ conf$$.exe conf$$.
file
7050 if mkdir
-p .
2>/dev
/null
; then
7053 test -d .
/-p && rmdir .
/-p
7057 as_executable_p
="test -f"
7059 # Sed expression to map a string onto a valid CPP name.
7060 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7062 # Sed expression to map a string onto a valid variable name.
7063 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7067 # We need space, tab and new line, in precisely that order.
7077 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7078 # report actual input values of CONFIG_FILES etc. instead of their
7079 # values after options handling. Logging --version etc. is OK.
7083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7084 ## Running $as_me. ##
7089 This file was extended by $as_me, which was
7090 generated by GNU Autoconf 2.59. Invocation command line was
7092 CONFIG_FILES = $CONFIG_FILES
7093 CONFIG_HEADERS = $CONFIG_HEADERS
7094 CONFIG_LINKS = $CONFIG_LINKS
7095 CONFIG_COMMANDS = $CONFIG_COMMANDS
7099 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7103 # Files that config.status was made for.
7104 if test -n "$ac_config_files"; then
7105 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7108 if test -n "$ac_config_headers"; then
7109 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7112 if test -n "$ac_config_links"; then
7113 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7116 if test -n "$ac_config_commands"; then
7117 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7120 cat >>$CONFIG_STATUS <<\_ACEOF
7123 \`$as_me' instantiates files from templates according to the
7124 current configuration.
7126 Usage: $0 [OPTIONS] [FILE]...
7128 -h, --help print this help, then exit
7129 -V, --version print version number, then exit
7130 -q, --quiet do not print progress messages
7131 -d, --debug don't remove temporary files
7132 --recheck update $as_me by reconfiguring in the same conditions
7133 --file=FILE[:TEMPLATE]
7134 instantiate the configuration file FILE
7135 --header=FILE[:TEMPLATE]
7136 instantiate the configuration header FILE
7138 Configuration files:
7141 Configuration headers:
7144 Configuration commands:
7147 Report bugs to <bug-autoconf@gnu.org>."
7150 cat >>$CONFIG_STATUS <<_ACEOF
7153 configured by $0, generated by GNU Autoconf 2.59,
7154 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7156 Copyright (C) 2003 Free Software Foundation, Inc.
7157 This config.status script is free software; the Free Software Foundation
7158 gives unlimited permission to copy, distribute and modify it."
7163 cat >>$CONFIG_STATUS <<\_ACEOF
7164 # If no file are specified by the user, then we need to provide default
7165 # value. By we need to know if files were specified by the user.
7171 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7172 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7180 *) # This is not an option, so the user has probably given explicit
7183 ac_need_defaults
=false
;;
7187 # Handling of the options.
7189 cat >>$CONFIG_STATUS <<\_ACEOF
7190 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7192 --version |
--vers* |
-V )
7193 echo "$ac_cs_version"; exit 0 ;;
7195 # Conflict between --help and --header
7196 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7197 Try \`$0 --help' for more information." >&5
7198 echo "$as_me: error: ambiguous option: $1
7199 Try \`$0 --help' for more information." >&2;}
7200 { (exit 1); exit 1; }; };;
7201 --help |
--hel |
-h )
7202 echo "$ac_cs_usage"; exit 0 ;;
7203 --debug |
--d* |
-d )
7205 --file |
--fil |
--fi |
--f )
7207 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7208 ac_need_defaults
=false
;;
7209 --header |
--heade |
--head |
--hea )
7211 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7212 ac_need_defaults
=false
;;
7213 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7214 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7218 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7219 Try \`$0 --help' for more information." >&5
7220 echo "$as_me: error: unrecognized option: $1
7221 Try \`$0 --help' for more information." >&2;}
7222 { (exit 1); exit 1; }; } ;;
7224 *) ac_config_targets
="$ac_config_targets $1" ;;
7230 ac_configure_extra_args
=
7232 if $ac_cs_silent; then
7234 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7238 cat >>$CONFIG_STATUS <<_ACEOF
7239 if \$ac_cs_recheck; then
7240 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7241 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7250 cat >>$CONFIG_STATUS <<\_ACEOF
7251 for ac_config_target
in $ac_config_targets
7253 case "$ac_config_target" in
7254 # Handling of arguments.
7255 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7256 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7257 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
7258 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7259 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7260 { (exit 1); exit 1; }; };;
7264 # If the user did not use the arguments to specify the items to instantiate,
7265 # then the envvar interface is used. Set only those that are not.
7266 # We use the long form for the default assignment because of an extremely
7267 # bizarre bug on SunOS 4.1.3.
7268 if $ac_need_defaults; then
7269 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7270 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7274 # Have a temporary directory for convenience. Make it in the build tree
7275 # simply because there is no reason to put it here, and in addition,
7276 # creating and moving files from /tmp can sometimes cause problems.
7277 # Create a temporary directory, and hook for its removal unless debugging.
7280 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7281 trap '{ (exit 1); exit 1; }' 1 2 13 15
7284 # Create a (secure) tmp directory for tmp files.
7287 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7288 test -n "$tmp" && test -d "$tmp"
7291 tmp
=.
/confstat$$
-$RANDOM
7292 (umask 077 && mkdir
$tmp)
7295 echo "$me: cannot create a temporary directory in ." >&2
7296 { (exit 1); exit 1; }
7301 cat >>$CONFIG_STATUS <<_ACEOF
7304 # CONFIG_FILES section.
7307 # No need to generate the scripts if there are no CONFIG_FILES.
7308 # This happens for instance when ./config.status config.h
7309 if test -n "\$CONFIG_FILES"; then
7310 # Protect against being on the right side of a sed subst in config.status.
7311 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7312 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7313 s,@sim_environment@,$sim_environment,;t t
7314 s,@sim_alignment@,$sim_alignment,;t t
7315 s,@sim_assert@,$sim_assert,;t t
7316 s,@sim_bitsize@,$sim_bitsize,;t t
7317 s,@sim_endian@,$sim_endian,;t t
7318 s,@sim_hostendian@,$sim_hostendian,;t t
7319 s,@sim_float@,$sim_float,;t t
7320 s,@sim_scache@,$sim_scache,;t t
7321 s,@sim_default_model@,$sim_default_model,;t t
7322 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7323 s,@sim_hw_objs@,$sim_hw_objs,;t t
7324 s,@sim_hw@,$sim_hw,;t t
7325 s,@sim_inline@,$sim_inline,;t t
7326 s,@sim_packages@,$sim_packages,;t t
7327 s,@sim_regparm@,$sim_regparm,;t t
7328 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7329 s,@sim_smp@,$sim_smp,;t t
7330 s,@sim_stdcall@,$sim_stdcall,;t t
7331 s,@sim_xor_endian@,$sim_xor_endian,;t t
7332 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7333 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7334 s,@SHELL@,$SHELL,;t t
7335 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7336 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7337 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7338 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7339 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7340 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7341 s,@exec_prefix@,$exec_prefix,;t t
7342 s,@prefix@,$prefix,;t t
7343 s,@program_transform_name@,$program_transform_name,;t t
7344 s,@bindir@,$bindir,;t t
7345 s,@sbindir@,$sbindir,;t t
7346 s,@libexecdir@,$libexecdir,;t t
7347 s,@datadir@,$datadir,;t t
7348 s,@sysconfdir@,$sysconfdir,;t t
7349 s,@sharedstatedir@,$sharedstatedir,;t t
7350 s,@localstatedir@,$localstatedir,;t t
7351 s,@libdir@,$libdir,;t t
7352 s,@includedir@,$includedir,;t t
7353 s,@oldincludedir@,$oldincludedir,;t t
7354 s,@infodir@,$infodir,;t t
7355 s,@mandir@,$mandir,;t t
7356 s,@build_alias@,$build_alias,;t t
7357 s,@host_alias@,$host_alias,;t t
7358 s,@target_alias@,$target_alias,;t t
7360 s,@ECHO_C@,$ECHO_C,;t t
7361 s,@ECHO_N@,$ECHO_N,;t t
7362 s,@ECHO_T@,$ECHO_T,;t t
7364 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7365 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7366 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7368 s,@CFLAGS@,$CFLAGS,;t t
7369 s,@LDFLAGS@,$LDFLAGS,;t t
7370 s,@CPPFLAGS@,$CPPFLAGS,;t t
7371 s,@ac_ct_CC@,$ac_ct_CC,;t t
7372 s,@EXEEXT@,$EXEEXT,;t t
7373 s,@OBJEXT@,$OBJEXT,;t t
7374 s,@USE_NLS@,$USE_NLS,;t t
7375 s,@LIBINTL@,$LIBINTL,;t t
7376 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7377 s,@INCINTL@,$INCINTL,;t t
7378 s,@XGETTEXT@,$XGETTEXT,;t t
7379 s,@GMSGFMT@,$GMSGFMT,;t t
7380 s,@POSUB@,$POSUB,;t t
7381 s,@CATALOGS@,$CATALOGS,;t t
7382 s,@DATADIRNAME@,$DATADIRNAME,;t t
7383 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7384 s,@GENCAT@,$GENCAT,;t t
7385 s,@CATOBJEXT@,$CATOBJEXT,;t t
7386 s,@PKGVERSION@,$PKGVERSION,;t t
7387 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
7388 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
7389 s,@build@,$build,;t t
7390 s,@build_cpu@,$build_cpu,;t t
7391 s,@build_vendor@,$build_vendor,;t t
7392 s,@build_os@,$build_os,;t t
7394 s,@host_cpu@,$host_cpu,;t t
7395 s,@host_vendor@,$host_vendor,;t t
7396 s,@host_os@,$host_os,;t t
7397 s,@target@,$target,;t t
7398 s,@target_cpu@,$target_cpu,;t t
7399 s,@target_vendor@,$target_vendor,;t t
7400 s,@target_os@,$target_os,;t t
7402 s,@EGREP@,$EGREP,;t t
7403 s,@LIBOBJS@,$LIBOBJS,;t t
7404 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7405 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7406 s,@HDEFINES@,$HDEFINES,;t t
7408 s,@RANLIB@,$RANLIB,;t t
7409 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7410 s,@sim_cflags@,$sim_cflags,;t t
7411 s,@sim_warnings@,$sim_warnings,;t t
7412 s,@sim_line_nr@,$sim_line_nr,;t t
7413 s,@sim_config@,$sim_config,;t t
7414 s,@sim_opcode@,$sim_opcode,;t t
7415 s,@sim_switch@,$sim_switch,;t t
7416 s,@sim_dup@,$sim_dup,;t t
7417 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7418 s,@sim_jump@,$sim_jump,;t t
7419 s,@sim_filter@,$sim_filter,;t t
7420 s,@sim_icache@,$sim_icache,;t t
7421 s,@sim_hw_src@,$sim_hw_src,;t t
7422 s,@sim_hw_obj@,$sim_hw_obj,;t t
7423 s,@sim_pk_src@,$sim_pk_src,;t t
7424 s,@sim_pk_obj@,$sim_pk_obj,;t t
7425 s,@sim_bswap@,$sim_bswap,;t t
7426 s,@sim_igen_smp@,$sim_igen_smp,;t t
7427 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7428 s,@sim_env@,$sim_env,;t t
7429 s,@sim_timebase@,$sim_timebase,;t t
7430 s,@sim_trace@,$sim_trace,;t t
7431 s,@sim_reserved@,$sim_reserved,;t t
7432 s,@sim_monitor@,$sim_monitor,;t t
7433 s,@sim_model@,$sim_model,;t t
7434 s,@sim_model_issue@,$sim_model_issue,;t t
7435 s,@sim_stdio@,$sim_stdio,;t t
7436 s,@sim_termio@,$sim_termio,;t t
7437 s,@sim_devzero@,$sim_devzero,;t t
7438 s,@sim_callback@,$sim_callback,;t t
7439 s,@sim_targ_vals@,$sim_targ_vals,;t t
7440 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7441 s,@sim_fpu@,$sim_fpu,;t t
7442 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7447 cat >>$CONFIG_STATUS <<\_ACEOF
7448 # Split the substitutions into bite-sized pieces for seds with
7449 # small command number limits, like on Digital OSF/1 and HP-UX.
7451 ac_sed_frag
=1 # Number of current file.
7452 ac_beg
=1 # First line for current file.
7453 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7456 while $ac_more_lines; do
7457 if test $ac_beg -gt 1; then
7458 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7460 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7462 if test ! -s $tmp/subs.frag
; then
7465 # The purpose of the label and of the branching condition is to
7466 # speed up the sed processing (if there are no `@' at all, there
7467 # is no need to browse any of the substitutions).
7468 # These are the two extra sed commands mentioned above.
7470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7471 if test -z "$ac_sed_cmds"; then
7472 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7474 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7476 ac_sed_frag
=`expr $ac_sed_frag + 1`
7478 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7481 if test -z "$ac_sed_cmds"; then
7484 fi # test -n "$CONFIG_FILES"
7487 cat >>$CONFIG_STATUS <<\_ACEOF
7488 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7491 - |
*:- |
*:-:* ) # input from stdin
7493 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7494 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7495 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7496 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7497 * ) ac_file_in
=$ac_file.
in ;;
7500 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7501 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7503 X"$ac_file" : 'X\(//\)[^/]' \| \
7504 X"$ac_file" : 'X\(//\)$' \| \
7505 X"$ac_file" : 'X\(/\)' \| \
7506 . : '\(.\)' 2>/dev/null ||
7508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7510 /^X\(\/\/\)$/{ s//\1/; q; }
7511 /^X\(\/\).*/{ s//\1/; q; }
7513 { if $as_mkdir_p; then
7518 while test ! -d "$as_dir"; do
7519 as_dirs
="$as_dir $as_dirs"
7520 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7522 X"$as_dir" : 'X\(//\)[^/]' \| \
7523 X"$as_dir" : 'X\(//\)$' \| \
7524 X"$as_dir" : 'X\(/\)' \| \
7525 . : '\(.\)' 2>/dev/null ||
7527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7529 /^X\(\/\/\)$/{ s//\1/; q; }
7530 /^X\(\/\).*/{ s//\1/; q; }
7533 test ! -n "$as_dirs" || mkdir
$as_dirs
7534 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7535 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7536 { (exit 1); exit 1; }; }; }
7540 if test "$ac_dir" != .
; then
7541 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7542 # A "../" for each directory in $ac_dir_suffix.
7543 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7545 ac_dir_suffix
= ac_top_builddir
=
7549 .
) # No --srcdir option. We are building in place.
7551 if test -z "$ac_top_builddir"; then
7554 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7556 [\\/]* | ?
:[\\/]* ) # Absolute path.
7557 ac_srcdir
=$srcdir$ac_dir_suffix;
7558 ac_top_srcdir
=$srcdir ;;
7560 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7561 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7564 # Do not use `cd foo && pwd` to compute absolute paths, because
7565 # the directories may not exist.
7567 .
) ac_abs_builddir
="$ac_dir";;
7570 .
) ac_abs_builddir
=`pwd`;;
7571 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7572 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7575 case $ac_abs_builddir in
7576 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7578 case ${ac_top_builddir}.
in
7579 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7580 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7581 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7584 case $ac_abs_builddir in
7585 .
) ac_abs_srcdir
=$ac_srcdir;;
7588 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7589 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7590 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7593 case $ac_abs_builddir in
7594 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7596 case $ac_top_srcdir in
7597 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7598 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7599 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7605 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7606 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7609 if test x
"$ac_file" != x-
; then
7610 { echo "$as_me:$LINENO: creating $ac_file" >&5
7611 echo "$as_me: creating $ac_file" >&6;}
7614 # Let's still pretend it is `configure' which instantiates (i.e., don't
7615 # use $as_me), people would be surprised to read:
7616 # /* config.h. Generated by config.status. */
7617 if test x
"$ac_file" = x-
; then
7620 configure_input
="$ac_file. "
7622 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7623 sed 's,.*/,,'` by configure."
7625 # First look for the input files in the build tree, otherwise in the
7627 ac_file_inputs
=`IFS=:
7628 for f in $ac_file_in; do
7630 -) echo $tmp/stdin ;;
7632 # Absolute (can't be DOS-style, as IFS=:)
7633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7634 echo "$as_me: error: cannot find input file: $f" >&2;}
7635 { (exit 1); exit 1; }; }
7638 if test -f "$f"; then
7641 elif test -f "$srcdir/$f"; then
7646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7647 echo "$as_me: error: cannot find input file: $f" >&2;}
7648 { (exit 1); exit 1; }; }
7651 done` ||
{ (exit 1); exit 1; }
7653 cat >>$CONFIG_STATUS <<_ACEOF
7657 cat >>$CONFIG_STATUS <<\_ACEOF
7659 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7660 s
,@configure_input@
,$configure_input,;t t
7661 s
,@srcdir@
,$ac_srcdir,;t t
7662 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7663 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7664 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7665 s
,@builddir@
,$ac_builddir,;t t
7666 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7667 s
,@top_builddir@
,$ac_top_builddir,;t t
7668 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7669 s
,@INSTALL@
,$ac_INSTALL,;t t
7670 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7672 if test x"$ac_file" != x-; then
7673 mv $tmp/out $ac_file
7681 cat >>$CONFIG_STATUS <<\_ACEOF
7684 # CONFIG_HEADER section.
7687 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7688 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7690 # ac_d sets the value in "#define NAME VALUE" lines.
7691 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7692 ac_dB
='[ ].*$,\1#\2'
7695 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7696 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7697 ac_uB
='$,\1#\2define\3'
7701 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7704 - |
*:- |
*:-:* ) # input from stdin
7706 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7707 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7708 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7709 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7710 * ) ac_file_in
=$ac_file.
in ;;
7713 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7714 echo "$as_me: creating $ac_file" >&6;}
7716 # First look for the input files in the build tree, otherwise in the
7718 ac_file_inputs
=`IFS=:
7719 for f in $ac_file_in; do
7721 -) echo $tmp/stdin ;;
7723 # Absolute (can't be DOS-style, as IFS=:)
7724 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7725 echo "$as_me: error: cannot find input file: $f" >&2;}
7726 { (exit 1); exit 1; }; }
7727 # Do quote $f, to prevent DOS paths from being IFS'd.
7730 if test -f "$f"; then
7733 elif test -f "$srcdir/$f"; then
7738 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7739 echo "$as_me: error: cannot find input file: $f" >&2;}
7740 { (exit 1); exit 1; }; }
7743 done` ||
{ (exit 1); exit 1; }
7744 # Remove the trailing spaces.
7745 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7749 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7750 # `conftest.undefs', that substitutes the proper values into
7751 # config.h.in to produce config.h. The first handles `#define'
7752 # templates, and the second `#undef' templates.
7753 # And first: Protect against being on the right side of a sed subst in
7754 # config.status. Protect against being in an unquoted here document
7756 rm -f conftest.defines conftest.undefs
7757 # Using a here document instead of a string reduces the quoting nightmare.
7758 # Putting comments in sed scripts is not portable.
7760 # `end' is used to avoid that the second main sed command (meant for
7761 # 0-ary CPP macros) applies to n-ary macro definitions.
7762 # See the Autoconf documentation for `clear'.
7763 cat >confdef2sed.
sed <<\_ACEOF
7768 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7770 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7773 # If some macros were called several times there might be several times
7774 # the same #defines, which is useless. Nevertheless, we may not want to
7775 # sort them, since we want the *last* AC-DEFINE to be honored.
7776 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7777 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7778 rm -f confdef2sed.sed
7780 # This sed command replaces #undef with comments. This is necessary, for
7781 # example, in the case of _POSIX_SOURCE, which is predefined and required
7782 # on some systems where configure will not decide to define it.
7783 cat >>conftest.undefs <<\_ACEOF
7784 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7787 # Break up conftest.defines because some shells have a limit on the size
7788 # of here documents, and old seds have small limits too (100 cmds).
7789 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7790 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7791 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7792 echo ' :' >>$CONFIG_STATUS
7794 while grep . conftest.defines >/dev/null
7796 # Write a limited-size here document to $tmp/defines.sed.
7797 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7798 # Speed up: don't consider the non `#define' lines.
7799 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7800 # Work around the forget-to-reset-the-flag bug.
7801 echo 't clr' >>$CONFIG_STATUS
7802 echo ': clr' >>$CONFIG_STATUS
7803 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7805 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7809 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7810 rm -f conftest.defines
7811 mv conftest.
tail conftest.defines
7813 rm -f conftest.defines
7814 echo ' fi # grep' >>$CONFIG_STATUS
7815 echo >>$CONFIG_STATUS
7817 # Break up conftest.undefs because some shells have a limit on the size
7818 # of here documents, and old seds have small limits too (100 cmds).
7819 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7821 while grep . conftest.undefs
>/dev
/null
7823 # Write a limited-size here document to $tmp/undefs.sed.
7824 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7825 # Speed up: don't consider the non
`#undef'
7826 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7827 # Work around the forget-to-reset-the-flag bug.
7828 echo 't clr' >>$CONFIG_STATUS
7829 echo ': clr' >>$CONFIG_STATUS
7830 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7832 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7836 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7837 rm -f conftest.undefs
7838 mv conftest.tail conftest.undefs
7840 rm -f conftest.undefs
7842 cat >>$CONFIG_STATUS <<\_ACEOF
7843 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7844 # use $as_me), people would be surprised to read:
7845 # /* config.h. Generated by config.status. */
7846 if test x
"$ac_file" = x-
; then
7847 echo "/* Generated by configure. */" >$tmp/config.h
7849 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7851 cat $tmp/in >>$tmp/config.h
7853 if test x
"$ac_file" != x-
; then
7854 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
7855 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7856 echo "$as_me: $ac_file is unchanged" >&6;}
7858 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7860 X"$ac_file" : 'X\(//\)[^/]' \| \
7861 X"$ac_file" : 'X\(//\)$' \| \
7862 X"$ac_file" : 'X\(/\)' \| \
7863 . : '\(.\)' 2>/dev/null ||
7865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7867 /^X\(\/\/\)$/{ s//\1/; q; }
7868 /^X\(\/\).*/{ s//\1/; q; }
7870 { if $as_mkdir_p; then
7875 while test ! -d "$as_dir"; do
7876 as_dirs
="$as_dir $as_dirs"
7877 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7879 X"$as_dir" : 'X\(//\)[^/]' \| \
7880 X"$as_dir" : 'X\(//\)$' \| \
7881 X"$as_dir" : 'X\(/\)' \| \
7882 . : '\(.\)' 2>/dev/null ||
7884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7886 /^X\(\/\/\)$/{ s//\1/; q; }
7887 /^X\(\/\).*/{ s//\1/; q; }
7890 test ! -n "$as_dirs" || mkdir
$as_dirs
7891 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7892 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7893 { (exit 1); exit 1; }; }; }
7896 mv $tmp/config.h
$ac_file
7904 cat >>$CONFIG_STATUS <<\_ACEOF
7907 # CONFIG_COMMANDS section.
7909 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
7910 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7911 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7912 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
7913 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7914 X"$ac_dest" : 'X\(//\)[^/]' \| \
7915 X"$ac_dest" : 'X\(//\)$' \| \
7916 X"$ac_dest" : 'X\(/\)' \| \
7917 . : '\(.\)' 2>/dev/null ||
7919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7921 /^X\(\/\/\)$/{ s//\1/; q; }
7922 /^X\(\/\).*/{ s//\1/; q; }
7924 { if $as_mkdir_p; then
7929 while test ! -d "$as_dir"; do
7930 as_dirs
="$as_dir $as_dirs"
7931 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7933 X"$as_dir" : 'X\(//\)[^/]' \| \
7934 X"$as_dir" : 'X\(//\)$' \| \
7935 X"$as_dir" : 'X\(/\)' \| \
7936 . : '\(.\)' 2>/dev/null ||
7938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7940 /^X\(\/\/\)$/{ s//\1/; q; }
7941 /^X\(\/\).*/{ s//\1/; q; }
7944 test ! -n "$as_dirs" || mkdir
$as_dirs
7945 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7946 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7947 { (exit 1); exit 1; }; }; }
7951 if test "$ac_dir" != .
; then
7952 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7953 # A "../" for each directory in $ac_dir_suffix.
7954 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7956 ac_dir_suffix
= ac_top_builddir
=
7960 .
) # No --srcdir option. We are building in place.
7962 if test -z "$ac_top_builddir"; then
7965 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7967 [\\/]* | ?
:[\\/]* ) # Absolute path.
7968 ac_srcdir
=$srcdir$ac_dir_suffix;
7969 ac_top_srcdir
=$srcdir ;;
7971 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7972 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7975 # Do not use `cd foo && pwd` to compute absolute paths, because
7976 # the directories may not exist.
7978 .
) ac_abs_builddir
="$ac_dir";;
7981 .
) ac_abs_builddir
=`pwd`;;
7982 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7983 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7986 case $ac_abs_builddir in
7987 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7989 case ${ac_top_builddir}.
in
7990 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7991 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7992 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7995 case $ac_abs_builddir in
7996 .
) ac_abs_srcdir
=$ac_srcdir;;
7999 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8000 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8001 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8004 case $ac_abs_builddir in
8005 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8007 case $ac_top_srcdir in
8008 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8009 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8010 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8015 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8016 echo "$as_me: executing $ac_dest commands" >&6;}
8018 default
) case x
$CONFIG_HEADERS in xconfig.h
:config.
in) echo > stamp-h
;; esac ;;
8023 cat >>$CONFIG_STATUS <<\_ACEOF
8025 { (exit 0); exit 0; }
8027 chmod +x
$CONFIG_STATUS
8028 ac_clean_files
=$ac_clean_files_save
8031 # configure is writing to config.log, and then calls config.status.
8032 # config.status does its own redirection, appending to config.log.
8033 # Unfortunately, on DOS this fails, as config.log is still kept open
8034 # by configure, so config.status won't be able to write to it; its
8035 # output is simply discarded. So we exec the FD to /dev/null,
8036 # effectively closing config.log, so it can be properly (re)opened and
8037 # appended to by config.status. When coming back to configure, we
8038 # need to make the FD available again.
8039 if test "$no_create" != yes; then
8041 ac_config_status_args
=
8042 test "$silent" = yes &&
8043 ac_config_status_args
="$ac_config_status_args --quiet"
8045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8048 # would make configure fail if this is the last instruction.
8049 $ac_cs_success ||
{ (exit 1); exit 1; }