2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI CGEN_MAINT cgendir cgen cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 --target=TARGET configure for building compilers for TARGET [HOST]
847 if test -n "$ac_init_help"; then
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-endian=endian Specify target byte endian orientation.
862 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify host byte endian orientation.
864 --enable-sim-scache=size Specify simulator execution cache size.
865 --enable-sim-default-model=model Specify default model to simulate.
866 --enable-sim-environment=environment Specify mixed, user, virtual or operating environment.
867 --enable-sim-inline=inlines Specify which functions should be inlined.
868 --enable-cgen-maint=DIR build cgen generated files
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
874 --with-bugurl=URL Direct users to URL to report a bug
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 ac_dir_suffix= ac_top_builddir=
907 .) # No --srcdir option. We are building in place.
909 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
925 .) ac_abs_builddir="$ac_dir";;
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_must_keep_next=false
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 -* ) ac_must_keep_next=true ;;
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1113 # The following way of writing the cache mishandles newlines in values,
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1136 for ac_var in $ac_subst_vars
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -n "$ac_subst_files"; then
1150 for ac_var in $ac_subst_files
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -s confdefs.h; then
1165 sed "/^$/d" confdefs.h | sort
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 # Predefined preprocessor variables.
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1248 # Check that the precious variables saved in the cache have kept the same
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 ac_config_headers="$ac_config_headers config.h:config.in"
1326 # This file contains common code used by all simulators.
1328 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1329 # directory. It is intended to be invoked before any target specific stuff.
1330 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1331 # It is intended to be invoked last.
1333 # The simulator's configure.in should look like:
1335 # dnl Process this file with autoconf to produce a configure script.
1336 # sinclude(../common/aclocal.m4)
1338 # AC_INIT(Makefile.in)
1342 # ... target specific stuff ...
1346 # Include global overrides and fixes for Autoconf.
1377 # _AC_OUTPUT_SUBDIRS
1378 # ------------------
1379 # This is a subroutine of AC_OUTPUT, but it does not go into
1380 # config.status, rather, it is called after running config.status.
1381 # _AC_OUTPUT_SUBDIRS
1386 # _AC_ARG_VAR_VALIDATE
1387 # --------------------
1388 # The code is the same as autoconf 2.59, but with a more lenient check
1389 # on precious variables and an output of pwd that have been added in
1391 # _AC_ARG_VAR_VALIDATE
1396 # AC_MSG_FAILURE(ERROR, [EXIT-STATUS = 1])
1397 # ----------------------------------------
1398 # This is the same code as in 2.59 and 2.61, except it also outputs pwd.
1455 sim_inline="-DDEFAULT_INLINE=0"
1492 # intl sister-directory configuration rules.
1495 # The idea behind this macro is that there's no need to repeat all the
1496 # autoconf probes done by the intl directory - it's already done them
1497 # for us. In fact, there's no need even to look at the cache for the
1498 # answers. All we need to do is nab a few pieces of information.
1499 # The intl directory is set up to make this easy, by generating a
1500 # small file which can be sourced as a shell script; then we produce
1501 # the necessary substitutions and definitions for this directory.
1505 # Autoconf M4 include file defining utility macros for complex Canadian
1517 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1519 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1522 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1523 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1527 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1528 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1532 # Backported from Autoconf 2.5x; can go away when and if
1533 # we switch. Put the OS path separator in $PATH_SEPARATOR.
1538 # ACX_HAVE_GCC_FOR_TARGET
1539 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1542 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1543 # Searching for installed target binutils. We need to take extra care,
1544 # else we may find the wrong assembler, linker, etc., and lose.
1546 # First try --with-build-time-tools, if specified.
1548 # For build != host, we ask the installed GCC for the name of the tool it
1549 # uses, and accept it if it is an absolute path. This is because the
1550 # only good choice for a compiler is the same GCC version that is being
1551 # installed (or we couldn't make target libraries), and we assume that
1552 # on the host system we'll have not only the same GCC version, but also
1553 # the same binutils version.
1555 # For build == host, search the same directories that the installed
1556 # compiler will search. We used to do this for the assembler, linker,
1557 # and nm only; for simplicity of configuration, however, we extend this
1558 # criterion to tools (such as ar and ranlib) that are never invoked by
1559 # the compiler, to avoid mismatches.
1561 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
1562 # if build == target. This makes the most sense only when bootstrapping,
1563 # but we also do so when build != host. In this case, we hope that the
1564 # build and host systems will have similar contents of MD_EXEC_PREFIX.
1566 # If we do not find a suitable binary, then try the user's path.
1570 # AC_PROG_CPP_WERROR
1571 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1572 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1573 # For now, using this also overrides header checks to use only the
1574 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1575 # bit harder from here).
1576 # Eventually autoconf will default to checking headers with the compiler
1577 # instead, and we'll have to do this differently.
1579 # AC_PROG_CPP_WERROR
1582 # We require the gnatbind program, and a compiler driver that
1583 # understands Ada. We use the user's CC setting, already found,
1584 # and possibly add $1 to the command-line parameters.
1586 # Sets the shell variable have_gnat to yes or no as appropriate, and
1587 # substitutes GNATBIND and GNATMAKE.
1613 # This file contains common code used by all simulators.
1615 # common.m4 invokes AC macros used by all simulators and by the common
1616 # directory. It is intended to be included before any target specific
1617 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1618 # the Makefile. It is intended to be invoked last.
1620 # The simulator's configure.in should look like:
1622 # dnl Process this file with autoconf to produce a configure script.
1624 # AC_INIT(Makefile.in)
1625 # AC_CONFIG_HEADER(config.h:config.in)
1627 # sinclude(../common/aclocal.m4)
1628 # sinclude(../common/common.m4)
1630 # ... target specific stuff ...
1633 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1634 if test -f $ac_dir/install-sh; then
1636 ac_install_sh="$ac_aux_dir/install-sh -c"
1638 elif test -f $ac_dir/install.sh; then
1640 ac_install_sh="$ac_aux_dir/install.sh -c"
1642 elif test -f $ac_dir/shtool; then
1644 ac_install_sh="$ac_aux_dir/shtool install -c"
1648 if test -z "$ac_aux_dir"; then
1649 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1650 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1651 { (exit 1); exit 1; }; }
1653 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1654 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1655 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1657 # Make sure we can run config.sub.
1658 $ac_config_sub sun4 >/dev/null 2>&1 ||
1659 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1660 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1661 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: checking build system type" >&5
1664 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1665 if test "${ac_cv_build+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 ac_cv_build_alias=$build_alias
1669 test -z "$ac_cv_build_alias" &&
1670 ac_cv_build_alias=`$ac_config_guess`
1671 test -z "$ac_cv_build_alias" &&
1672 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1673 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1674 { (exit 1); exit 1; }; }
1675 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1676 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1677 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1678 { (exit 1); exit 1; }; }
1681 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1682 echo "${ECHO_T}$ac_cv_build" >&6
1684 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689 echo "$as_me:$LINENO: checking host system type" >&5
1690 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1691 if test "${ac_cv_host+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 ac_cv_host_alias=$host_alias
1695 test -z "$ac_cv_host_alias" &&
1696 ac_cv_host_alias=$ac_cv_build_alias
1697 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1698 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1699 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1700 { (exit 1); exit 1; }; }
1703 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1704 echo "${ECHO_T}$ac_cv_host" >&6
1706 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1707 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1708 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711 echo "$as_me:$LINENO: checking target system type" >&5
1712 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1713 if test "${ac_cv_target+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 ac_cv_target_alias=$target_alias
1717 test "x$ac_cv_target_alias" = "x" &&
1718 ac_cv_target_alias=$ac_cv_host_alias
1719 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1720 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1721 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1722 { (exit 1); exit 1; }; }
1725 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1726 echo "${ECHO_T}$ac_cv_target" >&6
1727 target=$ac_cv_target
1728 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1729 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1730 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1733 # The aliases save the names the user supplied, while $host etc.
1734 # will get canonicalized.
1735 test -n "$target_alias" &&
1736 test "$program_prefix$program_suffix$program_transform_name" = \
1738 program_prefix=${target_alias}-
1739 test "$program_prefix" != NONE &&
1740 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1741 # Use a double $ so make ignores it.
1742 test "$program_suffix" != NONE &&
1743 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1744 # Double any \ or $. echo might interpret backslashes.
1745 # By default was `s,x,x', remove it if useless.
1746 cat <<\_ACEOF >conftest.sed
1747 s/[\\$]/&&/g;s/;s,x,x,$//
1749 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1757 if test -n "$ac_tool_prefix"; then
1758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 if test -n "$CC"; then
1786 echo "$as_me:$LINENO: result: $CC" >&5
1787 echo "${ECHO_T}$CC" >&6
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1794 if test -z "$ac_cv_prog_CC"; then
1796 # Extract the first word of "gcc", so it can be a program name with args.
1797 set dummy gcc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test -n "$ac_ct_CC"; then
1804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_ac_ct_CC="gcc"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1823 if test -n "$ac_ct_CC"; then
1824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1825 echo "${ECHO_T}$ac_ct_CC" >&6
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1836 if test -z "$CC"; then
1837 if test -n "$ac_tool_prefix"; then
1838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1839 set dummy ${ac_tool_prefix}cc; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC="$CC" # Let the user override the test.
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 test -z "$as_dir" && as_dir=.
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_CC="${ac_tool_prefix}cc"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 if test -n "$CC"; then
1866 echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1874 if test -z "$ac_cv_prog_CC"; then
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_ac_ct_CC="cc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1903 if test -n "$ac_ct_CC"; then
1904 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905 echo "${ECHO_T}$ac_ct_CC" >&6
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1917 if test -z "$CC"; then
1918 # Extract the first word of "cc", so it can be a program name with args.
1919 set dummy cc; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1937 ac_prog_rejected=yes
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 if test $ac_prog_rejected = yes; then
1948 # We found a bogon in the path, so make sure we never use it.
1949 set dummy $ac_cv_prog_CC
1951 if test $# != 0; then
1952 # We chose a different compiler from the bogus one.
1953 # However, it has the same basename, so the bogon will be chosen
1954 # first if we set CC to just the basename; use the full file name.
1956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1962 if test -n "$CC"; then
1963 echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1971 if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 if test -n "$CC"; then
2003 echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2010 test -n "$CC" && break
2013 if test -z "$CC"; then
2017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2018 set dummy $ac_prog; ac_word=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 if test -n "$ac_ct_CC"; then
2025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_ac_ct_CC="$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 test -n "$ac_ct_CC" && break
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2062 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2063 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: no acceptable C compiler found in \$PATH
2066 See \`config.log' for more details." >&2;}
2067 { (exit 1); exit 1; }; }; }
2069 # Provide some information about the compiler.
2070 echo "$as_me:$LINENO:" \
2071 "checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2074 (eval $ac_compiler --version </dev/null >&5) 2>&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }
2078 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2079 (eval $ac_compiler -v </dev/null >&5) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2084 (eval $ac_compiler -V </dev/null >&5) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2089 cat >conftest.$ac_ext <<_ACEOF
2092 cat confdefs.h >>conftest.$ac_ext
2093 cat >>conftest.$ac_ext <<_ACEOF
2094 /* end confdefs.h. */
2104 ac_clean_files_save=$ac_clean_files
2105 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2106 # Try to create an executable without -o first, disregard a.out.
2107 # It will help us diagnose broken compilers, and finding out an intuition
2109 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2110 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2111 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2113 (eval $ac_link_default) 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # Find the output, starting from the most likely. This scheme is
2118 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2121 # Be careful to initialize this variable, since it used to be cached.
2122 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2124 # b.out is created by i960 compilers.
2125 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2127 test -f "$ac_file" || continue
2129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2132 # This is the source file.
2135 # We found the default executable, but exeext='' is most
2139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140 # FIXME: I believe we export ac_cv_exeext for Libtool,
2141 # but it would be cool to find out if it's true. Does anybody
2142 # maintain Libtool? --akim.
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2154 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2155 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&2;}
2159 { (exit 77); exit 77; }; }; }
2162 ac_exeext=$ac_cv_exeext
2163 echo "$as_me:$LINENO: result: $ac_file" >&5
2164 echo "${ECHO_T}$ac_file" >&6
2166 # Check the compiler produces executables we can run. If not, either
2167 # the compiler is broken, or we cross compile.
2168 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2169 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2171 # If not cross compiling, check that we can run a simple program.
2172 if test "$cross_compiling" != yes; then
2173 if { ac_try='./$ac_file'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2181 if test "$cross_compiling" = maybe; then
2184 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2185 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2187 If you meant to cross compile, use \`--host'.
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot run C compiled programs.
2190 If you meant to cross compile, use \`--host'.
2191 See \`config.log' for more details." >&2;}
2192 { (exit 1); exit 1; }; }; }
2196 echo "$as_me:$LINENO: result: yes" >&5
2197 echo "${ECHO_T}yes" >&6
2199 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2200 ac_clean_files=$ac_clean_files_save
2201 # Check the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2204 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2205 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2206 echo "${ECHO_T}$cross_compiling" >&6
2208 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2209 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2211 (eval $ac_link) 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; then
2215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2216 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2217 # work properly (i.e., refer to `conftest.exe'), while it won't with
2219 for ac_file in conftest.exe conftest conftest.*; do
2220 test -f "$ac_file" || continue
2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2231 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }; }
2239 rm -f conftest$ac_cv_exeext
2240 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2241 echo "${ECHO_T}$ac_cv_exeext" >&6
2243 rm -f conftest.$ac_ext
2244 EXEEXT=$ac_cv_exeext
2246 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2247 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2248 if test "${ac_cv_objext+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.$ac_ext <<_ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2266 rm -f conftest.o conftest.obj
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2283 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2284 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }; }
2292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295 echo "${ECHO_T}$ac_cv_objext" >&6
2296 OBJEXT=$ac_cv_objext
2298 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>conftest.er1
2325 grep -v '^ *+' conftest.er1 >conftest.err
2327 cat conftest.err >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } &&
2330 { ac_try='test -z "$ac_c_werror_flag"
2331 || test ! -s conftest.err'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; } &&
2337 { ac_try='test -s conftest.$ac_objext'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; }; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2354 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2356 GCC=`test $ac_compiler_gnu = yes && echo yes`
2357 ac_test_CFLAGS=${CFLAGS+set}
2358 ac_save_CFLAGS=$CFLAGS
2360 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2361 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2362 if test "${ac_cv_prog_cc_g+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2380 rm -f conftest.$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382 (eval $ac_compile) 2>conftest.er1
2384 grep -v '^ *+' conftest.er1 >conftest.err
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try='test -z "$ac_c_werror_flag"
2390 || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2412 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2413 if test "$ac_test_CFLAGS" = set; then
2414 CFLAGS=$ac_save_CFLAGS
2415 elif test $ac_cv_prog_cc_g = yes; then
2416 if test "$GCC" = yes; then
2422 if test "$GCC" = yes; then
2428 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2429 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 ac_cv_prog_cc_stdc=no
2435 cat >conftest.$ac_ext <<_ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2443 #include <sys/types.h>
2444 #include <sys/stat.h>
2445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2446 struct buf { int x; };
2447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2448 static char *e (p, i)
2454 static char *f (char * (*g) (char **, int), char **p, ...)
2459 s = g (p, va_arg (v,int));
2464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2465 function prototypes and stuff, but not '\xHH' hex character constants.
2466 These don't provoke an error unfortunately, instead are silently treated
2467 as 'x'. The following induces an error, until -std1 is added to get
2468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2469 array size at least. It's necessary to write '\x00'==0 to get something
2470 that's true only with -std1. */
2471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473 int test (int i, double x);
2474 struct s1 {int (*f) (int a);};
2475 struct s2 {int (*f) (double a);};
2476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2487 # Don't try gcc -ansi; that turns off useful extensions and
2488 # breaks some systems' header files.
2489 # AIX -qlanglvl=ansi
2490 # Ultrix and OSF/1 -std1
2491 # HP-UX 10.20 and later -Ae
2492 # HP-UX older versions -Aa -D_HPUX_SOURCE
2493 # SVR4 -Xc -D__EXTENSIONS__
2494 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496 CC="$ac_save_CC $ac_arg"
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.err conftest.$ac_objext
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2533 case "x$ac_cv_prog_cc_stdc" in
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 for ac_declaration in \
2576 'extern "C" void std::exit (int) throw (); using std::exit;' \
2577 'extern "C" void std::exit (int); using std::exit;' \
2578 'extern "C" void exit (int) throw ();' \
2579 'extern "C" void exit (int);' \
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 if test -n "$ac_declaration"; then
2675 echo '#ifdef __cplusplus' >>confdefs.h
2676 echo $ac_declaration >>confdefs.h
2677 echo '#endif' >>confdefs.h
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692 # Find a good install program. We prefer a C program (faster),
2693 # so one script is as good as another. But avoid the broken or
2694 # incompatible versions:
2695 # SysV /etc/install, /usr/sbin/install
2696 # SunOS /usr/etc/install
2697 # IRIX /sbin/install
2699 # AmigaOS /C/install, which installs bootblocks on floppy discs
2700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2703 # OS/2's system install, which has a completely different semantic
2704 # ./install, which can be erroneously created by make from ./install.sh.
2705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2707 if test -z "$INSTALL"; then
2708 if test "${ac_cv_path_install+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir=.
2716 # Account for people who put trailing slashes in PATH elements.
2718 ./ | .// | /cC/* | \
2719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2720 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2723 # OSF1 and SCO ODT 3.0 have their own names for install.
2724 # Don't use installbsd from OSF since it installs stuff as root
2726 for ac_prog in ginstall scoinst install; do
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2729 if test $ac_prog = install &&
2730 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731 # AIX install. It has an incompatible calling convention.
2733 elif test $ac_prog = install &&
2734 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2735 # program-specific install script used by HP pwplus--don't use.
2738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2750 if test "${ac_cv_path_install+set}" = set; then
2751 INSTALL=$ac_cv_path_install
2753 # As a last resort, use the slow shell script. We don't cache a
2754 # path for INSTALL within a source directory, because that will
2755 # break other packages using the cache if that directory is
2756 # removed, or if the path is relative.
2757 INSTALL=$ac_install_sh
2760 echo "$as_me:$LINENO: result: $INSTALL" >&5
2761 echo "${ECHO_T}$INSTALL" >&6
2763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2764 # It thinks the first close brace ends the variable substitution.
2765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2772 # Put a plausible default for CC_FOR_BUILD in Makefile.
2773 if test "x$cross_compiling" = "xno"; then
2774 CC_FOR_BUILD='$(CC)'
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_RANLIB+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$RANLIB"; then
2793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 RANLIB=$ac_cv_prog_RANLIB
2812 if test -n "$RANLIB"; then
2813 echo "$as_me:$LINENO: result: $RANLIB" >&5
2814 echo "${ECHO_T}$RANLIB" >&6
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2821 if test -z "$ac_cv_prog_RANLIB"; then
2822 ac_ct_RANLIB=$RANLIB
2823 # Extract the first word of "ranlib", so it can be a program name with args.
2824 set dummy ranlib; ac_word=$2
2825 echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$ac_ct_RANLIB"; then
2831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_RANLIB="ranlib"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2851 if test -n "$ac_ct_RANLIB"; then
2852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2853 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2855 echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2859 RANLIB=$ac_ct_RANLIB
2861 RANLIB="$ac_cv_prog_RANLIB"
2866 # If we haven't got the data from the intl directory,
2867 # assume NLS is disabled.
2876 if test -f ../../intl/config.intl; then
2877 . ../../intl/config.intl
2879 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2880 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2881 if test x"$USE_NLS" != xyes; then
2882 echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6
2885 echo "$as_me:$LINENO: result: yes" >&5
2886 echo "${ECHO_T}yes" >&6
2888 cat >>confdefs.h <<\_ACEOF
2889 #define ENABLE_NLS 1
2893 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2894 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2895 # Look for .po and .gmo files in the source directory.
2898 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2899 # If there aren't any .gmo files the shell will give us the
2900 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2902 case "$cat" in *\**)
2905 # The quadruple backslash is collapsed to a double backslash
2906 # by the backticks, then collapsed again by the double quotes,
2907 # leaving us with one backslash in the sed expression (right
2908 # before the dot that mustn't act as a wildcard).
2909 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2910 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2911 # The user is allowed to set LINGUAS to a list of languages to
2912 # install catalogs for. If it's empty that means "all of them."
2913 if test "x$LINGUAS" = x; then
2914 CATALOGS="$CATALOGS $cat"
2915 XLINGUAS="$XLINGUAS $lang"
2917 case "$LINGUAS" in *$lang*)
2918 CATALOGS="$CATALOGS $cat"
2919 XLINGUAS="$XLINGUAS $lang"
2925 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2926 echo "${ECHO_T}$LINGUAS" >&6
2939 # Check for common headers.
2940 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2941 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2950 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then
2954 if test -z "$CPP"; then
2955 if test "${ac_cv_prog_CPP+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 # Double quotes because CPP needs to be expanded
2959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962 for ac_c_preproc_warn_flag in '' yes
2964 # Use a header file that comes with gcc, so configuring glibc
2965 # with a fresh cross-compiler works.
2966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967 # <limits.h> exists even on freestanding compilers.
2968 # On the NeXT, cc -E runs the code through the compiler's parser,
2969 # not just through cpp. "Syntax error" is here to catch this case.
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2977 # include <limits.h>
2979 # include <assert.h>
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev/null; then
2991 if test -s conftest.err; then
2992 ac_cpp_err=$ac_c_preproc_warn_flag
2993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3000 if test -z "$ac_cpp_err"; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Broken: fails on valid input.
3009 rm -f conftest.err conftest.$ac_ext
3011 # OK, works on sane cases. Now check whether non-existent headers
3012 # can be detected and how.
3013 cat >conftest.$ac_ext <<_ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 #include <ac_nonexistent.h>
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024 grep -v '^ *+' conftest.er1 >conftest.err
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev/null; then
3029 if test -s conftest.err; then
3030 ac_cpp_err=$ac_c_preproc_warn_flag
3031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3038 if test -z "$ac_cpp_err"; then
3039 # Broken: success on invalid input.
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Passes both tests.
3049 rm -f conftest.err conftest.$ac_ext
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.$ac_ext
3054 if $ac_preproc_ok; then
3066 echo "$as_me:$LINENO: result: $CPP" >&5
3067 echo "${ECHO_T}$CPP" >&6
3069 for ac_c_preproc_warn_flag in '' yes
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3084 # include <limits.h>
3086 # include <assert.h>
3090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } >/dev/null; then
3098 if test -s conftest.err; then
3099 ac_cpp_err=$ac_c_preproc_warn_flag
3100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3107 if test -z "$ac_cpp_err"; then
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether non-existent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } >/dev/null; then
3136 if test -s conftest.err; then
3137 ac_cpp_err=$ac_c_preproc_warn_flag
3138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3145 if test -z "$ac_cpp_err"; then
3146 # Broken: success on invalid input.
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Passes both tests.
3156 rm -f conftest.err conftest.$ac_ext
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3164 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3165 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }; }
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 echo "$as_me:$LINENO: checking for egrep" >&5
3181 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3182 if test "${ac_cv_prog_egrep+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3186 then ac_cv_prog_egrep='grep -E'
3187 else ac_cv_prog_egrep='egrep'
3190 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3191 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3192 EGREP=$ac_cv_prog_egrep
3195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3197 if test "${ac_cv_header_stdc+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 cat >conftest.$ac_ext <<_ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_c_werror_flag"
3229 || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_header_stdc=yes
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 ac_cv_header_stdc=no
3248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250 if test $ac_cv_header_stdc = yes; then
3251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 $EGREP "memchr" >/dev/null 2>&1; then
3265 ac_cv_header_stdc=no
3271 if test $ac_cv_header_stdc = yes; then
3272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3283 $EGREP "free" >/dev/null 2>&1; then
3286 ac_cv_header_stdc=no
3292 if test $ac_cv_header_stdc = yes; then
3293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3294 if test "$cross_compiling" = yes; then
3297 cat >conftest.$ac_ext <<_ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3304 #if ((' ' & 0x0FF) == 0x020)
3305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3308 # define ISLOWER(c) \
3309 (('a' <= (c) && (c) <= 'i') \
3310 || ('j' <= (c) && (c) <= 'r') \
3311 || ('s' <= (c) && (c) <= 'z'))
3312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3320 for (i = 0; i < 256; i++)
3321 if (XOR (islower (i), ISLOWER (i))
3322 || toupper (i) != TOUPPER (i))
3327 rm -f conftest$ac_exeext
3328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3329 (eval $ac_link) 2>&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3340 echo "$as_me: program exited with status $ac_status" >&5
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3345 ac_cv_header_stdc=no
3347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3353 if test $ac_cv_header_stdc = yes; then
3355 cat >>confdefs.h <<\_ACEOF
3356 #define STDC_HEADERS 1
3361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3372 inttypes.h stdint.h unistd.h
3374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3375 echo "$as_me:$LINENO: checking for $ac_header" >&5
3376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 $ac_includes_default
3388 #include <$ac_header>
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -z "$ac_c_werror_flag"
3400 || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 eval "$as_ac_Header=yes"
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 eval "$as_ac_Header=no"
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3424 cat >>confdefs.h <<_ACEOF
3425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3438 for ac_header in stdlib.h string.h strings.h unistd.h time.h
3440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3442 echo "$as_me:$LINENO: checking for $ac_header" >&5
3443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3450 # Is the header compilable?
3451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3453 cat >conftest.$ac_ext <<_ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459 $ac_includes_default
3460 #include <$ac_header>
3462 rm -f conftest.$ac_objext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>conftest.er1
3466 grep -v '^ *+' conftest.er1 >conftest.err
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -z "$ac_c_werror_flag"
3472 || test ! -s conftest.err'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 ac_header_compiler=yes
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 ac_header_compiler=no
3491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3493 echo "${ECHO_T}$ac_header_compiler" >&6
3495 # Is the header present?
3496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 #include <$ac_header>
3506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1 >conftest.err
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3523 if test -z "$ac_cpp_err"; then
3524 ac_header_preproc=yes
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 ac_header_preproc=no
3531 rm -f conftest.err conftest.$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3533 echo "${ECHO_T}$ac_header_preproc" >&6
3535 # So? What about this header?
3536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3542 ac_header_preproc=yes
3545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3559 ## ------------------------------------------ ##
3560 ## Report this to the AC_PACKAGE_NAME lists. ##
3561 ## ------------------------------------------ ##
3564 sed "s/^/$as_me: WARNING: /" >&2
3567 echo "$as_me:$LINENO: checking for $ac_header" >&5
3568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 eval "$as_ac_Header=\$ac_header_preproc"
3574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3579 cat >>confdefs.h <<_ACEOF
3580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3589 for ac_header in sys/time.h sys/resource.h
3591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593 echo "$as_me:$LINENO: checking for $ac_header" >&5
3594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3601 # Is the header compilable?
3602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3604 cat >conftest.$ac_ext <<_ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 $ac_includes_default
3611 #include <$ac_header>
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3635 ac_header_compiler=yes
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 ac_header_compiler=no
3642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3644 echo "${ECHO_T}$ac_header_compiler" >&6
3646 # Is the header present?
3647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 #include <$ac_header>
3657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3660 grep -v '^ *+' conftest.er1 >conftest.err
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev/null; then
3665 if test -s conftest.err; then
3666 ac_cpp_err=$ac_c_preproc_warn_flag
3667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3674 if test -z "$ac_cpp_err"; then
3675 ac_header_preproc=yes
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 ac_header_preproc=no
3682 rm -f conftest.err conftest.$ac_ext
3683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3684 echo "${ECHO_T}$ac_header_preproc" >&6
3686 # So? What about this header?
3687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3693 ac_header_preproc=yes
3696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3710 ## ------------------------------------------ ##
3711 ## Report this to the AC_PACKAGE_NAME lists. ##
3712 ## ------------------------------------------ ##
3715 sed "s/^/$as_me: WARNING: /" >&2
3718 echo "$as_me:$LINENO: checking for $ac_header" >&5
3719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 eval "$as_ac_Header=\$ac_header_preproc"
3725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3730 cat >>confdefs.h <<_ACEOF
3731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3740 for ac_header in fcntl.h fpu_control.h
3742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3744 echo "$as_me:$LINENO: checking for $ac_header" >&5
3745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3752 # Is the header compilable?
3753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3761 $ac_includes_default
3762 #include <$ac_header>
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>conftest.er1
3768 grep -v '^ *+' conftest.er1 >conftest.err
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_c_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest.$ac_objext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 ac_header_compiler=yes
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3791 ac_header_compiler=no
3793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3795 echo "${ECHO_T}$ac_header_compiler" >&6
3797 # Is the header present?
3798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 #include <$ac_header>
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null; then
3816 if test -s conftest.err; then
3817 ac_cpp_err=$ac_c_preproc_warn_flag
3818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3825 if test -z "$ac_cpp_err"; then
3826 ac_header_preproc=yes
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 ac_header_preproc=no
3833 rm -f conftest.err conftest.$ac_ext
3834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3835 echo "${ECHO_T}$ac_header_preproc" >&6
3837 # So? What about this header?
3838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3844 ac_header_preproc=yes
3847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3861 ## ------------------------------------------ ##
3862 ## Report this to the AC_PACKAGE_NAME lists. ##
3863 ## ------------------------------------------ ##
3866 sed "s/^/$as_me: WARNING: /" >&2
3869 echo "$as_me:$LINENO: checking for $ac_header" >&5
3870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 eval "$as_ac_Header=\$ac_header_preproc"
3876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3881 cat >>confdefs.h <<_ACEOF
3882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3892 for ac_header in dlfcn.h errno.h sys/stat.h
3894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3896 echo "$as_me:$LINENO: checking for $ac_header" >&5
3897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3904 # Is the header compilable?
3905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 $ac_includes_default
3914 #include <$ac_header>
3916 rm -f conftest.$ac_objext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918 (eval $ac_compile) 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } &&
3925 { ac_try='test -z "$ac_c_werror_flag"
3926 || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_header_compiler=yes
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 ac_header_compiler=no
3945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3947 echo "${ECHO_T}$ac_header_compiler" >&6
3949 # Is the header present?
3950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <$ac_header>
3960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963 grep -v '^ *+' conftest.er1 >conftest.err
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } >/dev/null; then
3968 if test -s conftest.err; then
3969 ac_cpp_err=$ac_c_preproc_warn_flag
3970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3977 if test -z "$ac_cpp_err"; then
3978 ac_header_preproc=yes
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 ac_header_preproc=no
3985 rm -f conftest.err conftest.$ac_ext
3986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3987 echo "${ECHO_T}$ac_header_preproc" >&6
3989 # So? What about this header?
3990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3996 ac_header_preproc=yes
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4013 ## ------------------------------------------ ##
4014 ## Report this to the AC_PACKAGE_NAME lists. ##
4015 ## ------------------------------------------ ##
4018 sed "s/^/$as_me: WARNING: /" >&2
4021 echo "$as_me:$LINENO: checking for $ac_header" >&5
4022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 eval "$as_ac_Header=\$ac_header_preproc"
4028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4033 cat >>confdefs.h <<_ACEOF
4034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4045 for ac_func in getrusage time sigaction __setfpucw
4047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4048 echo "$as_me:$LINENO: checking for $ac_func" >&5
4049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4050 if eval "test \"\${$as_ac_var+set}\" = set"; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 cat >conftest.$ac_ext <<_ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4061 #define $ac_func innocuous_$ac_func
4063 /* System header to define __stub macros and hopefully few prototypes,
4064 which can conflict with char $ac_func (); below.
4065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4066 <limits.h> exists even on freestanding compilers. */
4069 # include <limits.h>
4071 # include <assert.h>
4076 /* Override any gcc2 internal prototype to avoid an error. */
4081 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */
4084 /* The GNU C library defines this for functions which it implements
4085 to always fail with ENOSYS. Some functions are actually named
4086 something starting with __ and the normal name is an alias. */
4087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4090 char (*f) () = $ac_func;
4099 return f != $ac_func;
4104 rm -f conftest.$ac_objext conftest$ac_exeext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4106 (eval $ac_link) 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest$ac_exeext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 eval "$as_ac_var=yes"
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 eval "$as_ac_var=no"
4133 rm -f conftest.err conftest.$ac_objext \
4134 conftest$ac_exeext conftest.$ac_ext
4136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4138 if test `eval echo '${'$as_ac_var'}'` = yes; then
4139 cat >>confdefs.h <<_ACEOF
4140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4147 # Check for socket libraries
4149 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4150 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4151 if test "${ac_cv_lib_socket_bind+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 ac_check_lib_save_LIBS=$LIBS
4155 LIBS="-lsocket $LIBS"
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4163 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>conftest.er1
4182 grep -v '^ *+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag"
4188 || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest$ac_exeext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_lib_socket_bind=yes
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_lib_socket_bind=no
4207 rm -f conftest.err conftest.$ac_objext \
4208 conftest$ac_exeext conftest.$ac_ext
4209 LIBS=$ac_check_lib_save_LIBS
4211 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4212 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4213 if test $ac_cv_lib_socket_bind = yes; then
4214 cat >>confdefs.h <<_ACEOF
4215 #define HAVE_LIBSOCKET 1
4218 LIBS="-lsocket $LIBS"
4223 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4224 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4225 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 ac_check_lib_save_LIBS=$LIBS
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4237 /* Override any gcc2 internal prototype to avoid an error. */
4241 /* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4243 char gethostbyname ();
4252 rm -f conftest.$ac_objext conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>conftest.er1
4256 grep -v '^ *+' conftest.er1 >conftest.err
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag"
4262 || test ! -s conftest.err'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; } &&
4268 { ac_try='test -s conftest$ac_exeext'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 ac_cv_lib_nsl_gethostbyname=yes
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 ac_cv_lib_nsl_gethostbyname=no
4281 rm -f conftest.err conftest.$ac_objext \
4282 conftest$ac_exeext conftest.$ac_ext
4283 LIBS=$ac_check_lib_save_LIBS
4285 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4286 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4287 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4288 cat >>confdefs.h <<_ACEOF
4289 #define HAVE_LIBNSL 1
4297 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4298 # using the same condition.
4299 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4300 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4301 if test "${ac_cv_search_zlibVersion+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 ac_func_search_save_LIBS=$LIBS
4305 ac_cv_search_zlibVersion=no
4306 cat >conftest.$ac_ext <<_ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4313 /* Override any gcc2 internal prototype to avoid an error. */
4317 /* We use char because int might match the return type of a gcc2
4318 builtin and then its argument prototype would still apply. */
4319 char zlibVersion ();
4328 rm -f conftest.$ac_objext conftest$ac_exeext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4330 (eval $ac_link) 2>conftest.er1
4332 grep -v '^ *+' conftest.er1 >conftest.err
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try='test -z "$ac_c_werror_flag"
4338 || test ! -s conftest.err'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; } &&
4344 { ac_try='test -s conftest$ac_exeext'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 ac_cv_search_zlibVersion="none required"
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4356 rm -f conftest.err conftest.$ac_objext \
4357 conftest$ac_exeext conftest.$ac_ext
4358 if test "$ac_cv_search_zlibVersion" = no; then
4360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4368 /* Override any gcc2 internal prototype to avoid an error. */
4372 /* We use char because int might match the return type of a gcc2
4373 builtin and then its argument prototype would still apply. */
4374 char zlibVersion ();
4383 rm -f conftest.$ac_objext conftest$ac_exeext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4385 (eval $ac_link) 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -z "$ac_c_werror_flag"
4393 || test ! -s conftest.err'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest$ac_exeext'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4405 ac_cv_search_zlibVersion="-l$ac_lib"
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4412 rm -f conftest.err conftest.$ac_objext \
4413 conftest$ac_exeext conftest.$ac_ext
4416 LIBS=$ac_func_search_save_LIBS
4418 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4419 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4420 if test "$ac_cv_search_zlibVersion" != no; then
4421 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4423 for ac_header in zlib.h
4425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427 echo "$as_me:$LINENO: checking for $ac_header" >&5
4428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4435 # Is the header compilable?
4436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4445 #include <$ac_header>
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>conftest.er1
4451 grep -v '^ *+' conftest.er1 >conftest.err
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -z "$ac_c_werror_flag"
4457 || test ! -s conftest.err'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_header_compiler=yes
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_header_compiler=no
4476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4478 echo "${ECHO_T}$ac_header_compiler" >&6
4480 # Is the header present?
4481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4483 cat >conftest.$ac_ext <<_ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 #include <$ac_header>
4491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4494 grep -v '^ *+' conftest.er1 >conftest.err
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } >/dev/null; then
4499 if test -s conftest.err; then
4500 ac_cpp_err=$ac_c_preproc_warn_flag
4501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4508 if test -z "$ac_cpp_err"; then
4509 ac_header_preproc=yes
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 ac_header_preproc=no
4516 rm -f conftest.err conftest.$ac_ext
4517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4518 echo "${ECHO_T}$ac_header_preproc" >&6
4520 # So? What about this header?
4521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4527 ac_header_preproc=yes
4530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4544 ## ------------------------------------------ ##
4545 ## Report this to the AC_PACKAGE_NAME lists. ##
4546 ## ------------------------------------------ ##
4549 sed "s/^/$as_me: WARNING: /" >&2
4552 echo "$as_me:$LINENO: checking for $ac_header" >&5
4553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 eval "$as_ac_Header=\$ac_header_preproc"
4559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4564 cat >>confdefs.h <<_ACEOF
4565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4575 . ${srcdir}/../../bfd/configure.host
4579 USE_MAINTAINER_MODE=no
4580 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4581 if test "${enable_maintainer_mode+set}" = set; then
4582 enableval="$enable_maintainer_mode"
4583 case "${enableval}" in
4584 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4586 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4587 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4588 { (exit 1); exit 1; }; }; MAINT="#" ;;
4590 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4591 echo "Setting maintainer mode" 6>&1
4598 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4599 if test "${enable_sim_bswap+set}" = set; then
4600 enableval="$enable_sim_bswap"
4601 case "${enableval}" in
4602 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4603 no) sim_bswap="-DWITH_BSWAP=0";;
4604 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4605 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4606 { (exit 1); exit 1; }; }; sim_bswap="";;
4608 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4609 echo "Setting bswap flags = $sim_bswap" 6>&1
4616 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4617 if test "${enable_sim_cflags+set}" = set; then
4618 enableval="$enable_sim_cflags"
4619 case "${enableval}" in
4620 yes) sim_cflags="-O2 -fomit-frame-pointer";;
4621 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4622 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4623 { (exit 1); exit 1; }; }; sim_cflags="";;
4625 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4627 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4628 echo "Setting sim cflags = $sim_cflags" 6>&1
4635 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4636 if test "${enable_sim_debug+set}" = set; then
4637 enableval="$enable_sim_debug"
4638 case "${enableval}" in
4639 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4640 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4641 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4643 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4644 echo "Setting sim debug = $sim_debug" 6>&1
4651 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4652 if test "${enable_sim_stdio+set}" = set; then
4653 enableval="$enable_sim_stdio"
4654 case "${enableval}" in
4655 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4656 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4657 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4658 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4659 { (exit 1); exit 1; }; }; sim_stdio="";;
4661 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4662 echo "Setting stdio flags = $sim_stdio" 6>&1
4669 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4670 if test "${enable_sim_trace+set}" = set; then
4671 enableval="$enable_sim_trace"
4672 case "${enableval}" in
4673 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4674 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4676 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4679 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4680 if test x"$sim_trace" = x; then
4681 sim_trace="-DWITH_TRACE='(TRACE_$x"
4683 sim_trace="${sim_trace}|TRACE_$x"
4686 sim_trace="$sim_trace)'" ;;
4688 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4689 echo "Setting sim trace = $sim_trace" 6>&1
4696 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4697 if test "${enable_sim_profile+set}" = set; then
4698 enableval="$enable_sim_profile"
4699 case "${enableval}" in
4700 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4701 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4703 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4706 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4707 if test x"$sim_profile" = x; then
4708 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4710 sim_profile="${sim_profile}|PROFILE_$x"
4713 sim_profile="$sim_profile)'" ;;
4715 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4716 echo "Setting sim profile = $sim_profile" 6>&1
4719 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4724 # Check whether --with-pkgversion or --without-pkgversion was given.
4725 if test "${with_pkgversion+set}" = set; then
4726 withval="$with_pkgversion"
4728 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4729 echo "$as_me: error: package version not specified" >&2;}
4730 { (exit 1); exit 1; }; } ;;
4732 *) PKGVERSION="($withval) " ;;
4742 # Check whether --with-bugurl or --without-bugurl was given.
4743 if test "${with_bugurl+set}" = set; then
4744 withval="$with_bugurl"
4746 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4747 echo "$as_me: error: bug URL not specified" >&2;}
4748 { (exit 1); exit 1; }; } ;;
4751 *) BUGURL="$withval"
4755 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4764 REPORT_BUGS_TO="<$BUGURL>"
4765 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4772 cat >>confdefs.h <<_ACEOF
4773 #define PKGVERSION "$PKGVERSION"
4777 cat >>confdefs.h <<_ACEOF
4778 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4782 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4783 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4784 if test "${ac_cv_type_signal+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #include <sys/types.h>
4799 extern "C" void (*signal (int, void (*)(int)))(int);
4801 void (*signal ()) ();
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -z "$ac_c_werror_flag"
4822 || test ! -s conftest.err'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; } &&
4828 { ac_try='test -s conftest.$ac_objext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 ac_cv_type_signal=void
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 ac_cv_type_signal=int
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4843 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4844 echo "${ECHO_T}$ac_cv_type_signal" >&6
4846 cat >>confdefs.h <<_ACEOF
4847 #define RETSIGTYPE $ac_cv_type_signal
4857 sim_link_links=tconfig.h
4858 if test -f ${srcdir}/tconfig.in
4860 sim_link_files=tconfig.in
4862 sim_link_files=../common/tconfig.in
4865 # targ-vals.def points to the libc macro description file.
4867 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4869 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4870 sim_link_links="${sim_link_links} targ-vals.def"
4875 default_endian="BIG_ENDIAN"
4876 # Check whether --enable-sim-endian or --disable-sim-endian was given.
4877 if test "${enable_sim_endian+set}" = set; then
4878 enableval="$enable_sim_endian"
4879 case "${enableval}" in
4880 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4881 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4882 yes) if test x"$wire_endian" != x; then
4883 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4885 if test x"$default_endian" != x; then
4886 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4888 echo "No hard-wired endian for target $target" 1>&6
4889 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
4892 no) if test x"$default_endian" != x; then
4893 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4895 if test x"$wire_endian" != x; then
4896 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4898 echo "No default endian for target $target" 1>&6
4899 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4902 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
4903 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
4904 { (exit 1); exit 1; }; }; sim_endian="";;
4906 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
4907 echo "Setting endian flags = $sim_endian" 6>&1
4910 if test x"$default_endian" != x; then
4911 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4913 if test x"$wire_endian" != x; then
4914 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4920 wire_alignment="STRICT_ALIGNMENT"
4921 default_alignment=""
4923 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4924 if test "${enable_sim_alignment+set}" = set; then
4925 enableval="$enable_sim_alignment"
4926 case "${enableval}" in
4927 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4928 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4929 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4930 yes) if test x"$wire_alignment" != x; then
4931 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4933 if test x"$default_alignment" != x; then
4934 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4936 echo "No hard-wired alignment for target $target" 1>&6
4937 sim_alignment="-DWITH_ALIGNMENT=0"
4940 no) if test x"$default_alignment" != x; then
4941 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4943 if test x"$wire_alignment" != x; then
4944 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4946 echo "No default alignment for target $target" 1>&6
4947 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4950 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4951 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4952 { (exit 1); exit 1; }; }; sim_alignment="";;
4954 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4955 echo "Setting alignment flags = $sim_alignment" 6>&1
4958 if test x"$default_alignment" != x; then
4959 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4961 if test x"$wire_alignment" != x; then
4962 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4969 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4970 if test "${enable_sim_hostendian+set}" = set; then
4971 enableval="$enable_sim_hostendian"
4972 case "${enableval}" in
4973 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4974 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4975 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4976 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4977 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4978 { (exit 1); exit 1; }; }; sim_hostendian="";;
4980 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4981 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4985 if test "x$cross_compiling" = "xno"; then
4986 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4987 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4988 if test "${ac_cv_c_bigendian+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 # See if sys/param.h defines the BYTE_ORDER macro.
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #include <sys/types.h>
4999 #include <sys/param.h>
5004 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5012 rm -f conftest.$ac_objext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014 (eval $ac_compile) 2>conftest.er1
5016 grep -v '^ *+' conftest.er1 >conftest.err
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -z "$ac_c_werror_flag"
5022 || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest.$ac_objext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 # It does; now see whether it defined to BIG_ENDIAN or not.
5035 cat >conftest.$ac_ext <<_ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <sys/types.h>
5042 #include <sys/param.h>
5047 #if BYTE_ORDER != BIG_ENDIAN
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_c_werror_flag"
5065 || test ! -s conftest.err'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; } &&
5071 { ac_try='test -s conftest.$ac_objext'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 ac_cv_c_bigendian=yes
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 ac_cv_c_bigendian=no
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 # It does not; compile a test program.
5090 if test "$cross_compiling" = yes; then
5091 # try to guess the endianness by grepping values into an object file
5092 ac_cv_c_bigendian=unknown
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5100 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5101 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5102 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5103 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5104 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5108 _ascii (); _ebcdic ();
5113 rm -f conftest.$ac_objext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115 (eval $ac_compile) 2>conftest.er1
5117 grep -v '^ *+' conftest.er1 >conftest.err
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -z "$ac_c_werror_flag"
5123 || test ! -s conftest.err'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; } &&
5129 { ac_try='test -s conftest.$ac_objext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5136 ac_cv_c_bigendian=yes
5138 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5139 if test "$ac_cv_c_bigendian" = unknown; then
5140 ac_cv_c_bigendian=no
5142 # finding both strings is unlikely to happen, but who knows?
5143 ac_cv_c_bigendian=unknown
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5153 cat >conftest.$ac_ext <<_ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5162 /* Are we little or big endian? From Harbison&Steele. */
5166 char c[sizeof (long)];
5169 exit (u.c[sizeof (long) - 1] == 1);
5172 rm -f conftest$ac_exeext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5174 (eval $ac_link) 2>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5183 ac_cv_c_bigendian=no
5185 echo "$as_me: program exited with status $ac_status" >&5
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5190 ac_cv_c_bigendian=yes
5192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5197 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5198 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5199 case $ac_cv_c_bigendian in
5202 cat >>confdefs.h <<\_ACEOF
5203 #define WORDS_BIGENDIAN 1
5209 { { echo "$as_me:$LINENO: error: unknown endianness
5210 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5211 echo "$as_me: error: unknown endianness
5212 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5216 if test $ac_cv_c_bigendian = yes; then
5217 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5219 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5222 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
5226 default_sim_scache="16384"
5227 # Check whether --enable-sim-scache or --disable-sim-scache was given.
5228 if test "${enable_sim_scache+set}" = set; then
5229 enableval="$enable_sim_scache"
5230 case "${enableval}" in
5231 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
5232 no) sim_scache="-DWITH_SCACHE=0" ;;
5233 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
5234 *) { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
5235 echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
5236 { (exit 1); exit 1; }; };
5239 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
5240 echo "Setting scache size = $sim_scache" 6>&1
5243 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
5247 default_sim_default_model="sh5"
5248 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
5249 if test "${enable_sim_default_model+set}" = set; then
5250 enableval="$enable_sim_default_model"
5251 case "${enableval}" in
5252 yes|no) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
5253 echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
5254 { (exit 1); exit 1; }; };;
5255 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
5257 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5258 echo "Setting default model = $sim_default_model" 6>&1
5261 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
5265 # Check whether --enable-sim-environment or --disable-sim-environment was given.
5266 if test "${enable_sim_environment+set}" = set; then
5267 enableval="$enable_sim_environment"
5268 case "${enableval}" in
5269 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
5270 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5271 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5272 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5273 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
5274 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
5275 { (exit 1); exit 1; }; };
5276 sim_environment="";;
5278 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
5279 echo "Setting sim environment = $sim_environment" 6>&1
5282 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
5285 default_sim_inline=""
5286 # Check whether --enable-sim-inline or --disable-sim-inline was given.
5287 if test "${enable_sim_inline+set}" = set; then
5288 enableval="$enable_sim_inline"
5290 case "$enableval" in
5291 no) sim_inline="-DDEFAULT_INLINE=0";;
5292 0) sim_inline="-DDEFAULT_INLINE=0";;
5293 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
5294 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
5295 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
5298 *_INLINE=*) new_flag="-D$x";;
5299 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
5300 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
5301 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
5303 if test x"$sim_inline" = x""; then
5304 sim_inline="$new_flag"
5306 sim_inline="$sim_inline $new_flag"
5310 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
5311 echo "Setting inline flags = $sim_inline" 6>&1
5315 if test "x$cross_compiling" = "xno"; then
5316 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
5317 sim_inline="${default_sim_inline}"
5318 if test x"$silent" != x"yes"; then
5319 echo "Setting inline flags = $sim_inline" 6>&1
5325 sim_inline="-DDEFAULT_INLINE=0"
5331 cgendir='$(srcdir)/../../cgen'
5332 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
5333 if test "${enable_cgen_maint+set}" = set; then
5334 enableval="$enable_cgen_maint"
5335 case "${enableval}" in
5336 yes) cgen_maint=yes ;;
5337 no) cgen_maint=no ;;
5339 # argument is cgen install directory (not implemented yet).
5340 # Having a `share' directory might be more appropriate for the .scm,
5342 cgendir=${cgen_maint}/lib/cgen
5346 fi; if test x${cgen_maint} != xno ; then
5357 ac_sources="$sim_link_files"
5358 ac_dests="$sim_link_links"
5359 while test -n "$ac_sources"; do
5360 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5361 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5362 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5364 ac_config_links="$ac_config_links $ac_config_links_1"
5367 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5368 cgen_breaks="break cgen_rtx_error";
5371 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5373 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5375 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5377 ac_config_commands="$ac_config_commands Makefile"
5379 ac_config_commands="$ac_config_commands stamp-h"
5381 cat >confcache <<\_ACEOF
5382 # This file is a shell script that caches the results of configure
5383 # tests run on this system so they can be shared between configure
5384 # scripts and configure runs, see configure's option --config-cache.
5385 # It is not useful on other systems. If it contains results you don't
5386 # want to keep, you may remove or edit it.
5388 # config.status only pays attention to the cache file if you give it
5389 # the --recheck option to rerun configure.
5391 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5392 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5397 # The following way of writing the cache mishandles newlines in values,
5398 # but we know of no workaround that is simple, portable, and efficient.
5399 # So, don't put newlines in cache variables' values.
5400 # Ultrix sh set writes to stderr and can't be redirected directly,
5401 # and sets the high bit in the cache file unless we assign to the vars.
5404 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5406 # `set' does not quote correctly, so add quotes (double-quote
5407 # substitution turns \\\\ into \\, and sed turns \\ into \).
5410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5413 # `set' quotes correctly as required by POSIX, so do not add quotes.
5415 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5424 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5426 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5427 if test -w $cache_file; then
5428 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5429 cat confcache >$cache_file
5431 echo "not updating unwritable cache $cache_file"
5436 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5437 # Let make expand exec_prefix.
5438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5440 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5441 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5442 # trailing colons and then remove the whole line if VPATH becomes empty
5443 # (actually we leave an empty line to preserve line numbers).
5444 if test "x$srcdir" = x.; then
5445 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5446 s/:*\$(srcdir):*/:/;
5447 s/:*\${srcdir}:*/:/;
5449 s/^\([^=]*=[ ]*\):*/\1/;
5455 DEFS=-DHAVE_CONFIG_H
5459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5460 # 1. Remove the extension, and $U if already installed.
5461 ac_i=`echo "$ac_i" |
5462 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5464 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5465 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5469 LTLIBOBJS=$ac_ltlibobjs
5473 : ${CONFIG_STATUS=./config.status}
5474 ac_clean_files_save=$ac_clean_files
5475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5476 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5477 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5478 cat >$CONFIG_STATUS <<_ACEOF
5480 # Generated by $as_me.
5481 # Run this file to recreate the current configuration.
5482 # Compiler output produced by configure, useful for debugging
5483 # configure, is in config.log if it exists.
5488 SHELL=\${CONFIG_SHELL-$SHELL}
5491 cat >>$CONFIG_STATUS <<\_ACEOF
5492 ## --------------------- ##
5493 ## M4sh Initialization. ##
5494 ## --------------------- ##
5496 # Be Bourne compatible
5497 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5500 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5501 # is contrary to our usage. Disable this feature.
5502 alias -g '${1+"$@"}'='"$@"'
5503 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5506 DUALCASE=1; export DUALCASE # for MKS sh
5508 # Support unset when possible.
5509 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5516 # Work around bugs in pre-3.0 UWIN ksh.
5517 $as_unset ENV MAIL MAILPATH
5524 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5525 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5526 LC_TELEPHONE LC_TIME
5528 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5529 eval $as_var=C; export $as_var
5535 # Required to use basename.
5536 if expr a : '\(a\)' >/dev/null 2>&1; then
5542 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5543 as_basename=basename
5549 # Name of the executable.
5550 as_me=`$as_basename "$0" ||
5551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5552 X"$0" : 'X\(//\)$' \| \
5553 X"$0" : 'X\(/\)$' \| \
5554 . : '\(.\)' 2>/dev/null ||
5556 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5557 /^X\/\(\/\/\)$/{ s//\1/; q; }
5558 /^X\/\(\/\).*/{ s//\1/; q; }
5562 # PATH needs CR, and LINENO needs CR and PATH.
5563 # Avoid depending upon Character Ranges.
5564 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5567 as_cr_digits='0123456789'
5568 as_cr_alnum=$as_cr_Letters$as_cr_digits
5570 # The user is always right.
5571 if test "${PATH_SEPARATOR+set}" != set; then
5572 echo "#! /bin/sh" >conf$$.sh
5573 echo "exit 0" >>conf$$.sh
5575 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5586 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5587 test "x$as_lineno_1" != "x$as_lineno_2" &&
5588 test "x$as_lineno_3" = "x$as_lineno_2" || {
5589 # Find who we are. Look in the path if we contain no path at all
5592 *[\\/]* ) as_myself=$0 ;;
5593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir=.
5598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5603 # We did not find ourselves, most probably we were run as `sh COMMAND'
5604 # in which case we are not to be found in the path.
5605 if test "x$as_myself" = x; then
5608 if test ! -f "$as_myself"; then
5609 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5610 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5611 { (exit 1); exit 1; }; }
5613 case $CONFIG_SHELL in
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5619 test -z "$as_dir" && as_dir=.
5620 for as_base in sh bash ksh sh5; do
5623 if ("$as_dir/$as_base" -c '
5626 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5627 test "x$as_lineno_1" != "x$as_lineno_2" &&
5628 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5629 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5630 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5631 CONFIG_SHELL=$as_dir/$as_base
5633 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5642 # uniformly replaced by the line number. The first 'sed' inserts a
5643 # line-number line before each line; the second 'sed' does the real
5644 # work. The second script uses 'N' to pair each line-number line
5645 # with the numbered line, and appends trailing '-' during
5646 # substitution so that $LINENO is not a special case at line end.
5647 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5648 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5649 sed '=' <$as_myself |
5654 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5657 s,^['$as_cr_digits']*\n,,
5659 chmod +x $as_me.lineno ||
5660 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5661 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5662 { (exit 1); exit 1; }; }
5664 # Don't try to exec as it changes $[0], causing all sort of problems
5665 # (the dirname of $[0] is not the place where we might find the
5666 # original and so on. Autoconf is especially sensible to this).
5668 # Exit status is that of the last command.
5673 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5674 *c*,-n*) ECHO_N= ECHO_C='
5676 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5677 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5680 if expr a : '\(a\)' >/dev/null 2>&1; then
5686 rm -f conf$$ conf$$.exe conf$$.file
5688 if ln -s conf$$.file conf$$ 2>/dev/null; then
5689 # We could just check for DJGPP; but this test a) works b) is more generic
5690 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5691 if test -f conf$$.exe; then
5692 # Don't use ln at all; we don't have any links
5697 elif ln conf$$.file conf$$ 2>/dev/null; then
5702 rm -f conf$$ conf$$.exe conf$$.file
5704 if mkdir -p . 2>/dev/null; then
5707 test -d ./-p && rmdir ./-p
5711 as_executable_p="test -f"
5713 # Sed expression to map a string onto a valid CPP name.
5714 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5716 # Sed expression to map a string onto a valid variable name.
5717 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5721 # We need space, tab and new line, in precisely that order.
5731 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5732 # report actual input values of CONFIG_FILES etc. instead of their
5733 # values after options handling. Logging --version etc. is OK.
5737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5738 ## Running $as_me. ##
5743 This file was extended by $as_me, which was
5744 generated by GNU Autoconf 2.59. Invocation command line was
5746 CONFIG_FILES = $CONFIG_FILES
5747 CONFIG_HEADERS = $CONFIG_HEADERS
5748 CONFIG_LINKS = $CONFIG_LINKS
5749 CONFIG_COMMANDS = $CONFIG_COMMANDS
5753 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5757 # Files that config.status was made for.
5758 if test -n "$ac_config_files"; then
5759 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5762 if test -n "$ac_config_headers"; then
5763 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5766 if test -n "$ac_config_links"; then
5767 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5770 if test -n "$ac_config_commands"; then
5771 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5774 cat >>$CONFIG_STATUS <<\_ACEOF
5777 \`$as_me' instantiates files from templates according to the
5778 current configuration.
5780 Usage: $0 [OPTIONS] [FILE]...
5782 -h, --help print this help, then exit
5783 -V, --version print version number, then exit
5784 -q, --quiet do not print progress messages
5785 -d, --debug don't remove temporary files
5786 --recheck update $as_me by reconfiguring in the same conditions
5787 --file=FILE[:TEMPLATE]
5788 instantiate the configuration file FILE
5789 --header=FILE[:TEMPLATE]
5790 instantiate the configuration header FILE
5792 Configuration files:
5795 Configuration headers:
5798 Configuration links:
5801 Configuration commands:
5804 Report bugs to <bug-autoconf@gnu.org>."
5807 cat >>$CONFIG_STATUS <<_ACEOF
5810 configured by $0, generated by GNU Autoconf 2.59,
5811 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5813 Copyright (C) 2003 Free Software Foundation, Inc.
5814 This config.status script is free software; the Free Software Foundation
5815 gives unlimited permission to copy, distribute and modify it."
5820 cat >>$CONFIG_STATUS <<\_ACEOF
5821 # If no file are specified by the user, then we need to provide default
5822 # value. By we need to know if files were specified by the user.
5828 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5829 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5837 *) # This is not an option, so the user has probably given explicit
5840 ac_need_defaults=false;;
5844 # Handling of the options.
5846 cat >>$CONFIG_STATUS <<\_ACEOF
5847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5849 --version | --vers* | -V )
5850 echo "$ac_cs_version"; exit 0 ;;
5852 # Conflict between --help and --header
5853 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5854 Try \`$0 --help' for more information." >&5
5855 echo "$as_me: error: ambiguous option: $1
5856 Try \`$0 --help' for more information." >&2;}
5857 { (exit 1); exit 1; }; };;
5858 --help | --hel | -h )
5859 echo "$ac_cs_usage"; exit 0 ;;
5860 --debug | --d* | -d )
5862 --file | --fil | --fi | --f )
5864 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5865 ac_need_defaults=false;;
5866 --header | --heade | --head | --hea )
5868 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5869 ac_need_defaults=false;;
5870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5871 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5875 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5876 Try \`$0 --help' for more information." >&5
5877 echo "$as_me: error: unrecognized option: $1
5878 Try \`$0 --help' for more information." >&2;}
5879 { (exit 1); exit 1; }; } ;;
5881 *) ac_config_targets="$ac_config_targets $1" ;;
5887 ac_configure_extra_args=
5889 if $ac_cs_silent; then
5891 ac_configure_extra_args="$ac_configure_extra_args --silent"
5895 cat >>$CONFIG_STATUS <<_ACEOF
5896 if \$ac_cs_recheck; then
5897 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5898 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5907 cat >>$CONFIG_STATUS <<\_ACEOF
5908 for ac_config_target in $ac_config_targets
5910 case "$ac_config_target" in
5911 # Handling of arguments.
5912 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5913 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5914 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5915 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
5916 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5917 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5918 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5920 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5921 { (exit 1); exit 1; }; };;
5925 # If the user did not use the arguments to specify the items to instantiate,
5926 # then the envvar interface is used. Set only those that are not.
5927 # We use the long form for the default assignment because of an extremely
5928 # bizarre bug on SunOS 4.1.3.
5929 if $ac_need_defaults; then
5930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5932 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5933 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5936 # Have a temporary directory for convenience. Make it in the build tree
5937 # simply because there is no reason to put it here, and in addition,
5938 # creating and moving files from /tmp can sometimes cause problems.
5939 # Create a temporary directory, and hook for its removal unless debugging.
5942 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5943 trap '{ (exit 1); exit 1; }' 1 2 13 15
5946 # Create a (secure) tmp directory for tmp files.
5949 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5950 test -n "$tmp" && test -d "$tmp"
5953 tmp=./confstat$$-$RANDOM
5954 (umask 077 && mkdir $tmp)
5957 echo "$me: cannot create a temporary directory in ." >&2
5958 { (exit 1); exit 1; }
5963 cat >>$CONFIG_STATUS <<_ACEOF
5966 # CONFIG_FILES section.
5969 # No need to generate the scripts if there are no CONFIG_FILES.
5970 # This happens for instance when ./config.status config.h
5971 if test -n "\$CONFIG_FILES"; then
5972 # Protect against being on the right side of a sed subst in config.status.
5973 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5974 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5975 s,@SHELL@,$SHELL,;t t
5976 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5977 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5978 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5979 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5980 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5981 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5982 s,@exec_prefix@,$exec_prefix,;t t
5983 s,@prefix@,$prefix,;t t
5984 s,@program_transform_name@,$program_transform_name,;t t
5985 s,@bindir@,$bindir,;t t
5986 s,@sbindir@,$sbindir,;t t
5987 s,@libexecdir@,$libexecdir,;t t
5988 s,@datadir@,$datadir,;t t
5989 s,@sysconfdir@,$sysconfdir,;t t
5990 s,@sharedstatedir@,$sharedstatedir,;t t
5991 s,@localstatedir@,$localstatedir,;t t
5992 s,@libdir@,$libdir,;t t
5993 s,@includedir@,$includedir,;t t
5994 s,@oldincludedir@,$oldincludedir,;t t
5995 s,@infodir@,$infodir,;t t
5996 s,@mandir@,$mandir,;t t
5997 s,@build_alias@,$build_alias,;t t
5998 s,@host_alias@,$host_alias,;t t
5999 s,@target_alias@,$target_alias,;t t
6001 s,@ECHO_C@,$ECHO_C,;t t
6002 s,@ECHO_N@,$ECHO_N,;t t
6003 s,@ECHO_T@,$ECHO_T,;t t
6005 s,@sim_environment@,$sim_environment,;t t
6006 s,@sim_alignment@,$sim_alignment,;t t
6007 s,@sim_assert@,$sim_assert,;t t
6008 s,@sim_bitsize@,$sim_bitsize,;t t
6009 s,@sim_endian@,$sim_endian,;t t
6010 s,@sim_hostendian@,$sim_hostendian,;t t
6011 s,@sim_float@,$sim_float,;t t
6012 s,@sim_scache@,$sim_scache,;t t
6013 s,@sim_default_model@,$sim_default_model,;t t
6014 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6015 s,@sim_hw_objs@,$sim_hw_objs,;t t
6016 s,@sim_hw@,$sim_hw,;t t
6017 s,@sim_inline@,$sim_inline,;t t
6018 s,@sim_packages@,$sim_packages,;t t
6019 s,@sim_regparm@,$sim_regparm,;t t
6020 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6021 s,@sim_smp@,$sim_smp,;t t
6022 s,@sim_stdcall@,$sim_stdcall,;t t
6023 s,@sim_xor_endian@,$sim_xor_endian,;t t
6024 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6025 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6026 s,@build@,$build,;t t
6027 s,@build_cpu@,$build_cpu,;t t
6028 s,@build_vendor@,$build_vendor,;t t
6029 s,@build_os@,$build_os,;t t
6031 s,@host_cpu@,$host_cpu,;t t
6032 s,@host_vendor@,$host_vendor,;t t
6033 s,@host_os@,$host_os,;t t
6034 s,@target@,$target,;t t
6035 s,@target_cpu@,$target_cpu,;t t
6036 s,@target_vendor@,$target_vendor,;t t
6037 s,@target_os@,$target_os,;t t
6039 s,@CFLAGS@,$CFLAGS,;t t
6040 s,@LDFLAGS@,$LDFLAGS,;t t
6041 s,@CPPFLAGS@,$CPPFLAGS,;t t
6042 s,@ac_ct_CC@,$ac_ct_CC,;t t
6043 s,@EXEEXT@,$EXEEXT,;t t
6044 s,@OBJEXT@,$OBJEXT,;t t
6045 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6046 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6047 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6048 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
6049 s,@HDEFINES@,$HDEFINES,;t t
6051 s,@RANLIB@,$RANLIB,;t t
6052 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6053 s,@USE_NLS@,$USE_NLS,;t t
6054 s,@LIBINTL@,$LIBINTL,;t t
6055 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6056 s,@INCINTL@,$INCINTL,;t t
6057 s,@XGETTEXT@,$XGETTEXT,;t t
6058 s,@GMSGFMT@,$GMSGFMT,;t t
6059 s,@POSUB@,$POSUB,;t t
6060 s,@CATALOGS@,$CATALOGS,;t t
6061 s,@DATADIRNAME@,$DATADIRNAME,;t t
6062 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6063 s,@GENCAT@,$GENCAT,;t t
6064 s,@CATOBJEXT@,$CATOBJEXT,;t t
6066 s,@EGREP@,$EGREP,;t t
6067 s,@MAINT@,$MAINT,;t t
6068 s,@sim_bswap@,$sim_bswap,;t t
6069 s,@sim_cflags@,$sim_cflags,;t t
6070 s,@sim_debug@,$sim_debug,;t t
6071 s,@sim_stdio@,$sim_stdio,;t t
6072 s,@sim_trace@,$sim_trace,;t t
6073 s,@sim_profile@,$sim_profile,;t t
6074 s,@PKGVERSION@,$PKGVERSION,;t t
6075 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
6076 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
6077 s,@CGEN_MAINT@,$CGEN_MAINT,;t t
6078 s,@cgendir@,$cgendir,;t t
6080 s,@cgen_breaks@,$cgen_breaks,;t t
6081 s,@LIBOBJS@,$LIBOBJS,;t t
6082 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6087 cat >>$CONFIG_STATUS <<\_ACEOF
6088 # Split the substitutions into bite-sized pieces for seds with
6089 # small command number limits, like on Digital OSF/1 and HP-UX.
6091 ac_sed_frag=1 # Number of current file.
6092 ac_beg=1 # First line for current file.
6093 ac_end=$ac_max_sed_lines # Line after last line for current file.
6096 while $ac_more_lines; do
6097 if test $ac_beg -gt 1; then
6098 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6100 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6102 if test ! -s $tmp/subs.frag; then
6105 # The purpose of the label and of the branching condition is to
6106 # speed up the sed processing (if there are no `@' at all, there
6107 # is no need to browse any of the substitutions).
6108 # These are the two extra sed commands mentioned above.
6110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6111 if test -z "$ac_sed_cmds"; then
6112 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6114 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6116 ac_sed_frag=`expr $ac_sed_frag + 1`
6118 ac_end=`expr $ac_end + $ac_max_sed_lines`
6121 if test -z "$ac_sed_cmds"; then
6124 fi # test -n "$CONFIG_FILES"
6127 cat >>$CONFIG_STATUS <<\_ACEOF
6128 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6131 - | *:- | *:-:* ) # input from stdin
6133 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6134 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6135 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6137 * ) ac_file_in=$ac_file.in ;;
6140 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6141 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6143 X"$ac_file" : 'X\(//\)[^/]' \| \
6144 X"$ac_file" : 'X\(//\)$' \| \
6145 X"$ac_file" : 'X\(/\)' \| \
6146 . : '\(.\)' 2>/dev/null ||
6148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6150 /^X\(\/\/\)$/{ s//\1/; q; }
6151 /^X\(\/\).*/{ s//\1/; q; }
6153 { if $as_mkdir_p; then
6158 while test ! -d "$as_dir"; do
6159 as_dirs="$as_dir $as_dirs"
6160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6162 X"$as_dir" : 'X\(//\)[^/]' \| \
6163 X"$as_dir" : 'X\(//\)$' \| \
6164 X"$as_dir" : 'X\(/\)' \| \
6165 . : '\(.\)' 2>/dev/null ||
6167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6169 /^X\(\/\/\)$/{ s//\1/; q; }
6170 /^X\(\/\).*/{ s//\1/; q; }
6173 test ! -n "$as_dirs" || mkdir $as_dirs
6174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6175 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6176 { (exit 1); exit 1; }; }; }
6180 if test "$ac_dir" != .; then
6181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6182 # A "../" for each directory in $ac_dir_suffix.
6183 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6185 ac_dir_suffix= ac_top_builddir=
6189 .) # No --srcdir option. We are building in place.
6191 if test -z "$ac_top_builddir"; then
6194 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6196 [\\/]* | ?:[\\/]* ) # Absolute path.
6197 ac_srcdir=$srcdir$ac_dir_suffix;
6198 ac_top_srcdir=$srcdir ;;
6200 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6201 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6204 # Do not use `cd foo && pwd` to compute absolute paths, because
6205 # the directories may not exist.
6207 .) ac_abs_builddir="$ac_dir";;
6210 .) ac_abs_builddir=`pwd`;;
6211 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6212 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6215 case $ac_abs_builddir in
6216 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6218 case ${ac_top_builddir}. in
6219 .) ac_abs_top_builddir=$ac_abs_builddir;;
6220 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6221 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6224 case $ac_abs_builddir in
6225 .) ac_abs_srcdir=$ac_srcdir;;
6228 .) ac_abs_srcdir=$ac_abs_builddir;;
6229 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6230 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6233 case $ac_abs_builddir in
6234 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6236 case $ac_top_srcdir in
6237 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6238 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6239 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6245 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6246 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6249 if test x"$ac_file" != x-; then
6250 { echo "$as_me:$LINENO: creating $ac_file" >&5
6251 echo "$as_me: creating $ac_file" >&6;}
6254 # Let's still pretend it is `configure' which instantiates (i.e., don't
6255 # use $as_me), people would be surprised to read:
6256 # /* config.h. Generated by config.status. */
6257 if test x"$ac_file" = x-; then
6260 configure_input="$ac_file. "
6262 configure_input=$configure_input"Generated from `echo $ac_file_in |
6263 sed 's,.*/,,'` by configure."
6265 # First look for the input files in the build tree, otherwise in the
6267 ac_file_inputs=`IFS=:
6268 for f in $ac_file_in; do
6270 -) echo $tmp/stdin ;;
6272 # Absolute (can't be DOS-style, as IFS=:)
6273 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6274 echo "$as_me: error: cannot find input file: $f" >&2;}
6275 { (exit 1); exit 1; }; }
6278 if test -f "$f"; then
6281 elif test -f "$srcdir/$f"; then
6286 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6287 echo "$as_me: error: cannot find input file: $f" >&2;}
6288 { (exit 1); exit 1; }; }
6291 done` || { (exit 1); exit 1; }
6293 cat >>$CONFIG_STATUS <<_ACEOF
6297 cat >>$CONFIG_STATUS <<\_ACEOF
6299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6300 s,@configure_input@,$configure_input,;t t
6301 s,@srcdir@,$ac_srcdir,;t t
6302 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6303 s,@top_srcdir@,$ac_top_srcdir,;t t
6304 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6305 s,@builddir@,$ac_builddir,;t t
6306 s,@abs_builddir@,$ac_abs_builddir,;t t
6307 s,@top_builddir@,$ac_top_builddir,;t t
6308 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6309 s,@INSTALL@,$ac_INSTALL,;t t
6310 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6312 if test x"$ac_file" != x-; then
6313 mv $tmp/out $ac_file
6321 cat >>$CONFIG_STATUS <<\_ACEOF
6324 # CONFIG_HEADER section.
6327 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6328 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6330 # ac_d sets the value in "#define NAME VALUE" lines.
6331 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6332 ac_dB='[ ].*$,\1#\2'
6335 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6336 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6337 ac_uB='$,\1#\2define\3'
6341 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6344 - | *:- | *:-:* ) # input from stdin
6346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6350 * ) ac_file_in=$ac_file.in ;;
6353 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6354 echo "$as_me: creating $ac_file" >&6;}
6356 # First look for the input files in the build tree, otherwise in the
6358 ac_file_inputs=`IFS=:
6359 for f in $ac_file_in; do
6361 -) echo $tmp/stdin ;;
6363 # Absolute (can't be DOS-style, as IFS=:)
6364 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6365 echo "$as_me: error: cannot find input file: $f" >&2;}
6366 { (exit 1); exit 1; }; }
6367 # Do quote $f, to prevent DOS paths from being IFS'd.
6370 if test -f "$f"; then
6373 elif test -f "$srcdir/$f"; then
6378 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6379 echo "$as_me: error: cannot find input file: $f" >&2;}
6380 { (exit 1); exit 1; }; }
6383 done` || { (exit 1); exit 1; }
6384 # Remove the trailing spaces.
6385 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6389 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6390 # `conftest.undefs', that substitutes the proper values into
6391 # config.h.in to produce config.h. The first handles `#define'
6392 # templates, and the second `#undef' templates.
6393 # And first: Protect against being on the right side of a sed subst in
6394 # config.status. Protect against being in an unquoted here document
6396 rm -f conftest.defines conftest.undefs
6397 # Using a here document instead of a string reduces the quoting nightmare.
6398 # Putting comments in sed scripts is not portable.
6400 # `end' is used to avoid that the second main sed command (meant for
6401 # 0-ary CPP macros) applies to n-ary macro definitions.
6402 # See the Autoconf documentation for `clear'.
6403 cat >confdef2sed.sed <<\_ACEOF
6408 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6410 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6413 # If some macros were called several times there might be several times
6414 # the same #defines, which is useless. Nevertheless, we may not want to
6415 # sort them, since we want the *last* AC-DEFINE to be honored.
6416 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6417 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6418 rm -f confdef2sed.sed
6420 # This sed command replaces #undef with comments. This is necessary, for
6421 # example, in the case of _POSIX_SOURCE, which is predefined and required
6422 # on some systems where configure will not decide to define it.
6423 cat >>conftest.undefs <<\_ACEOF
6424 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6427 # Break up conftest.defines because some shells have a limit on the size
6428 # of here documents, and old seds have small limits too (100 cmds).
6429 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6430 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6431 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6432 echo ' :' >>$CONFIG_STATUS
6434 while grep . conftest.defines >/dev/null
6436 # Write a limited-size here document to $tmp/defines.sed.
6437 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6438 # Speed up: don't consider the non `#define' lines.
6439 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6440 # Work around the forget-to-reset-the-flag bug.
6441 echo 't clr' >>$CONFIG_STATUS
6442 echo ': clr' >>$CONFIG_STATUS
6443 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6445 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6449 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6450 rm -f conftest.defines
6451 mv conftest.tail conftest.defines
6453 rm -f conftest.defines
6454 echo ' fi # grep' >>$CONFIG_STATUS
6455 echo >>$CONFIG_STATUS
6457 # Break up conftest.undefs because some shells have a limit on the size
6458 # of here documents, and old seds have small limits too (100 cmds).
6459 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6461 while grep . conftest.undefs >/dev/null
6463 # Write a limited-size here document to $tmp/undefs.sed.
6464 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6465 # Speed up: don't consider the non `#undef'
6466 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6467 # Work around the forget-to-reset-the-flag bug.
6468 echo 't clr' >>$CONFIG_STATUS
6469 echo ': clr' >>$CONFIG_STATUS
6470 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6472 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6476 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6477 rm -f conftest.undefs
6478 mv conftest.tail conftest.undefs
6480 rm -f conftest.undefs
6482 cat >>$CONFIG_STATUS <<\_ACEOF
6483 # Let's still pretend it is `configure' which instantiates (i.e., don't
6484 # use $as_me), people would be surprised to read:
6485 # /* config.h. Generated by config.status. */
6486 if test x"$ac_file" = x-; then
6487 echo "/* Generated by configure. */" >$tmp/config.h
6489 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6491 cat $tmp/in >>$tmp/config.h
6493 if test x"$ac_file" != x-; then
6494 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6495 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6496 echo "$as_me: $ac_file is unchanged" >&6;}
6498 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6500 X"$ac_file" : 'X\(//\)[^/]' \| \
6501 X"$ac_file" : 'X\(//\)$' \| \
6502 X"$ac_file" : 'X\(/\)' \| \
6503 . : '\(.\)' 2>/dev/null ||
6505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6507 /^X\(\/\/\)$/{ s//\1/; q; }
6508 /^X\(\/\).*/{ s//\1/; q; }
6510 { if $as_mkdir_p; then
6515 while test ! -d "$as_dir"; do
6516 as_dirs="$as_dir $as_dirs"
6517 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6519 X"$as_dir" : 'X\(//\)[^/]' \| \
6520 X"$as_dir" : 'X\(//\)$' \| \
6521 X"$as_dir" : 'X\(/\)' \| \
6522 . : '\(.\)' 2>/dev/null ||
6524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6526 /^X\(\/\/\)$/{ s//\1/; q; }
6527 /^X\(\/\).*/{ s//\1/; q; }
6530 test ! -n "$as_dirs" || mkdir $as_dirs
6531 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6532 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6533 { (exit 1); exit 1; }; }; }
6536 mv $tmp/config.h $ac_file
6544 cat >>$CONFIG_STATUS <<\_ACEOF
6547 # CONFIG_LINKS section.
6550 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
6551 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6552 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6554 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6555 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
6557 if test ! -r $srcdir/$ac_source; then
6558 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6559 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6560 { (exit 1); exit 1; }; }
6564 # Make relative symlinks.
6565 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
6566 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6567 X"$ac_dest" : 'X\(//\)[^/]' \| \
6568 X"$ac_dest" : 'X\(//\)$' \| \
6569 X"$ac_dest" : 'X\(/\)' \| \
6570 . : '\(.\)' 2>/dev/null ||
6572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6574 /^X\(\/\/\)$/{ s//\1/; q; }
6575 /^X\(\/\).*/{ s//\1/; q; }
6577 { if $as_mkdir_p; then
6578 mkdir -p "$ac_dest_dir"
6580 as_dir="$ac_dest_dir"
6582 while test ! -d "$as_dir"; do
6583 as_dirs="$as_dir $as_dirs"
6584 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6586 X"$as_dir" : 'X\(//\)[^/]' \| \
6587 X"$as_dir" : 'X\(//\)$' \| \
6588 X"$as_dir" : 'X\(/\)' \| \
6589 . : '\(.\)' 2>/dev/null ||
6591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6593 /^X\(\/\/\)$/{ s//\1/; q; }
6594 /^X\(\/\).*/{ s//\1/; q; }
6597 test ! -n "$as_dirs" || mkdir $as_dirs
6598 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6599 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6600 { (exit 1); exit 1; }; }; }
6604 if test "$ac_dest_dir" != .; then
6605 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6606 # A "../" for each directory in $ac_dir_suffix.
6607 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6609 ac_dir_suffix= ac_top_builddir=
6613 .) # No --srcdir option. We are building in place.
6615 if test -z "$ac_top_builddir"; then
6618 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6620 [\\/]* | ?:[\\/]* ) # Absolute path.
6621 ac_srcdir=$srcdir$ac_dir_suffix;
6622 ac_top_srcdir=$srcdir ;;
6624 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6625 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6628 # Do not use `cd foo && pwd` to compute absolute paths, because
6629 # the directories may not exist.
6631 .) ac_abs_builddir="$ac_dest_dir";;
6633 case "$ac_dest_dir" in
6634 .) ac_abs_builddir=`pwd`;;
6635 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
6636 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
6639 case $ac_abs_builddir in
6640 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6642 case ${ac_top_builddir}. in
6643 .) ac_abs_top_builddir=$ac_abs_builddir;;
6644 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6645 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6648 case $ac_abs_builddir in
6649 .) ac_abs_srcdir=$ac_srcdir;;
6652 .) ac_abs_srcdir=$ac_abs_builddir;;
6653 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6654 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6657 case $ac_abs_builddir in
6658 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6660 case $ac_top_srcdir in
6661 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6662 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6663 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6669 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
6670 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
6673 # Try a symlink, then a hard link, then a copy.
6674 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6675 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
6676 cp -p $srcdir/$ac_source $ac_dest ||
6677 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6678 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6679 { (exit 1); exit 1; }; }
6682 cat >>$CONFIG_STATUS <<\_ACEOF
6685 # CONFIG_COMMANDS section.
6687 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6688 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6689 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6690 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6691 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6692 X"$ac_dest" : 'X\(//\)[^/]' \| \
6693 X"$ac_dest" : 'X\(//\)$' \| \
6694 X"$ac_dest" : 'X\(/\)' \| \
6695 . : '\(.\)' 2>/dev/null ||
6697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6699 /^X\(\/\/\)$/{ s//\1/; q; }
6700 /^X\(\/\).*/{ s//\1/; q; }
6702 { if $as_mkdir_p; then
6707 while test ! -d "$as_dir"; do
6708 as_dirs="$as_dir $as_dirs"
6709 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6711 X"$as_dir" : 'X\(//\)[^/]' \| \
6712 X"$as_dir" : 'X\(//\)$' \| \
6713 X"$as_dir" : 'X\(/\)' \| \
6714 . : '\(.\)' 2>/dev/null ||
6716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6718 /^X\(\/\/\)$/{ s//\1/; q; }
6719 /^X\(\/\).*/{ s//\1/; q; }
6722 test ! -n "$as_dirs" || mkdir $as_dirs
6723 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6724 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6725 { (exit 1); exit 1; }; }; }
6729 if test "$ac_dir" != .; then
6730 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6731 # A "../" for each directory in $ac_dir_suffix.
6732 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6734 ac_dir_suffix= ac_top_builddir=
6738 .) # No --srcdir option. We are building in place.
6740 if test -z "$ac_top_builddir"; then
6743 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6745 [\\/]* | ?:[\\/]* ) # Absolute path.
6746 ac_srcdir=$srcdir$ac_dir_suffix;
6747 ac_top_srcdir=$srcdir ;;
6749 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6750 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6753 # Do not use `cd foo && pwd` to compute absolute paths, because
6754 # the directories may not exist.
6756 .) ac_abs_builddir="$ac_dir";;
6759 .) ac_abs_builddir=`pwd`;;
6760 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6761 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6764 case $ac_abs_builddir in
6765 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6767 case ${ac_top_builddir}. in
6768 .) ac_abs_top_builddir=$ac_abs_builddir;;
6769 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6770 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6773 case $ac_abs_builddir in
6774 .) ac_abs_srcdir=$ac_srcdir;;
6777 .) ac_abs_srcdir=$ac_abs_builddir;;
6778 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6779 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6782 case $ac_abs_builddir in
6783 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6785 case $ac_top_srcdir in
6786 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6787 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6788 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6793 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6794 echo "$as_me: executing $ac_dest commands" >&6;}
6796 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6797 rm -f Makesim1.tmp Makesim2.tmp Makefile
6798 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6799 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6800 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6801 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6802 <Makefile.sim >Makefile
6803 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6805 stamp-h ) echo > stamp-h ;;
6810 cat >>$CONFIG_STATUS <<\_ACEOF
6812 { (exit 0); exit 0; }
6814 chmod +x $CONFIG_STATUS
6815 ac_clean_files=$ac_clean_files_save
6818 # configure is writing to config.log, and then calls config.status.
6819 # config.status does its own redirection, appending to config.log.
6820 # Unfortunately, on DOS this fails, as config.log is still kept open
6821 # by configure, so config.status won't be able to write to it; its
6822 # output is simply discarded. So we exec the FD to /dev/null,
6823 # effectively closing config.log, so it can be properly (re)opened and
6824 # appended to by config.status. When coming back to configure, we
6825 # need to make the FD available again.
6826 if test "$no_create" != yes; then
6828 ac_config_status_args=
6829 test "$silent" = yes &&
6830 ac_config_status_args="$ac_config_status_args --quiet"
6832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6835 # would make configure fail if this is the last instruction.
6836 $ac_cs_success || { (exit 1); exit 1; }