2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile 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 TERMCAP 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 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-maintainer-mode Enable developer functionality.
854 --enable-sim-bswap Use Host specific BSWAP instruction.
855 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
856 --enable-sim-debug=opts Enable debugging flags
857 --enable-sim-stdio Specify whether to use stdio for console input/output.
858 --enable-sim-trace=opts Enable tracing flags
859 --enable-sim-profile=opts Enable profiling flags
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .) ac_abs_builddir="$ac_dir";;
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_must_keep_next=false
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 -* ) ac_must_keep_next=true ;;
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088 # Save into config.log some information that might help in debugging.
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1098 # The following way of writing the cache mishandles newlines in values,
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1121 for ac_var in $ac_subst_vars
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -n "$ac_subst_files"; then
1135 for ac_var in $ac_subst_files
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -s confdefs.h; then
1150 sed "/^$/d" confdefs.h | sort
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1157 rm -f core *.core &&
1158 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's/^/| /' "$ac_site_file" >&5
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1233 # Check that the precious variables saved in the cache have kept the same
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 # This file contains common code used by all simulators.
1311 # common.m4 invokes AC macros used by all simulators and by the common
1312 # directory. It is intended to be included before any target specific
1313 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1314 # the Makefile. It is intended to be invoked last.
1316 # The simulator's configure.in should look like:
1318 # dnl Process this file with autoconf to produce a configure script.
1320 # AC_INIT(Makefile.in)
1322 # sinclude(../common/common.m4)
1324 # ... target specific stuff ...
1326 # autoconf.info says this should be called right after AC_INIT.
1327 ac_config_headers="$ac_config_headers config.h:config.in"
1330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1335 elif test -f $ac_dir/install.sh; then
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1339 elif test -f $ac_dir/shtool; then
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1345 if test -z "$ac_aux_dir"; then
1346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348 { (exit 1); exit 1; }; }
1350 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1354 # Make sure we can run config.sub.
1355 $ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1360 echo "$as_me:$LINENO: checking build system type" >&5
1361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362 if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 ac_cv_build_alias=$build_alias
1366 test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368 test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379 echo "${ECHO_T}$ac_cv_build" >&6
1381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1386 echo "$as_me:$LINENO: checking host system type" >&5
1387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388 if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 ac_cv_host_alias=$host_alias
1392 test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401 echo "${ECHO_T}$ac_cv_host" >&6
1403 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408 echo "$as_me:$LINENO: checking target system type" >&5
1409 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1410 if test "${ac_cv_target+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_target_alias=$target_alias
1414 test "x$ac_cv_target_alias" = "x" &&
1415 ac_cv_target_alias=$ac_cv_host_alias
1416 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1423 echo "${ECHO_T}$ac_cv_target" >&6
1424 target=$ac_cv_target
1425 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 # The aliases save the names the user supplied, while $host etc.
1431 # will get canonicalized.
1432 test -n "$target_alias" &&
1433 test "$program_prefix$program_suffix$program_transform_name" = \
1435 program_prefix=${target_alias}-
1436 test "$program_prefix" != NONE &&
1437 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1438 # Use a double $ so make ignores it.
1439 test "$program_suffix" != NONE &&
1440 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1441 # Double any \ or $. echo might interpret backslashes.
1442 # By default was `s,x,x', remove it if useless.
1443 cat <<\_ACEOF >conftest.sed
1444 s/[\\$]/&&/g;s/;s,x,x,$//
1446 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1450 ac_cpp='$CPP $CPPFLAGS'
1451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1456 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1457 echo "$as_me:$LINENO: checking for $ac_word" >&5
1458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459 if test "${ac_cv_prog_CC+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482 if test -n "$CC"; then
1483 echo "$as_me:$LINENO: result: $CC" >&5
1484 echo "${ECHO_T}$CC" >&6
1486 echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1491 if test -z "$ac_cv_prog_CC"; then
1493 # Extract the first word of "gcc", so it can be a program name with args.
1494 set dummy gcc; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 if test -n "$ac_ct_CC"; then
1501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_CC="gcc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520 if test -n "$ac_ct_CC"; then
1521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522 echo "${ECHO_T}$ac_ct_CC" >&6
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1533 if test -z "$CC"; then
1534 if test -n "$ac_tool_prefix"; then
1535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1536 set dummy ${ac_tool_prefix}cc; ac_word=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 ac_cv_prog_CC="${ac_tool_prefix}cc"
1553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562 if test -n "$CC"; then
1563 echo "$as_me:$LINENO: result: $CC" >&5
1564 echo "${ECHO_T}$CC" >&6
1566 echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1571 if test -z "$ac_cv_prog_CC"; then
1573 # Extract the first word of "cc", so it can be a program name with args.
1574 set dummy cc; ac_word=$2
1575 echo "$as_me:$LINENO: checking for $ac_word" >&5
1576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 if test -n "$ac_ct_CC"; then
1581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 test -z "$as_dir" && as_dir=.
1588 for ac_exec_ext in '' $ac_executable_extensions; do
1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590 ac_cv_prog_ac_ct_CC="cc"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1600 if test -n "$ac_ct_CC"; then
1601 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1602 echo "${ECHO_T}$ac_ct_CC" >&6
1604 echo "$as_me:$LINENO: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1614 if test -z "$CC"; then
1615 # Extract the first word of "cc", so it can be a program name with args.
1616 set dummy cc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1634 ac_prog_rejected=yes
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 if test $ac_prog_rejected = yes; then
1645 # We found a bogon in the path, so make sure we never use it.
1646 set dummy $ac_cv_prog_CC
1648 if test $# != 0; then
1649 # We chose a different compiler from the bogus one.
1650 # However, it has the same basename, so the bogon will be chosen
1651 # first if we set CC to just the basename; use the full file name.
1653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1659 if test -n "$CC"; then
1660 echo "$as_me:$LINENO: result: $CC" >&5
1661 echo "${ECHO_T}$CC" >&6
1663 echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1668 if test -z "$CC"; then
1669 if test -n "$ac_tool_prefix"; then
1672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 if test -n "$CC"; then
1680 ac_cv_prog_CC="$CC" # Let the user override the test.
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 if test -n "$CC"; then
1700 echo "$as_me:$LINENO: result: $CC" >&5
1701 echo "${ECHO_T}$CC" >&6
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1707 test -n "$CC" && break
1710 if test -z "$CC"; then
1714 # Extract the first word of "$ac_prog", so it can be a program name with args.
1715 set dummy $ac_prog; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 if test -n "$ac_ct_CC"; then
1722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_ac_ct_CC="$ac_prog"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1741 if test -n "$ac_ct_CC"; then
1742 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1743 echo "${ECHO_T}$ac_ct_CC" >&6
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1749 test -n "$ac_ct_CC" && break
1758 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1759 See \`config.log' for more details." >&5
1760 echo "$as_me: error: no acceptable C compiler found in \$PATH
1761 See \`config.log' for more details." >&2;}
1762 { (exit 1); exit 1; }; }
1764 # Provide some information about the compiler.
1765 echo "$as_me:$LINENO:" \
1766 "checking for C compiler version" >&5
1767 ac_compiler=`set X $ac_compile; echo $2`
1768 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1769 (eval $ac_compiler --version </dev/null >&5) 2>&5
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }
1773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1774 (eval $ac_compiler -v </dev/null >&5) 2>&5
1776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777 (exit $ac_status); }
1778 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1779 (eval $ac_compiler -V </dev/null >&5) 2>&5
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); }
1784 cat >conftest.$ac_ext <<_ACEOF
1787 cat confdefs.h >>conftest.$ac_ext
1788 cat >>conftest.$ac_ext <<_ACEOF
1789 /* end confdefs.h. */
1799 ac_clean_files_save=$ac_clean_files
1800 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1801 # Try to create an executable without -o first, disregard a.out.
1802 # It will help us diagnose broken compilers, and finding out an intuition
1804 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1805 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1806 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1807 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1808 (eval $ac_link_default) 2>&5
1810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811 (exit $ac_status); }; then
1812 # Find the output, starting from the most likely. This scheme is
1813 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1816 # Be careful to initialize this variable, since it used to be cached.
1817 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1819 # b.out is created by i960 compilers.
1820 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1822 test -f "$ac_file" || continue
1824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1827 # This is the source file.
1830 # We found the default executable, but exeext='' is most
1834 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 # FIXME: I believe we export ac_cv_exeext for Libtool,
1836 # but it would be cool to find out if it's true. Does anybody
1837 # maintain Libtool? --akim.
1845 echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1849 See \`config.log' for more details." >&5
1850 echo "$as_me: error: C compiler cannot create executables
1851 See \`config.log' for more details." >&2;}
1852 { (exit 77); exit 77; }; }
1855 ac_exeext=$ac_cv_exeext
1856 echo "$as_me:$LINENO: result: $ac_file" >&5
1857 echo "${ECHO_T}$ac_file" >&6
1859 # Check the compiler produces executables we can run. If not, either
1860 # the compiler is broken, or we cross compile.
1861 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1862 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1863 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1864 # If not cross compiling, check that we can run a simple program.
1865 if test "$cross_compiling" != yes; then
1866 if { ac_try='./$ac_file'
1867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }; }; then
1874 if test "$cross_compiling" = maybe; then
1877 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1878 If you meant to cross compile, use \`--host'.
1879 See \`config.log' for more details." >&5
1880 echo "$as_me: error: cannot run C compiled programs.
1881 If you meant to cross compile, use \`--host'.
1882 See \`config.log' for more details." >&2;}
1883 { (exit 1); exit 1; }; }
1887 echo "$as_me:$LINENO: result: yes" >&5
1888 echo "${ECHO_T}yes" >&6
1890 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1891 ac_clean_files=$ac_clean_files_save
1892 # Check the compiler produces executables we can run. If not, either
1893 # the compiler is broken, or we cross compile.
1894 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1895 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1896 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1897 echo "${ECHO_T}$cross_compiling" >&6
1899 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1900 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1902 (eval $ac_link) 2>&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; then
1906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1907 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1908 # work properly (i.e., refer to `conftest.exe'), while it won't with
1910 for ac_file in conftest.exe conftest conftest.*; do
1911 test -f "$ac_file" || continue
1913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1921 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1922 See \`config.log' for more details." >&5
1923 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1924 See \`config.log' for more details." >&2;}
1925 { (exit 1); exit 1; }; }
1928 rm -f conftest$ac_cv_exeext
1929 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1930 echo "${ECHO_T}$ac_cv_exeext" >&6
1932 rm -f conftest.$ac_ext
1933 EXEEXT=$ac_cv_exeext
1935 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1936 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1937 if test "${ac_cv_objext+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 cat >conftest.$ac_ext <<_ACEOF
1943 cat confdefs.h >>conftest.$ac_ext
1944 cat >>conftest.$ac_ext <<_ACEOF
1945 /* end confdefs.h. */
1955 rm -f conftest.o conftest.obj
1956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1957 (eval $ac_compile) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; then
1961 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1964 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1969 echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1973 See \`config.log' for more details." >&5
1974 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1975 See \`config.log' for more details." >&2;}
1976 { (exit 1); exit 1; }; }
1979 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1981 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1982 echo "${ECHO_T}$ac_cv_objext" >&6
1983 OBJEXT=$ac_cv_objext
1985 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1986 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1987 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 cat >conftest.$ac_ext <<_ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h. */
2008 rm -f conftest.$ac_objext
2009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010 (eval $ac_compile) 2>conftest.er1
2012 grep -v '^ *+' conftest.er1 >conftest.err
2014 cat conftest.err >&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); } &&
2017 { ac_try='test -z "$ac_c_werror_flag"
2018 || test ! -s conftest.err'
2019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; } &&
2024 { ac_try='test -s conftest.$ac_objext'
2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; }; then
2032 echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2041 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2043 GCC=`test $ac_compiler_gnu = yes && echo yes`
2044 ac_test_CFLAGS=${CFLAGS+set}
2045 ac_save_CFLAGS=$CFLAGS
2047 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2048 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2049 if test "${ac_cv_prog_cc_g+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 cat >conftest.$ac_ext <<_ACEOF
2055 cat confdefs.h >>conftest.$ac_ext
2056 cat >>conftest.$ac_ext <<_ACEOF
2057 /* end confdefs.h. */
2067 rm -f conftest.$ac_objext
2068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069 (eval $ac_compile) 2>conftest.er1
2071 grep -v '^ *+' conftest.er1 >conftest.err
2073 cat conftest.err >&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try='test -z "$ac_c_werror_flag"
2077 || test ! -s conftest.err'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; } &&
2083 { ac_try='test -s conftest.$ac_objext'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2091 echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2100 if test "$ac_test_CFLAGS" = set; then
2101 CFLAGS=$ac_save_CFLAGS
2102 elif test $ac_cv_prog_cc_g = yes; then
2103 if test "$GCC" = yes; then
2109 if test "$GCC" = yes; then
2115 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2116 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 ac_cv_prog_cc_stdc=no
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2130 #include <sys/types.h>
2131 #include <sys/stat.h>
2132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2133 struct buf { int x; };
2134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2135 static char *e (p, i)
2141 static char *f (char * (*g) (char **, int), char **p, ...)
2146 s = g (p, va_arg (v,int));
2151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2152 function prototypes and stuff, but not '\xHH' hex character constants.
2153 These don't provoke an error unfortunately, instead are silently treated
2154 as 'x'. The following induces an error, until -std1 is added to get
2155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2156 array size at least. It's necessary to write '\x00'==0 to get something
2157 that's true only with -std1. */
2158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2160 int test (int i, double x);
2161 struct s1 {int (*f) (int a);};
2162 struct s2 {int (*f) (double a);};
2163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2174 # Don't try gcc -ansi; that turns off useful extensions and
2175 # breaks some systems' header files.
2176 # AIX -qlanglvl=ansi
2177 # Ultrix and OSF/1 -std1
2178 # HP-UX 10.20 and later -Ae
2179 # HP-UX older versions -Aa -D_HPUX_SOURCE
2180 # SVR4 -Xc -D__EXTENSIONS__
2181 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2183 CC="$ac_save_CC $ac_arg"
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>conftest.er1
2188 grep -v '^ *+' conftest.er1 >conftest.err
2190 cat conftest.err >&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); } &&
2193 { ac_try='test -z "$ac_c_werror_flag"
2194 || test ! -s conftest.err'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; } &&
2200 { ac_try='test -s conftest.$ac_objext'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2206 ac_cv_prog_cc_stdc=$ac_arg
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2213 rm -f conftest.err conftest.$ac_objext
2215 rm -f conftest.$ac_ext conftest.$ac_objext
2220 case "x$ac_cv_prog_cc_stdc" in
2222 echo "$as_me:$LINENO: result: none needed" >&5
2223 echo "${ECHO_T}none needed" >&6 ;;
2225 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2226 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2227 CC="$CC $ac_cv_prog_cc_stdc" ;;
2230 # Some people use a C++ compiler to compile C. Since we use `exit',
2231 # in C++ we need to declare it. In case someone uses the same compiler
2232 # for both compiling C and C++ we need to have the C++ compiler decide
2233 # the declaration of exit, since it's the most demanding environment.
2234 cat >conftest.$ac_ext <<_ACEOF
2239 rm -f conftest.$ac_objext
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>conftest.er1
2243 grep -v '^ *+' conftest.er1 >conftest.err
2245 cat conftest.err >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -z "$ac_c_werror_flag"
2249 || test ! -s conftest.err'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; } &&
2255 { ac_try='test -s conftest.$ac_objext'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2261 for ac_declaration in \
2263 'extern "C" void std::exit (int) throw (); using std::exit;' \
2264 'extern "C" void std::exit (int); using std::exit;' \
2265 'extern "C" void exit (int) throw ();' \
2266 'extern "C" void exit (int);' \
2269 cat >conftest.$ac_ext <<_ACEOF
2272 cat confdefs.h >>conftest.$ac_ext
2273 cat >>conftest.$ac_ext <<_ACEOF
2274 /* end confdefs.h. */
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2289 grep -v '^ *+' conftest.er1 >conftest.err
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2315 cat >conftest.$ac_ext <<_ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h. */
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2334 grep -v '^ *+' conftest.er1 >conftest.err
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361 if test -n "$ac_declaration"; then
2362 echo '#ifdef __cplusplus' >>confdefs.h
2363 echo $ac_declaration >>confdefs.h
2364 echo '#endif' >>confdefs.h
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379 # Find a good install program. We prefer a C program (faster),
2380 # so one script is as good as another. But avoid the broken or
2381 # incompatible versions:
2382 # SysV /etc/install, /usr/sbin/install
2383 # SunOS /usr/etc/install
2384 # IRIX /sbin/install
2386 # AmigaOS /C/install, which installs bootblocks on floppy discs
2387 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2388 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2389 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2390 # OS/2's system install, which has a completely different semantic
2391 # ./install, which can be erroneously created by make from ./install.sh.
2392 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2393 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2394 if test -z "$INSTALL"; then
2395 if test "${ac_cv_path_install+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 # Account for people who put trailing slashes in PATH elements.
2405 ./ | .// | /cC/* | \
2406 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2407 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2410 # OSF1 and SCO ODT 3.0 have their own names for install.
2411 # Don't use installbsd from OSF since it installs stuff as root
2413 for ac_prog in ginstall scoinst install; do
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2416 if test $ac_prog = install &&
2417 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418 # AIX install. It has an incompatible calling convention.
2420 elif test $ac_prog = install &&
2421 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422 # program-specific install script used by HP pwplus--don't use.
2425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2437 if test "${ac_cv_path_install+set}" = set; then
2438 INSTALL=$ac_cv_path_install
2440 # As a last resort, use the slow shell script. We don't cache a
2441 # path for INSTALL within a source directory, because that will
2442 # break other packages using the cache if that directory is
2443 # removed, or if the path is relative.
2444 INSTALL=$ac_install_sh
2447 echo "$as_me:$LINENO: result: $INSTALL" >&5
2448 echo "${ECHO_T}$INSTALL" >&6
2450 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2451 # It thinks the first close brace ends the variable substitution.
2452 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2454 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2456 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2459 # Put a plausible default for CC_FOR_BUILD in Makefile.
2460 if test "x$cross_compiling" = "xno"; then
2461 CC_FOR_BUILD='$(CC)'
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_RANLIB+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$RANLIB"; then
2480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 RANLIB=$ac_cv_prog_RANLIB
2499 if test -n "$RANLIB"; then
2500 echo "$as_me:$LINENO: result: $RANLIB" >&5
2501 echo "${ECHO_T}$RANLIB" >&6
2503 echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2508 if test -z "$ac_cv_prog_RANLIB"; then
2509 ac_ct_RANLIB=$RANLIB
2510 # Extract the first word of "ranlib", so it can be a program name with args.
2511 set dummy ranlib; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 if test -n "$ac_ct_RANLIB"; then
2518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_ac_ct_RANLIB="ranlib"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2538 if test -n "$ac_ct_RANLIB"; then
2539 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2540 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2542 echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6
2546 RANLIB=$ac_ct_RANLIB
2548 RANLIB="$ac_cv_prog_RANLIB"
2555 # Check for common headers.
2556 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2557 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2565 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2566 # On Suns, sometimes $CPP names a directory.
2567 if test -n "$CPP" && test -d "$CPP"; then
2570 if test -z "$CPP"; then
2571 if test "${ac_cv_prog_CPP+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 # Double quotes because CPP needs to be expanded
2575 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2578 for ac_c_preproc_warn_flag in '' yes
2580 # Use a header file that comes with gcc, so configuring glibc
2581 # with a fresh cross-compiler works.
2582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2583 # <limits.h> exists even on freestanding compilers.
2584 # On the NeXT, cc -E runs the code through the compiler's parser,
2585 # not just through cpp. "Syntax error" is here to catch this case.
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2593 # include <limits.h>
2595 # include <assert.h>
2599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } >/dev/null; then
2607 if test -s conftest.err; then
2608 ac_cpp_err=$ac_c_preproc_warn_flag
2609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2616 if test -z "$ac_cpp_err"; then
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2622 # Broken: fails on valid input.
2625 rm -f conftest.err conftest.$ac_ext
2627 # OK, works on sane cases. Now check whether non-existent headers
2628 # can be detected and how.
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2635 #include <ac_nonexistent.h>
2637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2640 grep -v '^ *+' conftest.er1 >conftest.err
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } >/dev/null; then
2645 if test -s conftest.err; then
2646 ac_cpp_err=$ac_c_preproc_warn_flag
2647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2654 if test -z "$ac_cpp_err"; then
2655 # Broken: success on invalid input.
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 # Passes both tests.
2665 rm -f conftest.err conftest.$ac_ext
2668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2669 rm -f conftest.err conftest.$ac_ext
2670 if $ac_preproc_ok; then
2682 echo "$as_me:$LINENO: result: $CPP" >&5
2683 echo "${ECHO_T}$CPP" >&6
2685 for ac_c_preproc_warn_flag in '' yes
2687 # Use a header file that comes with gcc, so configuring glibc
2688 # with a fresh cross-compiler works.
2689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2690 # <limits.h> exists even on freestanding compilers.
2691 # On the NeXT, cc -E runs the code through the compiler's parser,
2692 # not just through cpp. "Syntax error" is here to catch this case.
2693 cat >conftest.$ac_ext <<_ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2700 # include <limits.h>
2702 # include <assert.h>
2706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } >/dev/null; then
2714 if test -s conftest.err; then
2715 ac_cpp_err=$ac_c_preproc_warn_flag
2716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2723 if test -z "$ac_cpp_err"; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2729 # Broken: fails on valid input.
2732 rm -f conftest.err conftest.$ac_ext
2734 # OK, works on sane cases. Now check whether non-existent headers
2735 # can be detected and how.
2736 cat >conftest.$ac_ext <<_ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2742 #include <ac_nonexistent.h>
2744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2747 grep -v '^ *+' conftest.er1 >conftest.err
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } >/dev/null; then
2752 if test -s conftest.err; then
2753 ac_cpp_err=$ac_c_preproc_warn_flag
2754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2761 if test -z "$ac_cpp_err"; then
2762 # Broken: success on invalid input.
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 # Passes both tests.
2772 rm -f conftest.err conftest.$ac_ext
2775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2776 rm -f conftest.err conftest.$ac_ext
2777 if $ac_preproc_ok; then
2780 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2781 See \`config.log' for more details." >&5
2782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2783 See \`config.log' for more details." >&2;}
2784 { (exit 1); exit 1; }; }
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 echo "$as_me:$LINENO: checking for egrep" >&5
2795 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2796 if test "${ac_cv_prog_egrep+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2800 then ac_cv_prog_egrep='grep -E'
2801 else ac_cv_prog_egrep='egrep'
2804 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2805 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2806 EGREP=$ac_cv_prog_egrep
2809 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2811 if test "${ac_cv_header_stdc+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 cat >conftest.$ac_ext <<_ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_cv_header_stdc=yes
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2860 ac_cv_header_stdc=no
2862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864 if test $ac_cv_header_stdc = yes; then
2865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2876 $EGREP "memchr" >/dev/null 2>&1; then
2879 ac_cv_header_stdc=no
2885 if test $ac_cv_header_stdc = yes; then
2886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2887 cat >conftest.$ac_ext <<_ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2897 $EGREP "free" >/dev/null 2>&1; then
2900 ac_cv_header_stdc=no
2906 if test $ac_cv_header_stdc = yes; then
2907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2908 if test "$cross_compiling" = yes; then
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2918 #if ((' ' & 0x0FF) == 0x020)
2919 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2920 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2922 # define ISLOWER(c) \
2923 (('a' <= (c) && (c) <= 'i') \
2924 || ('j' <= (c) && (c) <= 'r') \
2925 || ('s' <= (c) && (c) <= 'z'))
2926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2934 for (i = 0; i < 256; i++)
2935 if (XOR (islower (i), ISLOWER (i))
2936 || toupper (i) != TOUPPER (i))
2941 rm -f conftest$ac_exeext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2943 (eval $ac_link) 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2954 echo "$as_me: program exited with status $ac_status" >&5
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2959 ac_cv_header_stdc=no
2961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2965 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2966 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2967 if test $ac_cv_header_stdc = yes; then
2969 cat >>confdefs.h <<\_ACEOF
2970 #define STDC_HEADERS 1
2975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2985 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2986 inttypes.h stdint.h unistd.h
2988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2989 echo "$as_me:$LINENO: checking for $ac_header" >&5
2990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3000 $ac_includes_default
3002 #include <$ac_header>
3004 rm -f conftest.$ac_objext
3005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006 (eval $ac_compile) 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag"
3014 || test ! -s conftest.err'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; } &&
3020 { ac_try='test -s conftest.$ac_objext'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 eval "$as_ac_Header=yes"
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 eval "$as_ac_Header=no"
3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3038 cat >>confdefs.h <<_ACEOF
3039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3052 for ac_header in stdlib.h string.h strings.h unistd.h time.h
3054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3056 echo "$as_me:$LINENO: checking for $ac_header" >&5
3057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3064 # Is the header compilable?
3065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 $ac_includes_default
3074 #include <$ac_header>
3076 rm -f conftest.$ac_objext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -z "$ac_c_werror_flag"
3086 || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_header_compiler=yes
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 ac_header_compiler=no
3105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3107 echo "${ECHO_T}$ac_header_compiler" >&6
3109 # Is the header present?
3110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3112 cat >conftest.$ac_ext <<_ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3118 #include <$ac_header>
3120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123 grep -v '^ *+' conftest.er1 >conftest.err
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } >/dev/null; then
3128 if test -s conftest.err; then
3129 ac_cpp_err=$ac_c_preproc_warn_flag
3130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3137 if test -z "$ac_cpp_err"; then
3138 ac_header_preproc=yes
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 ac_header_preproc=no
3145 rm -f conftest.err conftest.$ac_ext
3146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3147 echo "${ECHO_T}$ac_header_preproc" >&6
3149 # So? What about this header?
3150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3156 ac_header_preproc=yes
3159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3173 ## ------------------------------------------ ##
3174 ## Report this to the AC_PACKAGE_NAME lists. ##
3175 ## ------------------------------------------ ##
3178 sed "s/^/$as_me: WARNING: /" >&2
3181 echo "$as_me:$LINENO: checking for $ac_header" >&5
3182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 eval "$as_ac_Header=\$ac_header_preproc"
3188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3193 cat >>confdefs.h <<_ACEOF
3194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3203 for ac_header in sys/time.h sys/resource.h
3205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3207 echo "$as_me:$LINENO: checking for $ac_header" >&5
3208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3215 # Is the header compilable?
3216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3218 cat >conftest.$ac_ext <<_ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224 $ac_includes_default
3225 #include <$ac_header>
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag"
3237 || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_header_compiler=yes
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 ac_header_compiler=no
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3258 echo "${ECHO_T}$ac_header_compiler" >&6
3260 # Is the header present?
3261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <$ac_header>
3271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } >/dev/null; then
3279 if test -s conftest.err; then
3280 ac_cpp_err=$ac_c_preproc_warn_flag
3281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3288 if test -z "$ac_cpp_err"; then
3289 ac_header_preproc=yes
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 ac_header_preproc=no
3296 rm -f conftest.err conftest.$ac_ext
3297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3298 echo "${ECHO_T}$ac_header_preproc" >&6
3300 # So? What about this header?
3301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3307 ac_header_preproc=yes
3310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3324 ## ------------------------------------------ ##
3325 ## Report this to the AC_PACKAGE_NAME lists. ##
3326 ## ------------------------------------------ ##
3329 sed "s/^/$as_me: WARNING: /" >&2
3332 echo "$as_me:$LINENO: checking for $ac_header" >&5
3333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 eval "$as_ac_Header=\$ac_header_preproc"
3339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3344 cat >>confdefs.h <<_ACEOF
3345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3354 for ac_header in fcntl.h fpu_control.h
3356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3358 echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3366 # Is the header compilable?
3367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 $ac_includes_default
3376 #include <$ac_header>
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 ac_header_compiler=yes
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 ac_header_compiler=no
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3409 echo "${ECHO_T}$ac_header_compiler" >&6
3411 # Is the header present?
3412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <$ac_header>
3422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } >/dev/null; then
3430 if test -s conftest.err; then
3431 ac_cpp_err=$ac_c_preproc_warn_flag
3432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3439 if test -z "$ac_cpp_err"; then
3440 ac_header_preproc=yes
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 ac_header_preproc=no
3447 rm -f conftest.err conftest.$ac_ext
3448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3449 echo "${ECHO_T}$ac_header_preproc" >&6
3451 # So? What about this header?
3452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3458 ac_header_preproc=yes
3461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3475 ## ------------------------------------------ ##
3476 ## Report this to the AC_PACKAGE_NAME lists. ##
3477 ## ------------------------------------------ ##
3480 sed "s/^/$as_me: WARNING: /" >&2
3483 echo "$as_me:$LINENO: checking for $ac_header" >&5
3484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 eval "$as_ac_Header=\$ac_header_preproc"
3490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3495 cat >>confdefs.h <<_ACEOF
3496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3506 for ac_header in dlfcn.h errno.h sys/stat.h
3508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3510 echo "$as_me:$LINENO: checking for $ac_header" >&5
3511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3518 # Is the header compilable?
3519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 $ac_includes_default
3528 #include <$ac_header>
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 ac_header_compiler=yes
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 ac_header_compiler=no
3559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3561 echo "${ECHO_T}$ac_header_compiler" >&6
3563 # Is the header present?
3564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include <$ac_header>
3574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null; then
3582 if test -s conftest.err; then
3583 ac_cpp_err=$ac_c_preproc_warn_flag
3584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3591 if test -z "$ac_cpp_err"; then
3592 ac_header_preproc=yes
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 ac_header_preproc=no
3599 rm -f conftest.err conftest.$ac_ext
3600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3601 echo "${ECHO_T}$ac_header_preproc" >&6
3603 # So? What about this header?
3604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3610 ac_header_preproc=yes
3613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3627 ## ------------------------------------------ ##
3628 ## Report this to the AC_PACKAGE_NAME lists. ##
3629 ## ------------------------------------------ ##
3632 sed "s/^/$as_me: WARNING: /" >&2
3635 echo "$as_me:$LINENO: checking for $ac_header" >&5
3636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 eval "$as_ac_Header=\$ac_header_preproc"
3642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3647 cat >>confdefs.h <<_ACEOF
3648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3659 for ac_func in getrusage time sigaction __setfpucw
3661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3662 echo "$as_me:$LINENO: checking for $ac_func" >&5
3663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3664 if eval "test \"\${$as_ac_var+set}\" = set"; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3675 #define $ac_func innocuous_$ac_func
3677 /* System header to define __stub macros and hopefully few prototypes,
3678 which can conflict with char $ac_func (); below.
3679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3680 <limits.h> exists even on freestanding compilers. */
3683 # include <limits.h>
3685 # include <assert.h>
3690 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3698 /* The GNU C library defines this for functions which it implements
3699 to always fail with ENOSYS. Some functions are actually named
3700 something starting with __ and the normal name is an alias. */
3701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3704 char (*f) () = $ac_func;
3713 return f != $ac_func;
3718 rm -f conftest.$ac_objext conftest$ac_exeext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3720 (eval $ac_link) 2>conftest.er1
3722 grep -v '^ *+' conftest.er1 >conftest.err
3724 cat conftest.err >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } &&
3727 { ac_try='test -z "$ac_c_werror_flag"
3728 || test ! -s conftest.err'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; } &&
3734 { ac_try='test -s conftest$ac_exeext'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 eval "$as_ac_var=yes"
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 eval "$as_ac_var=no"
3747 rm -f conftest.err conftest.$ac_objext \
3748 conftest$ac_exeext conftest.$ac_ext
3750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3752 if test `eval echo '${'$as_ac_var'}'` = yes; then
3753 cat >>confdefs.h <<_ACEOF
3754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3761 # Check for socket libraries
3763 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3764 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3765 if test "${ac_cv_lib_socket_bind+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 ac_check_lib_save_LIBS=$LIBS
3769 LIBS="-lsocket $LIBS"
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3777 /* Override any gcc2 internal prototype to avoid an error. */
3781 /* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3792 rm -f conftest.$ac_objext conftest$ac_exeext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794 (eval $ac_link) 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest$ac_exeext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_cv_lib_socket_bind=yes
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 ac_cv_lib_socket_bind=no
3821 rm -f conftest.err conftest.$ac_objext \
3822 conftest$ac_exeext conftest.$ac_ext
3823 LIBS=$ac_check_lib_save_LIBS
3825 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
3826 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
3827 if test $ac_cv_lib_socket_bind = yes; then
3828 cat >>confdefs.h <<_ACEOF
3829 #define HAVE_LIBSOCKET 1
3832 LIBS="-lsocket $LIBS"
3837 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3838 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3839 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 ac_check_lib_save_LIBS=$LIBS
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3851 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3857 char gethostbyname ();
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868 (eval $ac_link) 2>conftest.er1
3870 grep -v '^ *+' conftest.er1 >conftest.err
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } &&
3875 { ac_try='test -z "$ac_c_werror_flag"
3876 || test ! -s conftest.err'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; } &&
3882 { ac_try='test -s conftest$ac_exeext'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; }; then
3888 ac_cv_lib_nsl_gethostbyname=yes
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 ac_cv_lib_nsl_gethostbyname=no
3895 rm -f conftest.err conftest.$ac_objext \
3896 conftest$ac_exeext conftest.$ac_ext
3897 LIBS=$ac_check_lib_save_LIBS
3899 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3900 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3901 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3902 cat >>confdefs.h <<_ACEOF
3903 #define HAVE_LIBNSL 1
3911 . ${srcdir}/../../bfd/configure.host
3915 USE_MAINTAINER_MODE=no
3916 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3917 if test "${enable_maintainer_mode+set}" = set; then
3918 enableval="$enable_maintainer_mode"
3919 case "${enableval}" in
3920 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
3922 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
3923 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
3924 { (exit 1); exit 1; }; }; MAINT="#" ;;
3926 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3927 echo "Setting maintainer mode" 6>&1
3934 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3935 if test "${enable_sim_bswap+set}" = set; then
3936 enableval="$enable_sim_bswap"
3937 case "${enableval}" in
3938 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3939 no) sim_bswap="-DWITH_BSWAP=0";;
3940 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
3941 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
3942 { (exit 1); exit 1; }; }; sim_bswap="";;
3944 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3945 echo "Setting bswap flags = $sim_bswap" 6>&1
3952 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3953 if test "${enable_sim_cflags+set}" = set; then
3954 enableval="$enable_sim_cflags"
3955 case "${enableval}" in
3956 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3957 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
3958 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
3959 { (exit 1); exit 1; }; }; sim_cflags="";;
3961 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3963 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3964 echo "Setting sim cflags = $sim_cflags" 6>&1
3971 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3972 if test "${enable_sim_debug+set}" = set; then
3973 enableval="$enable_sim_debug"
3974 case "${enableval}" in
3975 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3976 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3977 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3979 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3980 echo "Setting sim debug = $sim_debug" 6>&1
3987 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3988 if test "${enable_sim_stdio+set}" = set; then
3989 enableval="$enable_sim_stdio"
3990 case "${enableval}" in
3991 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3992 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3993 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3994 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3995 { (exit 1); exit 1; }; }; sim_stdio="";;
3997 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3998 echo "Setting stdio flags = $sim_stdio" 6>&1
4005 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4006 if test "${enable_sim_trace+set}" = set; then
4007 enableval="$enable_sim_trace"
4008 case "${enableval}" in
4009 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4010 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4012 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4015 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4016 if test x"$sim_trace" = x; then
4017 sim_trace="-DWITH_TRACE='(TRACE_$x"
4019 sim_trace="${sim_trace}|TRACE_$x"
4022 sim_trace="$sim_trace)'" ;;
4024 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4025 echo "Setting sim trace = $sim_trace" 6>&1
4032 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4033 if test "${enable_sim_profile+set}" = set; then
4034 enableval="$enable_sim_profile"
4035 case "${enableval}" in
4036 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4037 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4039 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4042 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4043 if test x"$sim_profile" = x; then
4044 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4046 sim_profile="${sim_profile}|PROFILE_$x"
4049 sim_profile="$sim_profile)'" ;;
4051 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4052 echo "Setting sim profile = $sim_profile" 6>&1
4055 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4059 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4060 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4061 if test "${ac_cv_type_signal+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <sys/types.h>
4076 extern "C" void (*signal (int, void (*)(int)))(int);
4078 void (*signal ()) ();
4089 rm -f conftest.$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>conftest.er1
4093 grep -v '^ *+' conftest.er1 >conftest.err
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -z "$ac_c_werror_flag"
4099 || test ! -s conftest.err'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 ac_cv_type_signal=void
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_cv_type_signal=int
4118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4120 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4121 echo "${ECHO_T}$ac_cv_type_signal" >&6
4123 cat >>confdefs.h <<_ACEOF
4124 #define RETSIGTYPE $ac_cv_type_signal
4134 sim_link_links=tconfig.h
4135 if test -f ${srcdir}/tconfig.in
4137 sim_link_files=tconfig.in
4139 sim_link_files=../common/tconfig.in
4142 # targ-vals.def points to the libc macro description file.
4144 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4146 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4147 sim_link_links="${sim_link_links} targ-vals.def"
4149 # This file contains common code used by all simulators.
4151 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
4152 # directory. It is intended to be invoked before any target specific stuff.
4153 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
4154 # It is intended to be invoked last.
4156 # The simulator's configure.in should look like:
4158 # dnl Process this file with autoconf to produce a configure script.
4159 # sinclude(../common/aclocal.m4)
4161 # AC_INIT(Makefile.in)
4165 # ... target specific stuff ...
4216 sim_inline="-DDEFAULT_INLINE=0"
4253 # This file is derived from `gettext.m4'. The difference is that the
4254 # included macros assume Cygnus-style source and build trees.
4256 # Macro to add for using GNU gettext.
4257 # Ulrich Drepper <drepper@cygnus.com>, 1995.
4259 # This file file be copied and used freely without restrictions. It can
4260 # be used in projects which are not available under the GNU Public License
4261 # but which still want to provide support for the GNU gettext functionality.
4262 # Please note that the actual code is *not* freely available.
4270 # Search path for a program which passes the given test.
4271 # Ulrich Drepper <drepper@cygnus.com>, 1996.
4273 # This file file be copied and used freely without restrictions. It can
4274 # be used in projects which are not available under the GNU Public License
4275 # but which still want to provide support for the GNU gettext functionality.
4276 # Please note that the actual code is *not* freely available.
4282 # Check whether LC_MESSAGES is available in <locale.h>.
4283 # Ulrich Drepper <drepper@cygnus.com>, 1995.
4285 # This file file be copied and used freely without restrictions. It can
4286 # be used in projects which are not available under the GNU Public License
4287 # but which still want to provide support for the GNU gettext functionality.
4288 # Please note that the actual code is *not* freely available.
4299 for ac_header in stdlib.h
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303 echo "$as_me:$LINENO: checking for $ac_header" >&5
4304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311 # Is the header compilable?
4312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4321 #include <$ac_header>
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>conftest.er1
4327 grep -v '^ *+' conftest.er1 >conftest.err
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -z "$ac_c_werror_flag"
4333 || test ! -s conftest.err'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; } &&
4339 { ac_try='test -s conftest.$ac_objext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 ac_header_compiler=yes
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4350 ac_header_compiler=no
4352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4354 echo "${ECHO_T}$ac_header_compiler" >&6
4356 # Is the header present?
4357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4359 cat >conftest.$ac_ext <<_ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365 #include <$ac_header>
4367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev/null; then
4375 if test -s conftest.err; then
4376 ac_cpp_err=$ac_c_preproc_warn_flag
4377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4384 if test -z "$ac_cpp_err"; then
4385 ac_header_preproc=yes
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_header_preproc=no
4392 rm -f conftest.err conftest.$ac_ext
4393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4394 echo "${ECHO_T}$ac_header_preproc" >&6
4396 # So? What about this header?
4397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4403 ac_header_preproc=yes
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4420 ## ------------------------------------------ ##
4421 ## Report this to the AC_PACKAGE_NAME lists. ##
4422 ## ------------------------------------------ ##
4425 sed "s/^/$as_me: WARNING: /" >&2
4428 echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 eval "$as_ac_Header=\$ac_header_preproc"
4435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4440 cat >>confdefs.h <<_ACEOF
4441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4449 # In the Cygwin environment, we need some additional flags.
4450 echo "$as_me:$LINENO: checking for cygwin" >&5
4451 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
4452 if test "${sim_cv_os_cygwin+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4467 $EGREP "lose" >/dev/null 2>&1; then
4468 sim_cv_os_cygwin=yes
4475 echo "$as_me:$LINENO: result: $sim_cv_os_cygwin" >&5
4476 echo "${ECHO_T}$sim_cv_os_cygwin" >&6
4478 if test x$sim_cv_os_cygwin = xyes; then
4479 TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
4481 echo "$as_me:$LINENO: checking for main in -ltermcap" >&5
4482 echo $ECHO_N "checking for main in -ltermcap... $ECHO_C" >&6
4483 if test "${ac_cv_lib_termcap_main+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 ac_check_lib_save_LIBS=$LIBS
4487 LIBS="-ltermcap $LIBS"
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4504 rm -f conftest.$ac_objext conftest$ac_exeext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506 (eval $ac_link) 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag"
4514 || test ! -s conftest.err'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try='test -s conftest$ac_exeext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_cv_lib_termcap_main=yes
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4531 ac_cv_lib_termcap_main=no
4533 rm -f conftest.err conftest.$ac_objext \
4534 conftest$ac_exeext conftest.$ac_ext
4535 LIBS=$ac_check_lib_save_LIBS
4537 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_main" >&5
4538 echo "${ECHO_T}$ac_cv_lib_termcap_main" >&6
4539 if test $ac_cv_lib_termcap_main = yes; then
4549 ac_sources="$sim_link_files"
4550 ac_dests="$sim_link_links"
4551 while test -n "$ac_sources"; do
4552 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4553 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4554 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
4556 ac_config_links="$ac_config_links $ac_config_links_1"
4559 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
4560 cgen_breaks="break cgen_rtx_error";
4563 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
4565 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
4567 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
4569 ac_config_commands="$ac_config_commands Makefile"
4571 ac_config_commands="$ac_config_commands stamp-h"
4573 cat >confcache <<\_ACEOF
4574 # This file is a shell script that caches the results of configure
4575 # tests run on this system so they can be shared between configure
4576 # scripts and configure runs, see configure's option --config-cache.
4577 # It is not useful on other systems. If it contains results you don't
4578 # want to keep, you may remove or edit it.
4580 # config.status only pays attention to the cache file if you give it
4581 # the --recheck option to rerun configure.
4583 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4584 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4589 # The following way of writing the cache mishandles newlines in values,
4590 # but we know of no workaround that is simple, portable, and efficient.
4591 # So, don't put newlines in cache variables' values.
4592 # Ultrix sh set writes to stderr and can't be redirected directly,
4593 # and sets the high bit in the cache file unless we assign to the vars.
4596 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4598 # `set' does not quote correctly, so add quotes (double-quote
4599 # substitution turns \\\\ into \\, and sed turns \\ into \).
4602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4605 # `set' quotes correctly as required by POSIX, so do not add quotes.
4607 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4616 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4618 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4619 if test -w $cache_file; then
4620 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4621 cat confcache >$cache_file
4623 echo "not updating unwritable cache $cache_file"
4628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4629 # Let make expand exec_prefix.
4630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4632 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4633 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4634 # trailing colons and then remove the whole line if VPATH becomes empty
4635 # (actually we leave an empty line to preserve line numbers).
4636 if test "x$srcdir" = x.; then
4637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4638 s/:*\$(srcdir):*/:/;
4639 s/:*\${srcdir}:*/:/;
4641 s/^\([^=]*=[ ]*\):*/\1/;
4647 DEFS=-DHAVE_CONFIG_H
4651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4652 # 1. Remove the extension, and $U if already installed.
4653 ac_i=`echo "$ac_i" |
4654 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4656 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4657 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4661 LTLIBOBJS=$ac_ltlibobjs
4665 : ${CONFIG_STATUS=./config.status}
4666 ac_clean_files_save=$ac_clean_files
4667 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4668 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4669 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4670 cat >$CONFIG_STATUS <<_ACEOF
4672 # Generated by $as_me.
4673 # Run this file to recreate the current configuration.
4674 # Compiler output produced by configure, useful for debugging
4675 # configure, is in config.log if it exists.
4680 SHELL=\${CONFIG_SHELL-$SHELL}
4683 cat >>$CONFIG_STATUS <<\_ACEOF
4684 ## --------------------- ##
4685 ## M4sh Initialization. ##
4686 ## --------------------- ##
4688 # Be Bourne compatible
4689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4692 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4693 # is contrary to our usage. Disable this feature.
4694 alias -g '${1+"$@"}'='"$@"'
4695 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4698 DUALCASE=1; export DUALCASE # for MKS sh
4700 # Support unset when possible.
4701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4708 # Work around bugs in pre-3.0 UWIN ksh.
4709 $as_unset ENV MAIL MAILPATH
4716 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4717 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4718 LC_TELEPHONE LC_TIME
4720 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4721 eval $as_var=C; export $as_var
4727 # Required to use basename.
4728 if expr a : '\(a\)' >/dev/null 2>&1; then
4734 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4735 as_basename=basename
4741 # Name of the executable.
4742 as_me=`$as_basename "$0" ||
4743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4744 X"$0" : 'X\(//\)$' \| \
4745 X"$0" : 'X\(/\)$' \| \
4746 . : '\(.\)' 2>/dev/null ||
4748 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4749 /^X\/\(\/\/\)$/{ s//\1/; q; }
4750 /^X\/\(\/\).*/{ s//\1/; q; }
4754 # PATH needs CR, and LINENO needs CR and PATH.
4755 # Avoid depending upon Character Ranges.
4756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4759 as_cr_digits='0123456789'
4760 as_cr_alnum=$as_cr_Letters$as_cr_digits
4762 # The user is always right.
4763 if test "${PATH_SEPARATOR+set}" != set; then
4764 echo "#! /bin/sh" >conf$$.sh
4765 echo "exit 0" >>conf$$.sh
4767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4778 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4779 test "x$as_lineno_1" != "x$as_lineno_2" &&
4780 test "x$as_lineno_3" = "x$as_lineno_2" || {
4781 # Find who we are. Look in the path if we contain no path at all
4784 *[\\/]* ) as_myself=$0 ;;
4785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4795 # We did not find ourselves, most probably we were run as `sh COMMAND'
4796 # in which case we are not to be found in the path.
4797 if test "x$as_myself" = x; then
4800 if test ! -f "$as_myself"; then
4801 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4802 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4803 { (exit 1); exit 1; }; }
4805 case $CONFIG_SHELL in
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4811 test -z "$as_dir" && as_dir=.
4812 for as_base in sh bash ksh sh5; do
4815 if ("$as_dir/$as_base" -c '
4818 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4819 test "x$as_lineno_1" != "x$as_lineno_2" &&
4820 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4821 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4822 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4823 CONFIG_SHELL=$as_dir/$as_base
4825 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4833 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4834 # uniformly replaced by the line number. The first 'sed' inserts a
4835 # line-number line before each line; the second 'sed' does the real
4836 # work. The second script uses 'N' to pair each line-number line
4837 # with the numbered line, and appends trailing '-' during
4838 # substitution so that $LINENO is not a special case at line end.
4839 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4840 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4841 sed '=' <$as_myself |
4846 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4849 s,^['$as_cr_digits']*\n,,
4851 chmod +x $as_me.lineno ||
4852 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4853 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4854 { (exit 1); exit 1; }; }
4856 # Don't try to exec as it changes $[0], causing all sort of problems
4857 # (the dirname of $[0] is not the place where we might find the
4858 # original and so on. Autoconf is especially sensible to this).
4860 # Exit status is that of the last command.
4865 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4866 *c*,-n*) ECHO_N= ECHO_C='
4868 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4869 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4872 if expr a : '\(a\)' >/dev/null 2>&1; then
4878 rm -f conf$$ conf$$.exe conf$$.file
4880 if ln -s conf$$.file conf$$ 2>/dev/null; then
4881 # We could just check for DJGPP; but this test a) works b) is more generic
4882 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4883 if test -f conf$$.exe; then
4884 # Don't use ln at all; we don't have any links
4889 elif ln conf$$.file conf$$ 2>/dev/null; then
4894 rm -f conf$$ conf$$.exe conf$$.file
4896 if mkdir -p . 2>/dev/null; then
4899 test -d ./-p && rmdir ./-p
4903 as_executable_p="test -f"
4905 # Sed expression to map a string onto a valid CPP name.
4906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4908 # Sed expression to map a string onto a valid variable name.
4909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4913 # We need space, tab and new line, in precisely that order.
4923 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4924 # report actual input values of CONFIG_FILES etc. instead of their
4925 # values after options handling. Logging --version etc. is OK.
4929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4930 ## Running $as_me. ##
4935 This file was extended by $as_me, which was
4936 generated by GNU Autoconf 2.59. Invocation command line was
4938 CONFIG_FILES = $CONFIG_FILES
4939 CONFIG_HEADERS = $CONFIG_HEADERS
4940 CONFIG_LINKS = $CONFIG_LINKS
4941 CONFIG_COMMANDS = $CONFIG_COMMANDS
4945 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4949 # Files that config.status was made for.
4950 if test -n "$ac_config_files"; then
4951 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4954 if test -n "$ac_config_headers"; then
4955 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4958 if test -n "$ac_config_links"; then
4959 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4962 if test -n "$ac_config_commands"; then
4963 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4966 cat >>$CONFIG_STATUS <<\_ACEOF
4969 \`$as_me' instantiates files from templates according to the
4970 current configuration.
4972 Usage: $0 [OPTIONS] [FILE]...
4974 -h, --help print this help, then exit
4975 -V, --version print version number, then exit
4976 -q, --quiet do not print progress messages
4977 -d, --debug don't remove temporary files
4978 --recheck update $as_me by reconfiguring in the same conditions
4979 --file=FILE[:TEMPLATE]
4980 instantiate the configuration file FILE
4981 --header=FILE[:TEMPLATE]
4982 instantiate the configuration header FILE
4984 Configuration files:
4987 Configuration headers:
4990 Configuration links:
4993 Configuration commands:
4996 Report bugs to <bug-autoconf@gnu.org>."
4999 cat >>$CONFIG_STATUS <<_ACEOF
5002 configured by $0, generated by GNU Autoconf 2.59,
5003 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5005 Copyright (C) 2003 Free Software Foundation, Inc.
5006 This config.status script is free software; the Free Software Foundation
5007 gives unlimited permission to copy, distribute and modify it."
5012 cat >>$CONFIG_STATUS <<\_ACEOF
5013 # If no file are specified by the user, then we need to provide default
5014 # value. By we need to know if files were specified by the user.
5020 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5021 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5029 *) # This is not an option, so the user has probably given explicit
5032 ac_need_defaults=false;;
5036 # Handling of the options.
5038 cat >>$CONFIG_STATUS <<\_ACEOF
5039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5041 --version | --vers* | -V )
5042 echo "$ac_cs_version"; exit 0 ;;
5044 # Conflict between --help and --header
5045 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5046 Try \`$0 --help' for more information." >&5
5047 echo "$as_me: error: ambiguous option: $1
5048 Try \`$0 --help' for more information." >&2;}
5049 { (exit 1); exit 1; }; };;
5050 --help | --hel | -h )
5051 echo "$ac_cs_usage"; exit 0 ;;
5052 --debug | --d* | -d )
5054 --file | --fil | --fi | --f )
5056 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5057 ac_need_defaults=false;;
5058 --header | --heade | --head | --hea )
5060 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5061 ac_need_defaults=false;;
5062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5063 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5067 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5068 Try \`$0 --help' for more information." >&5
5069 echo "$as_me: error: unrecognized option: $1
5070 Try \`$0 --help' for more information." >&2;}
5071 { (exit 1); exit 1; }; } ;;
5073 *) ac_config_targets="$ac_config_targets $1" ;;
5079 ac_configure_extra_args=
5081 if $ac_cs_silent; then
5083 ac_configure_extra_args="$ac_configure_extra_args --silent"
5087 cat >>$CONFIG_STATUS <<_ACEOF
5088 if \$ac_cs_recheck; then
5089 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5090 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5099 cat >>$CONFIG_STATUS <<\_ACEOF
5100 for ac_config_target in $ac_config_targets
5102 case "$ac_config_target" in
5103 # Handling of arguments.
5104 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5105 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5106 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5107 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
5108 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5109 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5110 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5111 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5112 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5113 { (exit 1); exit 1; }; };;
5117 # If the user did not use the arguments to specify the items to instantiate,
5118 # then the envvar interface is used. Set only those that are not.
5119 # We use the long form for the default assignment because of an extremely
5120 # bizarre bug on SunOS 4.1.3.
5121 if $ac_need_defaults; then
5122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5124 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5128 # Have a temporary directory for convenience. Make it in the build tree
5129 # simply because there is no reason to put it here, and in addition,
5130 # creating and moving files from /tmp can sometimes cause problems.
5131 # Create a temporary directory, and hook for its removal unless debugging.
5134 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5135 trap '{ (exit 1); exit 1; }' 1 2 13 15
5138 # Create a (secure) tmp directory for tmp files.
5141 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5142 test -n "$tmp" && test -d "$tmp"
5145 tmp=./confstat$$-$RANDOM
5146 (umask 077 && mkdir $tmp)
5149 echo "$me: cannot create a temporary directory in ." >&2
5150 { (exit 1); exit 1; }
5155 cat >>$CONFIG_STATUS <<_ACEOF
5158 # CONFIG_FILES section.
5161 # No need to generate the scripts if there are no CONFIG_FILES.
5162 # This happens for instance when ./config.status config.h
5163 if test -n "\$CONFIG_FILES"; then
5164 # Protect against being on the right side of a sed subst in config.status.
5165 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5166 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5167 s,@SHELL@,$SHELL,;t t
5168 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5169 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5170 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5171 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5172 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5173 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5174 s,@exec_prefix@,$exec_prefix,;t t
5175 s,@prefix@,$prefix,;t t
5176 s,@program_transform_name@,$program_transform_name,;t t
5177 s,@bindir@,$bindir,;t t
5178 s,@sbindir@,$sbindir,;t t
5179 s,@libexecdir@,$libexecdir,;t t
5180 s,@datadir@,$datadir,;t t
5181 s,@sysconfdir@,$sysconfdir,;t t
5182 s,@sharedstatedir@,$sharedstatedir,;t t
5183 s,@localstatedir@,$localstatedir,;t t
5184 s,@libdir@,$libdir,;t t
5185 s,@includedir@,$includedir,;t t
5186 s,@oldincludedir@,$oldincludedir,;t t
5187 s,@infodir@,$infodir,;t t
5188 s,@mandir@,$mandir,;t t
5189 s,@build_alias@,$build_alias,;t t
5190 s,@host_alias@,$host_alias,;t t
5191 s,@target_alias@,$target_alias,;t t
5193 s,@ECHO_C@,$ECHO_C,;t t
5194 s,@ECHO_N@,$ECHO_N,;t t
5195 s,@ECHO_T@,$ECHO_T,;t t
5197 s,@build@,$build,;t t
5198 s,@build_cpu@,$build_cpu,;t t
5199 s,@build_vendor@,$build_vendor,;t t
5200 s,@build_os@,$build_os,;t t
5202 s,@host_cpu@,$host_cpu,;t t
5203 s,@host_vendor@,$host_vendor,;t t
5204 s,@host_os@,$host_os,;t t
5205 s,@target@,$target,;t t
5206 s,@target_cpu@,$target_cpu,;t t
5207 s,@target_vendor@,$target_vendor,;t t
5208 s,@target_os@,$target_os,;t t
5210 s,@CFLAGS@,$CFLAGS,;t t
5211 s,@LDFLAGS@,$LDFLAGS,;t t
5212 s,@CPPFLAGS@,$CPPFLAGS,;t t
5213 s,@ac_ct_CC@,$ac_ct_CC,;t t
5214 s,@EXEEXT@,$EXEEXT,;t t
5215 s,@OBJEXT@,$OBJEXT,;t t
5216 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5217 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5218 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5219 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5220 s,@HDEFINES@,$HDEFINES,;t t
5222 s,@RANLIB@,$RANLIB,;t t
5223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5225 s,@EGREP@,$EGREP,;t t
5226 s,@MAINT@,$MAINT,;t t
5227 s,@sim_bswap@,$sim_bswap,;t t
5228 s,@sim_cflags@,$sim_cflags,;t t
5229 s,@sim_debug@,$sim_debug,;t t
5230 s,@sim_stdio@,$sim_stdio,;t t
5231 s,@sim_trace@,$sim_trace,;t t
5232 s,@sim_profile@,$sim_profile,;t t
5233 s,@sim_environment@,$sim_environment,;t t
5234 s,@sim_alignment@,$sim_alignment,;t t
5235 s,@sim_assert@,$sim_assert,;t t
5236 s,@sim_bitsize@,$sim_bitsize,;t t
5237 s,@sim_endian@,$sim_endian,;t t
5238 s,@sim_hostendian@,$sim_hostendian,;t t
5239 s,@sim_float@,$sim_float,;t t
5240 s,@sim_scache@,$sim_scache,;t t
5241 s,@sim_default_model@,$sim_default_model,;t t
5242 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5243 s,@sim_hw_objs@,$sim_hw_objs,;t t
5244 s,@sim_hw@,$sim_hw,;t t
5245 s,@sim_inline@,$sim_inline,;t t
5246 s,@sim_packages@,$sim_packages,;t t
5247 s,@sim_regparm@,$sim_regparm,;t t
5248 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5249 s,@sim_smp@,$sim_smp,;t t
5250 s,@sim_stdcall@,$sim_stdcall,;t t
5251 s,@sim_xor_endian@,$sim_xor_endian,;t t
5252 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5253 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
5254 s,@TERMCAP@,$TERMCAP,;t t
5255 s,@cgen_breaks@,$cgen_breaks,;t t
5256 s,@LIBOBJS@,$LIBOBJS,;t t
5257 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5262 cat >>$CONFIG_STATUS <<\_ACEOF
5263 # Split the substitutions into bite-sized pieces for seds with
5264 # small command number limits, like on Digital OSF/1 and HP-UX.
5266 ac_sed_frag=1 # Number of current file.
5267 ac_beg=1 # First line for current file.
5268 ac_end=$ac_max_sed_lines # Line after last line for current file.
5271 while $ac_more_lines; do
5272 if test $ac_beg -gt 1; then
5273 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5275 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5277 if test ! -s $tmp/subs.frag; then
5280 # The purpose of the label and of the branching condition is to
5281 # speed up the sed processing (if there are no `@' at all, there
5282 # is no need to browse any of the substitutions).
5283 # These are the two extra sed commands mentioned above.
5285 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5286 if test -z "$ac_sed_cmds"; then
5287 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5289 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5291 ac_sed_frag=`expr $ac_sed_frag + 1`
5293 ac_end=`expr $ac_end + $ac_max_sed_lines`
5296 if test -z "$ac_sed_cmds"; then
5299 fi # test -n "$CONFIG_FILES"
5302 cat >>$CONFIG_STATUS <<\_ACEOF
5303 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5306 - | *:- | *:-:* ) # input from stdin
5308 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5310 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5311 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5312 * ) ac_file_in=$ac_file.in ;;
5315 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5316 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5318 X"$ac_file" : 'X\(//\)[^/]' \| \
5319 X"$ac_file" : 'X\(//\)$' \| \
5320 X"$ac_file" : 'X\(/\)' \| \
5321 . : '\(.\)' 2>/dev/null ||
5323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5324 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5325 /^X\(\/\/\)$/{ s//\1/; q; }
5326 /^X\(\/\).*/{ s//\1/; q; }
5328 { if $as_mkdir_p; then
5333 while test ! -d "$as_dir"; do
5334 as_dirs="$as_dir $as_dirs"
5335 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5337 X"$as_dir" : 'X\(//\)[^/]' \| \
5338 X"$as_dir" : 'X\(//\)$' \| \
5339 X"$as_dir" : 'X\(/\)' \| \
5340 . : '\(.\)' 2>/dev/null ||
5342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5344 /^X\(\/\/\)$/{ s//\1/; q; }
5345 /^X\(\/\).*/{ s//\1/; q; }
5348 test ! -n "$as_dirs" || mkdir $as_dirs
5349 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5350 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5351 { (exit 1); exit 1; }; }; }
5355 if test "$ac_dir" != .; then
5356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5357 # A "../" for each directory in $ac_dir_suffix.
5358 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5360 ac_dir_suffix= ac_top_builddir=
5364 .) # No --srcdir option. We are building in place.
5366 if test -z "$ac_top_builddir"; then
5369 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5371 [\\/]* | ?:[\\/]* ) # Absolute path.
5372 ac_srcdir=$srcdir$ac_dir_suffix;
5373 ac_top_srcdir=$srcdir ;;
5375 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5376 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5379 # Do not use `cd foo && pwd` to compute absolute paths, because
5380 # the directories may not exist.
5382 .) ac_abs_builddir="$ac_dir";;
5385 .) ac_abs_builddir=`pwd`;;
5386 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5387 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5390 case $ac_abs_builddir in
5391 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5393 case ${ac_top_builddir}. in
5394 .) ac_abs_top_builddir=$ac_abs_builddir;;
5395 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5396 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5399 case $ac_abs_builddir in
5400 .) ac_abs_srcdir=$ac_srcdir;;
5403 .) ac_abs_srcdir=$ac_abs_builddir;;
5404 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5405 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5408 case $ac_abs_builddir in
5409 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5411 case $ac_top_srcdir in
5412 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5413 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5414 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5421 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5424 if test x"$ac_file" != x-; then
5425 { echo "$as_me:$LINENO: creating $ac_file" >&5
5426 echo "$as_me: creating $ac_file" >&6;}
5429 # Let's still pretend it is `configure' which instantiates (i.e., don't
5430 # use $as_me), people would be surprised to read:
5431 # /* config.h. Generated by config.status. */
5432 if test x"$ac_file" = x-; then
5435 configure_input="$ac_file. "
5437 configure_input=$configure_input"Generated from `echo $ac_file_in |
5438 sed 's,.*/,,'` by configure."
5440 # First look for the input files in the build tree, otherwise in the
5442 ac_file_inputs=`IFS=:
5443 for f in $ac_file_in; do
5445 -) echo $tmp/stdin ;;
5447 # Absolute (can't be DOS-style, as IFS=:)
5448 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5449 echo "$as_me: error: cannot find input file: $f" >&2;}
5450 { (exit 1); exit 1; }; }
5453 if test -f "$f"; then
5456 elif test -f "$srcdir/$f"; then
5461 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5462 echo "$as_me: error: cannot find input file: $f" >&2;}
5463 { (exit 1); exit 1; }; }
5466 done` || { (exit 1); exit 1; }
5468 cat >>$CONFIG_STATUS <<_ACEOF
5472 cat >>$CONFIG_STATUS <<\_ACEOF
5474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5475 s,@configure_input@,$configure_input,;t t
5476 s,@srcdir@,$ac_srcdir,;t t
5477 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5478 s,@top_srcdir@,$ac_top_srcdir,;t t
5479 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5480 s,@builddir@,$ac_builddir,;t t
5481 s,@abs_builddir@,$ac_abs_builddir,;t t
5482 s,@top_builddir@,$ac_top_builddir,;t t
5483 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5484 s,@INSTALL@,$ac_INSTALL,;t t
5485 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5487 if test x"$ac_file" != x-; then
5488 mv $tmp/out $ac_file
5496 cat >>$CONFIG_STATUS <<\_ACEOF
5499 # CONFIG_HEADER section.
5502 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5503 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5505 # ac_d sets the value in "#define NAME VALUE" lines.
5506 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5507 ac_dB='[ ].*$,\1#\2'
5510 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5511 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5512 ac_uB='$,\1#\2define\3'
5516 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5517 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5519 - | *:- | *:-:* ) # input from stdin
5521 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5522 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5523 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5525 * ) ac_file_in=$ac_file.in ;;
5528 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5529 echo "$as_me: creating $ac_file" >&6;}
5531 # First look for the input files in the build tree, otherwise in the
5533 ac_file_inputs=`IFS=:
5534 for f in $ac_file_in; do
5536 -) echo $tmp/stdin ;;
5538 # Absolute (can't be DOS-style, as IFS=:)
5539 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5540 echo "$as_me: error: cannot find input file: $f" >&2;}
5541 { (exit 1); exit 1; }; }
5542 # Do quote $f, to prevent DOS paths from being IFS'd.
5545 if test -f "$f"; then
5548 elif test -f "$srcdir/$f"; then
5553 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5554 echo "$as_me: error: cannot find input file: $f" >&2;}
5555 { (exit 1); exit 1; }; }
5558 done` || { (exit 1); exit 1; }
5559 # Remove the trailing spaces.
5560 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5564 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5565 # `conftest.undefs', that substitutes the proper values into
5566 # config.h.in to produce config.h. The first handles `#define'
5567 # templates, and the second `#undef' templates.
5568 # And first: Protect against being on the right side of a sed subst in
5569 # config.status. Protect against being in an unquoted here document
5571 rm -f conftest.defines conftest.undefs
5572 # Using a here document instead of a string reduces the quoting nightmare.
5573 # Putting comments in sed scripts is not portable.
5575 # `end' is used to avoid that the second main sed command (meant for
5576 # 0-ary CPP macros) applies to n-ary macro definitions.
5577 # See the Autoconf documentation for `clear'.
5578 cat >confdef2sed.sed <<\_ACEOF
5583 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5585 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5588 # If some macros were called several times there might be several times
5589 # the same #defines, which is useless. Nevertheless, we may not want to
5590 # sort them, since we want the *last* AC-DEFINE to be honored.
5591 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5592 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5593 rm -f confdef2sed.sed
5595 # This sed command replaces #undef with comments. This is necessary, for
5596 # example, in the case of _POSIX_SOURCE, which is predefined and required
5597 # on some systems where configure will not decide to define it.
5598 cat >>conftest.undefs <<\_ACEOF
5599 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5602 # Break up conftest.defines because some shells have a limit on the size
5603 # of here documents, and old seds have small limits too (100 cmds).
5604 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5605 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5606 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5607 echo ' :' >>$CONFIG_STATUS
5609 while grep . conftest.defines >/dev/null
5611 # Write a limited-size here document to $tmp/defines.sed.
5612 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5613 # Speed up: don't consider the non `#define' lines.
5614 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5615 # Work around the forget-to-reset-the-flag bug.
5616 echo 't clr' >>$CONFIG_STATUS
5617 echo ': clr' >>$CONFIG_STATUS
5618 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5620 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5624 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5625 rm -f conftest.defines
5626 mv conftest.tail conftest.defines
5628 rm -f conftest.defines
5629 echo ' fi # grep' >>$CONFIG_STATUS
5630 echo >>$CONFIG_STATUS
5632 # Break up conftest.undefs because some shells have a limit on the size
5633 # of here documents, and old seds have small limits too (100 cmds).
5634 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5636 while grep . conftest.undefs >/dev/null
5638 # Write a limited-size here document to $tmp/undefs.sed.
5639 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5640 # Speed up: don't consider the non `#undef'
5641 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5642 # Work around the forget-to-reset-the-flag bug.
5643 echo 't clr' >>$CONFIG_STATUS
5644 echo ': clr' >>$CONFIG_STATUS
5645 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5647 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5651 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5652 rm -f conftest.undefs
5653 mv conftest.tail conftest.undefs
5655 rm -f conftest.undefs
5657 cat >>$CONFIG_STATUS <<\_ACEOF
5658 # Let's still pretend it is `configure' which instantiates (i.e., don't
5659 # use $as_me), people would be surprised to read:
5660 # /* config.h. Generated by config.status. */
5661 if test x"$ac_file" = x-; then
5662 echo "/* Generated by configure. */" >$tmp/config.h
5664 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5666 cat $tmp/in >>$tmp/config.h
5668 if test x"$ac_file" != x-; then
5669 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5670 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5671 echo "$as_me: $ac_file is unchanged" >&6;}
5673 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5675 X"$ac_file" : 'X\(//\)[^/]' \| \
5676 X"$ac_file" : 'X\(//\)$' \| \
5677 X"$ac_file" : 'X\(/\)' \| \
5678 . : '\(.\)' 2>/dev/null ||
5680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5682 /^X\(\/\/\)$/{ s//\1/; q; }
5683 /^X\(\/\).*/{ s//\1/; q; }
5685 { if $as_mkdir_p; then
5690 while test ! -d "$as_dir"; do
5691 as_dirs="$as_dir $as_dirs"
5692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5694 X"$as_dir" : 'X\(//\)[^/]' \| \
5695 X"$as_dir" : 'X\(//\)$' \| \
5696 X"$as_dir" : 'X\(/\)' \| \
5697 . : '\(.\)' 2>/dev/null ||
5699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5701 /^X\(\/\/\)$/{ s//\1/; q; }
5702 /^X\(\/\).*/{ s//\1/; q; }
5705 test ! -n "$as_dirs" || mkdir $as_dirs
5706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5707 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5708 { (exit 1); exit 1; }; }; }
5711 mv $tmp/config.h $ac_file
5719 cat >>$CONFIG_STATUS <<\_ACEOF
5722 # CONFIG_LINKS section.
5725 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
5726 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5727 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5729 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
5730 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
5732 if test ! -r $srcdir/$ac_source; then
5733 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
5734 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
5735 { (exit 1); exit 1; }; }
5739 # Make relative symlinks.
5740 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
5741 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5742 X"$ac_dest" : 'X\(//\)[^/]' \| \
5743 X"$ac_dest" : 'X\(//\)$' \| \
5744 X"$ac_dest" : 'X\(/\)' \| \
5745 . : '\(.\)' 2>/dev/null ||
5747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5749 /^X\(\/\/\)$/{ s//\1/; q; }
5750 /^X\(\/\).*/{ s//\1/; q; }
5752 { if $as_mkdir_p; then
5753 mkdir -p "$ac_dest_dir"
5755 as_dir="$ac_dest_dir"
5757 while test ! -d "$as_dir"; do
5758 as_dirs="$as_dir $as_dirs"
5759 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5761 X"$as_dir" : 'X\(//\)[^/]' \| \
5762 X"$as_dir" : 'X\(//\)$' \| \
5763 X"$as_dir" : 'X\(/\)' \| \
5764 . : '\(.\)' 2>/dev/null ||
5766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5768 /^X\(\/\/\)$/{ s//\1/; q; }
5769 /^X\(\/\).*/{ s//\1/; q; }
5772 test ! -n "$as_dirs" || mkdir $as_dirs
5773 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
5774 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
5775 { (exit 1); exit 1; }; }; }
5779 if test "$ac_dest_dir" != .; then
5780 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
5781 # A "../" for each directory in $ac_dir_suffix.
5782 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5784 ac_dir_suffix= ac_top_builddir=
5788 .) # No --srcdir option. We are building in place.
5790 if test -z "$ac_top_builddir"; then
5793 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5795 [\\/]* | ?:[\\/]* ) # Absolute path.
5796 ac_srcdir=$srcdir$ac_dir_suffix;
5797 ac_top_srcdir=$srcdir ;;
5799 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5800 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5803 # Do not use `cd foo && pwd` to compute absolute paths, because
5804 # the directories may not exist.
5806 .) ac_abs_builddir="$ac_dest_dir";;
5808 case "$ac_dest_dir" in
5809 .) ac_abs_builddir=`pwd`;;
5810 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
5811 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
5814 case $ac_abs_builddir in
5815 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5817 case ${ac_top_builddir}. in
5818 .) ac_abs_top_builddir=$ac_abs_builddir;;
5819 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5820 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5823 case $ac_abs_builddir in
5824 .) ac_abs_srcdir=$ac_srcdir;;
5827 .) ac_abs_srcdir=$ac_abs_builddir;;
5828 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5829 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5832 case $ac_abs_builddir in
5833 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5835 case $ac_top_srcdir in
5836 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5837 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5838 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5844 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
5845 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
5848 # Try a symlink, then a hard link, then a copy.
5849 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5850 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
5851 cp -p $srcdir/$ac_source $ac_dest ||
5852 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
5853 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
5854 { (exit 1); exit 1; }; }
5857 cat >>$CONFIG_STATUS <<\_ACEOF
5860 # CONFIG_COMMANDS section.
5862 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5863 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5864 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5865 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5866 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5867 X"$ac_dest" : 'X\(//\)[^/]' \| \
5868 X"$ac_dest" : 'X\(//\)$' \| \
5869 X"$ac_dest" : 'X\(/\)' \| \
5870 . : '\(.\)' 2>/dev/null ||
5872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5874 /^X\(\/\/\)$/{ s//\1/; q; }
5875 /^X\(\/\).*/{ s//\1/; q; }
5877 { if $as_mkdir_p; then
5882 while test ! -d "$as_dir"; do
5883 as_dirs="$as_dir $as_dirs"
5884 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5886 X"$as_dir" : 'X\(//\)[^/]' \| \
5887 X"$as_dir" : 'X\(//\)$' \| \
5888 X"$as_dir" : 'X\(/\)' \| \
5889 . : '\(.\)' 2>/dev/null ||
5891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5893 /^X\(\/\/\)$/{ s//\1/; q; }
5894 /^X\(\/\).*/{ s//\1/; q; }
5897 test ! -n "$as_dirs" || mkdir $as_dirs
5898 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5899 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5900 { (exit 1); exit 1; }; }; }
5904 if test "$ac_dir" != .; then
5905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5906 # A "../" for each directory in $ac_dir_suffix.
5907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5909 ac_dir_suffix= ac_top_builddir=
5913 .) # No --srcdir option. We are building in place.
5915 if test -z "$ac_top_builddir"; then
5918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5920 [\\/]* | ?:[\\/]* ) # Absolute path.
5921 ac_srcdir=$srcdir$ac_dir_suffix;
5922 ac_top_srcdir=$srcdir ;;
5924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5928 # Do not use `cd foo && pwd` to compute absolute paths, because
5929 # the directories may not exist.
5931 .) ac_abs_builddir="$ac_dir";;
5934 .) ac_abs_builddir=`pwd`;;
5935 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5936 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5939 case $ac_abs_builddir in
5940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5942 case ${ac_top_builddir}. in
5943 .) ac_abs_top_builddir=$ac_abs_builddir;;
5944 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5945 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5948 case $ac_abs_builddir in
5949 .) ac_abs_srcdir=$ac_srcdir;;
5952 .) ac_abs_srcdir=$ac_abs_builddir;;
5953 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5954 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5957 case $ac_abs_builddir in
5958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5960 case $ac_top_srcdir in
5961 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5962 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5963 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5968 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5969 echo "$as_me: executing $ac_dest commands" >&6;}
5971 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5972 rm -f Makesim1.tmp Makesim2.tmp Makefile
5973 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
5974 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
5975 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5976 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5977 <Makefile.sim >Makefile
5978 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5980 stamp-h ) echo > stamp-h ;;
5985 cat >>$CONFIG_STATUS <<\_ACEOF
5987 { (exit 0); exit 0; }
5989 chmod +x $CONFIG_STATUS
5990 ac_clean_files=$ac_clean_files_save
5993 # configure is writing to config.log, and then calls config.status.
5994 # config.status does its own redirection, appending to config.log.
5995 # Unfortunately, on DOS this fails, as config.log is still kept open
5996 # by configure, so config.status won't be able to write to it; its
5997 # output is simply discarded. So we exec the FD to /dev/null,
5998 # effectively closing config.log, so it can be properly (re)opened and
5999 # appended to by config.status. When coming back to configure, we
6000 # need to make the FD available again.
6001 if test "$no_create" != yes; then
6003 ac_config_status_args=
6004 test "$silent" = yes &&
6005 ac_config_status_args="$ac_config_status_args --quiet"
6007 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6009 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6010 # would make configure fail if this is the last instruction.
6011 $ac_cs_success || { (exit 1); exit 1; }