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 echo "$as_me:$LINENO: checking if union semun defined" >&5
2719 echo $ECHO_N "checking if union semun defined... $ECHO_C" >&6
2720 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2730 #include <sys/types.h>
2731 #include <sys/ipc.h>
2732 #include <sys/sem.h>
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>conftest.er1
2745 grep -v '^ *+' conftest.er1 >conftest.err
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } &&
2750 { ac_try='test -z "$ac_c_werror_flag"
2751 || test ! -s conftest.err'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_cv_has_union_semun="yes"
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 ac_cv_has_union_semun="no"
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 echo "$as_me:$LINENO: result: $ac_cv_has_union_semun" >&5
2772 echo "${ECHO_T}$ac_cv_has_union_semun" >&6
2775 echo "$as_me:$LINENO: result: $ac_cv_HAS_UNION_SEMUN" >&5
2776 echo "${ECHO_T}$ac_cv_HAS_UNION_SEMUN" >&6
2779 if test "$ac_cv_has_union_semun" = "yes"; then
2780 echo "$as_me:$LINENO: checking whether System V semaphores are supported" >&5
2781 echo $ECHO_N "checking whether System V semaphores are supported... $ECHO_C" >&6
2782 if test "${ac_cv_sysv_sem+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test "$cross_compiling" = yes; then
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2796 #include <sys/types.h>
2797 #include <sys/ipc.h>
2798 #include <sys/sem.h>
2802 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
2805 arg.val = 0; /* avoid implicit type cast to union */
2806 if (semctl(id, 0, IPC_RMID, arg) == -1)
2812 rm -f conftest$ac_exeext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2814 (eval $ac_link) 2>&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2823 ac_cv_sysv_sem="yes"
2825 echo "$as_me: program exited with status $ac_status" >&5
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2832 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2836 echo "$as_me:$LINENO: result: $ac_cv_sysv_sem" >&5
2837 echo "${ECHO_T}$ac_cv_sysv_sem" >&6
2838 else # semun is not defined
2839 echo "$as_me:$LINENO: checking whether System V semaphores are supported" >&5
2840 echo $ECHO_N "checking whether System V semaphores are supported... $ECHO_C" >&6
2841 if test "${ac_cv_sysv_sem+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test "$cross_compiling" = yes; then
2848 cat >conftest.$ac_ext <<_ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2855 #include <sys/types.h>
2856 #include <sys/ipc.h>
2857 #include <sys/sem.h>
2860 struct semid_ds *buf;
2866 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
2869 arg.val = 0; /* avoid implicit type cast to union */
2870 if (semctl(id, 0, IPC_RMID, arg) == -1)
2876 rm -f conftest$ac_exeext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2878 (eval $ac_link) 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 ac_cv_sysv_sem="yes"
2889 echo "$as_me: program exited with status $ac_status" >&5
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2900 echo "$as_me:$LINENO: result: $ac_cv_sysv_sem" >&5
2901 echo "${ECHO_T}$ac_cv_sysv_sem" >&6
2904 echo "$as_me:$LINENO: checking whether System V shared memory is supported" >&5
2905 echo $ECHO_N "checking whether System V shared memory is supported... $ECHO_C" >&6
2906 if test "${ac_cv_sysv_shm+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 if test "$cross_compiling" = yes; then
2913 cat >conftest.$ac_ext <<_ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2920 #include <sys/types.h>
2921 #include <sys/ipc.h>
2922 #include <sys/shm.h>
2924 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
2927 if (shmctl(id, IPC_RMID, 0) == -1)
2933 rm -f conftest$ac_exeext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935 (eval $ac_link) 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_cv_sysv_shm="yes"
2946 echo "$as_me: program exited with status $ac_status" >&5
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2957 echo "$as_me:$LINENO: result: $ac_cv_sysv_shm" >&5
2958 echo "${ECHO_T}$ac_cv_sysv_shm" >&6
2960 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
2961 sim_sysv_ipc_hw=",sem,shm";
2966 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
2967 sim_hwflags="-DHAS_UNION_SEMUN";
2971 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2972 if test "${enable_sim_hardware+set}" = set; then
2973 enableval="$enable_sim_hardware"
2974 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
2975 case "${enableval}" in
2977 no) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2978 echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2979 { (exit 1); exit 1; }; }; hardware="";;
2980 ,*) hardware="${hardware}${enableval}";;
2981 *,) hardware="${enableval}${hardware}";;
2982 *) hardware="${enableval}"'';;
2984 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2985 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2986 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
2987 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2990 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
2991 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2992 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2993 if test x"$silent" != x"yes"; then
2994 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2997 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2998 if test "${enable_sim_hostbitsize+set}" = set; then
2999 enableval="$enable_sim_hostbitsize"
3000 case "${enableval}" in
3001 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3002 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
3003 echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
3004 { (exit 1); exit 1; }; }; sim_hostbitsize="";;
3006 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3007 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3013 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3014 if test "${enable_sim_hostendian+set}" = set; then
3015 enableval="$enable_sim_hostendian"
3016 case "${enableval}" in
3017 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
3018 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3019 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3020 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
3021 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
3022 { (exit 1); exit 1; }; }; sim_hostendian="";;
3024 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
3025 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3029 if test "x$cross_compiling" = "xno"; then
3030 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3031 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3032 if test "${ac_cv_c_bigendian+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 # See if sys/param.h defines the BYTE_ORDER macro.
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3042 #include <sys/types.h>
3043 #include <sys/param.h>
3048 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3056 rm -f conftest.$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058 (eval $ac_compile) 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_c_werror_flag"
3066 || test ! -s conftest.err'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 # It does; now see whether it defined to BIG_ENDIAN or not.
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 #include <sys/types.h>
3086 #include <sys/param.h>
3091 #if BYTE_ORDER != BIG_ENDIAN
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 ac_cv_c_bigendian=yes
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 ac_cv_c_bigendian=no
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 # It does not; compile a test program.
3134 if test "$cross_compiling" = yes; then
3135 # try to guess the endianness by grepping values into an object file
3136 ac_cv_c_bigendian=unknown
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3144 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3145 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3146 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3147 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3148 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3152 _ascii (); _ebcdic ();
3157 rm -f conftest.$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>conftest.er1
3161 grep -v '^ *+' conftest.er1 >conftest.err
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -z "$ac_c_werror_flag"
3167 || test ! -s conftest.err'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3180 ac_cv_c_bigendian=yes
3182 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3183 if test "$ac_cv_c_bigendian" = unknown; then
3184 ac_cv_c_bigendian=no
3186 # finding both strings is unlikely to happen, but who knows?
3187 ac_cv_c_bigendian=unknown
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 cat >conftest.$ac_ext <<_ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3206 /* Are we little or big endian? From Harbison&Steele. */
3210 char c[sizeof (long)];
3213 exit (u.c[sizeof (long) - 1] == 1);
3216 rm -f conftest$ac_exeext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3218 (eval $ac_link) 2>&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; }; then
3227 ac_cv_c_bigendian=no
3229 echo "$as_me: program exited with status $ac_status" >&5
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_cv_c_bigendian=yes
3236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3241 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3242 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3243 case $ac_cv_c_bigendian in
3246 cat >>confdefs.h <<\_ACEOF
3247 #define WORDS_BIGENDIAN 1
3253 { { echo "$as_me:$LINENO: error: unknown endianness
3254 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3255 echo "$as_me: error: unknown endianness
3256 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3257 { (exit 1); exit 1; }; } ;;
3260 if test $ac_cv_c_bigendian = yes; then
3261 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3263 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3266 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3270 # Check whether --enable-sim-icache or --disable-sim-icache was given.
3271 if test "${enable_sim_icache+set}" = set; then
3272 enableval="$enable_sim_icache"
3274 case "${enableval}" in
3275 yes) icache="1024"; sim_icache="-I $icache";;
3276 no) sim_icache="-R";;
3279 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3281 define) sim_icache="${sim_icache}R";;
3282 semantic) sim_icache="${sim_icache}C";;
3283 insn) sim_icache="${sim_icache}S";;
3284 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3285 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3286 echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3287 { (exit 1); exit 1; }; }; sim_icache="";;
3290 sim_icache="${sim_icache}I $icache";;
3292 if test x"$silent" != x"yes" && test x"$icache" != x""; then
3293 echo "Setting instruction cache size to $icache ($sim_icache)"
3296 sim_icache="-CSRI 1024"
3297 if test x"$silent" != x"yes"; then
3298 echo "Setting instruction cache size to 1024 ($sim_icache)"
3302 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3303 if test "${enable_sim_inline+set}" = set; then
3304 enableval="$enable_sim_inline"
3306 case "$enableval" in
3307 no) sim_inline="-DDEFAULT_INLINE=0";;
3308 0) sim_inline="-DDEFAULT_INLINE=0";;
3309 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
3310 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3311 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3314 *_INLINE=*) new_flag="-D$x";;
3315 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3316 *_INLINE) new_flag="-D$x=ALL_INLINE";;
3317 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
3319 if test x"$sim_inline" = x""; then
3320 sim_inline="$new_flag"
3322 sim_inline="$sim_inline $new_flag"
3326 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3327 echo "Setting inline flags = $sim_inline" 6>&1
3330 if test x"$GCC" != ""; then
3331 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3332 if test x"$silent" != x"yes"; then
3333 echo "Setting inline flags = $sim_inline" 6>&1
3340 # Check whether --enable-sim-jump or --disable-sim-jump was given.
3341 if test "${enable_sim_jump+set}" = set; then
3342 enableval="$enable_sim_jump"
3343 case "${enableval}" in
3344 yes) sim_jump="-J";;
3346 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3347 echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3348 { (exit 1); exit 1; }; }; sim_jump="";;
3350 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3351 echo "Setting jump flag = $sim_jump" 6>&1
3355 if test x"$silent" != x"yes"; then
3356 echo "Setting jump flag = $sim_jump" 6>&1
3360 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3361 if test "${enable_sim_line_nr+set}" = set; then
3362 enableval="$enable_sim_line_nr"
3363 case "${enableval}" in
3364 yes) sim_line_nr="";;
3365 no) sim_line_nr="-L";;
3366 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3367 echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3368 { (exit 1); exit 1; }; }; sim_line_nr="";;
3370 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3371 echo "Setting warning flags = $sim_line_nr" 6>&1
3377 # Check whether --enable-sim-model or --disable-sim-model was given.
3378 if test "${enable_sim_model+set}" = set; then
3379 enableval="$enable_sim_model"
3380 case "${enableval}" in
3381 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3382 echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3383 { (exit 1); exit 1; }; };;
3384 *) sim_model="-DWITH_MODEL=${enableval}";;
3386 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3387 echo "Setting model flags = $sim_model" 6>&1
3393 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3394 if test "${enable_sim_model_issue+set}" = set; then
3395 enableval="$enable_sim_model_issue"
3396 case "${enableval}" in
3397 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3398 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3399 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3400 echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3401 { (exit 1); exit 1; }; }; sim_model_issue="";;
3403 if test x"$silent" != x"yes"; then
3404 echo "Setting model-issue flags = $sim_model_issue" 6>&1
3410 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3411 if test "${enable_sim_monitor+set}" = set; then
3412 enableval="$enable_sim_monitor"
3413 case "${enableval}" in
3414 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3415 no) sim_monitor="-DWITH_MON=0";;
3416 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3417 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3418 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3419 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3420 { (exit 1); exit 1; }; }; sim_env="";;
3422 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3423 echo "Setting monitor flags = $sim_monitor" 6>&1
3429 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3430 if test "${enable_sim_opcode+set}" = set; then
3431 enableval="$enable_sim_opcode"
3432 case "${enableval}" in
3433 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3434 echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3435 { (exit 1); exit 1; }; };;
3436 *) if test -f "${srcdir}/${enableval}"; then
3437 sim_opcode="${enableval}"
3438 elif test -f "${srcdir}/dc-${enableval}"; then
3439 sim_opcode="dc-${enableval}"
3441 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3442 echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3443 { (exit 1); exit 1; }; };
3444 sim_opcode="dc-complex"
3447 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3448 echo "Setting opcode flags = $sim_opcode" 6>&1
3451 sim_opcode="dc-complex"
3452 if test x"$silent" != x"yes"; then
3453 echo "Setting opcode flags = $sim_opcode"
3457 # Check whether --enable-sim-packages or --disable-sim-packages was given.
3458 if test "${enable_sim_packages+set}" = set; then
3459 enableval="$enable_sim_packages"
3461 case "${enableval}" in
3463 no) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3464 echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3465 { (exit 1); exit 1; }; }; packages="";;
3466 ,*) packages="${packages}${enableval}";;
3467 *,) packages="${enableval}${packages}";;
3468 *) packages="${enableval}"'';;
3470 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3471 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3472 if test x"$silent" != x"yes" && test x"$packages" != x""; then
3473 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3477 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3478 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3479 if test x"$silent" != x"yes"; then
3480 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3484 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3485 if test "${enable_sim_regparm+set}" = set; then
3486 enableval="$enable_sim_regparm"
3487 case "${enableval}" in
3488 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
3489 no) sim_regparm="" ;;
3490 yes) sim_regparm="-DWITH_REGPARM=3";;
3491 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3492 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3493 { (exit 1); exit 1; }; }; sim_regparm="";;
3495 if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
3496 echo "Setting regparm flags = $sim_regparm" 6>&1
3502 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3503 if test "${enable_sim_reserved_bits+set}" = set; then
3504 enableval="$enable_sim_reserved_bits"
3505 case "${enableval}" in
3506 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
3507 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
3508 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3509 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3510 { (exit 1); exit 1; }; }; sim_reserved="";;
3512 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
3513 echo "Setting reserved flags = $sim_reserved" 6>&1
3519 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3520 if test "${enable_sim_smp+set}" = set; then
3521 enableval="$enable_sim_smp"
3522 case "${enableval}" in
3523 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3524 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3525 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3527 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3528 echo "Setting smp flags = $sim_smp" 6>&1
3531 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3532 if test x"$silent" != x"yes"; then
3533 echo "Setting smp flags = $sim_smp" 6>&1
3537 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3538 if test "${enable_sim_stdcall+set}" = set; then
3539 enableval="$enable_sim_stdcall"
3540 case "${enableval}" in
3541 no) sim_stdcall="" ;;
3542 std*) sim_stdcall="-DWITH_STDCALL=1";;
3543 yes) sim_stdcall="-DWITH_STDCALL=1";;
3544 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3545 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3546 { (exit 1); exit 1; }; }; sim_stdcall="";;
3548 if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
3549 echo "Setting function call flags = $sim_stdcall" 6>&1
3555 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3556 if test "${enable_sim_stdio+set}" = set; then
3557 enableval="$enable_sim_stdio"
3558 case "${enableval}" in
3559 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3560 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3561 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3562 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3563 { (exit 1); exit 1; }; }; sim_stdio="";;
3565 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3566 echo "Setting stdio flags = $sim_stdio" 6>&1
3572 # Check whether --enable-sim-switch or --disable-sim-switch was given.
3573 if test "${enable_sim_switch+set}" = set; then
3574 enableval="$enable_sim_switch"
3575 case "${enableval}" in
3576 yes) sim_switch="-s";;
3578 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3579 echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3580 { (exit 1); exit 1; }; }; sim_switch="";;
3582 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3583 echo "Setting switch flags = $sim_switch" 6>&1
3587 if test x"$silent" != x"yes"; then
3588 echo "Setting switch flags = $sim_switch" 6>&1
3592 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3593 if test "${enable_sim_timebase+set}" = set; then
3594 enableval="$enable_sim_timebase"
3595 case "${enableval}" in
3596 yes) sim_timebase="-DWITH_TIME_BASE=1";;
3597 no) sim_timebase="-DWITH_TIME_BASE=0";;
3598 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3599 echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3600 { (exit 1); exit 1; }; }; sim_timebase="";;
3602 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3603 echo "Setting timebase flags = $sim_timebase" 6>&1
3609 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3610 if test "${enable_sim_trace+set}" = set; then
3611 enableval="$enable_sim_trace"
3612 case "${enableval}" in
3613 yes) sim_trace="-DWITH_TRACE=1";;
3614 no) sim_trace="-DWITH_TRACE=0";;
3615 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3616 echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3617 { (exit 1); exit 1; }; }; sim_trace="";;
3619 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3620 echo "Setting trace flags = $sim_trace" 6>&1
3626 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3627 if test "${enable_sim_warnings+set}" = set; then
3628 enableval="$enable_sim_warnings"
3629 case "${enableval}" in
3630 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3631 no) sim_warnings="-w";;
3632 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3634 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
3635 echo "Setting warning flags = $sim_warnings" 6>&1
3641 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3642 if test "${enable_sim_xor_endian+set}" = set; then
3643 enableval="$enable_sim_xor_endian"
3644 case "${enableval}" in
3645 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3646 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3647 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3649 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3650 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3658 # Check whether --with-pkgversion or --without-pkgversion was given.
3659 if test "${with_pkgversion+set}" = set; then
3660 withval="$with_pkgversion"
3662 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3663 echo "$as_me: error: package version not specified" >&2;}
3664 { (exit 1); exit 1; }; } ;;
3666 *) PKGVERSION="($withval) " ;;
3676 # Check whether --with-bugurl or --without-bugurl was given.
3677 if test "${with_bugurl+set}" = set; then
3678 withval="$with_bugurl"
3680 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3681 echo "$as_me: error: bug URL not specified" >&2;}
3682 { (exit 1); exit 1; }; } ;;
3685 *) BUGURL="$withval"
3689 BUGURL="http://www.gnu.org/software/gdb/bugs/"
3698 REPORT_BUGS_TO="<$BUGURL>"
3699 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3706 cat >>confdefs.h <<_ACEOF
3707 #define PKGVERSION "$PKGVERSION"
3711 cat >>confdefs.h <<_ACEOF
3712 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3716 # Make sure we can run config.sub.
3717 $ac_config_sub sun4 >/dev/null 2>&1 ||
3718 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3719 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3720 { (exit 1); exit 1; }; }
3722 echo "$as_me:$LINENO: checking build system type" >&5
3723 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3724 if test "${ac_cv_build+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 ac_cv_build_alias=$build_alias
3728 test -z "$ac_cv_build_alias" &&
3729 ac_cv_build_alias=`$ac_config_guess`
3730 test -z "$ac_cv_build_alias" &&
3731 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3732 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3733 { (exit 1); exit 1; }; }
3734 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3735 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3736 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3737 { (exit 1); exit 1; }; }
3740 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3741 echo "${ECHO_T}$ac_cv_build" >&6
3743 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3744 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3745 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3748 echo "$as_me:$LINENO: checking host system type" >&5
3749 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3750 if test "${ac_cv_host+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 ac_cv_host_alias=$host_alias
3754 test -z "$ac_cv_host_alias" &&
3755 ac_cv_host_alias=$ac_cv_build_alias
3756 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3757 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3758 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3759 { (exit 1); exit 1; }; }
3762 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3763 echo "${ECHO_T}$ac_cv_host" >&6
3765 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3766 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3767 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3770 echo "$as_me:$LINENO: checking target system type" >&5
3771 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3772 if test "${ac_cv_target+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 ac_cv_target_alias=$target_alias
3776 test "x$ac_cv_target_alias" = "x" &&
3777 ac_cv_target_alias=$ac_cv_host_alias
3778 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3779 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3780 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3781 { (exit 1); exit 1; }; }
3784 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3785 echo "${ECHO_T}$ac_cv_target" >&6
3786 target=$ac_cv_target
3787 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3788 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3789 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3792 # The aliases save the names the user supplied, while $host etc.
3793 # will get canonicalized.
3794 test -n "$target_alias" &&
3795 test "$program_prefix$program_suffix$program_transform_name" = \
3797 program_prefix=${target_alias}-
3798 test "$program_prefix" != NONE &&
3799 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3800 # Use a double $ so make ignores it.
3801 test "$program_suffix" != NONE &&
3802 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3803 # Double any \ or $. echo might interpret backslashes.
3804 # By default was `s,x,x', remove it if useless.
3805 cat <<\_ACEOF >conftest.sed
3806 s/[\\$]/&&/g;s/;s,x,x,$//
3808 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3812 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
3813 # using the same condition.
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3820 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3821 # On Suns, sometimes $CPP names a directory.
3822 if test -n "$CPP" && test -d "$CPP"; then
3825 if test -z "$CPP"; then
3826 if test "${ac_cv_prog_CPP+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 # Double quotes because CPP needs to be expanded
3830 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3833 for ac_c_preproc_warn_flag in '' yes
3835 # Use a header file that comes with gcc, so configuring glibc
3836 # with a fresh cross-compiler works.
3837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3838 # <limits.h> exists even on freestanding compilers.
3839 # On the NeXT, cc -E runs the code through the compiler's parser,
3840 # not just through cpp. "Syntax error" is here to catch this case.
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3848 # include <limits.h>
3850 # include <assert.h>
3854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 grep -v '^ *+' conftest.er1 >conftest.err
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } >/dev/null; then
3862 if test -s conftest.err; then
3863 ac_cpp_err=$ac_c_preproc_warn_flag
3864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3871 if test -z "$ac_cpp_err"; then
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 # Broken: fails on valid input.
3880 rm -f conftest.err conftest.$ac_ext
3882 # OK, works on sane cases. Now check whether non-existent headers
3883 # can be detected and how.
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 #include <ac_nonexistent.h>
3892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev/null; then
3900 if test -s conftest.err; then
3901 ac_cpp_err=$ac_c_preproc_warn_flag
3902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3909 if test -z "$ac_cpp_err"; then
3910 # Broken: success on invalid input.
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 # Passes both tests.
3920 rm -f conftest.err conftest.$ac_ext
3923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3924 rm -f conftest.err conftest.$ac_ext
3925 if $ac_preproc_ok; then
3937 echo "$as_me:$LINENO: result: $CPP" >&5
3938 echo "${ECHO_T}$CPP" >&6
3940 for ac_c_preproc_warn_flag in '' yes
3942 # Use a header file that comes with gcc, so configuring glibc
3943 # with a fresh cross-compiler works.
3944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3945 # <limits.h> exists even on freestanding compilers.
3946 # On the NeXT, cc -E runs the code through the compiler's parser,
3947 # not just through cpp. "Syntax error" is here to catch this case.
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3955 # include <limits.h>
3957 # include <assert.h>
3961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } >/dev/null; then
3969 if test -s conftest.err; then
3970 ac_cpp_err=$ac_c_preproc_warn_flag
3971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3978 if test -z "$ac_cpp_err"; then
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 # Broken: fails on valid input.
3987 rm -f conftest.err conftest.$ac_ext
3989 # OK, works on sane cases. Now check whether non-existent headers
3990 # can be detected and how.
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997 #include <ac_nonexistent.h>
3999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } >/dev/null; then
4007 if test -s conftest.err; then
4008 ac_cpp_err=$ac_c_preproc_warn_flag
4009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4016 if test -z "$ac_cpp_err"; then
4017 # Broken: success on invalid input.
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 # Passes both tests.
4027 rm -f conftest.err conftest.$ac_ext
4030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.$ac_ext
4032 if $ac_preproc_ok; then
4035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4036 See \`config.log' for more details." >&5
4037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4038 See \`config.log' for more details." >&2;}
4039 { (exit 1); exit 1; }; }
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 echo "$as_me:$LINENO: checking for egrep" >&5
4050 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4051 if test "${ac_cv_prog_egrep+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4055 then ac_cv_prog_egrep='grep -E'
4056 else ac_cv_prog_egrep='egrep'
4059 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4060 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4061 EGREP=$ac_cv_prog_egrep
4064 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4066 if test "${ac_cv_header_stdc+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try='test -z "$ac_c_werror_flag"
4098 || test ! -s conftest.err'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 ac_cv_header_stdc=yes
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 ac_cv_header_stdc=no
4117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4119 if test $ac_cv_header_stdc = yes; then
4120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131 $EGREP "memchr" >/dev/null 2>&1; then
4134 ac_cv_header_stdc=no
4140 if test $ac_cv_header_stdc = yes; then
4141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152 $EGREP "free" >/dev/null 2>&1; then
4155 ac_cv_header_stdc=no
4161 if test $ac_cv_header_stdc = yes; then
4162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4163 if test "$cross_compiling" = yes; then
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 #if ((' ' & 0x0FF) == 0x020)
4174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4177 # define ISLOWER(c) \
4178 (('a' <= (c) && (c) <= 'i') \
4179 || ('j' <= (c) && (c) <= 'r') \
4180 || ('s' <= (c) && (c) <= 'z'))
4181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4189 for (i = 0; i < 256; i++)
4190 if (XOR (islower (i), ISLOWER (i))
4191 || toupper (i) != TOUPPER (i))
4196 rm -f conftest$ac_exeext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198 (eval $ac_link) 2>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
4209 echo "$as_me: program exited with status $ac_status" >&5
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_cv_header_stdc=no
4216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4220 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4221 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4222 if test $ac_cv_header_stdc = yes; then
4224 cat >>confdefs.h <<\_ACEOF
4225 #define STDC_HEADERS 1
4230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4240 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4241 inttypes.h stdint.h unistd.h
4243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4244 echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 $ac_includes_default
4257 #include <$ac_header>
4259 rm -f conftest.$ac_objext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag"
4269 || test ! -s conftest.err'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 eval "$as_ac_Header=yes"
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 eval "$as_ac_Header=no"
4288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4302 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4303 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4304 if test "${ac_cv_search_zlibVersion+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 ac_func_search_save_LIBS=$LIBS
4308 ac_cv_search_zlibVersion=no
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4316 /* Override any gcc2 internal prototype to avoid an error. */
4320 /* We use char because int might match the return type of a gcc2
4321 builtin and then its argument prototype would still apply. */
4322 char zlibVersion ();
4331 rm -f conftest.$ac_objext conftest$ac_exeext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333 (eval $ac_link) 2>conftest.er1
4335 grep -v '^ *+' conftest.er1 >conftest.err
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } &&
4340 { ac_try='test -z "$ac_c_werror_flag"
4341 || test ! -s conftest.err'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; } &&
4347 { ac_try='test -s conftest$ac_exeext'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_cv_search_zlibVersion="none required"
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4359 rm -f conftest.err conftest.$ac_objext \
4360 conftest$ac_exeext conftest.$ac_ext
4361 if test "$ac_cv_search_zlibVersion" = no; then
4363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4371 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4377 char zlibVersion ();
4386 rm -f conftest.$ac_objext conftest$ac_exeext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388 (eval $ac_link) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest$ac_exeext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_search_zlibVersion="-l$ac_lib"
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4415 rm -f conftest.err conftest.$ac_objext \
4416 conftest$ac_exeext conftest.$ac_ext
4419 LIBS=$ac_func_search_save_LIBS
4421 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4422 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4423 if test "$ac_cv_search_zlibVersion" != no; then
4424 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4426 for ac_header in zlib.h
4428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4430 echo "$as_me:$LINENO: checking for $ac_header" >&5
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4438 # Is the header compilable?
4439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 $ac_includes_default
4448 #include <$ac_header>
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_header_compiler=yes
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_header_compiler=no
4479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4481 echo "${ECHO_T}$ac_header_compiler" >&6
4483 # Is the header present?
4484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4486 cat >conftest.$ac_ext <<_ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 #include <$ac_header>
4494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4497 grep -v '^ *+' conftest.er1 >conftest.err
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } >/dev/null; then
4502 if test -s conftest.err; then
4503 ac_cpp_err=$ac_c_preproc_warn_flag
4504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4511 if test -z "$ac_cpp_err"; then
4512 ac_header_preproc=yes
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_header_preproc=no
4519 rm -f conftest.err conftest.$ac_ext
4520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4521 echo "${ECHO_T}$ac_header_preproc" >&6
4523 # So? What about this header?
4524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4530 ac_header_preproc=yes
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4547 ## ------------------------------------------ ##
4548 ## Report this to the AC_PACKAGE_NAME lists. ##
4549 ## ------------------------------------------ ##
4552 sed "s/^/$as_me: WARNING: /" >&2
4555 echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 eval "$as_ac_Header=\$ac_header_preproc"
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4567 cat >>confdefs.h <<_ACEOF
4568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 . ${srcdir}/../../bfd/configure.host
4583 cat >>confdefs.h <<\_ACEOF
4584 #define USE_WIN32API 1
4590 ac_config_headers="$ac_config_headers config.h:config.in"
4594 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4595 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4596 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 cat >conftest.$ac_ext <<_ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 $ac_includes_default
4609 static struct stat ac_aggr;
4610 if (ac_aggr.st_blksize)
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_member_struct_stat_st_blksize=yes
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 cat >conftest.$ac_ext <<_ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4653 static struct stat ac_aggr;
4654 if (sizeof ac_aggr.st_blksize)
4660 rm -f conftest.$ac_objext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>conftest.er1
4664 grep -v '^ *+' conftest.er1 >conftest.err
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 { ac_try='test -z "$ac_c_werror_flag"
4670 || test ! -s conftest.err'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_cv_member_struct_stat_st_blksize=yes
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 ac_cv_member_struct_stat_st_blksize=no
4689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4693 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4694 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4695 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4697 cat >>confdefs.h <<_ACEOF
4698 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4702 cat >>confdefs.h <<\_ACEOF
4703 #define HAVE_ST_BLKSIZE 1
4709 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4710 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4711 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 cat >conftest.$ac_ext <<_ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 $ac_includes_default
4724 static struct stat ac_aggr;
4725 if (ac_aggr.st_blocks)
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1 >conftest.err
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -z "$ac_c_werror_flag"
4741 || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 ac_cv_member_struct_stat_st_blocks=yes
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 $ac_includes_default
4768 static struct stat ac_aggr;
4769 if (sizeof ac_aggr.st_blocks)
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>conftest.er1
4779 grep -v '^ *+' conftest.er1 >conftest.err
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -z "$ac_c_werror_flag"
4785 || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_member_struct_stat_st_blocks=yes
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 ac_cv_member_struct_stat_st_blocks=no
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4808 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4809 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4810 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4812 cat >>confdefs.h <<_ACEOF
4813 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4817 cat >>confdefs.h <<\_ACEOF
4818 #define HAVE_ST_BLOCKS 1
4823 "fileblocks.$ac_objext" | \
4824 *" fileblocks.$ac_objext" | \
4825 "fileblocks.$ac_objext "* | \
4826 *" fileblocks.$ac_objext "* ) ;;
4827 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
4834 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4835 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4836 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 cat >conftest.$ac_ext <<_ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 $ac_includes_default
4849 static struct stat ac_aggr;
4850 if (ac_aggr.st_rdev)
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 ac_cv_member_struct_stat_st_rdev=yes
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 $ac_includes_default
4893 static struct stat ac_aggr;
4894 if (sizeof ac_aggr.st_rdev)
4900 rm -f conftest.$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>conftest.er1
4904 grep -v '^ *+' conftest.er1 >conftest.err
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_member_struct_stat_st_rdev=yes
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 ac_cv_member_struct_stat_st_rdev=no
4929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4933 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4934 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4935 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4937 cat >>confdefs.h <<_ACEOF
4938 #define HAVE_STRUCT_STAT_ST_RDEV 1
4942 cat >>confdefs.h <<\_ACEOF
4943 #define HAVE_ST_RDEV 1
4949 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4950 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4951 if test "${ac_cv_struct_tm+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 #include <sys/types.h>
4966 struct tm *tp; tp->tm_sec;
4971 rm -f conftest.$ac_objext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973 (eval $ac_compile) 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -z "$ac_c_werror_flag"
4981 || test ! -s conftest.err'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; } &&
4987 { ac_try='test -s conftest.$ac_objext'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
4993 ac_cv_struct_tm=time.h
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4998 ac_cv_struct_tm=sys/time.h
5000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5003 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5004 if test $ac_cv_struct_tm = sys/time.h; then
5006 cat >>confdefs.h <<\_ACEOF
5007 #define TM_IN_SYS_TIME 1
5012 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5013 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5014 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 #include <sys/types.h>
5024 #include <$ac_cv_struct_tm>
5030 static struct tm ac_aggr;
5031 if (ac_aggr.tm_zone)
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>conftest.er1
5041 grep -v '^ *+' conftest.er1 >conftest.err
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -z "$ac_c_werror_flag"
5047 || test ! -s conftest.err'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; } &&
5053 { ac_try='test -s conftest.$ac_objext'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5059 ac_cv_member_struct_tm_tm_zone=yes
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <sys/types.h>
5071 #include <$ac_cv_struct_tm>
5077 static struct tm ac_aggr;
5078 if (sizeof ac_aggr.tm_zone)
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>conftest.er1
5088 grep -v '^ *+' conftest.er1 >conftest.err
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try='test -z "$ac_c_werror_flag"
5094 || test ! -s conftest.err'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 ac_cv_member_struct_tm_tm_zone=yes
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 ac_cv_member_struct_tm_tm_zone=no
5113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5117 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5118 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5119 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5121 cat >>confdefs.h <<_ACEOF
5122 #define HAVE_STRUCT_TM_TM_ZONE 1
5128 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5130 cat >>confdefs.h <<\_ACEOF
5131 #define HAVE_TM_ZONE 1
5135 echo "$as_me:$LINENO: checking for tzname" >&5
5136 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5137 if test "${ac_cv_var_tzname+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5147 #ifndef tzname /* For SGI. */
5148 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>conftest.er1
5163 grep -v '^ *+' conftest.er1 >conftest.err
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -z "$ac_c_werror_flag"
5169 || test ! -s conftest.err'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; } &&
5175 { ac_try='test -s conftest$ac_exeext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_cv_var_tzname=yes
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5188 rm -f conftest.err conftest.$ac_objext \
5189 conftest$ac_exeext conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5192 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5193 if test $ac_cv_var_tzname = yes; then
5195 cat >>confdefs.h <<\_ACEOF
5196 #define HAVE_TZNAME 1
5203 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5204 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5205 if test "${ac_cv_type_uid_t+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <sys/types.h>
5217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5218 $EGREP "uid_t" >/dev/null 2>&1; then
5219 ac_cv_type_uid_t=yes
5226 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5227 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5228 if test $ac_cv_type_uid_t = no; then
5230 cat >>confdefs.h <<\_ACEOF
5235 cat >>confdefs.h <<\_ACEOF
5241 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
5242 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
5243 if test "${ac_cv_type_getgroups+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 if test "$cross_compiling" = yes; then
5247 ac_cv_type_getgroups=cross
5249 cat >conftest.$ac_ext <<_ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 /* Thanks to Mike Rendell for this test. */
5256 #include <sys/types.h>
5259 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5266 union { gid_t gval; long lval; } val;
5269 for (i = 0; i < NGID; i++)
5270 gidset[i] = val.gval;
5271 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5273 /* Exit non-zero if getgroups seems to require an array of ints. This
5274 happens when gid_t is short but getgroups modifies an array of ints. */
5275 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5278 rm -f conftest$ac_exeext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5280 (eval $ac_link) 2>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_type_getgroups=gid_t
5291 echo "$as_me: program exited with status $ac_status" >&5
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5296 ac_cv_type_getgroups=int
5298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5300 if test $ac_cv_type_getgroups = cross; then
5301 cat >conftest.$ac_ext <<_ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5312 ac_cv_type_getgroups=gid_t
5314 ac_cv_type_getgroups=int
5320 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
5321 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
5323 cat >>confdefs.h <<_ACEOF
5324 #define GETGROUPS_T $ac_cv_type_getgroups
5328 echo "$as_me:$LINENO: checking for mode_t" >&5
5329 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5330 if test "${ac_cv_type_mode_t+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 $ac_includes_default
5345 if (sizeof (mode_t))
5351 rm -f conftest.$ac_objext
5352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5353 (eval $ac_compile) 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -z "$ac_c_werror_flag"
5361 || test ! -s conftest.err'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; } &&
5367 { ac_try='test -s conftest.$ac_objext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_cv_type_mode_t=yes
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 ac_cv_type_mode_t=no
5380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5382 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5383 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5384 if test $ac_cv_type_mode_t = yes; then
5388 cat >>confdefs.h <<_ACEOF
5394 echo "$as_me:$LINENO: checking for off_t" >&5
5395 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5396 if test "${ac_cv_type_off_t+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 cat >conftest.$ac_ext <<_ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 $ac_includes_default
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>conftest.er1
5421 grep -v '^ *+' conftest.er1 >conftest.err
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -z "$ac_c_werror_flag"
5427 || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_cv_type_off_t=yes
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5448 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5449 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5450 if test $ac_cv_type_off_t = yes; then
5454 cat >>confdefs.h <<_ACEOF
5460 echo "$as_me:$LINENO: checking for pid_t" >&5
5461 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5462 if test "${ac_cv_type_pid_t+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 cat >conftest.$ac_ext <<_ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 $ac_includes_default
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_type_pid_t=yes
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5514 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5515 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5516 if test $ac_cv_type_pid_t = yes; then
5520 cat >>confdefs.h <<_ACEOF
5526 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5527 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5528 if test "${ac_cv_type_signal+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 cat >conftest.$ac_ext <<_ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #include <sys/types.h>
5543 extern "C" void (*signal (int, void (*)(int)))(int);
5545 void (*signal ()) ();
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5560 grep -v '^ *+' conftest.er1 >conftest.err
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_type_signal=void
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 ac_cv_type_signal=int
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5588 echo "${ECHO_T}$ac_cv_type_signal" >&6
5590 cat >>confdefs.h <<_ACEOF
5591 #define RETSIGTYPE $ac_cv_type_signal
5595 echo "$as_me:$LINENO: checking for size_t" >&5
5596 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5597 if test "${ac_cv_type_size_t+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 $ac_includes_default
5612 if (sizeof (size_t))
5618 rm -f conftest.$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_cv_type_size_t=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_cv_type_size_t=no
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5649 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5650 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5651 if test $ac_cv_type_size_t = yes; then
5655 cat >>confdefs.h <<_ACEOF
5656 #define size_t unsigned
5661 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5662 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5663 if test "${ac_cv_type_uid_t+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 #include <sys/types.h>
5675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5676 $EGREP "uid_t" >/dev/null 2>&1; then
5677 ac_cv_type_uid_t=yes
5684 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5685 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5686 if test $ac_cv_type_uid_t = no; then
5688 cat >>confdefs.h <<\_ACEOF
5693 cat >>confdefs.h <<\_ACEOF
5750 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
5752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5753 echo "$as_me:$LINENO: checking for $ac_func" >&5
5754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5755 if eval "test \"\${$as_ac_var+set}\" = set"; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5766 #define $ac_func innocuous_$ac_func
5768 /* System header to define __stub macros and hopefully few prototypes,
5769 which can conflict with char $ac_func (); below.
5770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5771 <limits.h> exists even on freestanding compilers. */
5774 # include <limits.h>
5776 # include <assert.h>
5781 /* Override any gcc2 internal prototype to avoid an error. */
5786 /* We use char because int might match the return type of a gcc2
5787 builtin and then its argument prototype would still apply. */
5789 /* The GNU C library defines this for functions which it implements
5790 to always fail with ENOSYS. Some functions are actually named
5791 something starting with __ and the normal name is an alias. */
5792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5795 char (*f) () = $ac_func;
5804 return f != $ac_func;
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>conftest.er1
5813 grep -v '^ *+' conftest.er1 >conftest.err
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 eval "$as_ac_var=yes"
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 eval "$as_ac_var=no"
5838 rm -f conftest.err conftest.$ac_objext \
5839 conftest$ac_exeext conftest.$ac_ext
5841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5843 if test `eval echo '${'$as_ac_var'}'` = yes; then
5844 cat >>confdefs.h <<_ACEOF
5845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5870 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
5872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5874 echo "$as_me:$LINENO: checking for $ac_header" >&5
5875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5882 # Is the header compilable?
5883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5885 cat >conftest.$ac_ext <<_ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 $ac_includes_default
5892 #include <$ac_header>
5894 rm -f conftest.$ac_objext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896 (eval $ac_compile) 2>conftest.er1
5898 grep -v '^ *+' conftest.er1 >conftest.err
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -z "$ac_c_werror_flag"
5904 || test ! -s conftest.err'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; } &&
5910 { ac_try='test -s conftest.$ac_objext'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5916 ac_header_compiler=yes
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 ac_header_compiler=no
5923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5925 echo "${ECHO_T}$ac_header_compiler" >&6
5927 # Is the header present?
5928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <$ac_header>
5938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } >/dev/null; then
5946 if test -s conftest.err; then
5947 ac_cpp_err=$ac_c_preproc_warn_flag
5948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5955 if test -z "$ac_cpp_err"; then
5956 ac_header_preproc=yes
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 ac_header_preproc=no
5963 rm -f conftest.err conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5965 echo "${ECHO_T}$ac_header_preproc" >&6
5967 # So? What about this header?
5968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5974 ac_header_preproc=yes
5977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5991 ## ------------------------------------------ ##
5992 ## Report this to the AC_PACKAGE_NAME lists. ##
5993 ## ------------------------------------------ ##
5996 sed "s/^/$as_me: WARNING: /" >&2
5999 echo "$as_me:$LINENO: checking for $ac_header" >&5
6000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 eval "$as_ac_Header=\$ac_header_preproc"
6006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6011 cat >>confdefs.h <<_ACEOF
6012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6025 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6026 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6027 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6028 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.$ac_ext <<_ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -z "$ac_c_werror_flag"
6060 || test ! -s conftest.err'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; } &&
6066 { ac_try='test -s conftest.$ac_objext'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 eval "$as_ac_Header=yes"
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 eval "$as_ac_Header=no"
6079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6084 cat >>confdefs.h <<_ACEOF
6085 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6088 ac_header_dirent=$ac_hdr; break
6092 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6093 if test $ac_header_dirent = dirent.h; then
6094 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6095 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6096 if test "${ac_cv_search_opendir+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 ac_func_search_save_LIBS=$LIBS
6100 ac_cv_search_opendir=no
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6108 /* Override any gcc2 internal prototype to avoid an error. */
6112 /* We use char because int might match the return type of a gcc2
6113 builtin and then its argument prototype would still apply. */
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125 (eval $ac_link) 2>conftest.er1
6127 grep -v '^ *+' conftest.er1 >conftest.err
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -z "$ac_c_werror_flag"
6133 || test ! -s conftest.err'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest$ac_exeext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_cv_search_opendir="none required"
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6151 rm -f conftest.err conftest.$ac_objext \
6152 conftest$ac_exeext conftest.$ac_ext
6153 if test "$ac_cv_search_opendir" = no; then
6154 for ac_lib in dir; do
6155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6163 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180 (eval $ac_link) 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest$ac_exeext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_search_opendir="-l$ac_lib"
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6207 rm -f conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
6211 LIBS=$ac_func_search_save_LIBS
6213 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6214 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6215 if test "$ac_cv_search_opendir" != no; then
6216 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6221 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6223 if test "${ac_cv_search_opendir+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 ac_func_search_save_LIBS=$LIBS
6227 ac_cv_search_opendir=no
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6235 /* Override any gcc2 internal prototype to avoid an error. */
6239 /* We use char because int might match the return type of a gcc2
6240 builtin and then its argument prototype would still apply. */
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>conftest.er1
6254 grep -v '^ *+' conftest.er1 >conftest.err
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 ac_cv_search_opendir="none required"
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6278 rm -f conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
6280 if test "$ac_cv_search_opendir" = no; then
6282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6283 cat >conftest.$ac_ext <<_ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6290 /* Override any gcc2 internal prototype to avoid an error. */
6294 /* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest$ac_exeext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_cv_search_opendir="-l$ac_lib"
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6334 rm -f conftest.err conftest.$ac_objext \
6335 conftest$ac_exeext conftest.$ac_ext
6338 LIBS=$ac_func_search_save_LIBS
6340 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6341 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6342 if test "$ac_cv_search_opendir" != no; then
6343 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6351 echo "$as_me:$LINENO: checking for struct termios" >&5
6352 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
6353 if test "${ac_cv_termios_struct+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 cat >conftest.$ac_ext <<_ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362 #include <sys/types.h>
6363 #include <sys/termios.h>
6367 static struct termios x;
6377 rm -f conftest.$ac_objext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379 (eval $ac_compile) 2>conftest.er1
6381 grep -v '^ *+' conftest.er1 >conftest.err
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -z "$ac_c_werror_flag"
6387 || test ! -s conftest.err'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; } &&
6393 { ac_try='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_cv_termios_struct=yes
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 ac_cv_termios_struct=no
6406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6409 echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
6410 echo "${ECHO_T}$ac_cv_termios_struct" >&6
6411 if test $ac_cv_termios_struct = yes; then
6412 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
6415 if test "$ac_cv_termios_struct" = "yes"; then
6416 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
6417 echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
6418 if test "${ac_cv_termios_cline+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <sys/types.h>
6428 #include <sys/termios.h>
6432 static struct termios x; x.c_line = 0;
6437 rm -f conftest.$ac_objext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6439 (eval $ac_compile) 2>conftest.er1
6441 grep -v '^ *+' conftest.er1 >conftest.err
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -z "$ac_c_werror_flag"
6447 || test ! -s conftest.err'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try='test -s conftest.$ac_objext'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
6459 ac_cv_termios_cline=yes
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 ac_cv_termios_cline=no
6466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6470 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
6471 echo "${ECHO_T}$ac_cv_termios_cline" >&6
6472 if test $ac_cv_termios_cline = yes; then
6473 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
6476 ac_cv_termios_cline=no
6479 if test "$ac_cv_termios_struct" != "yes"; then
6480 echo "$as_me:$LINENO: checking for struct termio" >&5
6481 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
6482 if test "${ac_cv_termio_struct+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 #include <sys/types.h>
6492 #include <sys/termio.h>
6496 static struct termio x;
6506 rm -f conftest.$ac_objext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>conftest.er1
6510 grep -v '^ *+' conftest.er1 >conftest.err
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_c_werror_flag"
6516 || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_cv_termio_struct=yes
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 ac_cv_termio_struct=no
6535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6538 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
6539 echo "${ECHO_T}$ac_cv_termio_struct" >&6
6540 if test $ac_cv_termio_struct = yes; then
6541 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
6544 ac_cv_termio_struct=no
6547 if test "$ac_cv_termio_struct" = "yes"; then
6548 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
6549 echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
6550 if test "${ac_cv_termio_cline+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 cat >conftest.$ac_ext <<_ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 #include <sys/types.h>
6560 #include <sys/termio.h>
6564 static struct termio x; x.c_line = 0;
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>conftest.er1
6573 grep -v '^ *+' conftest.er1 >conftest.err
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_c_werror_flag"
6579 || test ! -s conftest.err'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_termio_cline=yes
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 ac_cv_termio_cline=no
6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6603 echo "${ECHO_T}$ac_cv_termio_cline" >&6
6604 if test $ac_cv_termio_cline = yes; then
6605 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
6608 ac_cv_termio_cline=no
6611 echo "$as_me:$LINENO: checking for struct statfs" >&5
6612 echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6613 if test "${ac_cv_struct_statfs+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 cat >conftest.$ac_ext <<_ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <sys/types.h>
6623 #ifdef HAVE_SYS_PARAM_H
6624 #include <sys/param.h>
6626 #ifdef HAVE_SYS_MOUNT_H
6627 #include <sys/mount.h>
6629 #ifdef HAVE_SYS_VFS_H
6630 #include <sys/vfs.h>
6632 #ifdef HAVE_SYS_STATFS_H
6633 #include <sys/statfs.h>
6638 static struct statfs s;
6643 rm -f conftest.$ac_objext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>conftest.er1
6647 grep -v '^ *+' conftest.er1 >conftest.err
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -z "$ac_c_werror_flag"
6653 || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_struct_statfs=yes
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 ac_cv_struct_statfs=no
6672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6675 echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6676 echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6677 if test $ac_cv_struct_statfs = yes; then
6679 cat >>confdefs.h <<\_ACEOF
6680 #define HAVE_STRUCT_STATFS 1
6685 echo "$as_me:$LINENO: checking for long long" >&5
6686 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6687 if test "${ac_cv_type_long_long+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 cat >conftest.$ac_ext <<_ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6700 if ((long long *) 0)
6702 if (sizeof (long long))
6708 rm -f conftest.$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>conftest.er1
6712 grep -v '^ *+' conftest.er1 >conftest.err
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -z "$ac_c_werror_flag"
6718 || test ! -s conftest.err'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; } &&
6724 { ac_try='test -s conftest.$ac_objext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_cv_type_long_long=yes
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 ac_cv_type_long_long=no
6737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6739 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6740 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6741 if test $ac_cv_type_long_long = yes; then
6743 cat >>confdefs.h <<_ACEOF
6744 #define HAVE_LONG_LONG 1
6752 echo "$as_me:$LINENO: checking for /dev/zero" >&5
6753 echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6754 if test "${ac_cv_devzero+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 if test "$cross_compiling" = yes; then
6760 cat >conftest.$ac_ext <<_ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6770 int fd = open ("/dev/zero", O_RDONLY);
6773 for (i = 0; i < sizeof (buf); i++)
6775 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6777 for (i = 0; i < sizeof (buf); i++)
6783 rm -f conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785 (eval $ac_link) 2>&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6796 echo "$as_me: program exited with status $ac_status" >&5
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6807 echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6808 echo "${ECHO_T}$ac_cv_devzero" >&6
6809 if test $ac_cv_devzero = yes; then
6810 sim_devzero="-DHAVE_DEVZERO"
6815 echo "$as_me:$LINENO: checking for common simulator directory" >&5
6816 echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6817 if test -f "${srcdir}/../common/callback.c"; then
6818 echo "$as_me:$LINENO: result: yes" >&5
6819 echo "${ECHO_T}yes" >&6
6820 sim_callback="callback.o targ-map.o"
6821 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
6823 echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6
6829 echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6830 echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6831 if test -f "${srcdir}/../common/sim-fpu.c"; then
6832 echo "$as_me:$LINENO: result: yes" >&5
6833 echo "${ECHO_T}yes" >&6
6834 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6837 echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6
6851 if test -n "$ac_tool_prefix"; then
6852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6854 echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6856 if test "${ac_cv_prog_RANLIB+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 if test -n "$RANLIB"; then
6860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 RANLIB=$ac_cv_prog_RANLIB
6879 if test -n "$RANLIB"; then
6880 echo "$as_me:$LINENO: result: $RANLIB" >&5
6881 echo "${ECHO_T}$RANLIB" >&6
6883 echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6888 if test -z "$ac_cv_prog_RANLIB"; then
6889 ac_ct_RANLIB=$RANLIB
6890 # Extract the first word of "ranlib", so it can be a program name with args.
6891 set dummy ranlib; ac_word=$2
6892 echo "$as_me:$LINENO: checking for $ac_word" >&5
6893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 if test -n "$ac_ct_RANLIB"; then
6898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_ac_ct_RANLIB="ranlib"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6917 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6918 if test -n "$ac_ct_RANLIB"; then
6919 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6920 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6922 echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6
6926 RANLIB=$ac_ct_RANLIB
6928 RANLIB="$ac_cv_prog_RANLIB"
6976 ac_config_files="$ac_config_files Makefile"
6977 ac_config_commands="$ac_config_commands default"
6978 cat >confcache <<\_ACEOF
6979 # This file is a shell script that caches the results of configure
6980 # tests run on this system so they can be shared between configure
6981 # scripts and configure runs, see configure's option --config-cache.
6982 # It is not useful on other systems. If it contains results you don't
6983 # want to keep, you may remove or edit it.
6985 # config.status only pays attention to the cache file if you give it
6986 # the --recheck option to rerun configure.
6988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6994 # The following way of writing the cache mishandles newlines in values,
6995 # but we know of no workaround that is simple, portable, and efficient.
6996 # So, don't put newlines in cache variables' values.
6997 # Ultrix sh set writes to stderr and can't be redirected directly,
6998 # and sets the high bit in the cache file unless we assign to the vars.
7001 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7003 # `set' does not quote correctly, so add quotes (double-quote
7004 # substitution turns \\\\ into \\, and sed turns \\ into \).
7007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7010 # `set' quotes correctly as required by POSIX, so do not add quotes.
7012 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7019 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7021 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7023 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7024 if test -w $cache_file; then
7025 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7026 cat confcache >$cache_file
7028 echo "not updating unwritable cache $cache_file"
7033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7034 # Let make expand exec_prefix.
7035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7037 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7038 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7039 # trailing colons and then remove the whole line if VPATH becomes empty
7040 # (actually we leave an empty line to preserve line numbers).
7041 if test "x$srcdir" = x.; then
7042 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7043 s/:*\$(srcdir):*/:/;
7044 s/:*\${srcdir}:*/:/;
7046 s/^\([^=]*=[ ]*\):*/\1/;
7052 DEFS=-DHAVE_CONFIG_H
7056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7057 # 1. Remove the extension, and $U if already installed.
7058 ac_i=`echo "$ac_i" |
7059 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7061 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7062 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7066 LTLIBOBJS=$ac_ltlibobjs
7070 : ${CONFIG_STATUS=./config.status}
7071 ac_clean_files_save=$ac_clean_files
7072 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7073 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7074 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7075 cat >$CONFIG_STATUS <<_ACEOF
7077 # Generated by $as_me.
7078 # Run this file to recreate the current configuration.
7079 # Compiler output produced by configure, useful for debugging
7080 # configure, is in config.log if it exists.
7085 SHELL=\${CONFIG_SHELL-$SHELL}
7088 cat >>$CONFIG_STATUS <<\_ACEOF
7089 ## --------------------- ##
7090 ## M4sh Initialization. ##
7091 ## --------------------- ##
7093 # Be Bourne compatible
7094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7097 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7098 # is contrary to our usage. Disable this feature.
7099 alias -g '${1+"$@"}'='"$@"'
7100 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7103 DUALCASE=1; export DUALCASE # for MKS sh
7105 # Support unset when possible.
7106 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7113 # Work around bugs in pre-3.0 UWIN ksh.
7114 $as_unset ENV MAIL MAILPATH
7121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7123 LC_TELEPHONE LC_TIME
7125 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7126 eval $as_var=C; export $as_var
7132 # Required to use basename.
7133 if expr a : '\(a\)' >/dev/null 2>&1; then
7139 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7140 as_basename=basename
7146 # Name of the executable.
7147 as_me=`$as_basename "$0" ||
7148 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7149 X"$0" : 'X\(//\)$' \| \
7150 X"$0" : 'X\(/\)$' \| \
7151 . : '\(.\)' 2>/dev/null ||
7153 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7154 /^X\/\(\/\/\)$/{ s//\1/; q; }
7155 /^X\/\(\/\).*/{ s//\1/; q; }
7159 # PATH needs CR, and LINENO needs CR and PATH.
7160 # Avoid depending upon Character Ranges.
7161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7164 as_cr_digits='0123456789'
7165 as_cr_alnum=$as_cr_Letters$as_cr_digits
7167 # The user is always right.
7168 if test "${PATH_SEPARATOR+set}" != set; then
7169 echo "#! /bin/sh" >conf$$.sh
7170 echo "exit 0" >>conf$$.sh
7172 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7183 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7184 test "x$as_lineno_1" != "x$as_lineno_2" &&
7185 test "x$as_lineno_3" = "x$as_lineno_2" || {
7186 # Find who we are. Look in the path if we contain no path at all
7189 *[\\/]* ) as_myself=$0 ;;
7190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7200 # We did not find ourselves, most probably we were run as `sh COMMAND'
7201 # in which case we are not to be found in the path.
7202 if test "x$as_myself" = x; then
7205 if test ! -f "$as_myself"; then
7206 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7207 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7208 { (exit 1); exit 1; }; }
7210 case $CONFIG_SHELL in
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7216 test -z "$as_dir" && as_dir=.
7217 for as_base in sh bash ksh sh5; do
7220 if ("$as_dir/$as_base" -c '
7223 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7224 test "x$as_lineno_1" != "x$as_lineno_2" &&
7225 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7226 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7227 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7228 CONFIG_SHELL=$as_dir/$as_base
7230 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7238 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7239 # uniformly replaced by the line number. The first 'sed' inserts a
7240 # line-number line before each line; the second 'sed' does the real
7241 # work. The second script uses 'N' to pair each line-number line
7242 # with the numbered line, and appends trailing '-' during
7243 # substitution so that $LINENO is not a special case at line end.
7244 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7245 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7246 sed '=' <$as_myself |
7251 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7254 s,^['$as_cr_digits']*\n,,
7256 chmod +x $as_me.lineno ||
7257 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7258 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7259 { (exit 1); exit 1; }; }
7261 # Don't try to exec as it changes $[0], causing all sort of problems
7262 # (the dirname of $[0] is not the place where we might find the
7263 # original and so on. Autoconf is especially sensible to this).
7265 # Exit status is that of the last command.
7270 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7271 *c*,-n*) ECHO_N= ECHO_C='
7273 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7274 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7277 if expr a : '\(a\)' >/dev/null 2>&1; then
7283 rm -f conf$$ conf$$.exe conf$$.file
7285 if ln -s conf$$.file conf$$ 2>/dev/null; then
7286 # We could just check for DJGPP; but this test a) works b) is more generic
7287 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7288 if test -f conf$$.exe; then
7289 # Don't use ln at all; we don't have any links
7294 elif ln conf$$.file conf$$ 2>/dev/null; then
7299 rm -f conf$$ conf$$.exe conf$$.file
7301 if mkdir -p . 2>/dev/null; then
7304 test -d ./-p && rmdir ./-p
7308 as_executable_p="test -f"
7310 # Sed expression to map a string onto a valid CPP name.
7311 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7313 # Sed expression to map a string onto a valid variable name.
7314 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7318 # We need space, tab and new line, in precisely that order.
7328 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7329 # report actual input values of CONFIG_FILES etc. instead of their
7330 # values after options handling. Logging --version etc. is OK.
7334 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7335 ## Running $as_me. ##
7340 This file was extended by $as_me, which was
7341 generated by GNU Autoconf 2.59. Invocation command line was
7343 CONFIG_FILES = $CONFIG_FILES
7344 CONFIG_HEADERS = $CONFIG_HEADERS
7345 CONFIG_LINKS = $CONFIG_LINKS
7346 CONFIG_COMMANDS = $CONFIG_COMMANDS
7350 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7354 # Files that config.status was made for.
7355 if test -n "$ac_config_files"; then
7356 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7359 if test -n "$ac_config_headers"; then
7360 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7363 if test -n "$ac_config_links"; then
7364 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7367 if test -n "$ac_config_commands"; then
7368 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7371 cat >>$CONFIG_STATUS <<\_ACEOF
7374 \`$as_me' instantiates files from templates according to the
7375 current configuration.
7377 Usage: $0 [OPTIONS] [FILE]...
7379 -h, --help print this help, then exit
7380 -V, --version print version number, then exit
7381 -q, --quiet do not print progress messages
7382 -d, --debug don't remove temporary files
7383 --recheck update $as_me by reconfiguring in the same conditions
7384 --file=FILE[:TEMPLATE]
7385 instantiate the configuration file FILE
7386 --header=FILE[:TEMPLATE]
7387 instantiate the configuration header FILE
7389 Configuration files:
7392 Configuration headers:
7395 Configuration commands:
7398 Report bugs to <bug-autoconf@gnu.org>."
7401 cat >>$CONFIG_STATUS <<_ACEOF
7404 configured by $0, generated by GNU Autoconf 2.59,
7405 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7407 Copyright (C) 2003 Free Software Foundation, Inc.
7408 This config.status script is free software; the Free Software Foundation
7409 gives unlimited permission to copy, distribute and modify it."
7414 cat >>$CONFIG_STATUS <<\_ACEOF
7415 # If no file are specified by the user, then we need to provide default
7416 # value. By we need to know if files were specified by the user.
7422 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7423 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7431 *) # This is not an option, so the user has probably given explicit
7434 ac_need_defaults=false;;
7438 # Handling of the options.
7440 cat >>$CONFIG_STATUS <<\_ACEOF
7441 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7443 --version | --vers* | -V )
7444 echo "$ac_cs_version"; exit 0 ;;
7446 # Conflict between --help and --header
7447 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7448 Try \`$0 --help' for more information." >&5
7449 echo "$as_me: error: ambiguous option: $1
7450 Try \`$0 --help' for more information." >&2;}
7451 { (exit 1); exit 1; }; };;
7452 --help | --hel | -h )
7453 echo "$ac_cs_usage"; exit 0 ;;
7454 --debug | --d* | -d )
7456 --file | --fil | --fi | --f )
7458 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7459 ac_need_defaults=false;;
7460 --header | --heade | --head | --hea )
7462 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7463 ac_need_defaults=false;;
7464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7469 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7470 Try \`$0 --help' for more information." >&5
7471 echo "$as_me: error: unrecognized option: $1
7472 Try \`$0 --help' for more information." >&2;}
7473 { (exit 1); exit 1; }; } ;;
7475 *) ac_config_targets="$ac_config_targets $1" ;;
7481 ac_configure_extra_args=
7483 if $ac_cs_silent; then
7485 ac_configure_extra_args="$ac_configure_extra_args --silent"
7489 cat >>$CONFIG_STATUS <<_ACEOF
7490 if \$ac_cs_recheck; then
7491 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7492 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7501 cat >>$CONFIG_STATUS <<\_ACEOF
7502 for ac_config_target in $ac_config_targets
7504 case "$ac_config_target" in
7505 # Handling of arguments.
7506 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7507 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7508 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7509 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7510 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7511 { (exit 1); exit 1; }; };;
7515 # If the user did not use the arguments to specify the items to instantiate,
7516 # then the envvar interface is used. Set only those that are not.
7517 # We use the long form for the default assignment because of an extremely
7518 # bizarre bug on SunOS 4.1.3.
7519 if $ac_need_defaults; then
7520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7525 # Have a temporary directory for convenience. Make it in the build tree
7526 # simply because there is no reason to put it here, and in addition,
7527 # creating and moving files from /tmp can sometimes cause problems.
7528 # Create a temporary directory, and hook for its removal unless debugging.
7531 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7532 trap '{ (exit 1); exit 1; }' 1 2 13 15
7535 # Create a (secure) tmp directory for tmp files.
7538 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7539 test -n "$tmp" && test -d "$tmp"
7542 tmp=./confstat$$-$RANDOM
7543 (umask 077 && mkdir $tmp)
7546 echo "$me: cannot create a temporary directory in ." >&2
7547 { (exit 1); exit 1; }
7552 cat >>$CONFIG_STATUS <<_ACEOF
7555 # CONFIG_FILES section.
7558 # No need to generate the scripts if there are no CONFIG_FILES.
7559 # This happens for instance when ./config.status config.h
7560 if test -n "\$CONFIG_FILES"; then
7561 # Protect against being on the right side of a sed subst in config.status.
7562 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7563 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7564 s,@sim_environment@,$sim_environment,;t t
7565 s,@sim_alignment@,$sim_alignment,;t t
7566 s,@sim_assert@,$sim_assert,;t t
7567 s,@sim_bitsize@,$sim_bitsize,;t t
7568 s,@sim_endian@,$sim_endian,;t t
7569 s,@sim_hostendian@,$sim_hostendian,;t t
7570 s,@sim_float@,$sim_float,;t t
7571 s,@sim_scache@,$sim_scache,;t t
7572 s,@sim_default_model@,$sim_default_model,;t t
7573 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7574 s,@sim_hw_objs@,$sim_hw_objs,;t t
7575 s,@sim_hw@,$sim_hw,;t t
7576 s,@sim_inline@,$sim_inline,;t t
7577 s,@sim_packages@,$sim_packages,;t t
7578 s,@sim_regparm@,$sim_regparm,;t t
7579 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7580 s,@sim_smp@,$sim_smp,;t t
7581 s,@sim_stdcall@,$sim_stdcall,;t t
7582 s,@sim_xor_endian@,$sim_xor_endian,;t t
7583 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7584 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7585 s,@SHELL@,$SHELL,;t t
7586 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7587 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7588 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7589 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7590 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7591 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7592 s,@exec_prefix@,$exec_prefix,;t t
7593 s,@prefix@,$prefix,;t t
7594 s,@program_transform_name@,$program_transform_name,;t t
7595 s,@bindir@,$bindir,;t t
7596 s,@sbindir@,$sbindir,;t t
7597 s,@libexecdir@,$libexecdir,;t t
7598 s,@datadir@,$datadir,;t t
7599 s,@sysconfdir@,$sysconfdir,;t t
7600 s,@sharedstatedir@,$sharedstatedir,;t t
7601 s,@localstatedir@,$localstatedir,;t t
7602 s,@libdir@,$libdir,;t t
7603 s,@includedir@,$includedir,;t t
7604 s,@oldincludedir@,$oldincludedir,;t t
7605 s,@infodir@,$infodir,;t t
7606 s,@mandir@,$mandir,;t t
7607 s,@build_alias@,$build_alias,;t t
7608 s,@host_alias@,$host_alias,;t t
7609 s,@target_alias@,$target_alias,;t t
7611 s,@ECHO_C@,$ECHO_C,;t t
7612 s,@ECHO_N@,$ECHO_N,;t t
7613 s,@ECHO_T@,$ECHO_T,;t t
7615 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7616 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7617 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7619 s,@CFLAGS@,$CFLAGS,;t t
7620 s,@LDFLAGS@,$LDFLAGS,;t t
7621 s,@CPPFLAGS@,$CPPFLAGS,;t t
7622 s,@ac_ct_CC@,$ac_ct_CC,;t t
7623 s,@EXEEXT@,$EXEEXT,;t t
7624 s,@OBJEXT@,$OBJEXT,;t t
7625 s,@USE_NLS@,$USE_NLS,;t t
7626 s,@LIBINTL@,$LIBINTL,;t t
7627 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7628 s,@INCINTL@,$INCINTL,;t t
7629 s,@XGETTEXT@,$XGETTEXT,;t t
7630 s,@GMSGFMT@,$GMSGFMT,;t t
7631 s,@POSUB@,$POSUB,;t t
7632 s,@CATALOGS@,$CATALOGS,;t t
7633 s,@DATADIRNAME@,$DATADIRNAME,;t t
7634 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7635 s,@GENCAT@,$GENCAT,;t t
7636 s,@CATOBJEXT@,$CATOBJEXT,;t t
7637 s,@PKGVERSION@,$PKGVERSION,;t t
7638 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
7639 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
7640 s,@build@,$build,;t t
7641 s,@build_cpu@,$build_cpu,;t t
7642 s,@build_vendor@,$build_vendor,;t t
7643 s,@build_os@,$build_os,;t t
7645 s,@host_cpu@,$host_cpu,;t t
7646 s,@host_vendor@,$host_vendor,;t t
7647 s,@host_os@,$host_os,;t t
7648 s,@target@,$target,;t t
7649 s,@target_cpu@,$target_cpu,;t t
7650 s,@target_vendor@,$target_vendor,;t t
7651 s,@target_os@,$target_os,;t t
7653 s,@EGREP@,$EGREP,;t t
7654 s,@LIBOBJS@,$LIBOBJS,;t t
7655 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7656 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7657 s,@HDEFINES@,$HDEFINES,;t t
7659 s,@RANLIB@,$RANLIB,;t t
7660 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7661 s,@sim_cflags@,$sim_cflags,;t t
7662 s,@sim_warnings@,$sim_warnings,;t t
7663 s,@sim_line_nr@,$sim_line_nr,;t t
7664 s,@sim_config@,$sim_config,;t t
7665 s,@sim_opcode@,$sim_opcode,;t t
7666 s,@sim_switch@,$sim_switch,;t t
7667 s,@sim_dup@,$sim_dup,;t t
7668 s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7669 s,@sim_jump@,$sim_jump,;t t
7670 s,@sim_filter@,$sim_filter,;t t
7671 s,@sim_icache@,$sim_icache,;t t
7672 s,@sim_hw_src@,$sim_hw_src,;t t
7673 s,@sim_hw_obj@,$sim_hw_obj,;t t
7674 s,@sim_pk_src@,$sim_pk_src,;t t
7675 s,@sim_pk_obj@,$sim_pk_obj,;t t
7676 s,@sim_bswap@,$sim_bswap,;t t
7677 s,@sim_igen_smp@,$sim_igen_smp,;t t
7678 s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7679 s,@sim_env@,$sim_env,;t t
7680 s,@sim_timebase@,$sim_timebase,;t t
7681 s,@sim_trace@,$sim_trace,;t t
7682 s,@sim_reserved@,$sim_reserved,;t t
7683 s,@sim_monitor@,$sim_monitor,;t t
7684 s,@sim_model@,$sim_model,;t t
7685 s,@sim_model_issue@,$sim_model_issue,;t t
7686 s,@sim_stdio@,$sim_stdio,;t t
7687 s,@sim_termio@,$sim_termio,;t t
7688 s,@sim_devzero@,$sim_devzero,;t t
7689 s,@sim_callback@,$sim_callback,;t t
7690 s,@sim_targ_vals@,$sim_targ_vals,;t t
7691 s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7692 s,@sim_fpu@,$sim_fpu,;t t
7693 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7698 cat >>$CONFIG_STATUS <<\_ACEOF
7699 # Split the substitutions into bite-sized pieces for seds with
7700 # small command number limits, like on Digital OSF/1 and HP-UX.
7702 ac_sed_frag=1 # Number of current file.
7703 ac_beg=1 # First line for current file.
7704 ac_end=$ac_max_sed_lines # Line after last line for current file.
7707 while $ac_more_lines; do
7708 if test $ac_beg -gt 1; then
7709 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7711 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7713 if test ! -s $tmp/subs.frag; then
7716 # The purpose of the label and of the branching condition is to
7717 # speed up the sed processing (if there are no `@' at all, there
7718 # is no need to browse any of the substitutions).
7719 # These are the two extra sed commands mentioned above.
7721 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7722 if test -z "$ac_sed_cmds"; then
7723 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7725 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7727 ac_sed_frag=`expr $ac_sed_frag + 1`
7729 ac_end=`expr $ac_end + $ac_max_sed_lines`
7732 if test -z "$ac_sed_cmds"; then
7735 fi # test -n "$CONFIG_FILES"
7738 cat >>$CONFIG_STATUS <<\_ACEOF
7739 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7740 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7742 - | *:- | *:-:* ) # input from stdin
7744 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7746 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7747 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7748 * ) ac_file_in=$ac_file.in ;;
7751 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7752 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7754 X"$ac_file" : 'X\(//\)[^/]' \| \
7755 X"$ac_file" : 'X\(//\)$' \| \
7756 X"$ac_file" : 'X\(/\)' \| \
7757 . : '\(.\)' 2>/dev/null ||
7759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7761 /^X\(\/\/\)$/{ s//\1/; q; }
7762 /^X\(\/\).*/{ s//\1/; q; }
7764 { if $as_mkdir_p; then
7769 while test ! -d "$as_dir"; do
7770 as_dirs="$as_dir $as_dirs"
7771 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7773 X"$as_dir" : 'X\(//\)[^/]' \| \
7774 X"$as_dir" : 'X\(//\)$' \| \
7775 X"$as_dir" : 'X\(/\)' \| \
7776 . : '\(.\)' 2>/dev/null ||
7778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7780 /^X\(\/\/\)$/{ s//\1/; q; }
7781 /^X\(\/\).*/{ s//\1/; q; }
7784 test ! -n "$as_dirs" || mkdir $as_dirs
7785 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7786 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7787 { (exit 1); exit 1; }; }; }
7791 if test "$ac_dir" != .; then
7792 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7793 # A "../" for each directory in $ac_dir_suffix.
7794 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7796 ac_dir_suffix= ac_top_builddir=
7800 .) # No --srcdir option. We are building in place.
7802 if test -z "$ac_top_builddir"; then
7805 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7807 [\\/]* | ?:[\\/]* ) # Absolute path.
7808 ac_srcdir=$srcdir$ac_dir_suffix;
7809 ac_top_srcdir=$srcdir ;;
7811 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7812 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7815 # Do not use `cd foo && pwd` to compute absolute paths, because
7816 # the directories may not exist.
7818 .) ac_abs_builddir="$ac_dir";;
7821 .) ac_abs_builddir=`pwd`;;
7822 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7823 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7826 case $ac_abs_builddir in
7827 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7829 case ${ac_top_builddir}. in
7830 .) ac_abs_top_builddir=$ac_abs_builddir;;
7831 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7832 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7835 case $ac_abs_builddir in
7836 .) ac_abs_srcdir=$ac_srcdir;;
7839 .) ac_abs_srcdir=$ac_abs_builddir;;
7840 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7841 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7844 case $ac_abs_builddir in
7845 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7847 case $ac_top_srcdir in
7848 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7849 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7850 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7856 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7857 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7860 if test x"$ac_file" != x-; then
7861 { echo "$as_me:$LINENO: creating $ac_file" >&5
7862 echo "$as_me: creating $ac_file" >&6;}
7865 # Let's still pretend it is `configure' which instantiates (i.e., don't
7866 # use $as_me), people would be surprised to read:
7867 # /* config.h. Generated by config.status. */
7868 if test x"$ac_file" = x-; then
7871 configure_input="$ac_file. "
7873 configure_input=$configure_input"Generated from `echo $ac_file_in |
7874 sed 's,.*/,,'` by configure."
7876 # First look for the input files in the build tree, otherwise in the
7878 ac_file_inputs=`IFS=:
7879 for f in $ac_file_in; do
7881 -) echo $tmp/stdin ;;
7883 # Absolute (can't be DOS-style, as IFS=:)
7884 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7885 echo "$as_me: error: cannot find input file: $f" >&2;}
7886 { (exit 1); exit 1; }; }
7889 if test -f "$f"; then
7892 elif test -f "$srcdir/$f"; then
7897 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7898 echo "$as_me: error: cannot find input file: $f" >&2;}
7899 { (exit 1); exit 1; }; }
7902 done` || { (exit 1); exit 1; }
7904 cat >>$CONFIG_STATUS <<_ACEOF
7908 cat >>$CONFIG_STATUS <<\_ACEOF
7910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7911 s,@configure_input@,$configure_input,;t t
7912 s,@srcdir@,$ac_srcdir,;t t
7913 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7914 s,@top_srcdir@,$ac_top_srcdir,;t t
7915 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7916 s,@builddir@,$ac_builddir,;t t
7917 s,@abs_builddir@,$ac_abs_builddir,;t t
7918 s,@top_builddir@,$ac_top_builddir,;t t
7919 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7920 s,@INSTALL@,$ac_INSTALL,;t t
7921 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7923 if test x"$ac_file" != x-; then
7924 mv $tmp/out $ac_file
7932 cat >>$CONFIG_STATUS <<\_ACEOF
7935 # CONFIG_HEADER section.
7938 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7939 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7941 # ac_d sets the value in "#define NAME VALUE" lines.
7942 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7943 ac_dB='[ ].*$,\1#\2'
7946 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7947 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7948 ac_uB='$,\1#\2define\3'
7952 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7953 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7955 - | *:- | *:-:* ) # input from stdin
7957 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7958 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7959 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7960 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7961 * ) ac_file_in=$ac_file.in ;;
7964 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7965 echo "$as_me: creating $ac_file" >&6;}
7967 # First look for the input files in the build tree, otherwise in the
7969 ac_file_inputs=`IFS=:
7970 for f in $ac_file_in; do
7972 -) echo $tmp/stdin ;;
7974 # Absolute (can't be DOS-style, as IFS=:)
7975 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7976 echo "$as_me: error: cannot find input file: $f" >&2;}
7977 { (exit 1); exit 1; }; }
7978 # Do quote $f, to prevent DOS paths from being IFS'd.
7981 if test -f "$f"; then
7984 elif test -f "$srcdir/$f"; then
7989 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7990 echo "$as_me: error: cannot find input file: $f" >&2;}
7991 { (exit 1); exit 1; }; }
7994 done` || { (exit 1); exit 1; }
7995 # Remove the trailing spaces.
7996 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8000 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8001 # `conftest.undefs', that substitutes the proper values into
8002 # config.h.in to produce config.h. The first handles `#define'
8003 # templates, and the second `#undef' templates.
8004 # And first: Protect against being on the right side of a sed subst in
8005 # config.status. Protect against being in an unquoted here document
8007 rm -f conftest.defines conftest.undefs
8008 # Using a here document instead of a string reduces the quoting nightmare.
8009 # Putting comments in sed scripts is not portable.
8011 # `end' is used to avoid that the second main sed command (meant for
8012 # 0-ary CPP macros) applies to n-ary macro definitions.
8013 # See the Autoconf documentation for `clear'.
8014 cat >confdef2sed.sed <<\_ACEOF
8019 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8021 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8024 # If some macros were called several times there might be several times
8025 # the same #defines, which is useless. Nevertheless, we may not want to
8026 # sort them, since we want the *last* AC-DEFINE to be honored.
8027 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8028 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8029 rm -f confdef2sed.sed
8031 # This sed command replaces #undef with comments. This is necessary, for
8032 # example, in the case of _POSIX_SOURCE, which is predefined and required
8033 # on some systems where configure will not decide to define it.
8034 cat >>conftest.undefs <<\_ACEOF
8035 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8038 # Break up conftest.defines because some shells have a limit on the size
8039 # of here documents, and old seds have small limits too (100 cmds).
8040 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8041 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8042 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8043 echo ' :' >>$CONFIG_STATUS
8045 while grep . conftest.defines >/dev/null
8047 # Write a limited-size here document to $tmp/defines.sed.
8048 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8049 # Speed up: don't consider the non `#define' lines.
8050 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8051 # Work around the forget-to-reset-the-flag bug.
8052 echo 't clr' >>$CONFIG_STATUS
8053 echo ': clr' >>$CONFIG_STATUS
8054 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8056 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8060 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8061 rm -f conftest.defines
8062 mv conftest.tail conftest.defines
8064 rm -f conftest.defines
8065 echo ' fi # grep' >>$CONFIG_STATUS
8066 echo >>$CONFIG_STATUS
8068 # Break up conftest.undefs because some shells have a limit on the size
8069 # of here documents, and old seds have small limits too (100 cmds).
8070 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8072 while grep . conftest.undefs >/dev/null
8074 # Write a limited-size here document to $tmp/undefs.sed.
8075 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8076 # Speed up: don't consider the non `#undef'
8077 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8078 # Work around the forget-to-reset-the-flag bug.
8079 echo 't clr' >>$CONFIG_STATUS
8080 echo ': clr' >>$CONFIG_STATUS
8081 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8083 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8087 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8088 rm -f conftest.undefs
8089 mv conftest.tail conftest.undefs
8091 rm -f conftest.undefs
8093 cat >>$CONFIG_STATUS <<\_ACEOF
8094 # Let's still pretend it is `configure' which instantiates (i.e., don't
8095 # use $as_me), people would be surprised to read:
8096 # /* config.h. Generated by config.status. */
8097 if test x"$ac_file" = x-; then
8098 echo "/* Generated by configure. */" >$tmp/config.h
8100 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8102 cat $tmp/in >>$tmp/config.h
8104 if test x"$ac_file" != x-; then
8105 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8106 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8107 echo "$as_me: $ac_file is unchanged" >&6;}
8109 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8110 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8111 X"$ac_file" : 'X\(//\)[^/]' \| \
8112 X"$ac_file" : 'X\(//\)$' \| \
8113 X"$ac_file" : 'X\(/\)' \| \
8114 . : '\(.\)' 2>/dev/null ||
8116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8118 /^X\(\/\/\)$/{ s//\1/; q; }
8119 /^X\(\/\).*/{ s//\1/; q; }
8121 { if $as_mkdir_p; then
8126 while test ! -d "$as_dir"; do
8127 as_dirs="$as_dir $as_dirs"
8128 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8130 X"$as_dir" : 'X\(//\)[^/]' \| \
8131 X"$as_dir" : 'X\(//\)$' \| \
8132 X"$as_dir" : 'X\(/\)' \| \
8133 . : '\(.\)' 2>/dev/null ||
8135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8137 /^X\(\/\/\)$/{ s//\1/; q; }
8138 /^X\(\/\).*/{ s//\1/; q; }
8141 test ! -n "$as_dirs" || mkdir $as_dirs
8142 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8143 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8144 { (exit 1); exit 1; }; }; }
8147 mv $tmp/config.h $ac_file
8155 cat >>$CONFIG_STATUS <<\_ACEOF
8158 # CONFIG_COMMANDS section.
8160 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8161 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8162 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8163 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8164 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8165 X"$ac_dest" : 'X\(//\)[^/]' \| \
8166 X"$ac_dest" : 'X\(//\)$' \| \
8167 X"$ac_dest" : 'X\(/\)' \| \
8168 . : '\(.\)' 2>/dev/null ||
8170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8172 /^X\(\/\/\)$/{ s//\1/; q; }
8173 /^X\(\/\).*/{ s//\1/; q; }
8175 { if $as_mkdir_p; then
8180 while test ! -d "$as_dir"; do
8181 as_dirs="$as_dir $as_dirs"
8182 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8184 X"$as_dir" : 'X\(//\)[^/]' \| \
8185 X"$as_dir" : 'X\(//\)$' \| \
8186 X"$as_dir" : 'X\(/\)' \| \
8187 . : '\(.\)' 2>/dev/null ||
8189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8191 /^X\(\/\/\)$/{ s//\1/; q; }
8192 /^X\(\/\).*/{ s//\1/; q; }
8195 test ! -n "$as_dirs" || mkdir $as_dirs
8196 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8197 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8198 { (exit 1); exit 1; }; }; }
8202 if test "$ac_dir" != .; then
8203 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8204 # A "../" for each directory in $ac_dir_suffix.
8205 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8207 ac_dir_suffix= ac_top_builddir=
8211 .) # No --srcdir option. We are building in place.
8213 if test -z "$ac_top_builddir"; then
8216 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8218 [\\/]* | ?:[\\/]* ) # Absolute path.
8219 ac_srcdir=$srcdir$ac_dir_suffix;
8220 ac_top_srcdir=$srcdir ;;
8222 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8223 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8226 # Do not use `cd foo && pwd` to compute absolute paths, because
8227 # the directories may not exist.
8229 .) ac_abs_builddir="$ac_dir";;
8232 .) ac_abs_builddir=`pwd`;;
8233 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8234 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8237 case $ac_abs_builddir in
8238 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8240 case ${ac_top_builddir}. in
8241 .) ac_abs_top_builddir=$ac_abs_builddir;;
8242 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8243 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8246 case $ac_abs_builddir in
8247 .) ac_abs_srcdir=$ac_srcdir;;
8250 .) ac_abs_srcdir=$ac_abs_builddir;;
8251 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8252 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8255 case $ac_abs_builddir in
8256 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8258 case $ac_top_srcdir in
8259 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8260 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8261 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8266 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8267 echo "$as_me: executing $ac_dest commands" >&6;}
8269 default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
8274 cat >>$CONFIG_STATUS <<\_ACEOF
8276 { (exit 0); exit 0; }
8278 chmod +x $CONFIG_STATUS
8279 ac_clean_files=$ac_clean_files_save
8282 # configure is writing to config.log, and then calls config.status.
8283 # config.status does its own redirection, appending to config.log.
8284 # Unfortunately, on DOS this fails, as config.log is still kept open
8285 # by configure, so config.status won't be able to write to it; its
8286 # output is simply discarded. So we exec the FD to /dev/null,
8287 # effectively closing config.log, so it can be properly (re)opened and
8288 # appended to by config.status. When coming back to configure, we
8289 # need to make the FD available again.
8290 if test "$no_create" != yes; then
8292 ac_config_status_args=
8293 test "$silent" = yes &&
8294 ac_config_status_args="$ac_config_status_args --quiet"
8296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8299 # would make configure fail if this is the last instruction.
8300 $ac_cs_success || { (exit 1); exit 1; }