2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 --target=TARGET configure for building compilers for TARGET [HOST]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-nls do not use Native Language Support
858 --enable-maintainer-mode Enable developer functionality.
859 --enable-sim-bswap Use Host specific BSWAP instruction.
860 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
861 --enable-sim-debug=opts Enable debugging flags
862 --enable-sim-stdio Specify whether to use stdio for console input/output.
863 --enable-sim-trace=opts Enable tracing flags
864 --enable-sim-profile=opts Enable profiling flags
865 --enable-sim-inline=inlines Specify which functions should be inlined.
866 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
867 --enable-sim-hostendian=end Specify host byte endian orientation.
868 --enable-build-warnings Enable build-time compiler warnings if gcc is used
869 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
870 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
871 --enable-sim-endian=endian Specify target byte endian orientation.
872 --enable-sim-bitsize=N Specify target bitsize (32 or 64).
873 --enable-sim-float Specify that the target processor has floating point hardware.
874 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp}).
875 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-included-gettext use the GNU gettext library included here
881 --with-x use the X Window System
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
932 .) ac_abs_builddir="$ac_dir";;
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_must_keep_next=false
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 -* ) ac_must_keep_next=true ;;
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1120 # The following way of writing the cache mishandles newlines in values,
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -n "$ac_subst_files"; then
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -s confdefs.h; then
1172 sed "/^$/d" confdefs.h | sort
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1255 # Check that the precious variables saved in the cache have kept the same
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331 # Make sure we can run config.sub.
1332 $ac_config_sub sun4 >/dev/null 2>&1 ||
1333 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1334 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1335 { (exit 1); exit 1; }; }
1337 echo "$as_me:$LINENO: checking build system type" >&5
1338 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1339 if test "${ac_cv_build+set}" = set; then
1340 echo $ECHO_N "(cached) $ECHO_C" >&6
1342 ac_cv_build_alias=$build_alias
1343 test -z "$ac_cv_build_alias" &&
1344 ac_cv_build_alias=`$ac_config_guess`
1345 test -z "$ac_cv_build_alias" &&
1346 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1347 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1348 { (exit 1); exit 1; }; }
1349 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1356 echo "${ECHO_T}$ac_cv_build" >&6
1358 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1363 echo "$as_me:$LINENO: checking host system type" >&5
1364 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1365 if test "${ac_cv_host+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 ac_cv_host_alias=$host_alias
1369 test -z "$ac_cv_host_alias" &&
1370 ac_cv_host_alias=$ac_cv_build_alias
1371 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1373 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1377 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1378 echo "${ECHO_T}$ac_cv_host" >&6
1380 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1386 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1387 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1388 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 cat >conftest.make <<\_ACEOF
1393 @echo 'ac_maketemp="$(MAKE)"'
1395 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1396 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1397 if test -n "$ac_maketemp"; then
1398 eval ac_cv_prog_make_${ac_make}_set=yes
1400 eval ac_cv_prog_make_${ac_make}_set=no
1404 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1405 echo "$as_me:$LINENO: result: yes" >&5
1406 echo "${ECHO_T}yes" >&6
1409 echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 SET_MAKE="MAKE=${MAKE-make}"
1415 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1416 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1417 if test "${ac_cv_search_strerror+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 ac_func_search_save_LIBS=$LIBS
1421 ac_cv_search_strerror=no
1422 cat >conftest.$ac_ext <<_ACEOF
1425 cat confdefs.h >>conftest.$ac_ext
1426 cat >>conftest.$ac_ext <<_ACEOF
1427 /* end confdefs.h. */
1429 /* Override any gcc2 internal prototype to avoid an error. */
1433 /* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1444 rm -f conftest.$ac_objext conftest$ac_exeext
1445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1446 (eval $ac_link) 2>conftest.er1
1448 grep -v '^ *+' conftest.er1 >conftest.err
1450 cat conftest.err >&5
1451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1452 (exit $ac_status); } &&
1453 { ac_try='test -z "$ac_c_werror_flag"
1454 || test ! -s conftest.err'
1455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1459 (exit $ac_status); }; } &&
1460 { ac_try='test -s conftest$ac_exeext'
1461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1465 (exit $ac_status); }; }; then
1466 ac_cv_search_strerror="none required"
1468 echo "$as_me: failed program was:" >&5
1469 sed 's/^/| /' conftest.$ac_ext >&5
1472 rm -f conftest.err conftest.$ac_objext \
1473 conftest$ac_exeext conftest.$ac_ext
1474 if test "$ac_cv_search_strerror" = no; then
1475 for ac_lib in cposix; do
1476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1477 cat >conftest.$ac_ext <<_ACEOF
1480 cat confdefs.h >>conftest.$ac_ext
1481 cat >>conftest.$ac_ext <<_ACEOF
1482 /* end confdefs.h. */
1484 /* Override any gcc2 internal prototype to avoid an error. */
1488 /* We use char because int might match the return type of a gcc2
1489 builtin and then its argument prototype would still apply. */
1499 rm -f conftest.$ac_objext conftest$ac_exeext
1500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1501 (eval $ac_link) 2>conftest.er1
1503 grep -v '^ *+' conftest.er1 >conftest.err
1505 cat conftest.err >&5
1506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1507 (exit $ac_status); } &&
1508 { ac_try='test -z "$ac_c_werror_flag"
1509 || test ! -s conftest.err'
1510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1514 (exit $ac_status); }; } &&
1515 { ac_try='test -s conftest$ac_exeext'
1516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1520 (exit $ac_status); }; }; then
1521 ac_cv_search_strerror="-l$ac_lib"
1524 echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1528 rm -f conftest.err conftest.$ac_objext \
1529 conftest$ac_exeext conftest.$ac_ext
1532 LIBS=$ac_func_search_save_LIBS
1534 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1535 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1536 if test "$ac_cv_search_strerror" != no; then
1537 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1548 # On Suns, sometimes $CPP names a directory.
1549 if test -n "$CPP" && test -d "$CPP"; then
1552 if test -z "$CPP"; then
1553 if test "${ac_cv_prog_CPP+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 # Double quotes because CPP needs to be expanded
1557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1560 for ac_c_preproc_warn_flag in '' yes
1562 # Use a header file that comes with gcc, so configuring glibc
1563 # with a fresh cross-compiler works.
1564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1565 # <limits.h> exists even on freestanding compilers.
1566 # On the NeXT, cc -E runs the code through the compiler's parser,
1567 # not just through cpp. "Syntax error" is here to catch this case.
1568 cat >conftest.$ac_ext <<_ACEOF
1571 cat confdefs.h >>conftest.$ac_ext
1572 cat >>conftest.$ac_ext <<_ACEOF
1573 /* end confdefs.h. */
1575 # include <limits.h>
1577 # include <assert.h>
1581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1584 grep -v '^ *+' conftest.er1 >conftest.err
1586 cat conftest.err >&5
1587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1588 (exit $ac_status); } >/dev/null; then
1589 if test -s conftest.err; then
1590 ac_cpp_err=$ac_c_preproc_warn_flag
1591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1598 if test -z "$ac_cpp_err"; then
1601 echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 # Broken: fails on valid input.
1607 rm -f conftest.err conftest.$ac_ext
1609 # OK, works on sane cases. Now check whether non-existent headers
1610 # can be detected and how.
1611 cat >conftest.$ac_ext <<_ACEOF
1614 cat confdefs.h >>conftest.$ac_ext
1615 cat >>conftest.$ac_ext <<_ACEOF
1616 /* end confdefs.h. */
1617 #include <ac_nonexistent.h>
1619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1622 grep -v '^ *+' conftest.er1 >conftest.err
1624 cat conftest.err >&5
1625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626 (exit $ac_status); } >/dev/null; then
1627 if test -s conftest.err; then
1628 ac_cpp_err=$ac_c_preproc_warn_flag
1629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1636 if test -z "$ac_cpp_err"; then
1637 # Broken: success on invalid input.
1640 echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1643 # Passes both tests.
1647 rm -f conftest.err conftest.$ac_ext
1650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1651 rm -f conftest.err conftest.$ac_ext
1652 if $ac_preproc_ok; then
1664 echo "$as_me:$LINENO: result: $CPP" >&5
1665 echo "${ECHO_T}$CPP" >&6
1667 for ac_c_preproc_warn_flag in '' yes
1669 # Use a header file that comes with gcc, so configuring glibc
1670 # with a fresh cross-compiler works.
1671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1672 # <limits.h> exists even on freestanding compilers.
1673 # On the NeXT, cc -E runs the code through the compiler's parser,
1674 # not just through cpp. "Syntax error" is here to catch this case.
1675 cat >conftest.$ac_ext <<_ACEOF
1678 cat confdefs.h >>conftest.$ac_ext
1679 cat >>conftest.$ac_ext <<_ACEOF
1680 /* end confdefs.h. */
1682 # include <limits.h>
1684 # include <assert.h>
1688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1691 grep -v '^ *+' conftest.er1 >conftest.err
1693 cat conftest.err >&5
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); } >/dev/null; then
1696 if test -s conftest.err; then
1697 ac_cpp_err=$ac_c_preproc_warn_flag
1698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1705 if test -z "$ac_cpp_err"; then
1708 echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 # Broken: fails on valid input.
1714 rm -f conftest.err conftest.$ac_ext
1716 # OK, works on sane cases. Now check whether non-existent headers
1717 # can be detected and how.
1718 cat >conftest.$ac_ext <<_ACEOF
1721 cat confdefs.h >>conftest.$ac_ext
1722 cat >>conftest.$ac_ext <<_ACEOF
1723 /* end confdefs.h. */
1724 #include <ac_nonexistent.h>
1726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1729 grep -v '^ *+' conftest.er1 >conftest.err
1731 cat conftest.err >&5
1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733 (exit $ac_status); } >/dev/null; then
1734 if test -s conftest.err; then
1735 ac_cpp_err=$ac_c_preproc_warn_flag
1736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1743 if test -z "$ac_cpp_err"; then
1744 # Broken: success on invalid input.
1747 echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 # Passes both tests.
1754 rm -f conftest.err conftest.$ac_ext
1757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1758 rm -f conftest.err conftest.$ac_ext
1759 if $ac_preproc_ok; then
1762 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1763 See \`config.log' for more details." >&5
1764 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1765 See \`config.log' for more details." >&2;}
1766 { (exit 1); exit 1; }; }
1770 ac_cpp='$CPP $CPPFLAGS'
1771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776 echo "$as_me:$LINENO: checking for egrep" >&5
1777 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1778 if test "${ac_cv_prog_egrep+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1782 then ac_cv_prog_egrep='grep -E'
1783 else ac_cv_prog_egrep='egrep'
1786 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1787 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1788 EGREP=$ac_cv_prog_egrep
1791 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1792 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1793 if test "${ac_cv_header_stdc+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 cat >conftest.$ac_ext <<_ACEOF
1799 cat confdefs.h >>conftest.$ac_ext
1800 cat >>conftest.$ac_ext <<_ACEOF
1801 /* end confdefs.h. */
1815 rm -f conftest.$ac_objext
1816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1817 (eval $ac_compile) 2>conftest.er1
1819 grep -v '^ *+' conftest.er1 >conftest.err
1821 cat conftest.err >&5
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); } &&
1824 { ac_try='test -z "$ac_c_werror_flag"
1825 || test ! -s conftest.err'
1826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; } &&
1831 { ac_try='test -s conftest.$ac_objext'
1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1837 ac_cv_header_stdc=yes
1839 echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_cv_header_stdc=no
1844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1846 if test $ac_cv_header_stdc = yes; then
1847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1848 cat >conftest.$ac_ext <<_ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1858 $EGREP "memchr" >/dev/null 2>&1; then
1861 ac_cv_header_stdc=no
1867 if test $ac_cv_header_stdc = yes; then
1868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1869 cat >conftest.$ac_ext <<_ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h. */
1878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1879 $EGREP "free" >/dev/null 2>&1; then
1882 ac_cv_header_stdc=no
1888 if test $ac_cv_header_stdc = yes; then
1889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1890 if test "$cross_compiling" = yes; then
1893 cat >conftest.$ac_ext <<_ACEOF
1896 cat confdefs.h >>conftest.$ac_ext
1897 cat >>conftest.$ac_ext <<_ACEOF
1898 /* end confdefs.h. */
1900 #if ((' ' & 0x0FF) == 0x020)
1901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1904 # define ISLOWER(c) \
1905 (('a' <= (c) && (c) <= 'i') \
1906 || ('j' <= (c) && (c) <= 'r') \
1907 || ('s' <= (c) && (c) <= 'z'))
1908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1916 for (i = 0; i < 256; i++)
1917 if (XOR (islower (i), ISLOWER (i))
1918 || toupper (i) != TOUPPER (i))
1923 rm -f conftest$ac_exeext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1925 (eval $ac_link) 2>&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
1936 echo "$as_me: program exited with status $ac_status" >&5
1937 echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1941 ac_cv_header_stdc=no
1943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1947 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1948 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1949 if test $ac_cv_header_stdc = yes; then
1951 cat >>confdefs.h <<\_ACEOF
1952 #define STDC_HEADERS 1
1957 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1958 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1959 if test "${ac_cv_c_const+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 cat >conftest.$ac_ext <<_ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1972 /* FIXME: Include the comments suggested by Paul. */
1974 /* Ultrix mips cc rejects this. */
1975 typedef int charset[2];
1977 /* SunOS 4.1.1 cc rejects this. */
1978 char const *const *ccp;
1980 /* NEC SVR4.0.2 mips cc rejects this. */
1981 struct point {int x, y;};
1982 static struct point const zero = {0,0};
1983 /* AIX XL C 1.02.0.0 rejects this.
1984 It does not let you subtract one const X* pointer from another in
1985 an arm of an if-expression whose if-part is not a constant
1987 const char *g = "string";
1988 ccp = &g + (g ? g-g : 0);
1989 /* HPUX 7.0 cc rejects these. */
1992 ccp = (char const *const *) p;
1993 { /* SCO 3.2v4 cc rejects this. */
1995 char const *s = 0 ? (char *) 0 : (char const *) 0;
1999 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2001 const int *foo = &x[0];
2004 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2005 typedef const int *iptr;
2009 { /* AIX XL C 1.02.0.0 rejects this saying
2010 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2011 struct s { int j; const int *ap[3]; };
2012 struct s *b; b->j = 5;
2014 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2023 rm -f conftest.$ac_objext
2024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>conftest.er1
2027 grep -v '^ *+' conftest.er1 >conftest.err
2029 cat conftest.err >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -z "$ac_c_werror_flag"
2033 || test ! -s conftest.err'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2047 echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2054 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2055 echo "${ECHO_T}$ac_cv_c_const" >&6
2056 if test $ac_cv_c_const = no; then
2058 cat >>confdefs.h <<\_ACEOF
2064 echo "$as_me:$LINENO: checking for inline" >&5
2065 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2066 if test "${ac_cv_c_inline+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 for ac_kw in inline __inline__ __inline; do
2071 cat >conftest.$ac_ext <<_ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h. */
2079 static $ac_kw foo_t static_foo () {return 0; }
2080 $ac_kw foo_t foo () {return 0; }
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2088 grep -v '^ *+' conftest.er1 >conftest.err
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag"
2094 || test ! -s conftest.err'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2106 ac_cv_c_inline=$ac_kw; break
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2116 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2117 echo "${ECHO_T}$ac_cv_c_inline" >&6
2120 case $ac_cv_c_inline in
2123 case $ac_cv_c_inline in
2125 *) ac_val=$ac_cv_c_inline;;
2127 cat >>confdefs.h <<_ACEOF
2129 #define inline $ac_val
2135 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2145 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2146 inttypes.h stdint.h unistd.h
2148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2149 echo "$as_me:$LINENO: checking for $ac_header" >&5
2150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 cat >conftest.$ac_ext <<_ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2160 $ac_includes_default
2162 #include <$ac_header>
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2168 grep -v '^ *+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 eval "$as_ac_Header=yes"
2188 echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2191 eval "$as_ac_Header=no"
2193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2198 cat >>confdefs.h <<_ACEOF
2199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2207 echo "$as_me:$LINENO: checking for off_t" >&5
2208 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2209 if test "${ac_cv_type_off_t+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.$ac_ext <<_ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2218 $ac_includes_default
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2234 grep -v '^ *+' conftest.er1 >conftest.err
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -z "$ac_c_werror_flag"
2240 || test ! -s conftest.err'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 ac_cv_type_off_t=yes
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2261 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2262 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2263 if test $ac_cv_type_off_t = yes; then
2267 cat >>confdefs.h <<_ACEOF
2273 echo "$as_me:$LINENO: checking for size_t" >&5
2274 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2275 if test "${ac_cv_type_size_t+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 cat >conftest.$ac_ext <<_ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2284 $ac_includes_default
2290 if (sizeof (size_t))
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2300 grep -v '^ *+' conftest.er1 >conftest.err
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 ac_cv_type_size_t=yes
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2323 ac_cv_type_size_t=no
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2327 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2328 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2329 if test $ac_cv_type_size_t = yes; then
2333 cat >>confdefs.h <<_ACEOF
2334 #define size_t unsigned
2339 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2340 # for constant arguments. Useless!
2341 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2342 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2343 if test "${ac_cv_working_alloca_h+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 cat >conftest.$ac_ext <<_ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2356 char *p = (char *) alloca (2 * sizeof (int));
2361 rm -f conftest.$ac_objext conftest$ac_exeext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2363 (eval $ac_link) 2>conftest.er1
2365 grep -v '^ *+' conftest.er1 >conftest.err
2367 cat conftest.err >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try='test -z "$ac_c_werror_flag"
2371 || test ! -s conftest.err'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; } &&
2377 { ac_try='test -s conftest$ac_exeext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 ac_cv_working_alloca_h=yes
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 ac_cv_working_alloca_h=no
2390 rm -f conftest.err conftest.$ac_objext \
2391 conftest$ac_exeext conftest.$ac_ext
2393 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2394 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2395 if test $ac_cv_working_alloca_h = yes; then
2397 cat >>confdefs.h <<\_ACEOF
2398 #define HAVE_ALLOCA_H 1
2403 echo "$as_me:$LINENO: checking for alloca" >&5
2404 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2405 if test "${ac_cv_func_alloca_works+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 cat >conftest.$ac_ext <<_ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2415 # define alloca __builtin_alloca
2418 # include <malloc.h>
2419 # define alloca _alloca
2422 # include <alloca.h>
2427 # ifndef alloca /* predefined by HP cc +Olibcalls */
2438 char *p = (char *) alloca (1);
2443 rm -f conftest.$ac_objext conftest$ac_exeext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>conftest.er1
2447 grep -v '^ *+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest$ac_exeext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_func_alloca_works=yes
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2470 ac_cv_func_alloca_works=no
2472 rm -f conftest.err conftest.$ac_objext \
2473 conftest$ac_exeext conftest.$ac_ext
2475 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2476 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2478 if test $ac_cv_func_alloca_works = yes; then
2480 cat >>confdefs.h <<\_ACEOF
2481 #define HAVE_ALLOCA 1
2485 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2486 # that cause trouble. Some versions do not even contain alloca or
2487 # contain a buggy version. If you still want to use their alloca,
2488 # use ar to extract alloca.o from them instead of compiling alloca.c.
2490 ALLOCA=alloca.$ac_objext
2492 cat >>confdefs.h <<\_ACEOF
2497 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2498 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2499 if test "${ac_cv_os_cray+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2508 #if defined(CRAY) && ! defined(CRAY2)
2515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2516 $EGREP "webecray" >/dev/null 2>&1; then
2524 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2525 echo "${ECHO_T}$ac_cv_os_cray" >&6
2526 if test $ac_cv_os_cray = yes; then
2527 for ac_func in _getb67 GETB67 getb67; do
2528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2529 echo "$as_me:$LINENO: checking for $ac_func" >&5
2530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2531 if eval "test \"\${$as_ac_var+set}\" = set"; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 cat >conftest.$ac_ext <<_ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2542 #define $ac_func innocuous_$ac_func
2544 /* System header to define __stub macros and hopefully few prototypes,
2545 which can conflict with char $ac_func (); below.
2546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2547 <limits.h> exists even on freestanding compilers. */
2550 # include <limits.h>
2552 # include <assert.h>
2557 /* Override any gcc2 internal prototype to avoid an error. */
2562 /* We use char because int might match the return type of a gcc2
2563 builtin and then its argument prototype would still apply. */
2565 /* The GNU C library defines this for functions which it implements
2566 to always fail with ENOSYS. Some functions are actually named
2567 something starting with __ and the normal name is an alias. */
2568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2571 char (*f) () = $ac_func;
2580 return f != $ac_func;
2585 rm -f conftest.$ac_objext conftest$ac_exeext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2587 (eval $ac_link) 2>conftest.er1
2589 grep -v '^ *+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_c_werror_flag"
2595 || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest$ac_exeext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 eval "$as_ac_var=yes"
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2612 eval "$as_ac_var=no"
2614 rm -f conftest.err conftest.$ac_objext \
2615 conftest$ac_exeext conftest.$ac_ext
2617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2619 if test `eval echo '${'$as_ac_var'}'` = yes; then
2621 cat >>confdefs.h <<_ACEOF
2622 #define CRAY_STACKSEG_END $ac_func
2631 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2632 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2633 if test "${ac_cv_c_stack_direction+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if test "$cross_compiling" = yes; then
2637 ac_cv_c_stack_direction=0
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2646 find_stack_direction ()
2648 static char *addr = 0;
2653 return find_stack_direction ();
2656 return (&dummy > addr) ? 1 : -1;
2662 exit (find_stack_direction () < 0);
2665 rm -f conftest$ac_exeext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2667 (eval $ac_link) 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 ac_cv_c_stack_direction=1
2678 echo "$as_me: program exited with status $ac_status" >&5
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2683 ac_cv_c_stack_direction=-1
2685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2688 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2689 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2691 cat >>confdefs.h <<_ACEOF
2692 #define STACK_DIRECTION $ac_cv_c_stack_direction
2700 for ac_header in stdlib.h unistd.h
2702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2704 echo "$as_me:$LINENO: checking for $ac_header" >&5
2705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2712 # Is the header compilable?
2713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2721 $ac_includes_default
2722 #include <$ac_header>
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1 >conftest.err
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_header_compiler=yes
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2751 ac_header_compiler=no
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2755 echo "${ECHO_T}$ac_header_compiler" >&6
2757 # Is the header present?
2758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2766 #include <$ac_header>
2768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2771 grep -v '^ *+' conftest.er1 >conftest.err
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } >/dev/null; then
2776 if test -s conftest.err; then
2777 ac_cpp_err=$ac_c_preproc_warn_flag
2778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2785 if test -z "$ac_cpp_err"; then
2786 ac_header_preproc=yes
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 ac_header_preproc=no
2793 rm -f conftest.err conftest.$ac_ext
2794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2795 echo "${ECHO_T}$ac_header_preproc" >&6
2797 # So? What about this header?
2798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2804 ac_header_preproc=yes
2807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2821 ## ------------------------------------------ ##
2822 ## Report this to the AC_PACKAGE_NAME lists. ##
2823 ## ------------------------------------------ ##
2826 sed "s/^/$as_me: WARNING: /" >&2
2829 echo "$as_me:$LINENO: checking for $ac_header" >&5
2830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 eval "$as_ac_Header=\$ac_header_preproc"
2836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2841 cat >>confdefs.h <<_ACEOF
2842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2850 for ac_func in getpagesize
2852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2853 echo "$as_me:$LINENO: checking for $ac_func" >&5
2854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2855 if eval "test \"\${$as_ac_var+set}\" = set"; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2866 #define $ac_func innocuous_$ac_func
2868 /* System header to define __stub macros and hopefully few prototypes,
2869 which can conflict with char $ac_func (); below.
2870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871 <limits.h> exists even on freestanding compilers. */
2874 # include <limits.h>
2876 # include <assert.h>
2881 /* Override any gcc2 internal prototype to avoid an error. */
2886 /* We use char because int might match the return type of a gcc2
2887 builtin and then its argument prototype would still apply. */
2889 /* The GNU C library defines this for functions which it implements
2890 to always fail with ENOSYS. Some functions are actually named
2891 something starting with __ and the normal name is an alias. */
2892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2895 char (*f) () = $ac_func;
2904 return f != $ac_func;
2909 rm -f conftest.$ac_objext conftest$ac_exeext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911 (eval $ac_link) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1 >conftest.err
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -z "$ac_c_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 eval "$as_ac_var=yes"
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 eval "$as_ac_var=no"
2938 rm -f conftest.err conftest.$ac_objext \
2939 conftest$ac_exeext conftest.$ac_ext
2941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2943 if test `eval echo '${'$as_ac_var'}'` = yes; then
2944 cat >>confdefs.h <<_ACEOF
2945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2951 echo "$as_me:$LINENO: checking for working mmap" >&5
2952 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2953 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test "$cross_compiling" = yes; then
2957 ac_cv_func_mmap_fixed_mapped=no
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965 $ac_includes_default
2966 /* malloc might have been renamed as rpl_malloc. */
2969 /* Thanks to Mike Haertel and Jim Avera for this test.
2970 Here is a matrix of mmap possibilities:
2971 mmap private not fixed
2972 mmap private fixed at somewhere currently unmapped
2973 mmap private fixed at somewhere already mapped
2974 mmap shared not fixed
2975 mmap shared fixed at somewhere currently unmapped
2976 mmap shared fixed at somewhere already mapped
2977 For private mappings, we should verify that changes cannot be read()
2978 back from the file, nor mmap's back from the file at a different
2979 address. (There have been systems where private was not correctly
2980 implemented like the infamous i386 svr4.0, and systems where the
2981 VM page cache was not coherent with the file system buffer cache
2982 like early versions of FreeBSD and possibly contemporary NetBSD.)
2983 For shared mappings, we should conversely verify that changes get
2984 propagated back to all the places they're supposed to be.
2986 Grep wants private fixed already mapped.
2987 The main things grep needs to know about mmap are:
2988 * does it exist and is it safe to write into the mmap'd area
2989 * how to use it (BSD variants) */
2992 #include <sys/mman.h>
2994 #if !STDC_HEADERS && !HAVE_STDLIB_H
2998 /* This mess was copied from the GNU getpagesize.h. */
2999 #if !HAVE_GETPAGESIZE
3000 /* Assume that all systems that can run configure have sys/param.h. */
3001 # if !HAVE_SYS_PARAM_H
3002 # define HAVE_SYS_PARAM_H 1
3005 # ifdef _SC_PAGESIZE
3006 # define getpagesize() sysconf(_SC_PAGESIZE)
3007 # else /* no _SC_PAGESIZE */
3008 # if HAVE_SYS_PARAM_H
3009 # include <sys/param.h>
3010 # ifdef EXEC_PAGESIZE
3011 # define getpagesize() EXEC_PAGESIZE
3012 # else /* no EXEC_PAGESIZE */
3014 # define getpagesize() NBPG * CLSIZE
3017 # endif /* no CLSIZE */
3018 # else /* no NBPG */
3020 # define getpagesize() NBPC
3021 # else /* no NBPC */
3023 # define getpagesize() PAGESIZE
3024 # endif /* PAGESIZE */
3025 # endif /* no NBPC */
3026 # endif /* no NBPG */
3027 # endif /* no EXEC_PAGESIZE */
3028 # else /* no HAVE_SYS_PARAM_H */
3029 # define getpagesize() 8192 /* punt totally */
3030 # endif /* no HAVE_SYS_PARAM_H */
3031 # endif /* no _SC_PAGESIZE */
3033 #endif /* no HAVE_GETPAGESIZE */
3038 char *data, *data2, *data3;
3042 pagesize = getpagesize ();
3044 /* First, make a file with some known garbage in it. */
3045 data = (char *) malloc (pagesize);
3048 for (i = 0; i < pagesize; ++i)
3049 *(data + i) = rand ();
3051 fd = creat ("conftest.mmap", 0600);
3054 if (write (fd, data, pagesize) != pagesize)
3058 /* Next, try to mmap the file at a fixed address which already has
3059 something else allocated at it. If we can, also make sure that
3060 we see the same garbage. */
3061 fd = open ("conftest.mmap", O_RDWR);
3064 data2 = (char *) malloc (2 * pagesize);
3067 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3068 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3069 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3071 for (i = 0; i < pagesize; ++i)
3072 if (*(data + i) != *(data2 + i))
3075 /* Finally, make sure that changes to the mapped area do not
3076 percolate back to the file as seen by read(). (This is a bug on
3077 some variants of i386 svr4.0.) */
3078 for (i = 0; i < pagesize; ++i)
3079 *(data2 + i) = *(data2 + i) + 1;
3080 data3 = (char *) malloc (pagesize);
3083 if (read (fd, data3, pagesize) != pagesize)
3085 for (i = 0; i < pagesize; ++i)
3086 if (*(data + i) != *(data3 + i))
3092 rm -f conftest$ac_exeext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094 (eval $ac_link) 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 ac_cv_func_mmap_fixed_mapped=yes
3105 echo "$as_me: program exited with status $ac_status" >&5
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3110 ac_cv_func_mmap_fixed_mapped=no
3112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3115 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3116 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3117 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3119 cat >>confdefs.h <<\_ACEOF
3127 # autoconf.info says this should be called right after AC_INIT.
3128 ac_config_headers="$ac_config_headers config.h:config.in"
3132 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
3133 if test -f $ac_dir/install-sh; then
3135 ac_install_sh="$ac_aux_dir/install-sh -c"
3137 elif test -f $ac_dir/install.sh; then
3139 ac_install_sh="$ac_aux_dir/install.sh -c"
3141 elif test -f $ac_dir/shtool; then
3143 ac_install_sh="$ac_aux_dir/shtool install -c"
3147 if test -z "$ac_aux_dir"; then
3148 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5
3149 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;}
3150 { (exit 1); exit 1; }; }
3152 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3153 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3154 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3156 echo "$as_me:$LINENO: checking target system type" >&5
3157 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3158 if test "${ac_cv_target+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 ac_cv_target_alias=$target_alias
3162 test "x$ac_cv_target_alias" = "x" &&
3163 ac_cv_target_alias=$ac_cv_host_alias
3164 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3165 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3166 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3167 { (exit 1); exit 1; }; }
3170 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3171 echo "${ECHO_T}$ac_cv_target" >&6
3172 target=$ac_cv_target
3173 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3174 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3175 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3178 # The aliases save the names the user supplied, while $host etc.
3179 # will get canonicalized.
3180 test -n "$target_alias" &&
3181 test "$program_prefix$program_suffix$program_transform_name" = \
3183 program_prefix=${target_alias}-
3184 test "$program_prefix" != NONE &&
3185 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3186 # Use a double $ so make ignores it.
3187 test "$program_suffix" != NONE &&
3188 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3189 # Double any \ or $. echo might interpret backslashes.
3190 # By default was `s,x,x', remove it if useless.
3191 cat <<\_ACEOF >conftest.sed
3192 s/[\\$]/&&/g;s/;s,x,x,$//
3194 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3205 echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_CC+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 if test -n "$CC"; then
3231 echo "$as_me:$LINENO: result: $CC" >&5
3232 echo "${ECHO_T}$CC" >&6
3234 echo "$as_me:$LINENO: result: no" >&5
3235 echo "${ECHO_T}no" >&6
3239 if test -z "$ac_cv_prog_CC"; then
3241 # Extract the first word of "gcc", so it can be a program name with args.
3242 set dummy gcc; ac_word=$2
3243 echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_ac_ct_CC="gcc"
3259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268 if test -n "$ac_ct_CC"; then
3269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3270 echo "${ECHO_T}$ac_ct_CC" >&6
3272 echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}cc; ac_word=$2
3285 echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300 ac_cv_prog_CC="${ac_tool_prefix}cc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 if test -n "$CC"; then
3311 echo "$as_me:$LINENO: result: $CC" >&5
3312 echo "${ECHO_T}$CC" >&6
3314 echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6
3319 if test -z "$ac_cv_prog_CC"; then
3321 # Extract the first word of "cc", so it can be a program name with args.
3322 set dummy cc; ac_word=$2
3323 echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_ac_ct_CC="cc"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348 if test -n "$ac_ct_CC"; then
3349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3350 echo "${ECHO_T}$ac_ct_CC" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3362 if test -z "$CC"; then
3363 # Extract the first word of "cc", so it can be a program name with args.
3364 set dummy cc; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_prog_CC+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3382 ac_prog_rejected=yes
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test $ac_prog_rejected = yes; then
3393 # We found a bogon in the path, so make sure we never use it.
3394 set dummy $ac_cv_prog_CC
3396 if test $# != 0; then
3397 # We chose a different compiler from the bogus one.
3398 # However, it has the same basename, so the bogon will be chosen
3399 # first if we set CC to just the basename; use the full file name.
3401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3407 if test -n "$CC"; then
3408 echo "$as_me:$LINENO: result: $CC" >&5
3409 echo "${ECHO_T}$CC" >&6
3411 echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3416 if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_prog_CC+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 if test -n "$CC"; then
3448 echo "$as_me:$LINENO: result: $CC" >&5
3449 echo "${ECHO_T}$CC" >&6
3451 echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3455 test -n "$CC" && break
3458 if test -z "$CC"; then
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463 set dummy $ac_prog; ac_word=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_ac_ct_CC="$ac_prog"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3489 if test -n "$ac_ct_CC"; then
3490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3491 echo "${ECHO_T}$ac_ct_CC" >&6
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3497 test -n "$ac_ct_CC" && break
3506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3507 See \`config.log' for more details." >&5
3508 echo "$as_me: error: no acceptable C compiler found in \$PATH
3509 See \`config.log' for more details." >&2;}
3510 { (exit 1); exit 1; }; }
3512 # Provide some information about the compiler.
3513 echo "$as_me:$LINENO:" \
3514 "checking for C compiler version" >&5
3515 ac_compiler=`set X $ac_compile; echo $2`
3516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3517 (eval $ac_compiler --version </dev/null >&5) 2>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }
3521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3522 (eval $ac_compiler -v </dev/null >&5) 2>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3527 (eval $ac_compiler -V </dev/null >&5) 2>&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3547 ac_clean_files_save=$ac_clean_files
3548 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3549 # Try to create an executable without -o first, disregard a.out.
3550 # It will help us diagnose broken compilers, and finding out an intuition
3552 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3553 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3554 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3555 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3556 (eval $ac_link_default) 2>&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; then
3560 # Find the output, starting from the most likely. This scheme is
3561 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3564 # Be careful to initialize this variable, since it used to be cached.
3565 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3567 # b.out is created by i960 compilers.
3568 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3570 test -f "$ac_file" || continue
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3575 # This is the source file.
3578 # We found the default executable, but exeext='' is most
3582 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583 # FIXME: I believe we export ac_cv_exeext for Libtool,
3584 # but it would be cool to find out if it's true. Does anybody
3585 # maintain Libtool? --akim.
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3597 See \`config.log' for more details." >&5
3598 echo "$as_me: error: C compiler cannot create executables
3599 See \`config.log' for more details." >&2;}
3600 { (exit 77); exit 77; }; }
3603 ac_exeext=$ac_cv_exeext
3604 echo "$as_me:$LINENO: result: $ac_file" >&5
3605 echo "${ECHO_T}$ac_file" >&6
3607 # Check the compiler produces executables we can run. If not, either
3608 # the compiler is broken, or we cross compile.
3609 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3610 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3611 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3612 # If not cross compiling, check that we can run a simple program.
3613 if test "$cross_compiling" != yes; then
3614 if { ac_try='./$ac_file'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3622 if test "$cross_compiling" = maybe; then
3625 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3626 If you meant to cross compile, use \`--host'.
3627 See \`config.log' for more details." >&5
3628 echo "$as_me: error: cannot run C compiled programs.
3629 If you meant to cross compile, use \`--host'.
3630 See \`config.log' for more details." >&2;}
3631 { (exit 1); exit 1; }; }
3635 echo "$as_me:$LINENO: result: yes" >&5
3636 echo "${ECHO_T}yes" >&6
3638 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3639 ac_clean_files=$ac_clean_files_save
3640 # Check the compiler produces executables we can run. If not, either
3641 # the compiler is broken, or we cross compile.
3642 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3643 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3644 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3645 echo "${ECHO_T}$cross_compiling" >&6
3647 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3648 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650 (eval $ac_link) 2>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; then
3654 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3655 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3656 # work properly (i.e., refer to `conftest.exe'), while it won't with
3658 for ac_file in conftest.exe conftest conftest.*; do
3659 test -f "$ac_file" || continue
3661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3662 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3670 See \`config.log' for more details." >&5
3671 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3672 See \`config.log' for more details." >&2;}
3673 { (exit 1); exit 1; }; }
3676 rm -f conftest$ac_cv_exeext
3677 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3678 echo "${ECHO_T}$ac_cv_exeext" >&6
3680 rm -f conftest.$ac_ext
3681 EXEEXT=$ac_cv_exeext
3683 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3684 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3685 if test "${ac_cv_objext+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 cat >conftest.$ac_ext <<_ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3703 rm -f conftest.o conftest.obj
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; then
3709 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3712 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3721 See \`config.log' for more details." >&5
3722 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3723 See \`config.log' for more details." >&2;}
3724 { (exit 1); exit 1; }; }
3727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3729 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3730 echo "${ECHO_T}$ac_cv_objext" >&6
3731 OBJEXT=$ac_cv_objext
3733 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 cat >conftest.$ac_ext <<_ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3756 rm -f conftest.$ac_objext
3757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758 (eval $ac_compile) 2>conftest.er1
3760 grep -v '^ *+' conftest.er1 >conftest.err
3762 cat conftest.err >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try='test -z "$ac_c_werror_flag"
3766 || test ! -s conftest.err'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; } &&
3772 { ac_try='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3790 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3791 GCC=`test $ac_compiler_gnu = yes && echo yes`
3792 ac_test_CFLAGS=${CFLAGS+set}
3793 ac_save_CFLAGS=$CFLAGS
3795 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3797 if test "${ac_cv_prog_cc_g+set}" = set; then
3798 echo $ECHO_N "(cached) $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. */
3815 rm -f conftest.$ac_objext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>conftest.er1
3819 grep -v '^ *+' conftest.er1 >conftest.err
3821 cat conftest.err >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try='test -z "$ac_c_werror_flag"
3825 || test ! -s conftest.err'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; } &&
3831 { ac_try='test -s conftest.$ac_objext'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3848 if test "$ac_test_CFLAGS" = set; then
3849 CFLAGS=$ac_save_CFLAGS
3850 elif test $ac_cv_prog_cc_g = yes; then
3851 if test "$GCC" = yes; then
3857 if test "$GCC" = yes; then
3863 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3864 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3865 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_cv_prog_cc_stdc=no
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3878 #include <sys/types.h>
3879 #include <sys/stat.h>
3880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3881 struct buf { int x; };
3882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883 static char *e (p, i)
3889 static char *f (char * (*g) (char **, int), char **p, ...)
3894 s = g (p, va_arg (v,int));
3899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3900 function prototypes and stuff, but not '\xHH' hex character constants.
3901 These don't provoke an error unfortunately, instead are silently treated
3902 as 'x'. The following induces an error, until -std1 is added to get
3903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3904 array size at least. It's necessary to write '\x00'==0 to get something
3905 that's true only with -std1. */
3906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3908 int test (int i, double x);
3909 struct s1 {int (*f) (int a);};
3910 struct s2 {int (*f) (double a);};
3911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3922 # Don't try gcc -ansi; that turns off useful extensions and
3923 # breaks some systems' header files.
3924 # AIX -qlanglvl=ansi
3925 # Ultrix and OSF/1 -std1
3926 # HP-UX 10.20 and later -Ae
3927 # HP-UX older versions -Aa -D_HPUX_SOURCE
3928 # SVR4 -Xc -D__EXTENSIONS__
3929 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3931 CC="$ac_save_CC $ac_arg"
3932 rm -f conftest.$ac_objext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_cv_prog_cc_stdc=$ac_arg
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3961 rm -f conftest.err conftest.$ac_objext
3963 rm -f conftest.$ac_ext conftest.$ac_objext
3968 case "x$ac_cv_prog_cc_stdc" in
3970 echo "$as_me:$LINENO: result: none needed" >&5
3971 echo "${ECHO_T}none needed" >&6 ;;
3973 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3974 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3975 CC="$CC $ac_cv_prog_cc_stdc" ;;
3978 # Some people use a C++ compiler to compile C. Since we use `exit',
3979 # in C++ we need to declare it. In case someone uses the same compiler
3980 # for both compiling C and C++ we need to have the C++ compiler decide
3981 # the declaration of exit, since it's the most demanding environment.
3982 cat >conftest.$ac_ext <<_ACEOF
3987 rm -f conftest.$ac_objext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>conftest.er1
3991 grep -v '^ *+' conftest.er1 >conftest.err
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -z "$ac_c_werror_flag"
3997 || test ! -s conftest.err'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; } &&
4003 { ac_try='test -s conftest.$ac_objext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 for ac_declaration in \
4011 'extern "C" void std::exit (int) throw (); using std::exit;' \
4012 'extern "C" void std::exit (int); using std::exit;' \
4013 'extern "C" void exit (int) throw ();' \
4014 'extern "C" void exit (int);' \
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag"
4088 || test ! -s conftest.err'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4109 if test -n "$ac_declaration"; then
4110 echo '#ifdef __cplusplus' >>confdefs.h
4111 echo $ac_declaration >>confdefs.h
4112 echo '#endif' >>confdefs.h
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 # Find a good install program. We prefer a C program (faster),
4128 # so one script is as good as another. But avoid the broken or
4129 # incompatible versions:
4130 # SysV /etc/install, /usr/sbin/install
4131 # SunOS /usr/etc/install
4132 # IRIX /sbin/install
4134 # AmigaOS /C/install, which installs bootblocks on floppy discs
4135 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4138 # OS/2's system install, which has a completely different semantic
4139 # ./install, which can be erroneously created by make from ./install.sh.
4140 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4141 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4142 if test -z "$INSTALL"; then
4143 if test "${ac_cv_path_install+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 # Account for people who put trailing slashes in PATH elements.
4153 ./ | .// | /cC/* | \
4154 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4155 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4158 # OSF1 and SCO ODT 3.0 have their own names for install.
4159 # Don't use installbsd from OSF since it installs stuff as root
4161 for ac_prog in ginstall scoinst install; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4164 if test $ac_prog = install &&
4165 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4166 # AIX install. It has an incompatible calling convention.
4168 elif test $ac_prog = install &&
4169 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4170 # program-specific install script used by HP pwplus--don't use.
4173 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4185 if test "${ac_cv_path_install+set}" = set; then
4186 INSTALL=$ac_cv_path_install
4188 # As a last resort, use the slow shell script. We don't cache a
4189 # path for INSTALL within a source directory, because that will
4190 # break other packages using the cache if that directory is
4191 # removed, or if the path is relative.
4192 INSTALL=$ac_install_sh
4195 echo "$as_me:$LINENO: result: $INSTALL" >&5
4196 echo "${ECHO_T}$INSTALL" >&6
4198 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4199 # It thinks the first close brace ends the variable substitution.
4200 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4202 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4204 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4207 # Put a plausible default for CC_FOR_BUILD in Makefile.
4208 if test "x$cross_compiling" = "xno"; then
4209 CC_FOR_BUILD='$(CC)'
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4222 echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_RANLIB+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -n "$RANLIB"; then
4228 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 RANLIB=$ac_cv_prog_RANLIB
4247 if test -n "$RANLIB"; then
4248 echo "$as_me:$LINENO: result: $RANLIB" >&5
4249 echo "${ECHO_T}$RANLIB" >&6
4251 echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4256 if test -z "$ac_cv_prog_RANLIB"; then
4257 ac_ct_RANLIB=$RANLIB
4258 # Extract the first word of "ranlib", so it can be a program name with args.
4259 set dummy ranlib; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$ac_ct_RANLIB"; then
4266 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_ac_ct_RANLIB="ranlib"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4285 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4286 if test -n "$ac_ct_RANLIB"; then
4287 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4288 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4290 echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4294 RANLIB=$ac_ct_RANLIB
4296 RANLIB="$ac_cv_prog_RANLIB"
4311 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4312 unistd.h values.h sys/param.h
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4316 echo "$as_me:$LINENO: checking for $ac_header" >&5
4317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4324 # Is the header compilable?
4325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4334 #include <$ac_header>
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_header_compiler=yes
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_header_compiler=no
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4367 echo "${ECHO_T}$ac_header_compiler" >&6
4369 # Is the header present?
4370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <$ac_header>
4380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4383 grep -v '^ *+' conftest.er1 >conftest.err
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev/null; then
4388 if test -s conftest.err; then
4389 ac_cpp_err=$ac_c_preproc_warn_flag
4390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4397 if test -z "$ac_cpp_err"; then
4398 ac_header_preproc=yes
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 ac_header_preproc=no
4405 rm -f conftest.err conftest.$ac_ext
4406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4407 echo "${ECHO_T}$ac_header_preproc" >&6
4409 # So? What about this header?
4410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4416 ac_header_preproc=yes
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4433 ## ------------------------------------------ ##
4434 ## Report this to the AC_PACKAGE_NAME lists. ##
4435 ## ------------------------------------------ ##
4438 sed "s/^/$as_me: WARNING: /" >&2
4441 echo "$as_me:$LINENO: checking for $ac_header" >&5
4442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 eval "$as_ac_Header=\$ac_header_preproc"
4448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4453 cat >>confdefs.h <<_ACEOF
4454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4471 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4472 __argz_count __argz_stringify __argz_next
4474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4475 echo "$as_me:$LINENO: checking for $ac_func" >&5
4476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4477 if eval "test \"\${$as_ac_var+set}\" = set"; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4488 #define $ac_func innocuous_$ac_func
4490 /* System header to define __stub macros and hopefully few prototypes,
4491 which can conflict with char $ac_func (); below.
4492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4493 <limits.h> exists even on freestanding compilers. */
4496 # include <limits.h>
4498 # include <assert.h>
4503 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4511 /* The GNU C library defines this for functions which it implements
4512 to always fail with ENOSYS. Some functions are actually named
4513 something starting with __ and the normal name is an alias. */
4514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4517 char (*f) () = $ac_func;
4526 return f != $ac_func;
4531 rm -f conftest.$ac_objext conftest$ac_exeext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4533 (eval $ac_link) 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest$ac_exeext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_var=yes"
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 eval "$as_ac_var=no"
4560 rm -f conftest.err conftest.$ac_objext \
4561 conftest$ac_exeext conftest.$ac_ext
4563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4565 if test `eval echo '${'$as_ac_var'}'` = yes; then
4566 cat >>confdefs.h <<_ACEOF
4567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4574 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4576 for ac_func in stpcpy
4578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4579 echo "$as_me:$LINENO: checking for $ac_func" >&5
4580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4581 if eval "test \"\${$as_ac_var+set}\" = set"; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 cat >conftest.$ac_ext <<_ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4592 #define $ac_func innocuous_$ac_func
4594 /* System header to define __stub macros and hopefully few prototypes,
4595 which can conflict with char $ac_func (); below.
4596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 <limits.h> exists even on freestanding compilers. */
4600 # include <limits.h>
4602 # include <assert.h>
4607 /* Override any gcc2 internal prototype to avoid an error. */
4612 /* We use char because int might match the return type of a gcc2
4613 builtin and then its argument prototype would still apply. */
4615 /* The GNU C library defines this for functions which it implements
4616 to always fail with ENOSYS. Some functions are actually named
4617 something starting with __ and the normal name is an alias. */
4618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4621 char (*f) () = $ac_func;
4630 return f != $ac_func;
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637 (eval $ac_link) 2>conftest.er1
4639 grep -v '^ *+' conftest.er1 >conftest.err
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest$ac_exeext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 eval "$as_ac_var=yes"
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 eval "$as_ac_var=no"
4664 rm -f conftest.err conftest.$ac_objext \
4665 conftest$ac_exeext conftest.$ac_ext
4667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4669 if test `eval echo '${'$as_ac_var'}'` = yes; then
4670 cat >>confdefs.h <<_ACEOF
4671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4678 if test "${ac_cv_func_stpcpy}" = "yes"; then
4679 cat >>confdefs.h <<\_ACEOF
4680 #define HAVE_STPCPY 1
4685 if test $ac_cv_header_locale_h = yes; then
4686 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4687 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4688 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 cat >conftest.$ac_ext <<_ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708 (eval $ac_link) 2>conftest.er1
4710 grep -v '^ *+' conftest.er1 >conftest.err
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag"
4716 || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest$ac_exeext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 am_cv_val_LC_MESSAGES=yes
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 am_cv_val_LC_MESSAGES=no
4735 rm -f conftest.err conftest.$ac_objext \
4736 conftest$ac_exeext conftest.$ac_ext
4738 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4739 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4740 if test $am_cv_val_LC_MESSAGES = yes; then
4741 cat >>confdefs.h <<\_ACEOF
4742 #define HAVE_LC_MESSAGES 1
4747 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4748 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4749 # Check whether --enable-nls or --disable-nls was given.
4750 if test "${enable_nls+set}" = set; then
4751 enableval="$enable_nls"
4756 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4757 echo "${ECHO_T}$USE_NLS" >&6
4760 USE_INCLUDED_LIBINTL=no
4762 if test "$USE_NLS" = "yes"; then
4763 cat >>confdefs.h <<\_ACEOF
4764 #define ENABLE_NLS 1
4767 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4768 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4770 # Check whether --with-included-gettext or --without-included-gettext was given.
4771 if test "${with_included_gettext+set}" = set; then
4772 withval="$with_included_gettext"
4773 nls_cv_force_use_gnu_gettext=$withval
4775 nls_cv_force_use_gnu_gettext=no
4777 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4778 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4780 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4781 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4783 nls_cv_header_libgt=
4786 if test "${ac_cv_header_libintl_h+set}" = set; then
4787 echo "$as_me:$LINENO: checking for libintl.h" >&5
4788 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4789 if test "${ac_cv_header_libintl_h+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4793 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4795 # Is the header compilable?
4796 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4797 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 $ac_includes_default
4805 #include <libintl.h>
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_header_compiler=yes
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4834 ac_header_compiler=no
4836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4838 echo "${ECHO_T}$ac_header_compiler" >&6
4840 # Is the header present?
4841 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4842 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #include <libintl.h>
4851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4854 grep -v '^ *+' conftest.er1 >conftest.err
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } >/dev/null; then
4859 if test -s conftest.err; then
4860 ac_cpp_err=$ac_c_preproc_warn_flag
4861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4868 if test -z "$ac_cpp_err"; then
4869 ac_header_preproc=yes
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 ac_header_preproc=no
4876 rm -f conftest.err conftest.$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4878 echo "${ECHO_T}$ac_header_preproc" >&6
4880 # So? What about this header?
4881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4883 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4884 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4886 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4887 ac_header_preproc=yes
4890 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4891 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4893 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4895 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4897 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4899 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4900 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4901 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4904 ## ------------------------------------------ ##
4905 ## Report this to the AC_PACKAGE_NAME lists. ##
4906 ## ------------------------------------------ ##
4909 sed "s/^/$as_me: WARNING: /" >&2
4912 echo "$as_me:$LINENO: checking for libintl.h" >&5
4913 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4914 if test "${ac_cv_header_libintl_h+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 ac_cv_header_libintl_h=$ac_header_preproc
4919 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4920 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4923 if test $ac_cv_header_libintl_h = yes; then
4924 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4925 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4926 if test "${gt_cv_func_gettext_libc+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 cat >conftest.$ac_ext <<_ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 #include <libintl.h>
4939 return (int) gettext ("")
4944 rm -f conftest.$ac_objext conftest$ac_exeext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>conftest.er1
4948 grep -v '^ *+' conftest.er1 >conftest.err
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -z "$ac_c_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try='test -s conftest$ac_exeext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 gt_cv_func_gettext_libc=yes
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 gt_cv_func_gettext_libc=no
4973 rm -f conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4976 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4977 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4979 if test "$gt_cv_func_gettext_libc" != "yes"; then
4980 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4981 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4982 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_check_lib_save_LIBS=$LIBS
4987 cat >conftest.$ac_ext <<_ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4994 /* Override any gcc2 internal prototype to avoid an error. */
4998 /* We use char because int might match the return type of a gcc2
4999 builtin and then its argument prototype would still apply. */
5000 char bindtextdomain ();
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>conftest.er1
5013 grep -v '^ *+' conftest.er1 >conftest.err
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest$ac_exeext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_lib_intl_bindtextdomain=yes
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_cv_lib_intl_bindtextdomain=no
5038 rm -f conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040 LIBS=$ac_check_lib_save_LIBS
5042 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5043 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5044 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5045 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5046 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5047 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 cat >conftest.$ac_ext <<_ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5060 return (int) gettext ("")
5065 rm -f conftest.$ac_objext conftest$ac_exeext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5067 (eval $ac_link) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest$ac_exeext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 gt_cv_func_gettext_libintl=yes
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 gt_cv_func_gettext_libintl=no
5094 rm -f conftest.err conftest.$ac_objext \
5095 conftest$ac_exeext conftest.$ac_ext
5097 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5098 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5103 if test "$gt_cv_func_gettext_libc" = "yes" \
5104 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5105 cat >>confdefs.h <<\_ACEOF
5106 #define HAVE_GETTEXT 1
5109 # Extract the first word of "msgfmt", so it can be a program name with args.
5110 set dummy msgfmt; ac_word=$2
5111 echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113 if test "${ac_cv_path_MSGFMT+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5122 for ac_dir in $PATH; do
5123 test -z "$ac_dir" && ac_dir=.
5124 if test -f $ac_dir/$ac_word; then
5125 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5126 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5132 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5136 MSGFMT="$ac_cv_path_MSGFMT"
5137 if test -n "$MSGFMT"; then
5138 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5139 echo "${ECHO_T}$MSGFMT" >&6
5141 echo "$as_me:$LINENO: result: no" >&5
5142 echo "${ECHO_T}no" >&6
5144 if test "$MSGFMT" != "no"; then
5146 for ac_func in dcgettext
5148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5149 echo "$as_me:$LINENO: checking for $ac_func" >&5
5150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5151 if eval "test \"\${$as_ac_var+set}\" = set"; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 cat >conftest.$ac_ext <<_ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5162 #define $ac_func innocuous_$ac_func
5164 /* System header to define __stub macros and hopefully few prototypes,
5165 which can conflict with char $ac_func (); below.
5166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5167 <limits.h> exists even on freestanding compilers. */
5170 # include <limits.h>
5172 # include <assert.h>
5177 /* Override any gcc2 internal prototype to avoid an error. */
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5185 /* The GNU C library defines this for functions which it implements
5186 to always fail with ENOSYS. Some functions are actually named
5187 something starting with __ and the normal name is an alias. */
5188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5191 char (*f) () = $ac_func;
5200 return f != $ac_func;
5205 rm -f conftest.$ac_objext conftest$ac_exeext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207 (eval $ac_link) 2>conftest.er1
5209 grep -v '^ *+' conftest.er1 >conftest.err
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -z "$ac_c_werror_flag"
5215 || test ! -s conftest.err'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; } &&
5221 { ac_try='test -s conftest$ac_exeext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 eval "$as_ac_var=yes"
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 eval "$as_ac_var=no"
5234 rm -f conftest.err conftest.$ac_objext \
5235 conftest$ac_exeext conftest.$ac_ext
5237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5239 if test `eval echo '${'$as_ac_var'}'` = yes; then
5240 cat >>confdefs.h <<_ACEOF
5241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5247 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5248 set dummy gmsgfmt; ac_word=$2
5249 echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5277 GMSGFMT=$ac_cv_path_GMSGFMT
5279 if test -n "$GMSGFMT"; then
5280 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5281 echo "${ECHO_T}$GMSGFMT" >&6
5283 echo "$as_me:$LINENO: result: no" >&5
5284 echo "${ECHO_T}no" >&6
5287 # Extract the first word of "xgettext", so it can be a program name with args.
5288 set dummy xgettext; ac_word=$2
5289 echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5291 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5300 for ac_dir in $PATH; do
5301 test -z "$ac_dir" && ac_dir=.
5302 if test -f $ac_dir/$ac_word; then
5303 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5304 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5310 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5314 XGETTEXT="$ac_cv_path_XGETTEXT"
5315 if test -n "$XGETTEXT"; then
5316 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5317 echo "${ECHO_T}$XGETTEXT" >&6
5319 echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5333 extern int _nl_msg_cat_cntr;
5334 return _nl_msg_cat_cntr
5339 rm -f conftest.$ac_objext conftest$ac_exeext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5341 (eval $ac_link) 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_c_werror_flag"
5349 || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest$ac_exeext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5370 rm -f conftest.err conftest.$ac_objext \
5371 conftest$ac_exeext conftest.$ac_ext
5381 if test "$CATOBJEXT" = "NONE"; then
5382 nls_cv_use_gnu_gettext=yes
5386 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5387 INTLOBJS="\$(GETTOBJS)"
5388 # Extract the first word of "msgfmt", so it can be a program name with args.
5389 set dummy msgfmt; ac_word=$2
5390 echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392 if test "${ac_cv_path_MSGFMT+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5401 for ac_dir in $PATH; do
5402 test -z "$ac_dir" && ac_dir=.
5403 if test -f $ac_dir/$ac_word; then
5404 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5405 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5411 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5415 MSGFMT="$ac_cv_path_MSGFMT"
5416 if test -n "$MSGFMT"; then
5417 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5418 echo "${ECHO_T}$MSGFMT" >&6
5420 echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5424 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5425 set dummy gmsgfmt; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5454 GMSGFMT=$ac_cv_path_GMSGFMT
5456 if test -n "$GMSGFMT"; then
5457 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5458 echo "${ECHO_T}$GMSGFMT" >&6
5460 echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6
5464 # Extract the first word of "xgettext", so it can be a program name with args.
5465 set dummy xgettext; ac_word=$2
5466 echo "$as_me:$LINENO: checking for $ac_word" >&5
5467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5477 for ac_dir in $PATH; do
5478 test -z "$ac_dir" && ac_dir=.
5479 if test -f $ac_dir/$ac_word; then
5480 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5481 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5487 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5491 XGETTEXT="$ac_cv_path_XGETTEXT"
5492 if test -n "$XGETTEXT"; then
5493 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5494 echo "${ECHO_T}$XGETTEXT" >&6
5496 echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5501 USE_INCLUDED_LIBINTL=yes
5505 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5507 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5508 nls_cv_header_intl=libintl.h
5509 nls_cv_header_libgt=libgettext.h
5512 if test "$XGETTEXT" != ":"; then
5513 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5516 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5517 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5522 # We need to process the po/ directory.
5526 nls_cv_header_intl=libintl.h
5527 nls_cv_header_libgt=libgettext.h
5530 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5531 # because some of the sources are only built for this goal.
5532 if test "$PACKAGE" = gettext; then
5534 USE_INCLUDED_LIBINTL=yes
5537 for lang in $ALL_LINGUAS; do
5538 GMOFILES="$GMOFILES $lang.gmo"
5539 POFILES="$POFILES $lang.po"
5555 if test "x$CATOBJEXT" != "x"; then
5556 if test "x$ALL_LINGUAS" = "x"; then
5559 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5560 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5562 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5563 case "$ALL_LINGUAS" in
5564 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5567 LINGUAS=$NEW_LINGUAS
5568 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5569 echo "${ECHO_T}$LINGUAS" >&6
5572 if test -n "$LINGUAS"; then
5573 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5577 if test $ac_cv_header_locale_h = yes; then
5578 INCLUDE_LOCALE_H="#include <locale.h>"
5581 /* The system does not provide the header <locale.h>. Take care yourself. */"
5585 if test -f $srcdir/po2tbl.sed.in; then
5586 if test "$CATOBJEXT" = ".cat"; then
5587 if test "${ac_cv_header_linux_version_h+set}" = set; then
5588 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5589 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5590 if test "${ac_cv_header_linux_version_h+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5594 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5596 # Is the header compilable?
5597 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5598 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5599 cat >conftest.$ac_ext <<_ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 $ac_includes_default
5606 #include <linux/version.h>
5608 rm -f conftest.$ac_objext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>conftest.er1
5612 grep -v '^ *+' conftest.er1 >conftest.err
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -z "$ac_c_werror_flag"
5618 || test ! -s conftest.err'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; } &&
5624 { ac_try='test -s conftest.$ac_objext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_header_compiler=yes
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 ac_header_compiler=no
5637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5639 echo "${ECHO_T}$ac_header_compiler" >&6
5641 # Is the header present?
5642 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5643 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <linux/version.h>
5652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } >/dev/null; then
5660 if test -s conftest.err; then
5661 ac_cpp_err=$ac_c_preproc_warn_flag
5662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5669 if test -z "$ac_cpp_err"; then
5670 ac_header_preproc=yes
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 ac_header_preproc=no
5677 rm -f conftest.err conftest.$ac_ext
5678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5679 echo "${ECHO_T}$ac_header_preproc" >&6
5681 # So? What about this header?
5682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5684 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5685 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5686 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5687 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5688 ac_header_preproc=yes
5691 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5692 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5694 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5696 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5698 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5700 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5702 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5705 ## ------------------------------------------ ##
5706 ## Report this to the AC_PACKAGE_NAME lists. ##
5707 ## ------------------------------------------ ##
5710 sed "s/^/$as_me: WARNING: /" >&2
5713 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5714 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5715 if test "${ac_cv_header_linux_version_h+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 ac_cv_header_linux_version_h=$ac_header_preproc
5720 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5721 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5724 if test $ac_cv_header_linux_version_h = yes; then
5732 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5734 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5735 $srcdir/po2tbl.sed.in > po2tbl.sed
5738 if test "$PACKAGE" = "gettext"; then
5748 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5754 if test -d $srcdir/po; then
5755 test -d po || mkdir po
5756 if test "x$srcdir" != "x."; then
5757 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5758 posrcprefix="$srcdir/"
5760 posrcprefix="../$srcdir/"
5766 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5767 < $srcdir/po/POTFILES.in > po/POTFILES
5771 # Check for common headers.
5772 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5773 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5779 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783 echo "$as_me:$LINENO: checking for $ac_header" >&5
5784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5791 # Is the header compilable?
5792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5794 cat >conftest.$ac_ext <<_ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5801 #include <$ac_header>
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
5812 { ac_try='test -z "$ac_c_werror_flag"
5813 || test ! -s conftest.err'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest.$ac_objext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 ac_header_compiler=yes
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 ac_header_compiler=no
5832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5834 echo "${ECHO_T}$ac_header_compiler" >&6
5836 # Is the header present?
5837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <$ac_header>
5847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null; then
5855 if test -s conftest.err; then
5856 ac_cpp_err=$ac_c_preproc_warn_flag
5857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5864 if test -z "$ac_cpp_err"; then
5865 ac_header_preproc=yes
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 ac_header_preproc=no
5872 rm -f conftest.err conftest.$ac_ext
5873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5874 echo "${ECHO_T}$ac_header_preproc" >&6
5876 # So? What about this header?
5877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5883 ac_header_preproc=yes
5886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5900 ## ------------------------------------------ ##
5901 ## Report this to the AC_PACKAGE_NAME lists. ##
5902 ## ------------------------------------------ ##
5905 sed "s/^/$as_me: WARNING: /" >&2
5908 echo "$as_me:$LINENO: checking for $ac_header" >&5
5909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 eval "$as_ac_Header=\$ac_header_preproc"
5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5920 cat >>confdefs.h <<_ACEOF
5921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5930 for ac_header in sys/time.h sys/resource.h
5932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5934 echo "$as_me:$LINENO: checking for $ac_header" >&5
5935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5942 # Is the header compilable?
5943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5952 #include <$ac_header>
5954 rm -f conftest.$ac_objext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956 (eval $ac_compile) 2>conftest.er1
5958 grep -v '^ *+' conftest.er1 >conftest.err
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -z "$ac_c_werror_flag"
5964 || test ! -s conftest.err'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try='test -s conftest.$ac_objext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_header_compiler=yes
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_header_compiler=no
5983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5985 echo "${ECHO_T}$ac_header_compiler" >&6
5987 # Is the header present?
5988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #include <$ac_header>
5998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } >/dev/null; then
6006 if test -s conftest.err; then
6007 ac_cpp_err=$ac_c_preproc_warn_flag
6008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6015 if test -z "$ac_cpp_err"; then
6016 ac_header_preproc=yes
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ac_header_preproc=no
6023 rm -f conftest.err conftest.$ac_ext
6024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6025 echo "${ECHO_T}$ac_header_preproc" >&6
6027 # So? What about this header?
6028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6034 ac_header_preproc=yes
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6051 ## ------------------------------------------ ##
6052 ## Report this to the AC_PACKAGE_NAME lists. ##
6053 ## ------------------------------------------ ##
6056 sed "s/^/$as_me: WARNING: /" >&2
6059 echo "$as_me:$LINENO: checking for $ac_header" >&5
6060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 eval "$as_ac_Header=\$ac_header_preproc"
6066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6071 cat >>confdefs.h <<_ACEOF
6072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6081 for ac_header in fcntl.h fpu_control.h
6083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6085 echo "$as_me:$LINENO: checking for $ac_header" >&5
6086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6093 # Is the header compilable?
6094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6096 cat >conftest.$ac_ext <<_ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 $ac_includes_default
6103 #include <$ac_header>
6105 rm -f conftest.$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6109 grep -v '^ *+' conftest.er1 >conftest.err
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_header_compiler=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_header_compiler=no
6134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6136 echo "${ECHO_T}$ac_header_compiler" >&6
6138 # Is the header present?
6139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 #include <$ac_header>
6149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6152 grep -v '^ *+' conftest.er1 >conftest.err
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null; then
6157 if test -s conftest.err; then
6158 ac_cpp_err=$ac_c_preproc_warn_flag
6159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6166 if test -z "$ac_cpp_err"; then
6167 ac_header_preproc=yes
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_header_preproc=no
6174 rm -f conftest.err conftest.$ac_ext
6175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6176 echo "${ECHO_T}$ac_header_preproc" >&6
6178 # So? What about this header?
6179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6185 ac_header_preproc=yes
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6202 ## ------------------------------------------ ##
6203 ## Report this to the AC_PACKAGE_NAME lists. ##
6204 ## ------------------------------------------ ##
6207 sed "s/^/$as_me: WARNING: /" >&2
6210 echo "$as_me:$LINENO: checking for $ac_header" >&5
6211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 eval "$as_ac_Header=\$ac_header_preproc"
6217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6233 for ac_header in dlfcn.h errno.h sys/stat.h
6235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6237 echo "$as_me:$LINENO: checking for $ac_header" >&5
6238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6245 # Is the header compilable?
6246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6248 cat >conftest.$ac_ext <<_ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 $ac_includes_default
6255 #include <$ac_header>
6257 rm -f conftest.$ac_objext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6261 grep -v '^ *+' conftest.er1 >conftest.err
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 ac_header_compiler=yes
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 ac_header_compiler=no
6286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6288 echo "${ECHO_T}$ac_header_compiler" >&6
6290 # Is the header present?
6291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6293 cat >conftest.$ac_ext <<_ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <$ac_header>
6301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } >/dev/null; then
6309 if test -s conftest.err; then
6310 ac_cpp_err=$ac_c_preproc_warn_flag
6311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6318 if test -z "$ac_cpp_err"; then
6319 ac_header_preproc=yes
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 ac_header_preproc=no
6326 rm -f conftest.err conftest.$ac_ext
6327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6328 echo "${ECHO_T}$ac_header_preproc" >&6
6330 # So? What about this header?
6331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6337 ac_header_preproc=yes
6340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6354 ## ------------------------------------------ ##
6355 ## Report this to the AC_PACKAGE_NAME lists. ##
6356 ## ------------------------------------------ ##
6359 sed "s/^/$as_me: WARNING: /" >&2
6362 echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 eval "$as_ac_Header=\$ac_header_preproc"
6369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6374 cat >>confdefs.h <<_ACEOF
6375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6386 for ac_func in getrusage time sigaction __setfpucw
6388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6389 echo "$as_me:$LINENO: checking for $ac_func" >&5
6390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6391 if eval "test \"\${$as_ac_var+set}\" = set"; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6402 #define $ac_func innocuous_$ac_func
6404 /* System header to define __stub macros and hopefully few prototypes,
6405 which can conflict with char $ac_func (); below.
6406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6407 <limits.h> exists even on freestanding compilers. */
6410 # include <limits.h>
6412 # include <assert.h>
6417 /* Override any gcc2 internal prototype to avoid an error. */
6422 /* We use char because int might match the return type of a gcc2
6423 builtin and then its argument prototype would still apply. */
6425 /* The GNU C library defines this for functions which it implements
6426 to always fail with ENOSYS. Some functions are actually named
6427 something starting with __ and the normal name is an alias. */
6428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6431 char (*f) () = $ac_func;
6440 return f != $ac_func;
6445 rm -f conftest.$ac_objext conftest$ac_exeext
6446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6447 (eval $ac_link) 2>conftest.er1
6449 grep -v '^ *+' conftest.er1 >conftest.err
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -z "$ac_c_werror_flag"
6455 || test ! -s conftest.err'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest$ac_exeext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 eval "$as_ac_var=yes"
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 eval "$as_ac_var=no"
6474 rm -f conftest.err conftest.$ac_objext \
6475 conftest$ac_exeext conftest.$ac_ext
6477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6479 if test `eval echo '${'$as_ac_var'}'` = yes; then
6480 cat >>confdefs.h <<_ACEOF
6481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6488 # Check for socket libraries
6490 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6491 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6492 if test "${ac_cv_lib_socket_bind+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lsocket $LIBS"
6497 cat >conftest.$ac_ext <<_ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6504 /* Override any gcc2 internal prototype to avoid an error. */
6508 /* We use char because int might match the return type of a gcc2
6509 builtin and then its argument prototype would still apply. */
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>conftest.er1
6523 grep -v '^ *+' conftest.er1 >conftest.err
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest$ac_exeext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_lib_socket_bind=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_cv_lib_socket_bind=no
6548 rm -f conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550 LIBS=$ac_check_lib_save_LIBS
6552 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6553 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6554 if test $ac_cv_lib_socket_bind = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556 #define HAVE_LIBSOCKET 1
6559 LIBS="-lsocket $LIBS"
6564 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6565 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6566 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 ac_check_lib_save_LIBS=$LIBS
6571 cat >conftest.$ac_ext <<_ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6578 /* Override any gcc2 internal prototype to avoid an error. */
6582 /* We use char because int might match the return type of a gcc2
6583 builtin and then its argument prototype would still apply. */
6584 char gethostbyname ();
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest$ac_exeext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_cv_lib_nsl_gethostbyname=yes
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 ac_cv_lib_nsl_gethostbyname=no
6622 rm -f conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6624 LIBS=$ac_check_lib_save_LIBS
6626 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6627 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6628 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630 #define HAVE_LIBNSL 1
6638 . ${srcdir}/../../bfd/configure.host
6642 USE_MAINTAINER_MODE=no
6643 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6644 if test "${enable_maintainer_mode+set}" = set; then
6645 enableval="$enable_maintainer_mode"
6646 case "${enableval}" in
6647 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6649 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6650 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6651 { (exit 1); exit 1; }; }; MAINT="#" ;;
6653 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6654 echo "Setting maintainer mode" 6>&1
6661 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6662 if test "${enable_sim_bswap+set}" = set; then
6663 enableval="$enable_sim_bswap"
6664 case "${enableval}" in
6665 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6666 no) sim_bswap="-DWITH_BSWAP=0";;
6667 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6668 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6669 { (exit 1); exit 1; }; }; sim_bswap="";;
6671 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6672 echo "Setting bswap flags = $sim_bswap" 6>&1
6679 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6680 if test "${enable_sim_cflags+set}" = set; then
6681 enableval="$enable_sim_cflags"
6682 case "${enableval}" in
6683 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6684 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6685 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6686 { (exit 1); exit 1; }; }; sim_cflags="";;
6688 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6690 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6691 echo "Setting sim cflags = $sim_cflags" 6>&1
6698 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6699 if test "${enable_sim_debug+set}" = set; then
6700 enableval="$enable_sim_debug"
6701 case "${enableval}" in
6702 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6703 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6704 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6706 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6707 echo "Setting sim debug = $sim_debug" 6>&1
6714 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6715 if test "${enable_sim_stdio+set}" = set; then
6716 enableval="$enable_sim_stdio"
6717 case "${enableval}" in
6718 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6719 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6720 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6721 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6722 { (exit 1); exit 1; }; }; sim_stdio="";;
6724 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6725 echo "Setting stdio flags = $sim_stdio" 6>&1
6732 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6733 if test "${enable_sim_trace+set}" = set; then
6734 enableval="$enable_sim_trace"
6735 case "${enableval}" in
6736 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6737 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6739 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6742 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6743 if test x"$sim_trace" = x; then
6744 sim_trace="-DWITH_TRACE='(TRACE_$x"
6746 sim_trace="${sim_trace}|TRACE_$x"
6749 sim_trace="$sim_trace)'" ;;
6751 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6752 echo "Setting sim trace = $sim_trace" 6>&1
6759 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6760 if test "${enable_sim_profile+set}" = set; then
6761 enableval="$enable_sim_profile"
6762 case "${enableval}" in
6763 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6764 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6766 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6769 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6770 if test x"$sim_profile" = x; then
6771 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6773 sim_profile="${sim_profile}|PROFILE_$x"
6776 sim_profile="$sim_profile)'" ;;
6778 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6779 echo "Setting sim profile = $sim_profile" 6>&1
6782 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6786 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6787 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6788 if test "${ac_cv_type_signal+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 cat >conftest.$ac_ext <<_ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 #include <sys/types.h>
6803 extern "C" void (*signal (int, void (*)(int)))(int);
6805 void (*signal ()) ();
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6820 grep -v '^ *+' conftest.er1 >conftest.err
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 ac_cv_type_signal=void
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6843 ac_cv_type_signal=int
6845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6847 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6848 echo "${ECHO_T}$ac_cv_type_signal" >&6
6850 cat >>confdefs.h <<_ACEOF
6851 #define RETSIGTYPE $ac_cv_type_signal
6861 sim_link_links=tconfig.h
6862 if test -f ${srcdir}/tconfig.in
6864 sim_link_files=tconfig.in
6866 sim_link_files=../common/tconfig.in
6869 # targ-vals.def points to the libc macro description file.
6871 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6873 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6874 sim_link_links="${sim_link_links} targ-vals.def"
6879 default_sim_inline=""
6880 # Check whether --enable-sim-inline or --disable-sim-inline was given.
6881 if test "${enable_sim_inline+set}" = set; then
6882 enableval="$enable_sim_inline"
6884 case "$enableval" in
6885 no) sim_inline="-DDEFAULT_INLINE=0";;
6886 0) sim_inline="-DDEFAULT_INLINE=0";;
6887 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
6888 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
6889 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6892 *_INLINE=*) new_flag="-D$x";;
6893 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6894 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
6895 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
6897 if test x"$sim_inline" = x""; then
6898 sim_inline="$new_flag"
6900 sim_inline="$sim_inline $new_flag"
6904 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6905 echo "Setting inline flags = $sim_inline" 6>&1
6909 if test "x$cross_compiling" = "xno"; then
6910 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
6911 sim_inline="${default_sim_inline}"
6912 if test x"$silent" != x"yes"; then
6913 echo "Setting inline flags = $sim_inline" 6>&1
6919 sim_inline="-DDEFAULT_INLINE=0"
6922 wire_alignment="NONSTRICT_ALIGNMENT"
6923 default_alignment=""
6925 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6926 if test "${enable_sim_alignment+set}" = set; then
6927 enableval="$enable_sim_alignment"
6928 case "${enableval}" in
6929 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6930 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6931 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6932 yes) if test x"$wire_alignment" != x; then
6933 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6935 if test x"$default_alignment" != x; then
6936 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
6938 echo "No hard-wired alignment for target $target" 1>&6
6939 sim_alignment="-DWITH_ALIGNMENT=0"
6942 no) if test x"$default_alignment" != x; then
6943 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6945 if test x"$wire_alignment" != x; then
6946 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6948 echo "No default alignment for target $target" 1>&6
6949 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
6952 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6953 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6954 { (exit 1); exit 1; }; }; sim_alignment="";;
6956 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
6957 echo "Setting alignment flags = $sim_alignment" 6>&1
6960 if test x"$default_alignment" != x; then
6961 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6963 if test x"$wire_alignment" != x; then
6964 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6971 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6972 if test "${enable_sim_hostendian+set}" = set; then
6973 enableval="$enable_sim_hostendian"
6974 case "${enableval}" in
6975 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6976 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6977 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6978 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6979 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6980 { (exit 1); exit 1; }; }; sim_hostendian="";;
6982 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6983 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6987 if test "x$cross_compiling" = "xno"; then
6988 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6989 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6990 if test "${ac_cv_c_bigendian+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 # See if sys/param.h defines the BYTE_ORDER macro.
6994 cat >conftest.$ac_ext <<_ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 #include <sys/types.h>
7001 #include <sys/param.h>
7006 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7014 rm -f conftest.$ac_objext
7015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016 (eval $ac_compile) 2>conftest.er1
7018 grep -v '^ *+' conftest.er1 >conftest.err
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } &&
7023 { ac_try='test -z "$ac_c_werror_flag"
7024 || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest.$ac_objext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7036 # It does; now see whether it defined to BIG_ENDIAN or not.
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 #include <sys/types.h>
7044 #include <sys/param.h>
7049 #if BYTE_ORDER != BIG_ENDIAN
7057 rm -f conftest.$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_c_bigendian=yes
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7084 ac_cv_c_bigendian=no
7086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 # It does not; compile a test program.
7092 if test "$cross_compiling" = yes; then
7093 # try to guess the endianness by grepping values into an object file
7094 ac_cv_c_bigendian=unknown
7095 cat >conftest.$ac_ext <<_ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7102 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7103 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7104 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7105 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7106 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7110 _ascii (); _ebcdic ();
7115 rm -f conftest.$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7119 grep -v '^ *+' conftest.er1 >conftest.err
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7138 ac_cv_c_bigendian=yes
7140 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7141 if test "$ac_cv_c_bigendian" = unknown; then
7142 ac_cv_c_bigendian=no
7144 # finding both strings is unlikely to happen, but who knows?
7145 ac_cv_c_bigendian=unknown
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7164 /* Are we little or big endian? From Harbison&Steele. */
7168 char c[sizeof (long)];
7171 exit (u.c[sizeof (long) - 1] == 1);
7174 rm -f conftest$ac_exeext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176 (eval $ac_link) 2>&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7185 ac_cv_c_bigendian=no
7187 echo "$as_me: program exited with status $ac_status" >&5
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7192 ac_cv_c_bigendian=yes
7194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7199 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7200 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7201 case $ac_cv_c_bigendian in
7204 cat >>confdefs.h <<\_ACEOF
7205 #define WORDS_BIGENDIAN 1
7211 { { echo "$as_me:$LINENO: error: unknown endianness
7212 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7213 echo "$as_me: error: unknown endianness
7214 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7215 { (exit 1); exit 1; }; } ;;
7218 if test $ac_cv_c_bigendian = yes; then
7219 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7221 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7224 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7228 # NOTE: Don't add -Wall or -Wunused, they both include
7229 # -Wunused-parameter which reports bogus warnings.
7230 # NOTE: If you add to this list, remember to update
7231 # gdb/doc/gdbint.texinfo.
7232 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7233 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7234 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7235 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7236 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7237 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7238 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7239 # -Woverloaded-virtual -Winline -Werror"
7240 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7241 if test "${enable_build_warnings+set}" = set; then
7242 enableval="$enable_build_warnings"
7243 case "${enableval}" in
7245 no) build_warnings="-w";;
7246 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7247 build_warnings="${build_warnings} ${t}";;
7248 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7249 build_warnings="${t} ${build_warnings}";;
7250 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7252 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7253 echo "Setting compiler warning flags = $build_warnings" 6>&1
7255 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7256 if test "${enable_sim_build_warnings+set}" = set; then
7257 enableval="$enable_sim_build_warnings"
7258 case "${enableval}" in
7260 no) build_warnings="-w";;
7261 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7262 build_warnings="${build_warnings} ${t}";;
7263 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7264 build_warnings="${t} ${build_warnings}";;
7265 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7267 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7268 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7272 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7274 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7275 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7276 # Separate out the -Werror flag as some files just cannot be
7277 # compiled with it enabled.
7278 for w in ${build_warnings}; do
7280 -Werr*) WERROR_CFLAGS=-Werror ;;
7281 *) # Check that GCC accepts it
7282 saved_CFLAGS="$CFLAGS"
7284 cat >conftest.$ac_ext <<_ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7299 rm -f conftest.$ac_objext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7301 (eval $ac_compile) 2>conftest.er1
7303 grep -v '^ *+' conftest.er1 >conftest.err
7305 cat conftest.err >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } &&
7308 { ac_try='test -z "$ac_c_werror_flag"
7309 || test ! -s conftest.err'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; } &&
7315 { ac_try='test -s conftest.$ac_objext'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 WARN_CFLAGS="${WARN_CFLAGS} $w"
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328 CFLAGS="$saved_CFLAGS"
7331 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7332 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7336 default_sim_reserved_bits="1"
7337 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7338 if test "${enable_sim_reserved_bits+set}" = set; then
7339 enableval="$enable_sim_reserved_bits"
7340 case "${enableval}" in
7341 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
7342 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
7343 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7344 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7345 { (exit 1); exit 1; }; }; sim_reserved_bits="";;
7347 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
7348 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7351 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7356 # Instead of defining a `subtarget' macro, code should be checking
7357 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
7361 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
7362 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
7363 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
7364 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
7365 *) SIM_SUBTARGET="";;
7372 # Select the byte order of the target
7377 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
7378 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
7379 mips64*-*-*) default_endian=BIG_ENDIAN ;;
7380 mips16*-*-*) default_endian=BIG_ENDIAN ;;
7381 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
7382 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
7383 mips*-*-*) default_endian=BIG_ENDIAN ;;
7384 *) default_endian=BIG_ENDIAN ;;
7387 wire_endian="$mips_endian"
7388 default_endian="$default_endian"
7389 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7390 if test "${enable_sim_endian+set}" = set; then
7391 enableval="$enable_sim_endian"
7392 case "${enableval}" in
7393 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7394 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7395 yes) if test x"$wire_endian" != x; then
7396 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7398 if test x"$default_endian" != x; then
7399 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7401 echo "No hard-wired endian for target $target" 1>&6
7402 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
7405 no) if test x"$default_endian" != x; then
7406 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7408 if test x"$wire_endian" != x; then
7409 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7411 echo "No default endian for target $target" 1>&6
7412 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7415 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7416 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7417 { (exit 1); exit 1; }; }; sim_endian="";;
7419 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
7420 echo "Setting endian flags = $sim_endian" 6>&1
7423 if test x"$default_endian" != x; then
7424 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7426 if test x"$wire_endian" != x; then
7427 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7437 # Select the bitsize of the target
7441 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7442 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7443 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
7444 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7445 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
7446 *) mips_bitsize=64 ; mips_msb=63 ;;
7448 wire_word_bitsize="$mips_bitsize"
7449 wire_word_msb="$mips_msb"
7450 wire_address_bitsize="$mips_addr_bitsize"
7451 wire_cell_bitsize=""
7452 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7453 if test "${enable_sim_bitsize+set}" = set; then
7454 enableval="$enable_sim_bitsize"
7456 case "${enableval}" in
7457 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7458 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7459 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7460 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7461 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7462 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7464 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7466 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7467 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7469 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7471 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7472 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7473 { (exit 1); exit 1; }; } ;;
7476 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7479 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7480 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7481 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7482 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7483 { (exit 1); exit 1; }; } ;;
7486 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7489 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7490 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7491 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7492 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7493 { (exit 1); exit 1; }; } ;;
7495 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
7496 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7500 if test x"$wire_word_bitsize" != x; then
7501 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7503 if test x"$wire_word_msb" != x; then
7504 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7506 if test x"$wire_address_bitsize" != x; then
7507 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7509 if test x"$wire_cell_bitsize" != x; then
7510 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7517 # Select the floating hardware support of the target
7519 mips_fpu=HARDWARE_FLOATING_POINT
7522 mips*tx39*) mips_fpu=HARD_FLOATING_POINT
7525 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
7526 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
7527 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
7528 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
7529 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
7530 *) mips_fpu=HARD_FLOATING_POINT ;;
7533 default_sim_float="$mips_fpu"
7534 default_sim_float_bitsize="$mips_fpu_bitsize"
7535 # Check whether --enable-sim-float or --disable-sim-float was given.
7536 if test "${enable_sim_float+set}" = set; then
7537 enableval="$enable_sim_float"
7538 case "${enableval}" in
7539 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
7540 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
7541 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
7542 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
7543 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
7544 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
7545 { (exit 1); exit 1; }; }; sim_float="";;
7547 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
7548 echo "Setting float flags = $sim_float" 6>&1
7553 if test x"${default_sim_float}" != x""; then
7554 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
7556 if test x"${default_sim_float_bitsize}" != x""; then
7557 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
7565 # Select the level of SMP support
7571 default_sim_smp="$mips_smp"
7572 # Check whether --enable-sim-smp or --disable-sim-smp was given.
7573 if test "${enable_sim_smp+set}" = set; then
7574 enableval="$enable_sim_smp"
7575 case "${enableval}" in
7576 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
7577 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
7578 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
7580 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
7581 echo "Setting smp flags = $sim_smp" 6>&1
7584 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
7585 if test x"$silent" != x"yes"; then
7586 echo "Setting smp flags = $sim_smp" 6>&1
7593 # Select the IGEN architecture
7596 sim_igen_machine="-M mipsIV"
7597 sim_m16_machine="-M mips16,mipsIII"
7598 sim_igen_filter="32,64,f"
7600 sim_mach_default="mips8000"
7603 mips*tx39*) sim_gen=IGEN
7604 sim_igen_filter="32,f"
7605 sim_igen_machine="-M r3900"
7607 mips64vr43*-*-*) sim_gen=IGEN
7608 sim_igen_machine="-M mipsIV"
7609 sim_mach_default="mips8000"
7611 mips64vr5*-*-*) sim_gen=IGEN
7612 sim_igen_machine="-M vr5000"
7613 sim_mach_default="mips5000"
7615 mips64vr41*) sim_gen=M16
7616 sim_igen_machine="-M vr4100"
7617 sim_m16_machine="-M vr4100"
7618 sim_igen_filter="32,64,f"
7620 sim_mach_default="mips4100"
7622 mips64vr-*-* | mips64vrel-*-*)
7624 sim_multi_configs="\
7625 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
7626 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
7627 vr5000:mipsIV:32,64,f:mips4300,mips5000\
7628 vr5400:mipsIV,vr5400:32,64,f:mips5400\
7629 vr5500:mipsIV,vr5500:32,64,f:mips5500"
7630 sim_multi_default=mips5000
7632 mips64*-*-*) sim_igen_filter="32,64,f"
7635 mips16*-*-*) sim_gen=M16
7636 sim_igen_filter="32,64,f"
7639 mipsisa32*-*-*) sim_gen=IGEN
7640 sim_igen_machine="-M mips32"
7641 sim_igen_filter="32,f"
7642 sim_mach_default="mipsisa32"
7644 mipsisa64sb1*-*-*) sim_gen=IGEN
7645 sim_igen_machine="-M mips64,mips3d,sb1"
7646 sim_igen_filter="32,64,f"
7647 sim_mach_default="mips_sb1"
7649 mipsisa64*-*-*) sim_gen=IGEN
7650 sim_igen_machine="-M mips64,mips3d"
7651 sim_igen_filter="32,64,f"
7652 sim_mach_default="mipsisa64"
7654 mips*lsi*) sim_gen=M16
7655 sim_igen_machine="-M mipsIII,mips16"
7656 sim_m16_machine="-M mips16,mipsIII"
7657 sim_igen_filter="32,f"
7659 sim_mach_default="mips4000"
7661 mips*-*-*) sim_gen=IGEN
7662 sim_igen_filter="32,f"
7666 # The MULTI generator can combine several simulation engines into one.
7667 # executable. A configuration which uses the MULTI should set two
7668 # variables: ${sim_multi_configs} and ${sim_multi_default}.
7670 # ${sim_multi_configs} is the list of engines to build. Each
7671 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
7674 # - NAME is a C-compatible prefix for the engine,
7675 # - MACHINE is a -M argument,
7676 # - FILTER is a -F argument, and
7677 # - BFDMACHS is a comma-separated list of bfd machines that the
7678 # simulator can run.
7680 # Each entry will have a separate simulation engine whose prefix is
7681 # m32<NAME>. If the machine list includes "mips16", there will also
7682 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
7683 # generated using the same machine list as the 32-bit version,
7684 # but the filter will be "16" instead of FILTER.
7686 # The simulator compares the bfd mach against BFDMACHS to decide
7687 # which engine to use. Entries in BFDMACHS should be bfd_mach
7688 # values with "bfd_mach_" removed. ${sim_multi_default} says
7689 # which entry should be the default.
7690 if test ${sim_gen} = MULTI; then
7692 # Simple sanity check.
7693 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
7694 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
7695 echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
7696 { (exit 1); exit 1; }; }
7699 # Start in a known state.
7700 rm -f multi-include.h multi-run.c
7703 sim_multi_obj=multi-run.o
7704 sim_multi_igen_configs=
7707 cat << __EOF__ > multi-run.c
7708 /* Main entry point for MULTI simulators.
7709 Copyright (C) 2003 Free Software Foundation, Inc.
7711 This program is free software; you can redistribute it and/or modify
7712 it under the terms of the GNU General Public License as published by
7713 the Free Software Foundation; either version 2 of the License, or
7714 (at your option) any later version.
7716 This program is distributed in the hope that it will be useful,
7717 but WITHOUT ANY WARRANTY; without even the implied warranty of
7718 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7719 GNU General Public License for more details.
7721 You should have received a copy of the GNU General Public License
7722 along with this program; if not, write to the Free Software
7723 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7727 This file was generated by sim/mips/configure. */
7729 #include "sim-main.h"
7730 #include "multi-include.h"
7736 sim_engine_run (SIM_DESC sd,
7739 int signal) /* ignore */
7743 if (STATE_ARCHITECTURE (sd) == NULL)
7744 mach = bfd_mach_${sim_multi_default};
7746 mach = STATE_ARCHITECTURE (SD)->mach;
7752 for fc in ${sim_multi_configs}; do
7754 # Split up the entry. ${c} contains the first three elements.
7755 # Note: outer sqaure brackets are m4 quotes.
7756 c=`echo ${fc} | sed 's/:[^:]*$//'`
7757 bfdmachs=`echo ${fc} | sed 's/.*://'`
7758 name=`echo ${c} | sed 's/:.*//'`
7759 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
7760 filter=`echo ${c} | sed 's/.*://'`
7762 # Build the following lists:
7764 # sim_multi_flags: all -M and -F flags used by the simulator
7765 # sim_multi_src: all makefile-generated source files
7766 # sim_multi_obj: the objects for ${sim_multi_src}
7767 # sim_multi_igen_configs: igen configuration strings.
7769 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
7770 # or m16) followed by the NAME, MACHINE and FILTER part of
7771 # the ${sim_multi_configs} entry.
7772 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
7774 # Check whether mips16 handling is needed.
7777 # Run igen twice, once for normal mode and once for mips16.
7780 # The top-level function for the mips16 simulator is
7781 # in a file m16${name}_run.c, generated by the
7782 # tmp-run-multi Makefile rule.
7783 sim_multi_src="${sim_multi_src} m16${name}_run.c"
7784 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
7785 sim_multi_flags="${sim_multi_flags} -F 16"
7792 # Now add the list of igen-generated files to ${sim_multi_src}
7793 # and ${sim_multi_obj}.
7795 for base in engine icache idecode model semantics support; do
7796 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
7797 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
7798 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
7800 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
7803 # Add an include for the engine.h file. This file declares the
7804 # top-level foo_engine_run() function.
7805 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
7807 # Add case statements for this engine to sim_engine_run().
7808 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7809 echo " case bfd_mach_${mach}:" >> multi-run.c
7810 if test ${mach} = ${sim_multi_default}; then
7811 echo " default:" >> multi-run.c
7812 sim_seen_default=yes
7815 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
7817 echo " break;" >> multi-run.c
7820 # Check whether we added a 'default:' label.
7821 if test ${sim_seen_default} = no; then
7822 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
7823 echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
7824 { (exit 1); exit 1; }; }
7827 cat << __EOF__ >> multi-run.c
7832 mips_mach_multi (SIM_DESC sd)
7834 if (STATE_ARCHITECTURE (sd) == NULL)
7835 return bfd_mach_${sim_multi_default};
7837 switch (STATE_ARCHITECTURE (SD)->mach)
7841 # Add case statements for this engine to mips_mach_multi().
7842 for fc in ${sim_multi_configs}; do
7844 # Split up the entry. ${c} contains the first three elements.
7845 # Note: outer sqaure brackets are m4 quotes.
7846 c=`echo ${fc} | sed 's/:[^:]*$//'`
7847 bfdmachs=`echo ${fc} | sed 's/.*://'`
7849 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7850 echo " case bfd_mach_${mach}:" >> multi-run.c
7854 cat << __EOF__ >> multi-run.c
7855 return (STATE_ARCHITECTURE (SD)->mach);
7857 return bfd_mach_${sim_multi_default};
7862 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
7865 sim_multi_src=doesnt-exist.c
7867 if test x"${sim_mach_default}" = x""; then
7868 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_mach_default} not defined" >&5
7869 echo "$as_me: error: Error in configure.in: \${sim_mach_default} not defined" >&2;}
7870 { (exit 1); exit 1; }; }
7872 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
7874 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
7875 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
7886 # Add simulated hardware devices
7892 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
7893 mips_extra_objs="dv-sockser.o"
7894 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
7901 if test x"$hw_enabled" = x"yes"; then
7906 if test "$hw_devices"; then
7907 hardware="core pal glue"
7909 hardware="core pal glue $hw_extra_devices"
7911 sim_hw_cflags="-DWITH_HW=1"
7913 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7914 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7915 if test "${enable_sim_hardware+set}" = set; then
7916 enableval="$enable_sim_hardware"
7918 case "${enableval}" in
7921 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7922 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7923 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7925 if test "$sim_hw_p" != yes; then
7927 sim_hw_cflags="-DWITH_HW=0"
7930 sim_hw_cflags="-DWITH_HW=1"
7933 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
7934 for i in x $hardware ; do
7938 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
7942 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
7943 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7947 if test "$sim_hw_p" != yes; then
7949 sim_hw_cflags="-DWITH_HW=0"
7952 if test x"$silent" != x"yes"; then
7953 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7959 # Choose simulator engine
7961 *) mips_igen_engine="engine.o"
7967 echo "$as_me:$LINENO: checking for X" >&5
7968 echo $ECHO_N "checking for X... $ECHO_C" >&6
7971 # Check whether --with-x or --without-x was given.
7972 if test "${with_x+set}" = set; then
7976 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7977 if test "x$with_x" = xno; then
7978 # The user explicitly disabled X.
7981 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7982 # Both variables are already set.
7985 if test "${ac_cv_have_x+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 # One or both of the vars are not set, and there is no cached value.
7989 ac_x_includes=no ac_x_libraries=no
7991 if mkdir conftest.dir; then
7993 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7994 cat >Imakefile <<'_ACEOF'
7996 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7998 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7999 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8000 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8001 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8002 for ac_extension in a so sl; do
8003 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8004 test -f $ac_im_libdir/libX11.$ac_extension; then
8005 ac_im_usrlibdir=$ac_im_libdir; break
8008 # Screen out bogus values from the imake configuration. They are
8009 # bogus both because they are the default anyway, and because
8010 # using them would break gcc on systems where it needs fixed includes.
8011 case $ac_im_incroot in
8013 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8015 case $ac_im_usrlibdir in
8017 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8024 # Standard set of common directories for X headers.
8025 # Check X11 before X11Rn because it is often a symlink to the current release.
8037 /usr/local/X11/include
8038 /usr/local/X11R6/include
8039 /usr/local/X11R5/include
8040 /usr/local/X11R4/include
8042 /usr/local/include/X11
8043 /usr/local/include/X11R6
8044 /usr/local/include/X11R5
8045 /usr/local/include/X11R4
8049 /usr/XFree86/include/X11
8053 /usr/unsupported/include
8055 /usr/local/x11r5/include
8056 /usr/lpp/Xamples/include
8058 /usr/openwin/include
8059 /usr/openwin/share/include'
8061 if test "$ac_x_includes" = no; then
8062 # Guess where to find include files, by looking for Intrinsic.h.
8063 # First, try using that file with no special directory specified.
8064 cat >conftest.$ac_ext <<_ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 #include <X11/Intrinsic.h>
8072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8075 grep -v '^ *+' conftest.er1 >conftest.err
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } >/dev/null; then
8080 if test -s conftest.err; then
8081 ac_cpp_err=$ac_c_preproc_warn_flag
8082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8089 if test -z "$ac_cpp_err"; then
8090 # We can compile using X headers with no special include directory.
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 for ac_dir in $ac_x_header_dirs; do
8097 if test -r "$ac_dir/X11/Intrinsic.h"; then
8098 ac_x_includes=$ac_dir
8103 rm -f conftest.err conftest.$ac_ext
8104 fi # $ac_x_includes = no
8106 if test "$ac_x_libraries" = no; then
8107 # Check for the libraries.
8108 # See if we find them without any special options.
8109 # Don't add to $LIBS permanently.
8112 cat >conftest.$ac_ext <<_ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 #include <X11/Intrinsic.h>
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129 (eval $ac_link) 2>conftest.er1
8131 grep -v '^ *+' conftest.er1 >conftest.err
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -z "$ac_c_werror_flag"
8137 || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest$ac_exeext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8150 # We can link X programs with no special library path.
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8157 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8159 # Don't even attempt the hair of trying to link an X program!
8160 for ac_extension in a so sl; do
8161 if test -r $ac_dir/libXt.$ac_extension; then
8162 ac_x_libraries=$ac_dir
8168 rm -f conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8170 fi # $ac_x_libraries = no
8172 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8173 # Didn't find X anywhere. Cache the known absence of X.
8174 ac_cv_have_x="have_x=no"
8176 # Record where we found X for the cache.
8177 ac_cv_have_x="have_x=yes \
8178 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8183 eval "$ac_cv_have_x"
8186 if test "$have_x" != yes; then
8187 echo "$as_me:$LINENO: result: $have_x" >&5
8188 echo "${ECHO_T}$have_x" >&6
8191 # If each of the values was on the command line, it overrides each guess.
8192 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8193 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8194 # Update the cache value to reflect the command line values.
8195 ac_cv_have_x="have_x=yes \
8196 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8197 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8198 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8208 for ac_header in string.h strings.h stdlib.h stdlib.h
8210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8212 echo "$as_me:$LINENO: checking for $ac_header" >&5
8213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8220 # Is the header compilable?
8221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 $ac_includes_default
8230 #include <$ac_header>
8232 rm -f conftest.$ac_objext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>conftest.er1
8236 grep -v '^ *+' conftest.er1 >conftest.err
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest.$ac_objext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_header_compiler=yes
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 ac_header_compiler=no
8261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8263 echo "${ECHO_T}$ac_header_compiler" >&6
8265 # Is the header present?
8266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8268 cat >conftest.$ac_ext <<_ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 #include <$ac_header>
8276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8279 grep -v '^ *+' conftest.er1 >conftest.err
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } >/dev/null; then
8284 if test -s conftest.err; then
8285 ac_cpp_err=$ac_c_preproc_warn_flag
8286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8293 if test -z "$ac_cpp_err"; then
8294 ac_header_preproc=yes
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 ac_header_preproc=no
8301 rm -f conftest.err conftest.$ac_ext
8302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8303 echo "${ECHO_T}$ac_header_preproc" >&6
8305 # So? What about this header?
8306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8312 ac_header_preproc=yes
8315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8329 ## ------------------------------------------ ##
8330 ## Report this to the AC_PACKAGE_NAME lists. ##
8331 ## ------------------------------------------ ##
8334 sed "s/^/$as_me: WARNING: /" >&2
8337 echo "$as_me:$LINENO: checking for $ac_header" >&5
8338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 eval "$as_ac_Header=\$ac_header_preproc"
8344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8349 cat >>confdefs.h <<_ACEOF
8350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358 echo "$as_me:$LINENO: checking for fabs in -lm" >&5
8359 echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
8360 if test "${ac_cv_lib_m_fabs+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 ac_check_lib_save_LIBS=$LIBS
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8372 /* Override any gcc2 internal prototype to avoid an error. */
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>conftest.er1
8391 grep -v '^ *+' conftest.er1 >conftest.err
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag"
8397 || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_lib_m_fabs=yes
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8416 rm -f conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418 LIBS=$ac_check_lib_save_LIBS
8420 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
8421 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
8422 if test $ac_cv_lib_m_fabs = yes; then
8423 cat >>confdefs.h <<_ACEOF
8434 for ac_func in aint anint sqrt
8436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8437 echo "$as_me:$LINENO: checking for $ac_func" >&5
8438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8439 if eval "test \"\${$as_ac_var+set}\" = set"; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8450 #define $ac_func innocuous_$ac_func
8452 /* System header to define __stub macros and hopefully few prototypes,
8453 which can conflict with char $ac_func (); below.
8454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 <limits.h> exists even on freestanding compilers. */
8458 # include <limits.h>
8460 # include <assert.h>
8465 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8473 /* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8479 char (*f) () = $ac_func;
8488 return f != $ac_func;
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>conftest.er1
8497 grep -v '^ *+' conftest.er1 >conftest.err
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag"
8503 || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest$ac_exeext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 eval "$as_ac_var=yes"
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 eval "$as_ac_var=no"
8522 rm -f conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8527 if test `eval echo '${'$as_ac_var'}'` = yes; then
8528 cat >>confdefs.h <<_ACEOF
8529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8537 ac_sources="$sim_link_files"
8538 ac_dests="$sim_link_links"
8539 while test -n "$ac_sources"; do
8540 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8541 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8542 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
8544 ac_config_links="$ac_config_links $ac_config_links_1"
8547 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
8548 cgen_breaks="break cgen_rtx_error";
8551 ac_config_files="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"
8552 ac_config_commands="$ac_config_commands default"
8553 cat >confcache <<\_ACEOF
8554 # This file is a shell script that caches the results of configure
8555 # tests run on this system so they can be shared between configure
8556 # scripts and configure runs, see configure's option --config-cache.
8557 # It is not useful on other systems. If it contains results you don't
8558 # want to keep, you may remove or edit it.
8560 # config.status only pays attention to the cache file if you give it
8561 # the --recheck option to rerun configure.
8563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8569 # The following way of writing the cache mishandles newlines in values,
8570 # but we know of no workaround that is simple, portable, and efficient.
8571 # So, don't put newlines in cache variables' values.
8572 # Ultrix sh set writes to stderr and can't be redirected directly,
8573 # and sets the high bit in the cache file unless we assign to the vars.
8576 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8578 # `set' does not quote correctly, so add quotes (double-quote
8579 # substitution turns \\\\ into \\, and sed turns \\ into \).
8582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8585 # `set' quotes correctly as required by POSIX, so do not add quotes.
8587 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8596 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8598 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8599 if test -w $cache_file; then
8600 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8601 cat confcache >$cache_file
8603 echo "not updating unwritable cache $cache_file"
8608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8609 # Let make expand exec_prefix.
8610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8612 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8613 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8614 # trailing colons and then remove the whole line if VPATH becomes empty
8615 # (actually we leave an empty line to preserve line numbers).
8616 if test "x$srcdir" = x.; then
8617 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8618 s/:*\$(srcdir):*/:/;
8619 s/:*\${srcdir}:*/:/;
8621 s/^\([^=]*=[ ]*\):*/\1/;
8627 DEFS=-DHAVE_CONFIG_H
8631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8632 # 1. Remove the extension, and $U if already installed.
8633 ac_i=`echo "$ac_i" |
8634 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8636 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8637 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8641 LTLIBOBJS=$ac_ltlibobjs
8645 : ${CONFIG_STATUS=./config.status}
8646 ac_clean_files_save=$ac_clean_files
8647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8648 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8649 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8650 cat >$CONFIG_STATUS <<_ACEOF
8652 # Generated by $as_me.
8653 # Run this file to recreate the current configuration.
8654 # Compiler output produced by configure, useful for debugging
8655 # configure, is in config.log if it exists.
8660 SHELL=\${CONFIG_SHELL-$SHELL}
8663 cat >>$CONFIG_STATUS <<\_ACEOF
8664 ## --------------------- ##
8665 ## M4sh Initialization. ##
8666 ## --------------------- ##
8668 # Be Bourne compatible
8669 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8672 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8673 # is contrary to our usage. Disable this feature.
8674 alias -g '${1+"$@"}'='"$@"'
8675 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8678 DUALCASE=1; export DUALCASE # for MKS sh
8680 # Support unset when possible.
8681 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8688 # Work around bugs in pre-3.0 UWIN ksh.
8689 $as_unset ENV MAIL MAILPATH
8696 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8697 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8698 LC_TELEPHONE LC_TIME
8700 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8701 eval $as_var=C; export $as_var
8707 # Required to use basename.
8708 if expr a : '\(a\)' >/dev/null 2>&1; then
8714 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8715 as_basename=basename
8721 # Name of the executable.
8722 as_me=`$as_basename "$0" ||
8723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8724 X"$0" : 'X\(//\)$' \| \
8725 X"$0" : 'X\(/\)$' \| \
8726 . : '\(.\)' 2>/dev/null ||
8728 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8729 /^X\/\(\/\/\)$/{ s//\1/; q; }
8730 /^X\/\(\/\).*/{ s//\1/; q; }
8734 # PATH needs CR, and LINENO needs CR and PATH.
8735 # Avoid depending upon Character Ranges.
8736 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8737 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8738 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8739 as_cr_digits='0123456789'
8740 as_cr_alnum=$as_cr_Letters$as_cr_digits
8742 # The user is always right.
8743 if test "${PATH_SEPARATOR+set}" != set; then
8744 echo "#! /bin/sh" >conf$$.sh
8745 echo "exit 0" >>conf$$.sh
8747 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8758 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8759 test "x$as_lineno_1" != "x$as_lineno_2" &&
8760 test "x$as_lineno_3" = "x$as_lineno_2" || {
8761 # Find who we are. Look in the path if we contain no path at all
8764 *[\\/]* ) as_myself=$0 ;;
8765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 test -z "$as_dir" && as_dir=.
8770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8775 # We did not find ourselves, most probably we were run as `sh COMMAND'
8776 # in which case we are not to be found in the path.
8777 if test "x$as_myself" = x; then
8780 if test ! -f "$as_myself"; then
8781 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8782 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8783 { (exit 1); exit 1; }; }
8785 case $CONFIG_SHELL in
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8791 test -z "$as_dir" && as_dir=.
8792 for as_base in sh bash ksh sh5; do
8795 if ("$as_dir/$as_base" -c '
8798 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8799 test "x$as_lineno_1" != "x$as_lineno_2" &&
8800 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8801 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8802 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8803 CONFIG_SHELL=$as_dir/$as_base
8805 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8813 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8814 # uniformly replaced by the line number. The first 'sed' inserts a
8815 # line-number line before each line; the second 'sed' does the real
8816 # work. The second script uses 'N' to pair each line-number line
8817 # with the numbered line, and appends trailing '-' during
8818 # substitution so that $LINENO is not a special case at line end.
8819 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8820 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8821 sed '=' <$as_myself |
8826 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8829 s,^['$as_cr_digits']*\n,,
8831 chmod +x $as_me.lineno ||
8832 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8833 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8834 { (exit 1); exit 1; }; }
8836 # Don't try to exec as it changes $[0], causing all sort of problems
8837 # (the dirname of $[0] is not the place where we might find the
8838 # original and so on. Autoconf is especially sensible to this).
8840 # Exit status is that of the last command.
8845 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8846 *c*,-n*) ECHO_N= ECHO_C='
8848 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8849 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8852 if expr a : '\(a\)' >/dev/null 2>&1; then
8858 rm -f conf$$ conf$$.exe conf$$.file
8860 if ln -s conf$$.file conf$$ 2>/dev/null; then
8861 # We could just check for DJGPP; but this test a) works b) is more generic
8862 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8863 if test -f conf$$.exe; then
8864 # Don't use ln at all; we don't have any links
8869 elif ln conf$$.file conf$$ 2>/dev/null; then
8874 rm -f conf$$ conf$$.exe conf$$.file
8876 if mkdir -p . 2>/dev/null; then
8879 test -d ./-p && rmdir ./-p
8883 as_executable_p="test -f"
8885 # Sed expression to map a string onto a valid CPP name.
8886 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8888 # Sed expression to map a string onto a valid variable name.
8889 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8893 # We need space, tab and new line, in precisely that order.
8903 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8904 # report actual input values of CONFIG_FILES etc. instead of their
8905 # values after options handling. Logging --version etc. is OK.
8909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8910 ## Running $as_me. ##
8915 This file was extended by $as_me, which was
8916 generated by GNU Autoconf 2.59. Invocation command line was
8918 CONFIG_FILES = $CONFIG_FILES
8919 CONFIG_HEADERS = $CONFIG_HEADERS
8920 CONFIG_LINKS = $CONFIG_LINKS
8921 CONFIG_COMMANDS = $CONFIG_COMMANDS
8925 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8929 # Files that config.status was made for.
8930 if test -n "$ac_config_files"; then
8931 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8934 if test -n "$ac_config_headers"; then
8935 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8938 if test -n "$ac_config_links"; then
8939 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8942 if test -n "$ac_config_commands"; then
8943 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8946 cat >>$CONFIG_STATUS <<\_ACEOF
8949 \`$as_me' instantiates files from templates according to the
8950 current configuration.
8952 Usage: $0 [OPTIONS] [FILE]...
8954 -h, --help print this help, then exit
8955 -V, --version print version number, then exit
8956 -q, --quiet do not print progress messages
8957 -d, --debug don't remove temporary files
8958 --recheck update $as_me by reconfiguring in the same conditions
8959 --file=FILE[:TEMPLATE]
8960 instantiate the configuration file FILE
8961 --header=FILE[:TEMPLATE]
8962 instantiate the configuration header FILE
8964 Configuration files:
8967 Configuration headers:
8970 Configuration links:
8973 Configuration commands:
8976 Report bugs to <bug-autoconf@gnu.org>."
8979 cat >>$CONFIG_STATUS <<_ACEOF
8982 configured by $0, generated by GNU Autoconf 2.59,
8983 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8985 Copyright (C) 2003 Free Software Foundation, Inc.
8986 This config.status script is free software; the Free Software Foundation
8987 gives unlimited permission to copy, distribute and modify it."
8992 cat >>$CONFIG_STATUS <<\_ACEOF
8993 # If no file are specified by the user, then we need to provide default
8994 # value. By we need to know if files were specified by the user.
9000 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9001 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9009 *) # This is not an option, so the user has probably given explicit
9012 ac_need_defaults=false;;
9016 # Handling of the options.
9018 cat >>$CONFIG_STATUS <<\_ACEOF
9019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9021 --version | --vers* | -V )
9022 echo "$ac_cs_version"; exit 0 ;;
9024 # Conflict between --help and --header
9025 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9026 Try \`$0 --help' for more information." >&5
9027 echo "$as_me: error: ambiguous option: $1
9028 Try \`$0 --help' for more information." >&2;}
9029 { (exit 1); exit 1; }; };;
9030 --help | --hel | -h )
9031 echo "$ac_cs_usage"; exit 0 ;;
9032 --debug | --d* | -d )
9034 --file | --fil | --fi | --f )
9036 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9037 ac_need_defaults=false;;
9038 --header | --heade | --head | --hea )
9040 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9041 ac_need_defaults=false;;
9042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9043 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9047 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9048 Try \`$0 --help' for more information." >&5
9049 echo "$as_me: error: unrecognized option: $1
9050 Try \`$0 --help' for more information." >&2;}
9051 { (exit 1); exit 1; }; } ;;
9053 *) ac_config_targets="$ac_config_targets $1" ;;
9059 ac_configure_extra_args=
9061 if $ac_cs_silent; then
9063 ac_configure_extra_args="$ac_configure_extra_args --silent"
9067 cat >>$CONFIG_STATUS <<_ACEOF
9068 if \$ac_cs_recheck; then
9069 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9070 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9079 cat >>$CONFIG_STATUS <<\_ACEOF
9080 for ac_config_target in $ac_config_targets
9082 case "$ac_config_target" in
9083 # Handling of arguments.
9084 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
9085 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
9086 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
9087 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
9088 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9089 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9090 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9091 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9092 { (exit 1); exit 1; }; };;
9096 # If the user did not use the arguments to specify the items to instantiate,
9097 # then the envvar interface is used. Set only those that are not.
9098 # We use the long form for the default assignment because of an extremely
9099 # bizarre bug on SunOS 4.1.3.
9100 if $ac_need_defaults; then
9101 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9102 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9103 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9107 # Have a temporary directory for convenience. Make it in the build tree
9108 # simply because there is no reason to put it here, and in addition,
9109 # creating and moving files from /tmp can sometimes cause problems.
9110 # Create a temporary directory, and hook for its removal unless debugging.
9113 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9114 trap '{ (exit 1); exit 1; }' 1 2 13 15
9117 # Create a (secure) tmp directory for tmp files.
9120 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9121 test -n "$tmp" && test -d "$tmp"
9124 tmp=./confstat$$-$RANDOM
9125 (umask 077 && mkdir $tmp)
9128 echo "$me: cannot create a temporary directory in ." >&2
9129 { (exit 1); exit 1; }
9134 cat >>$CONFIG_STATUS <<_ACEOF
9137 # CONFIG_FILES section.
9140 # No need to generate the scripts if there are no CONFIG_FILES.
9141 # This happens for instance when ./config.status config.h
9142 if test -n "\$CONFIG_FILES"; then
9143 # Protect against being on the right side of a sed subst in config.status.
9144 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9145 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9146 s,@sim_environment@,$sim_environment,;t t
9147 s,@sim_alignment@,$sim_alignment,;t t
9148 s,@sim_assert@,$sim_assert,;t t
9149 s,@sim_bitsize@,$sim_bitsize,;t t
9150 s,@sim_endian@,$sim_endian,;t t
9151 s,@sim_hostendian@,$sim_hostendian,;t t
9152 s,@sim_float@,$sim_float,;t t
9153 s,@sim_scache@,$sim_scache,;t t
9154 s,@sim_default_model@,$sim_default_model,;t t
9155 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9156 s,@sim_hw_objs@,$sim_hw_objs,;t t
9157 s,@sim_hw@,$sim_hw,;t t
9158 s,@sim_inline@,$sim_inline,;t t
9159 s,@sim_packages@,$sim_packages,;t t
9160 s,@sim_regparm@,$sim_regparm,;t t
9161 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9162 s,@sim_smp@,$sim_smp,;t t
9163 s,@sim_stdcall@,$sim_stdcall,;t t
9164 s,@sim_xor_endian@,$sim_xor_endian,;t t
9165 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9166 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9167 s,@SHELL@,$SHELL,;t t
9168 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9169 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9170 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9171 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9172 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9173 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9174 s,@exec_prefix@,$exec_prefix,;t t
9175 s,@prefix@,$prefix,;t t
9176 s,@program_transform_name@,$program_transform_name,;t t
9177 s,@bindir@,$bindir,;t t
9178 s,@sbindir@,$sbindir,;t t
9179 s,@libexecdir@,$libexecdir,;t t
9180 s,@datadir@,$datadir,;t t
9181 s,@sysconfdir@,$sysconfdir,;t t
9182 s,@sharedstatedir@,$sharedstatedir,;t t
9183 s,@localstatedir@,$localstatedir,;t t
9184 s,@libdir@,$libdir,;t t
9185 s,@includedir@,$includedir,;t t
9186 s,@oldincludedir@,$oldincludedir,;t t
9187 s,@infodir@,$infodir,;t t
9188 s,@mandir@,$mandir,;t t
9189 s,@build_alias@,$build_alias,;t t
9190 s,@host_alias@,$host_alias,;t t
9191 s,@target_alias@,$target_alias,;t t
9193 s,@ECHO_C@,$ECHO_C,;t t
9194 s,@ECHO_N@,$ECHO_N,;t t
9195 s,@ECHO_T@,$ECHO_T,;t t
9197 s,@build@,$build,;t t
9198 s,@build_cpu@,$build_cpu,;t t
9199 s,@build_vendor@,$build_vendor,;t t
9200 s,@build_os@,$build_os,;t t
9202 s,@host_cpu@,$host_cpu,;t t
9203 s,@host_vendor@,$host_vendor,;t t
9204 s,@host_os@,$host_os,;t t
9205 s,@target@,$target,;t t
9206 s,@target_cpu@,$target_cpu,;t t
9207 s,@target_vendor@,$target_vendor,;t t
9208 s,@target_os@,$target_os,;t t
9210 s,@CFLAGS@,$CFLAGS,;t t
9211 s,@LDFLAGS@,$LDFLAGS,;t t
9212 s,@CPPFLAGS@,$CPPFLAGS,;t t
9213 s,@ac_ct_CC@,$ac_ct_CC,;t t
9214 s,@EXEEXT@,$EXEEXT,;t t
9215 s,@OBJEXT@,$OBJEXT,;t t
9216 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9217 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9218 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9219 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9220 s,@HDEFINES@,$HDEFINES,;t t
9222 s,@RANLIB@,$RANLIB,;t t
9223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9224 s,@SET_MAKE@,$SET_MAKE,;t t
9226 s,@EGREP@,$EGREP,;t t
9227 s,@ALLOCA@,$ALLOCA,;t t
9228 s,@USE_NLS@,$USE_NLS,;t t
9229 s,@MSGFMT@,$MSGFMT,;t t
9230 s,@GMSGFMT@,$GMSGFMT,;t t
9231 s,@XGETTEXT@,$XGETTEXT,;t t
9232 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9233 s,@CATALOGS@,$CATALOGS,;t t
9234 s,@CATOBJEXT@,$CATOBJEXT,;t t
9235 s,@DATADIRNAME@,$DATADIRNAME,;t t
9236 s,@GMOFILES@,$GMOFILES,;t t
9237 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9238 s,@INTLDEPS@,$INTLDEPS,;t t
9239 s,@INTLLIBS@,$INTLLIBS,;t t
9240 s,@INTLOBJS@,$INTLOBJS,;t t
9241 s,@POFILES@,$POFILES,;t t
9242 s,@POSUB@,$POSUB,;t t
9243 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9244 s,@GT_NO@,$GT_NO,;t t
9245 s,@GT_YES@,$GT_YES,;t t
9246 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9248 s,@MAINT@,$MAINT,;t t
9249 s,@sim_bswap@,$sim_bswap,;t t
9250 s,@sim_cflags@,$sim_cflags,;t t
9251 s,@sim_debug@,$sim_debug,;t t
9252 s,@sim_stdio@,$sim_stdio,;t t
9253 s,@sim_trace@,$sim_trace,;t t
9254 s,@sim_profile@,$sim_profile,;t t
9255 s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
9256 s,@sim_igen_flags@,$sim_igen_flags,;t t
9257 s,@sim_m16_flags@,$sim_m16_flags,;t t
9258 s,@sim_gen@,$sim_gen,;t t
9259 s,@sim_multi_flags@,$sim_multi_flags,;t t
9260 s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
9261 s,@sim_multi_src@,$sim_multi_src,;t t
9262 s,@sim_multi_obj@,$sim_multi_obj,;t t
9263 s,@mips_extra_objs@,$mips_extra_objs,;t t
9264 s,@mips_igen_engine@,$mips_igen_engine,;t t
9265 s,@mips_extra_libs@,$mips_extra_libs,;t t
9266 s,@cgen_breaks@,$cgen_breaks,;t t
9267 s,@LIBOBJS@,$LIBOBJS,;t t
9268 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9273 cat >>$CONFIG_STATUS <<\_ACEOF
9274 # Split the substitutions into bite-sized pieces for seds with
9275 # small command number limits, like on Digital OSF/1 and HP-UX.
9277 ac_sed_frag=1 # Number of current file.
9278 ac_beg=1 # First line for current file.
9279 ac_end=$ac_max_sed_lines # Line after last line for current file.
9282 while $ac_more_lines; do
9283 if test $ac_beg -gt 1; then
9284 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9286 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9288 if test ! -s $tmp/subs.frag; then
9291 # The purpose of the label and of the branching condition is to
9292 # speed up the sed processing (if there are no `@' at all, there
9293 # is no need to browse any of the substitutions).
9294 # These are the two extra sed commands mentioned above.
9296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9297 if test -z "$ac_sed_cmds"; then
9298 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9300 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9302 ac_sed_frag=`expr $ac_sed_frag + 1`
9304 ac_end=`expr $ac_end + $ac_max_sed_lines`
9307 if test -z "$ac_sed_cmds"; then
9310 fi # test -n "$CONFIG_FILES"
9313 cat >>$CONFIG_STATUS <<\_ACEOF
9314 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9315 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9317 - | *:- | *:-:* ) # input from stdin
9319 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9321 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9322 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9323 * ) ac_file_in=$ac_file.in ;;
9326 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9327 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9329 X"$ac_file" : 'X\(//\)[^/]' \| \
9330 X"$ac_file" : 'X\(//\)$' \| \
9331 X"$ac_file" : 'X\(/\)' \| \
9332 . : '\(.\)' 2>/dev/null ||
9334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9336 /^X\(\/\/\)$/{ s//\1/; q; }
9337 /^X\(\/\).*/{ s//\1/; q; }
9339 { if $as_mkdir_p; then
9344 while test ! -d "$as_dir"; do
9345 as_dirs="$as_dir $as_dirs"
9346 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9348 X"$as_dir" : 'X\(//\)[^/]' \| \
9349 X"$as_dir" : 'X\(//\)$' \| \
9350 X"$as_dir" : 'X\(/\)' \| \
9351 . : '\(.\)' 2>/dev/null ||
9353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9355 /^X\(\/\/\)$/{ s//\1/; q; }
9356 /^X\(\/\).*/{ s//\1/; q; }
9359 test ! -n "$as_dirs" || mkdir $as_dirs
9360 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9361 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9362 { (exit 1); exit 1; }; }; }
9366 if test "$ac_dir" != .; then
9367 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9368 # A "../" for each directory in $ac_dir_suffix.
9369 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9371 ac_dir_suffix= ac_top_builddir=
9375 .) # No --srcdir option. We are building in place.
9377 if test -z "$ac_top_builddir"; then
9380 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9382 [\\/]* | ?:[\\/]* ) # Absolute path.
9383 ac_srcdir=$srcdir$ac_dir_suffix;
9384 ac_top_srcdir=$srcdir ;;
9386 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9387 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9390 # Do not use `cd foo && pwd` to compute absolute paths, because
9391 # the directories may not exist.
9393 .) ac_abs_builddir="$ac_dir";;
9396 .) ac_abs_builddir=`pwd`;;
9397 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9398 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9401 case $ac_abs_builddir in
9402 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9404 case ${ac_top_builddir}. in
9405 .) ac_abs_top_builddir=$ac_abs_builddir;;
9406 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9407 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9410 case $ac_abs_builddir in
9411 .) ac_abs_srcdir=$ac_srcdir;;
9414 .) ac_abs_srcdir=$ac_abs_builddir;;
9415 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9416 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9419 case $ac_abs_builddir in
9420 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9422 case $ac_top_srcdir in
9423 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9424 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9425 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9431 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9432 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9435 if test x"$ac_file" != x-; then
9436 { echo "$as_me:$LINENO: creating $ac_file" >&5
9437 echo "$as_me: creating $ac_file" >&6;}
9440 # Let's still pretend it is `configure' which instantiates (i.e., don't
9441 # use $as_me), people would be surprised to read:
9442 # /* config.h. Generated by config.status. */
9443 if test x"$ac_file" = x-; then
9446 configure_input="$ac_file. "
9448 configure_input=$configure_input"Generated from `echo $ac_file_in |
9449 sed 's,.*/,,'` by configure."
9451 # First look for the input files in the build tree, otherwise in the
9453 ac_file_inputs=`IFS=:
9454 for f in $ac_file_in; do
9456 -) echo $tmp/stdin ;;
9458 # Absolute (can't be DOS-style, as IFS=:)
9459 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9460 echo "$as_me: error: cannot find input file: $f" >&2;}
9461 { (exit 1); exit 1; }; }
9464 if test -f "$f"; then
9467 elif test -f "$srcdir/$f"; then
9472 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9473 echo "$as_me: error: cannot find input file: $f" >&2;}
9474 { (exit 1); exit 1; }; }
9477 done` || { (exit 1); exit 1; }
9479 cat >>$CONFIG_STATUS <<_ACEOF
9483 cat >>$CONFIG_STATUS <<\_ACEOF
9485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9486 s,@configure_input@,$configure_input,;t t
9487 s,@srcdir@,$ac_srcdir,;t t
9488 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9489 s,@top_srcdir@,$ac_top_srcdir,;t t
9490 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9491 s,@builddir@,$ac_builddir,;t t
9492 s,@abs_builddir@,$ac_abs_builddir,;t t
9493 s,@top_builddir@,$ac_top_builddir,;t t
9494 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9495 s,@INSTALL@,$ac_INSTALL,;t t
9496 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9498 if test x"$ac_file" != x-; then
9499 mv $tmp/out $ac_file
9507 cat >>$CONFIG_STATUS <<\_ACEOF
9510 # CONFIG_HEADER section.
9513 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9514 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9516 # ac_d sets the value in "#define NAME VALUE" lines.
9517 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9518 ac_dB='[ ].*$,\1#\2'
9521 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9522 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9523 ac_uB='$,\1#\2define\3'
9527 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9530 - | *:- | *:-:* ) # input from stdin
9532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9536 * ) ac_file_in=$ac_file.in ;;
9539 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9540 echo "$as_me: creating $ac_file" >&6;}
9542 # First look for the input files in the build tree, otherwise in the
9544 ac_file_inputs=`IFS=:
9545 for f in $ac_file_in; do
9547 -) echo $tmp/stdin ;;
9549 # Absolute (can't be DOS-style, as IFS=:)
9550 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9551 echo "$as_me: error: cannot find input file: $f" >&2;}
9552 { (exit 1); exit 1; }; }
9553 # Do quote $f, to prevent DOS paths from being IFS'd.
9556 if test -f "$f"; then
9559 elif test -f "$srcdir/$f"; then
9564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9565 echo "$as_me: error: cannot find input file: $f" >&2;}
9566 { (exit 1); exit 1; }; }
9569 done` || { (exit 1); exit 1; }
9570 # Remove the trailing spaces.
9571 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9575 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9576 # `conftest.undefs', that substitutes the proper values into
9577 # config.h.in to produce config.h. The first handles `#define'
9578 # templates, and the second `#undef' templates.
9579 # And first: Protect against being on the right side of a sed subst in
9580 # config.status. Protect against being in an unquoted here document
9582 rm -f conftest.defines conftest.undefs
9583 # Using a here document instead of a string reduces the quoting nightmare.
9584 # Putting comments in sed scripts is not portable.
9586 # `end' is used to avoid that the second main sed command (meant for
9587 # 0-ary CPP macros) applies to n-ary macro definitions.
9588 # See the Autoconf documentation for `clear'.
9589 cat >confdef2sed.sed <<\_ACEOF
9594 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9596 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9599 # If some macros were called several times there might be several times
9600 # the same #defines, which is useless. Nevertheless, we may not want to
9601 # sort them, since we want the *last* AC-DEFINE to be honored.
9602 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9603 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9604 rm -f confdef2sed.sed
9606 # This sed command replaces #undef with comments. This is necessary, for
9607 # example, in the case of _POSIX_SOURCE, which is predefined and required
9608 # on some systems where configure will not decide to define it.
9609 cat >>conftest.undefs <<\_ACEOF
9610 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9613 # Break up conftest.defines because some shells have a limit on the size
9614 # of here documents, and old seds have small limits too (100 cmds).
9615 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9616 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9617 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9618 echo ' :' >>$CONFIG_STATUS
9620 while grep . conftest.defines >/dev/null
9622 # Write a limited-size here document to $tmp/defines.sed.
9623 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9624 # Speed up: don't consider the non `#define' lines.
9625 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9626 # Work around the forget-to-reset-the-flag bug.
9627 echo 't clr' >>$CONFIG_STATUS
9628 echo ': clr' >>$CONFIG_STATUS
9629 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9631 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9635 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9636 rm -f conftest.defines
9637 mv conftest.tail conftest.defines
9639 rm -f conftest.defines
9640 echo ' fi # grep' >>$CONFIG_STATUS
9641 echo >>$CONFIG_STATUS
9643 # Break up conftest.undefs because some shells have a limit on the size
9644 # of here documents, and old seds have small limits too (100 cmds).
9645 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9647 while grep . conftest.undefs >/dev/null
9649 # Write a limited-size here document to $tmp/undefs.sed.
9650 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9651 # Speed up: don't consider the non `#undef'
9652 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9653 # Work around the forget-to-reset-the-flag bug.
9654 echo 't clr' >>$CONFIG_STATUS
9655 echo ': clr' >>$CONFIG_STATUS
9656 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9658 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9662 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9663 rm -f conftest.undefs
9664 mv conftest.tail conftest.undefs
9666 rm -f conftest.undefs
9668 cat >>$CONFIG_STATUS <<\_ACEOF
9669 # Let's still pretend it is `configure' which instantiates (i.e., don't
9670 # use $as_me), people would be surprised to read:
9671 # /* config.h. Generated by config.status. */
9672 if test x"$ac_file" = x-; then
9673 echo "/* Generated by configure. */" >$tmp/config.h
9675 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9677 cat $tmp/in >>$tmp/config.h
9679 if test x"$ac_file" != x-; then
9680 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9681 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9682 echo "$as_me: $ac_file is unchanged" >&6;}
9684 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9686 X"$ac_file" : 'X\(//\)[^/]' \| \
9687 X"$ac_file" : 'X\(//\)$' \| \
9688 X"$ac_file" : 'X\(/\)' \| \
9689 . : '\(.\)' 2>/dev/null ||
9691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9693 /^X\(\/\/\)$/{ s//\1/; q; }
9694 /^X\(\/\).*/{ s//\1/; q; }
9696 { if $as_mkdir_p; then
9701 while test ! -d "$as_dir"; do
9702 as_dirs="$as_dir $as_dirs"
9703 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9705 X"$as_dir" : 'X\(//\)[^/]' \| \
9706 X"$as_dir" : 'X\(//\)$' \| \
9707 X"$as_dir" : 'X\(/\)' \| \
9708 . : '\(.\)' 2>/dev/null ||
9710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9712 /^X\(\/\/\)$/{ s//\1/; q; }
9713 /^X\(\/\).*/{ s//\1/; q; }
9716 test ! -n "$as_dirs" || mkdir $as_dirs
9717 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9718 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9719 { (exit 1); exit 1; }; }; }
9722 mv $tmp/config.h $ac_file
9730 cat >>$CONFIG_STATUS <<\_ACEOF
9733 # CONFIG_LINKS section.
9736 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9737 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9738 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9740 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9741 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9743 if test ! -r $srcdir/$ac_source; then
9744 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9745 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9746 { (exit 1); exit 1; }; }
9750 # Make relative symlinks.
9751 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9752 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9753 X"$ac_dest" : 'X\(//\)[^/]' \| \
9754 X"$ac_dest" : 'X\(//\)$' \| \
9755 X"$ac_dest" : 'X\(/\)' \| \
9756 . : '\(.\)' 2>/dev/null ||
9758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9760 /^X\(\/\/\)$/{ s//\1/; q; }
9761 /^X\(\/\).*/{ s//\1/; q; }
9763 { if $as_mkdir_p; then
9764 mkdir -p "$ac_dest_dir"
9766 as_dir="$ac_dest_dir"
9768 while test ! -d "$as_dir"; do
9769 as_dirs="$as_dir $as_dirs"
9770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9772 X"$as_dir" : 'X\(//\)[^/]' \| \
9773 X"$as_dir" : 'X\(//\)$' \| \
9774 X"$as_dir" : 'X\(/\)' \| \
9775 . : '\(.\)' 2>/dev/null ||
9777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9779 /^X\(\/\/\)$/{ s//\1/; q; }
9780 /^X\(\/\).*/{ s//\1/; q; }
9783 test ! -n "$as_dirs" || mkdir $as_dirs
9784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9785 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9786 { (exit 1); exit 1; }; }; }
9790 if test "$ac_dest_dir" != .; then
9791 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9792 # A "../" for each directory in $ac_dir_suffix.
9793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9795 ac_dir_suffix= ac_top_builddir=
9799 .) # No --srcdir option. We are building in place.
9801 if test -z "$ac_top_builddir"; then
9804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9806 [\\/]* | ?:[\\/]* ) # Absolute path.
9807 ac_srcdir=$srcdir$ac_dir_suffix;
9808 ac_top_srcdir=$srcdir ;;
9810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9814 # Do not use `cd foo && pwd` to compute absolute paths, because
9815 # the directories may not exist.
9817 .) ac_abs_builddir="$ac_dest_dir";;
9819 case "$ac_dest_dir" in
9820 .) ac_abs_builddir=`pwd`;;
9821 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9822 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9825 case $ac_abs_builddir in
9826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9828 case ${ac_top_builddir}. in
9829 .) ac_abs_top_builddir=$ac_abs_builddir;;
9830 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9831 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9834 case $ac_abs_builddir in
9835 .) ac_abs_srcdir=$ac_srcdir;;
9838 .) ac_abs_srcdir=$ac_abs_builddir;;
9839 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9840 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9843 case $ac_abs_builddir in
9844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9846 case $ac_top_srcdir in
9847 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9848 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9849 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9855 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9856 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9859 # Try a symlink, then a hard link, then a copy.
9860 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9861 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9862 cp -p $srcdir/$ac_source $ac_dest ||
9863 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9864 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9865 { (exit 1); exit 1; }; }
9868 cat >>$CONFIG_STATUS <<\_ACEOF
9871 # CONFIG_COMMANDS section.
9873 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9874 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9875 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9876 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9877 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9878 X"$ac_dest" : 'X\(//\)[^/]' \| \
9879 X"$ac_dest" : 'X\(//\)$' \| \
9880 X"$ac_dest" : 'X\(/\)' \| \
9881 . : '\(.\)' 2>/dev/null ||
9883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9885 /^X\(\/\/\)$/{ s//\1/; q; }
9886 /^X\(\/\).*/{ s//\1/; q; }
9888 { if $as_mkdir_p; then
9893 while test ! -d "$as_dir"; do
9894 as_dirs="$as_dir $as_dirs"
9895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9897 X"$as_dir" : 'X\(//\)[^/]' \| \
9898 X"$as_dir" : 'X\(//\)$' \| \
9899 X"$as_dir" : 'X\(/\)' \| \
9900 . : '\(.\)' 2>/dev/null ||
9902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9904 /^X\(\/\/\)$/{ s//\1/; q; }
9905 /^X\(\/\).*/{ s//\1/; q; }
9908 test ! -n "$as_dirs" || mkdir $as_dirs
9909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9910 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9911 { (exit 1); exit 1; }; }; }
9915 if test "$ac_dir" != .; then
9916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9917 # A "../" for each directory in $ac_dir_suffix.
9918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9920 ac_dir_suffix= ac_top_builddir=
9924 .) # No --srcdir option. We are building in place.
9926 if test -z "$ac_top_builddir"; then
9929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9931 [\\/]* | ?:[\\/]* ) # Absolute path.
9932 ac_srcdir=$srcdir$ac_dir_suffix;
9933 ac_top_srcdir=$srcdir ;;
9935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9939 # Do not use `cd foo && pwd` to compute absolute paths, because
9940 # the directories may not exist.
9942 .) ac_abs_builddir="$ac_dir";;
9945 .) ac_abs_builddir=`pwd`;;
9946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9947 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9950 case $ac_abs_builddir in
9951 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9953 case ${ac_top_builddir}. in
9954 .) ac_abs_top_builddir=$ac_abs_builddir;;
9955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9959 case $ac_abs_builddir in
9960 .) ac_abs_srcdir=$ac_srcdir;;
9963 .) ac_abs_srcdir=$ac_abs_builddir;;
9964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9968 case $ac_abs_builddir in
9969 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9971 case $ac_top_srcdir in
9972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9979 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9980 echo "$as_me: executing $ac_dest commands" >&6;}
9982 default ) case "x$CONFIG_FILES" in
9984 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9985 rm -f Makesim1.tmp Makesim2.tmp Makefile
9986 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
9987 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
9988 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9989 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9990 <Makefile.sim >Makefile
9991 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9994 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
10000 cat >>$CONFIG_STATUS <<\_ACEOF
10002 { (exit 0); exit 0; }
10004 chmod +x $CONFIG_STATUS
10005 ac_clean_files=$ac_clean_files_save
10008 # configure is writing to config.log, and then calls config.status.
10009 # config.status does its own redirection, appending to config.log.
10010 # Unfortunately, on DOS this fails, as config.log is still kept open
10011 # by configure, so config.status won't be able to write to it; its
10012 # output is simply discarded. So we exec the FD to /dev/null,
10013 # effectively closing config.log, so it can be properly (re)opened and
10014 # appended to by config.status. When coming back to configure, we
10015 # need to make the FD available again.
10016 if test "$no_create" != yes; then
10018 ac_config_status_args=
10019 test "$silent" = yes &&
10020 ac_config_status_args="$ac_config_status_args --quiet"
10022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10025 # would make configure fail if this is the last instruction.
10026 $ac_cs_success || { (exit 1); exit 1; }