2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile CGEN_MAINT cgendir cgen sim_trapdump 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 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-endian=endian Specify target byte endian orientation.
862 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify
host byte endian orientation.
864 --enable-sim-scache=size Specify simulator execution cache size.
865 --enable-sim-default-model=model Specify default model to simulate.
866 --enable-sim-environment=environment Specify mixed
, user
, virtual or operating environment.
867 --enable-cgen-maint=DIR build cgen generated files
868 --enable-sim-trapdump Make unknown traps dump the registers
871 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
872 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
873 --with-included-gettext use the GNU
gettext library included here
875 Some influential environment variables
:
876 CC C compiler
command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
879 nonstandard directory
<lib dir
>
880 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
881 headers
in a nonstandard directory
<include dir
>
884 Use these variables to override the choices made by
`configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo
&& pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
1006 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1007 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1008 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1009 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1010 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1012 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1013 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1015 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1016 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1017 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1018 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1019 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1020 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1021 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_must_keep_next=false
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 -* ) ac_must_keep_next=true ;;
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close
' the trap.
1101 trap 'exit_status
=$?
1102 # Save into config.log some information that might help in debugging.
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1112 # The following way of writing the cache mishandles newlines in values,
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1135 for ac_var
in $ac_subst_vars
1137 eval ac_val
=$
`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -n "$ac_subst_files"; then
1149 for ac_var
in $ac_subst_files
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1157 if test -s confdefs.h
; then
1164 sed "/^$/d" confdefs.h |
sort
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1171 rm -f core
*.core
&&
1172 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's
/^
/|
/' "$ac_site_file" >&5
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1247 # Check that the precious variables saved in the cache have kept the same
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1260 ac_cache_corrupted=: ;;
1262 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1269 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1294 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1301 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_config_headers="$ac_config_headers config.h:config.in"
1325 # This file contains common code used by all simulators.
1327 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1328 # directory. It is intended to be invoked before any target specific stuff.
1329 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1330 # It is intended to be invoked last.
1332 # The simulator's configure.
in should
look like
:
1334 # dnl Process this file with autoconf to produce a configure script.
1335 # sinclude(../common/aclocal.m4)
1337 # AC_INIT(Makefile.in)
1341 # ... target specific stuff ...
1392 sim_inline
="-DDEFAULT_INLINE=0"
1429 # This file is derived from `gettext.m4'. The difference is that the
1430 # included macros assume Cygnus-style source and build trees.
1432 # Macro to add for using GNU gettext.
1433 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1435 # This file file be copied and used freely without restrictions. It can
1436 # be used in projects which are not available under the GNU Public License
1437 # but which still want to provide support for the GNU gettext functionality.
1438 # Please note that the actual code is *not* freely available.
1446 # Search path for a program which passes the given test.
1447 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1449 # This file file be copied and used freely without restrictions. It can
1450 # be used in projects which are not available under the GNU Public License
1451 # but which still want to provide support for the GNU gettext functionality.
1452 # Please note that the actual code is *not* freely available.
1458 # Check whether LC_MESSAGES is available in <locale.h>.
1459 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1461 # This file file be copied and used freely without restrictions. It can
1462 # be used in projects which are not available under the GNU Public License
1463 # but which still want to provide support for the GNU gettext functionality.
1464 # Please note that the actual code is *not* freely available.
1474 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1475 # it by inlining the macro's contents.
1476 # This file contains common code used by all simulators.
1478 # common.m4 invokes AC macros used by all simulators and by the common
1479 # directory. It is intended to be included before any target specific
1480 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1481 # the Makefile. It is intended to be invoked last.
1483 # The simulator's configure.in should look like:
1485 # dnl Process this file with autoconf to produce a configure script.
1487 # AC_INIT(Makefile.in)
1488 # AC_CONFIG_HEADER(config.h:config.in)
1490 # sinclude(../common/aclocal.m4)
1491 # sinclude(../common/common.m4)
1493 # ... target specific stuff ...
1496 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1497 if test -f $ac_dir/install-sh
; then
1499 ac_install_sh
="$ac_aux_dir/install-sh -c"
1501 elif test -f $ac_dir/install.sh
; then
1503 ac_install_sh
="$ac_aux_dir/install.sh -c"
1505 elif test -f $ac_dir/shtool
; then
1507 ac_install_sh
="$ac_aux_dir/shtool install -c"
1511 if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1516 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1517 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1518 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1520 # Make sure we can run config.sub.
1521 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: checking build system type" >&5
1527 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528 if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 ac_cv_build_alias
=$build_alias
1532 test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias
=`$ac_config_guess`
1534 test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1544 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545 echo "${ECHO_T}$ac_cv_build" >&6
1547 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 echo "$as_me:$LINENO: checking host system type" >&5
1553 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554 if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 ac_cv_host_alias
=$host_alias
1558 test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias
=$ac_cv_build_alias
1560 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1566 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567 echo "${ECHO_T}$ac_cv_host" >&6
1569 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 echo "$as_me:$LINENO: checking target system type" >&5
1575 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576 if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 ac_cv_target_alias
=$target_alias
1580 test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias
=$ac_cv_host_alias
1582 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1588 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589 echo "${ECHO_T}$ac_cv_target" >&6
1590 target
=$ac_cv_target
1591 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596 # The aliases save the names the user supplied, while $host etc.
1597 # will get canonicalized.
1598 test -n "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1601 program_prefix
=${target_alias}-
1602 test "$program_prefix" != NONE
&&
1603 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1604 # Use a double $ so make ignores it.
1605 test "$program_suffix" != NONE
&&
1606 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1607 # Double any \ or $. echo might interpret backslashes.
1608 # By default was `s,x,x', remove it if useless.
1609 cat <<\_ACEOF
>conftest.
sed
1610 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1612 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1616 ac_cpp
='$CPP $CPPFLAGS'
1617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1620 if test -n "$ac_tool_prefix"; then
1621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1622 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC
="$CC" # Let the user override the test.
1631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1635 test -z "$as_dir" && as_dir
=.
1636 for ac_exec_ext
in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 if test -n "$CC"; then
1649 echo "$as_me:$LINENO: result: $CC" >&5
1650 echo "${ECHO_T}$CC" >&6
1652 echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1657 if test -z "$ac_cv_prog_CC"; then
1659 # Extract the first word of "gcc", so it can be a program name with args.
1660 set dummy gcc
; ac_word
=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir
=.
1674 for ac_exec_ext
in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC
="gcc"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1699 if test -z "$CC"; then
1700 if test -n "$ac_tool_prefix"; then
1701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1702 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 if test -n "$CC"; then
1709 ac_cv_prog_CC
="$CC" # Let the user override the test.
1711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir
=.
1716 for ac_exec_ext
in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1737 if test -z "$ac_cv_prog_CC"; then
1739 # Extract the first word of "cc", so it can be a program name with args.
1740 set dummy cc
; ac_word
=$2
1741 echo "$as_me:$LINENO: checking for $ac_word" >&5
1742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 if test -n "$ac_ct_CC"; then
1747 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1753 test -z "$as_dir" && as_dir
=.
1754 for ac_exec_ext
in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_ac_ct_CC
="cc"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1766 if test -n "$ac_ct_CC"; then
1767 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1768 echo "${ECHO_T}$ac_ct_CC" >&6
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1780 if test -z "$CC"; then
1781 # Extract the first word of "cc", so it can be a program name with args.
1782 set dummy cc
; ac_word
=$2
1783 echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785 if test "${ac_cv_prog_CC+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 if test -n "$CC"; then
1789 ac_cv_prog_CC
="$CC" # Let the user override the test.
1792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1796 test -z "$as_dir" && as_dir
=.
1797 for ac_exec_ext
in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1800 ac_prog_rejected
=yes
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 if test $ac_prog_rejected = yes; then
1811 # We found a bogon in the path, so make sure we never use it.
1812 set dummy
$ac_cv_prog_CC
1814 if test $# != 0; then
1815 # We chose a different compiler from the bogus one.
1816 # However, it has the same basename, so the bogon will be chosen
1817 # first if we set CC to just the basename; use the full file name.
1819 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1825 if test -n "$CC"; then
1826 echo "$as_me:$LINENO: result: $CC" >&5
1827 echo "${ECHO_T}$CC" >&6
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1834 if test -z "$CC"; then
1835 if test -n "$ac_tool_prefix"; then
1838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1839 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC
="$CC" # Let the user override the test.
1848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1852 test -z "$as_dir" && as_dir
=.
1853 for ac_exec_ext
in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 if test -n "$CC"; then
1866 echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1873 test -n "$CC" && break
1876 if test -z "$CC"; then
1880 # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy
$ac_prog; ac_word
=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir
=.
1895 for ac_exec_ext
in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC
="$ac_prog"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 test -n "$ac_ct_CC" && break
1924 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1925 See \`config.log' for more details." >&5
1926 echo "$as_me: error: no acceptable C compiler found in \$PATH
1927 See \`config.log' for more details." >&2;}
1928 { (exit 1); exit 1; }; }
1930 # Provide some information about the compiler.
1931 echo "$as_me:$LINENO:" \
1932 "checking for C compiler version" >&5
1933 ac_compiler
=`set X $ac_compile; echo $2`
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1935 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1940 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1944 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1945 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }
1950 cat >conftest.
$ac_ext <<_ACEOF
1953 cat confdefs.h
>>conftest.
$ac_ext
1954 cat >>conftest.
$ac_ext <<_ACEOF
1955 /* end confdefs.h. */
1965 ac_clean_files_save
=$ac_clean_files
1966 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1967 # Try to create an executable without -o first, disregard a.out.
1968 # It will help us diagnose broken compilers, and finding out an intuition
1970 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1971 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1972 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1974 (eval $ac_link_default) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 # Find the output, starting from the most likely. This scheme is
1979 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1982 # Be careful to initialize this variable, since it used to be cached.
1983 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1985 # b.out is created by i960 compilers.
1986 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1988 test -f "$ac_file" ||
continue
1990 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1993 # This is the source file.
1996 # We found the default executable, but exeext='' is most
2000 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2001 # FIXME: I believe we export ac_cv_exeext for Libtool,
2002 # but it would be cool to find out if it's true. Does anybody
2003 # maintain Libtool? --akim.
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.
$ac_ext >&5
2014 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2015 See \`config.log' for more details." >&5
2016 echo "$as_me: error: C compiler cannot create executables
2017 See \`config.log' for more details." >&2;}
2018 { (exit 77); exit 77; }; }
2021 ac_exeext
=$ac_cv_exeext
2022 echo "$as_me:$LINENO: result: $ac_file" >&5
2023 echo "${ECHO_T}$ac_file" >&6
2025 # Check the compiler produces executables we can run. If not, either
2026 # the compiler is broken, or we cross compile.
2027 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2028 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2029 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2030 # If not cross compiling, check that we can run a simple program.
2031 if test "$cross_compiling" != yes; then
2032 if { ac_try
='./$ac_file'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2040 if test "$cross_compiling" = maybe
; then
2043 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2044 If you meant to cross compile, use \`--host'.
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }
2053 echo "$as_me:$LINENO: result: yes" >&5
2054 echo "${ECHO_T}yes" >&6
2056 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2057 ac_clean_files
=$ac_clean_files_save
2058 # Check the compiler produces executables we can run. If not, either
2059 # the compiler is broken, or we cross compile.
2060 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063 echo "${ECHO_T}$cross_compiling" >&6
2065 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2074 # work properly (i.e., refer to `conftest.exe'), while it won't with
2076 for ac_file
in conftest.exe conftest conftest.
*; do
2077 test -f "$ac_file" ||
continue
2079 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2080 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2087 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2088 See \`config.log' for more details." >&5
2089 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2090 See \`config.log' for more details." >&2;}
2091 { (exit 1); exit 1; }; }
2094 rm -f conftest
$ac_cv_exeext
2095 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2096 echo "${ECHO_T}$ac_cv_exeext" >&6
2098 rm -f conftest.
$ac_ext
2099 EXEEXT
=$ac_cv_exeext
2101 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2102 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2103 if test "${ac_cv_objext+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 cat >conftest.
$ac_ext <<_ACEOF
2109 cat confdefs.h
>>conftest.
$ac_ext
2110 cat >>conftest.
$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2121 rm -f conftest.o conftest.obj
2122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2123 (eval $ac_compile) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2129 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2130 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2135 echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.
$ac_ext >&5
2138 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2139 See \`config.log' for more details." >&5
2140 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2141 See \`config.log' for more details." >&2;}
2142 { (exit 1); exit 1; }; }
2145 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2147 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2148 echo "${ECHO_T}$ac_cv_objext" >&6
2149 OBJEXT
=$ac_cv_objext
2151 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2152 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2153 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 cat >conftest.
$ac_ext <<_ACEOF
2159 cat confdefs.h
>>conftest.
$ac_ext
2160 cat >>conftest.
$ac_ext <<_ACEOF
2161 /* end confdefs.h. */
2174 rm -f conftest.
$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>conftest.er1
2178 grep -v '^ *+' conftest.er1
>conftest.err
2180 cat conftest.err
>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); } &&
2183 { ac_try
='test -z "$ac_c_werror_flag"
2184 || test ! -s conftest.err'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; } &&
2190 { ac_try
='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.
$ac_ext >&5
2203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2204 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2207 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2208 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2209 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2210 ac_test_CFLAGS
=${CFLAGS+set}
2211 ac_save_CFLAGS
=$CFLAGS
2213 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2214 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2215 if test "${ac_cv_prog_cc_g+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 cat >conftest.
$ac_ext <<_ACEOF
2221 cat confdefs.h
>>conftest.
$ac_ext
2222 cat >>conftest.
$ac_ext <<_ACEOF
2223 /* end confdefs.h. */
2233 rm -f conftest.
$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>conftest.er1
2237 grep -v '^ *+' conftest.er1
>conftest.err
2239 cat conftest.err
>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try
='test -z "$ac_c_werror_flag"
2243 || test ! -s conftest.err'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; } &&
2249 { ac_try
='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.
$ac_ext >&5
2262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2264 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2266 if test "$ac_test_CFLAGS" = set; then
2267 CFLAGS
=$ac_save_CFLAGS
2268 elif test $ac_cv_prog_cc_g = yes; then
2269 if test "$GCC" = yes; then
2275 if test "$GCC" = yes; then
2281 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2282 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2283 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 ac_cv_prog_cc_stdc
=no
2288 cat >conftest.
$ac_ext <<_ACEOF
2291 cat confdefs.h
>>conftest.
$ac_ext
2292 cat >>conftest.
$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2296 #include <sys/types.h>
2297 #include <sys/stat.h>
2298 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2299 struct buf { int x; };
2300 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2301 static char *e (p, i)
2307 static char *f (char * (*g) (char **, int), char **p, ...)
2312 s = g (p, va_arg (v,int));
2317 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2318 function prototypes and stuff, but not '\xHH' hex character constants.
2319 These don't provoke an error unfortunately, instead are silently treated
2320 as 'x'. The following induces an error, until -std1 is added to get
2321 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2322 array size at least. It's necessary to write '\x00'==0 to get something
2323 that's true only with -std1. */
2324 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2326 int test (int i, double x);
2327 struct s1 {int (*f) (int a);};
2328 struct s2 {int (*f) (double a);};
2329 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2335 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 # Don't try gcc -ansi; that turns off useful extensions and
2341 # breaks some systems' header files.
2342 # AIX -qlanglvl=ansi
2343 # Ultrix and OSF/1 -std1
2344 # HP-UX 10.20 and later -Ae
2345 # HP-UX older versions -Aa -D_HPUX_SOURCE
2346 # SVR4 -Xc -D__EXTENSIONS__
2347 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2349 CC
="$ac_save_CC $ac_arg"
2350 rm -f conftest.
$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1
>conftest.err
2356 cat conftest.err
>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try
='test -z "$ac_c_werror_flag"
2360 || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try
='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2372 ac_cv_prog_cc_stdc
=$ac_arg
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.
$ac_ext >&5
2379 rm -f conftest.err conftest.
$ac_objext
2381 rm -f conftest.
$ac_ext conftest.
$ac_objext
2386 case "x$ac_cv_prog_cc_stdc" in
2388 echo "$as_me:$LINENO: result: none needed" >&5
2389 echo "${ECHO_T}none needed" >&6 ;;
2391 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2392 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2393 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2396 # Some people use a C++ compiler to compile C. Since we use `exit',
2397 # in C++ we need to declare it. In case someone uses the same compiler
2398 # for both compiling C and C++ we need to have the C++ compiler decide
2399 # the declaration of exit, since it's the most demanding environment.
2400 cat >conftest.
$ac_ext <<_ACEOF
2405 rm -f conftest.
$ac_objext
2406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>conftest.er1
2409 grep -v '^ *+' conftest.er1
>conftest.err
2411 cat conftest.err
>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } &&
2414 { ac_try
='test -z "$ac_c_werror_flag"
2415 || test ! -s conftest.err'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; } &&
2421 { ac_try
='test -s conftest.$ac_objext'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2427 for ac_declaration
in \
2429 'extern "C" void std::exit (int) throw (); using std::exit;' \
2430 'extern "C" void std::exit (int); using std::exit;' \
2431 'extern "C" void exit (int) throw ();' \
2432 'extern "C" void exit (int);' \
2435 cat >conftest.
$ac_ext <<_ACEOF
2438 cat confdefs.h
>>conftest.
$ac_ext
2439 cat >>conftest.
$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2451 rm -f conftest.
$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2455 grep -v '^ *+' conftest.er1
>conftest.err
2457 cat conftest.err
>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try
='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try
='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.
$ac_ext >&5
2480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2481 cat >conftest.
$ac_ext <<_ACEOF
2484 cat confdefs.h
>>conftest.
$ac_ext
2485 cat >>conftest.
$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.
$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>conftest.er1
2500 grep -v '^ *+' conftest.er1
>conftest.err
2502 cat conftest.err
>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try
='test -z "$ac_c_werror_flag"
2506 || test ! -s conftest.err'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; } &&
2512 { ac_try
='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.
$ac_ext >&5
2524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2527 if test -n "$ac_declaration"; then
2528 echo '#ifdef __cplusplus' >>confdefs.h
2529 echo $ac_declaration >>confdefs.h
2530 echo '#endif' >>confdefs.h
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.
$ac_ext >&5
2538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2540 ac_cpp
='$CPP $CPPFLAGS'
2541 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2545 # Find a good install program. We prefer a C program (faster),
2546 # so one script is as good as another. But avoid the broken or
2547 # incompatible versions:
2548 # SysV /etc/install, /usr/sbin/install
2549 # SunOS /usr/etc/install
2550 # IRIX /sbin/install
2552 # AmigaOS /C/install, which installs bootblocks on floppy discs
2553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2556 # OS/2's system install, which has a completely different semantic
2557 # ./install, which can be erroneously created by make from ./install.sh.
2558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2560 if test -z "$INSTALL"; then
2561 if test "${ac_cv_path_install+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir
=.
2569 # Account for people who put trailing slashes in PATH elements.
2571 .
/ | .
// |
/cC
/* | \
2572 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2573 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2576 # OSF1 and SCO ODT 3.0 have their own names for install.
2577 # Don't use installbsd from OSF since it installs stuff as root
2579 for ac_prog
in ginstall scoinst
install; do
2580 for ac_exec_ext
in '' $ac_executable_extensions; do
2581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2582 if test $ac_prog = install &&
2583 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2584 # AIX install. It has an incompatible calling convention.
2586 elif test $ac_prog = install &&
2587 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2588 # program-specific install script used by HP pwplus--don't use.
2591 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2603 if test "${ac_cv_path_install+set}" = set; then
2604 INSTALL
=$ac_cv_path_install
2606 # As a last resort, use the slow shell script. We don't cache a
2607 # path for INSTALL within a source directory, because that will
2608 # break other packages using the cache if that directory is
2609 # removed, or if the path is relative.
2610 INSTALL
=$ac_install_sh
2613 echo "$as_me:$LINENO: result: $INSTALL" >&5
2614 echo "${ECHO_T}$INSTALL" >&6
2616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2617 # It thinks the first close brace ends the variable substitution.
2618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2622 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2625 # Put a plausible default for CC_FOR_BUILD in Makefile.
2626 if test "x$cross_compiling" = "xno"; then
2627 CC_FOR_BUILD
='$(CC)'
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2639 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2640 echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2642 if test "${ac_cv_prog_RANLIB+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$RANLIB"; then
2646 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir
=.
2653 for ac_exec_ext
in '' $ac_executable_extensions; do
2654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 RANLIB
=$ac_cv_prog_RANLIB
2665 if test -n "$RANLIB"; then
2666 echo "$as_me:$LINENO: result: $RANLIB" >&5
2667 echo "${ECHO_T}$RANLIB" >&6
2669 echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2674 if test -z "$ac_cv_prog_RANLIB"; then
2675 ac_ct_RANLIB
=$RANLIB
2676 # Extract the first word of "ranlib", so it can be a program name with args.
2677 set dummy ranlib
; ac_word
=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_RANLIB"; then
2684 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir
=.
2691 for ac_exec_ext
in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2703 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2704 if test -n "$ac_ct_RANLIB"; then
2705 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2706 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 RANLIB
=$ac_ct_RANLIB
2714 RANLIB
="$ac_cv_prog_RANLIB"
2719 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2720 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2721 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2722 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 cat >conftest.
make <<\_ACEOF
2727 @
echo 'ac_maketemp="$(MAKE)"'
2729 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2730 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2731 if test -n "$ac_maketemp"; then
2732 eval ac_cv_prog_make_
${ac_make}_set
=yes
2734 eval ac_cv_prog_make_
${ac_make}_set
=no
2738 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2739 echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2745 SET_MAKE
="MAKE=${MAKE-make}"
2749 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2750 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2751 if test "${ac_cv_search_strerror+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 ac_func_search_save_LIBS
=$LIBS
2755 ac_cv_search_strerror
=no
2756 cat >conftest.
$ac_ext <<_ACEOF
2759 cat confdefs.h
>>conftest.
$ac_ext
2760 cat >>conftest.
$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2763 /* Override any gcc2 internal prototype to avoid an error. */
2767 /* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2778 rm -f conftest.
$ac_objext conftest
$ac_exeext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780 (eval $ac_link) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1
>conftest.err
2784 cat conftest.err
>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try
='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try
='test -s conftest$ac_exeext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_search_strerror
="none required"
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.
$ac_ext >&5
2806 rm -f conftest.err conftest.
$ac_objext \
2807 conftest
$ac_exeext conftest.
$ac_ext
2808 if test "$ac_cv_search_strerror" = no
; then
2809 for ac_lib
in cposix
; do
2810 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2811 cat >conftest.
$ac_ext <<_ACEOF
2814 cat confdefs.h
>>conftest.
$ac_ext
2815 cat >>conftest.
$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2818 /* Override any gcc2 internal prototype to avoid an error. */
2822 /* We use char because int might match the return type of a gcc2
2823 builtin and then its argument prototype would still apply. */
2833 rm -f conftest.
$ac_objext conftest
$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835 (eval $ac_link) 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_exeext'
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_search_strerror
="-l$ac_lib"
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.
$ac_ext >&5
2862 rm -f conftest.err conftest.
$ac_objext \
2863 conftest
$ac_exeext conftest.
$ac_ext
2866 LIBS
=$ac_func_search_save_LIBS
2868 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2869 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2870 if test "$ac_cv_search_strerror" != no
; then
2871 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2876 ac_cpp
='$CPP $CPPFLAGS'
2877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2886 if test -z "$CPP"; then
2887 if test "${ac_cv_prog_CPP+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 # Double quotes because CPP needs to be expanded
2891 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2894 for ac_c_preproc_warn_flag
in '' yes
2896 # Use a header file that comes with gcc, so configuring glibc
2897 # with a fresh cross-compiler works.
2898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2899 # <limits.h> exists even on freestanding compilers.
2900 # On the NeXT, cc -E runs the code through the compiler's parser,
2901 # not just through cpp. "Syntax error" is here to catch this case.
2902 cat >conftest.
$ac_ext <<_ACEOF
2905 cat confdefs.h
>>conftest.
$ac_ext
2906 cat >>conftest.
$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2909 # include <limits.h>
2911 # include <assert.h>
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2918 grep -v '^ *+' conftest.er1
>conftest.err
2920 cat conftest.err
>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } >/dev
/null
; then
2923 if test -s conftest.err
; then
2924 ac_cpp_err
=$ac_c_preproc_warn_flag
2925 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2932 if test -z "$ac_cpp_err"; then
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.
$ac_ext >&5
2938 # Broken: fails on valid input.
2941 rm -f conftest.err conftest.
$ac_ext
2943 # OK, works on sane cases. Now check whether non-existent headers
2944 # can be detected and how.
2945 cat >conftest.
$ac_ext <<_ACEOF
2948 cat confdefs.h
>>conftest.
$ac_ext
2949 cat >>conftest.
$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 #include <ac_nonexistent.h>
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2956 grep -v '^ *+' conftest.er1
>conftest.err
2958 cat conftest.err
>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev
/null
; then
2961 if test -s conftest.err
; then
2962 ac_cpp_err
=$ac_c_preproc_warn_flag
2963 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2970 if test -z "$ac_cpp_err"; then
2971 # Broken: success on invalid input.
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.
$ac_ext >&5
2977 # Passes both tests.
2981 rm -f conftest.err conftest.
$ac_ext
2984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2985 rm -f conftest.err conftest.
$ac_ext
2986 if $ac_preproc_ok; then
2998 echo "$as_me:$LINENO: result: $CPP" >&5
2999 echo "${ECHO_T}$CPP" >&6
3001 for ac_c_preproc_warn_flag
in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.
$ac_ext <<_ACEOF
3012 cat confdefs.h
>>conftest.
$ac_ext
3013 cat >>conftest.
$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3016 # include <limits.h>
3018 # include <assert.h>
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1
>conftest.err
3027 cat conftest.err
>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev
/null
; then
3030 if test -s conftest.err
; then
3031 ac_cpp_err
=$ac_c_preproc_warn_flag
3032 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3039 if test -z "$ac_cpp_err"; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.
$ac_ext >&5
3045 # Broken: fails on valid input.
3048 rm -f conftest.err conftest.
$ac_ext
3050 # OK, works on sane cases. Now check whether non-existent headers
3051 # can be detected and how.
3052 cat >conftest.
$ac_ext <<_ACEOF
3055 cat confdefs.h
>>conftest.
$ac_ext
3056 cat >>conftest.
$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 #include <ac_nonexistent.h>
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3063 grep -v '^ *+' conftest.er1
>conftest.err
3065 cat conftest.err
>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev
/null
; then
3068 if test -s conftest.err
; then
3069 ac_cpp_err
=$ac_c_preproc_warn_flag
3070 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3077 if test -z "$ac_cpp_err"; then
3078 # Broken: success on invalid input.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 # Passes both tests.
3088 rm -f conftest.err conftest.
$ac_ext
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.
$ac_ext
3093 if $ac_preproc_ok; then
3096 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3104 ac_cpp
='$CPP $CPPFLAGS'
3105 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3110 echo "$as_me:$LINENO: checking for egrep" >&5
3111 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3112 if test "${ac_cv_prog_egrep+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3116 then ac_cv_prog_egrep
='grep -E'
3117 else ac_cv_prog_egrep
='egrep'
3120 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3121 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3122 EGREP
=$ac_cv_prog_egrep
3125 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3127 if test "${ac_cv_header_stdc+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 cat >conftest.
$ac_ext <<_ACEOF
3133 cat confdefs.h
>>conftest.
$ac_ext
3134 cat >>conftest.
$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3149 rm -f conftest.
$ac_objext
3150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3151 (eval $ac_compile) 2>conftest.er1
3153 grep -v '^ *+' conftest.er1
>conftest.err
3155 cat conftest.err
>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try
='test -z "$ac_c_werror_flag"
3159 || test ! -s conftest.err'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try
='test -s conftest.$ac_objext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 ac_cv_header_stdc
=yes
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.
$ac_ext >&5
3176 ac_cv_header_stdc
=no
3178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3180 if test $ac_cv_header_stdc = yes; then
3181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3182 cat >conftest.
$ac_ext <<_ACEOF
3185 cat confdefs.h
>>conftest.
$ac_ext
3186 cat >>conftest.
$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3192 $EGREP "memchr" >/dev
/null
2>&1; then
3195 ac_cv_header_stdc
=no
3201 if test $ac_cv_header_stdc = yes; then
3202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3203 cat >conftest.
$ac_ext <<_ACEOF
3206 cat confdefs.h
>>conftest.
$ac_ext
3207 cat >>conftest.
$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213 $EGREP "free" >/dev
/null
2>&1; then
3216 ac_cv_header_stdc
=no
3222 if test $ac_cv_header_stdc = yes; then
3223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3224 if test "$cross_compiling" = yes; then
3227 cat >conftest.
$ac_ext <<_ACEOF
3230 cat confdefs.h
>>conftest.
$ac_ext
3231 cat >>conftest.
$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3234 #if ((' ' & 0x0FF) == 0x020)
3235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3238 # define ISLOWER(c) \
3239 (('a' <= (c) && (c) <= 'i') \
3240 || ('j' <= (c) && (c) <= 'r') \
3241 || ('s' <= (c) && (c) <= 'z'))
3242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3250 for (i = 0; i < 256; i++)
3251 if (XOR (islower (i), ISLOWER (i))
3252 || toupper (i) != TOUPPER (i))
3257 rm -f conftest
$ac_exeext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259 (eval $ac_link) 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3270 echo "$as_me: program exited with status $ac_status" >&5
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.
$ac_ext >&5
3275 ac_cv_header_stdc
=no
3277 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3281 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3282 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3283 if test $ac_cv_header_stdc = yes; then
3285 cat >>confdefs.h
<<\_ACEOF
3286 #define STDC_HEADERS 1
3291 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3292 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3293 if test "${ac_cv_c_const+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 cat >conftest.
$ac_ext <<_ACEOF
3299 cat confdefs.h
>>conftest.
$ac_ext
3300 cat >>conftest.
$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3306 /* FIXME: Include the comments suggested by Paul. */
3308 /* Ultrix mips cc rejects this. */
3309 typedef int charset[2];
3311 /* SunOS 4.1.1 cc rejects this. */
3312 char const *const *ccp;
3314 /* NEC SVR4.0.2 mips cc rejects this. */
3315 struct point {int x, y;};
3316 static struct point const zero = {0,0};
3317 /* AIX XL C 1.02.0.0 rejects this.
3318 It does not let you subtract one const X* pointer from another in
3319 an arm of an if-expression whose if-part is not a constant
3321 const char *g = "string";
3322 ccp = &g + (g ? g-g : 0);
3323 /* HPUX 7.0 cc rejects these. */
3326 ccp = (char const *const *) p;
3327 { /* SCO 3.2v4 cc rejects this. */
3329 char const *s = 0 ? (char *) 0 : (char const *) 0;
3333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3335 const int *foo = &x[0];
3338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3339 typedef const int *iptr;
3343 { /* AIX XL C 1.02.0.0 rejects this saying
3344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3345 struct s { int j; const int *ap[3]; };
3346 struct s *b; b->j = 5;
3348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3357 rm -f conftest.
$ac_objext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1
>conftest.err
3363 cat conftest.err
>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try
='test -z "$ac_c_werror_flag"
3367 || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try
='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.
$ac_ext >&5
3386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3388 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3389 echo "${ECHO_T}$ac_cv_c_const" >&6
3390 if test $ac_cv_c_const = no
; then
3392 cat >>confdefs.h
<<\_ACEOF
3398 echo "$as_me:$LINENO: checking for inline" >&5
3399 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3400 if test "${ac_cv_c_inline+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 for ac_kw
in inline __inline__ __inline
; do
3405 cat >conftest.
$ac_ext <<_ACEOF
3408 cat confdefs.h
>>conftest.
$ac_ext
3409 cat >>conftest.
$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3413 static $ac_kw foo_t static_foo () {return 0; }
3414 $ac_kw foo_t foo () {return 0; }
3418 rm -f conftest.
$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>conftest.er1
3422 grep -v '^ *+' conftest.er1
>conftest.err
3424 cat conftest.err
>&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try
='test -z "$ac_c_werror_flag"
3428 || test ! -s conftest.err'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; } &&
3434 { ac_try
='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 ac_cv_c_inline
=$ac_kw; break
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.
$ac_ext >&5
3446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3450 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3451 echo "${ECHO_T}$ac_cv_c_inline" >&6
3454 case $ac_cv_c_inline in
3457 case $ac_cv_c_inline in
3459 *) ac_val
=$ac_cv_c_inline;;
3461 cat >>confdefs.h
<<_ACEOF
3463 #define inline $ac_val
3469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3479 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3480 inttypes.h stdint.h unistd.h
3482 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 cat >conftest.
$ac_ext <<_ACEOF
3491 cat confdefs.h
>>conftest.
$ac_ext
3492 cat >>conftest.
$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 $ac_includes_default
3496 #include <$ac_header>
3498 rm -f conftest.
$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3502 grep -v '^ *+' conftest.er1
>conftest.err
3504 cat conftest.err
>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try
='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try
='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 eval "$as_ac_Header=yes"
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.
$ac_ext >&5
3525 eval "$as_ac_Header=no"
3527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3532 cat >>confdefs.h
<<_ACEOF
3533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3541 echo "$as_me:$LINENO: checking for off_t" >&5
3542 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3543 if test "${ac_cv_type_off_t+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 cat >conftest.
$ac_ext <<_ACEOF
3549 cat confdefs.h
>>conftest.
$ac_ext
3550 cat >>conftest.
$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 $ac_includes_default
3564 rm -f conftest.
$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3568 grep -v '^ *+' conftest.er1
>conftest.err
3570 cat conftest.err
>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try
='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try
='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_type_off_t
=yes
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.
$ac_ext >&5
3593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3595 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3596 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3597 if test $ac_cv_type_off_t = yes; then
3601 cat >>confdefs.h
<<_ACEOF
3607 echo "$as_me:$LINENO: checking for size_t" >&5
3608 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3609 if test "${ac_cv_type_size_t+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 cat >conftest.
$ac_ext <<_ACEOF
3615 cat confdefs.h
>>conftest.
$ac_ext
3616 cat >>conftest.
$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 $ac_includes_default
3624 if (sizeof (size_t))
3630 rm -f conftest.
$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3634 grep -v '^ *+' conftest.er1
>conftest.err
3636 cat conftest.err
>&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try
='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try
='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_cv_type_size_t
=yes
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.
$ac_ext >&5
3657 ac_cv_type_size_t
=no
3659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3661 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3662 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3663 if test $ac_cv_type_size_t = yes; then
3667 cat >>confdefs.h
<<_ACEOF
3668 #define size_t unsigned
3673 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3674 # for constant arguments. Useless!
3675 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3676 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3677 if test "${ac_cv_working_alloca_h+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 cat >conftest.
$ac_ext <<_ACEOF
3683 cat confdefs.h
>>conftest.
$ac_ext
3684 cat >>conftest.
$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3690 char *p = (char *) alloca (2 * sizeof (int));
3695 rm -f conftest.
$ac_objext conftest
$ac_exeext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3697 (eval $ac_link) 2>conftest.er1
3699 grep -v '^ *+' conftest.er1
>conftest.err
3701 cat conftest.err
>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try
='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try
='test -s conftest$ac_exeext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 ac_cv_working_alloca_h
=yes
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.
$ac_ext >&5
3722 ac_cv_working_alloca_h
=no
3724 rm -f conftest.err conftest.
$ac_objext \
3725 conftest
$ac_exeext conftest.
$ac_ext
3727 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3728 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3729 if test $ac_cv_working_alloca_h = yes; then
3731 cat >>confdefs.h
<<\_ACEOF
3732 #define HAVE_ALLOCA_H 1
3737 echo "$as_me:$LINENO: checking for alloca" >&5
3738 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3739 if test "${ac_cv_func_alloca_works+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 cat >conftest.
$ac_ext <<_ACEOF
3745 cat confdefs.h
>>conftest.
$ac_ext
3746 cat >>conftest.
$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3749 # define alloca __builtin_alloca
3752 # include <malloc.h>
3753 # define alloca _alloca
3756 # include <alloca.h>
3761 # ifndef alloca /* predefined by HP cc +Olibcalls */
3772 char *p = (char *) alloca (1);
3777 rm -f conftest.
$ac_objext conftest
$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779 (eval $ac_link) 2>conftest.er1
3781 grep -v '^ *+' conftest.er1
>conftest.err
3783 cat conftest.err
>&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try
='test -z "$ac_c_werror_flag"
3787 || test ! -s conftest.err'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try
='test -s conftest$ac_exeext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 ac_cv_func_alloca_works
=yes
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.
$ac_ext >&5
3804 ac_cv_func_alloca_works
=no
3806 rm -f conftest.err conftest.
$ac_objext \
3807 conftest
$ac_exeext conftest.
$ac_ext
3809 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3810 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3812 if test $ac_cv_func_alloca_works = yes; then
3814 cat >>confdefs.h
<<\_ACEOF
3815 #define HAVE_ALLOCA 1
3819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3820 # that cause trouble. Some versions do not even contain alloca or
3821 # contain a buggy version. If you still want to use their alloca,
3822 # use ar to extract alloca.o from them instead of compiling alloca.c.
3824 ALLOCA
=alloca.
$ac_objext
3826 cat >>confdefs.h
<<\_ACEOF
3831 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3832 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3833 if test "${ac_cv_os_cray+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 cat >conftest.
$ac_ext <<_ACEOF
3839 cat confdefs.h
>>conftest.
$ac_ext
3840 cat >>conftest.
$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 #if defined(CRAY) && ! defined(CRAY2)
3849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850 $EGREP "webecray" >/dev
/null
2>&1; then
3858 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3859 echo "${ECHO_T}$ac_cv_os_cray" >&6
3860 if test $ac_cv_os_cray = yes; then
3861 for ac_func
in _getb67 GETB67 getb67
; do
3862 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3863 echo "$as_me:$LINENO: checking for $ac_func" >&5
3864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3865 if eval "test \"\${$as_ac_var+set}\" = set"; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 cat >conftest.
$ac_ext <<_ACEOF
3871 cat confdefs.h
>>conftest.
$ac_ext
3872 cat >>conftest.
$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3876 #define $ac_func innocuous_$ac_func
3878 /* System header to define __stub macros and hopefully few prototypes,
3879 which can conflict with char $ac_func (); below.
3880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3881 <limits.h> exists even on freestanding compilers. */
3884 # include <limits.h>
3886 # include <assert.h>
3891 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3899 /* The GNU C library defines this for functions which it implements
3900 to always fail with ENOSYS. Some functions are actually named
3901 something starting with __ and the normal name is an alias. */
3902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3905 char (*f) () = $ac_func;
3914 return f != $ac_func;
3919 rm -f conftest.
$ac_objext conftest
$ac_exeext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3921 (eval $ac_link) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1
>conftest.err
3925 cat conftest.err
>&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try
='test -z "$ac_c_werror_flag"
3929 || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try
='test -s conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 eval "$as_ac_var=yes"
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.
$ac_ext >&5
3946 eval "$as_ac_var=no"
3948 rm -f conftest.err conftest.
$ac_objext \
3949 conftest
$ac_exeext conftest.
$ac_ext
3951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3953 if test `eval echo '${'$as_ac_var'}'` = yes; then
3955 cat >>confdefs.h
<<_ACEOF
3956 #define CRAY_STACKSEG_END $ac_func
3965 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3966 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3967 if test "${ac_cv_c_stack_direction+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 if test "$cross_compiling" = yes; then
3971 ac_cv_c_stack_direction
=0
3973 cat >conftest.
$ac_ext <<_ACEOF
3976 cat confdefs.h
>>conftest.
$ac_ext
3977 cat >>conftest.
$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3980 find_stack_direction ()
3982 static char *addr = 0;
3987 return find_stack_direction ();
3990 return (&dummy > addr) ? 1 : -1;
3996 exit (find_stack_direction () < 0);
3999 rm -f conftest
$ac_exeext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4001 (eval $ac_link) 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 ac_cv_c_stack_direction
=1
4012 echo "$as_me: program exited with status $ac_status" >&5
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.
$ac_ext >&5
4017 ac_cv_c_stack_direction
=-1
4019 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4023 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4025 cat >>confdefs.h
<<_ACEOF
4026 #define STACK_DIRECTION $ac_cv_c_stack_direction
4034 for ac_header
in stdlib.h unistd.h
4036 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4038 echo "$as_me:$LINENO: checking for $ac_header" >&5
4039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4046 # Is the header compilable?
4047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4049 cat >conftest.
$ac_ext <<_ACEOF
4052 cat confdefs.h
>>conftest.
$ac_ext
4053 cat >>conftest.
$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 $ac_includes_default
4056 #include <$ac_header>
4058 rm -f conftest.
$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4062 grep -v '^ *+' conftest.er1
>conftest.err
4064 cat conftest.err
>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try
='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try
='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_header_compiler
=yes
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.
$ac_ext >&5
4085 ac_header_compiler
=no
4087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4089 echo "${ECHO_T}$ac_header_compiler" >&6
4091 # Is the header present?
4092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4094 cat >conftest.
$ac_ext <<_ACEOF
4097 cat confdefs.h
>>conftest.
$ac_ext
4098 cat >>conftest.
$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <$ac_header>
4102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4103 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4105 grep -v '^ *+' conftest.er1
>conftest.err
4107 cat conftest.err
>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } >/dev
/null
; then
4110 if test -s conftest.err
; then
4111 ac_cpp_err
=$ac_c_preproc_warn_flag
4112 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4119 if test -z "$ac_cpp_err"; then
4120 ac_header_preproc
=yes
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.
$ac_ext >&5
4125 ac_header_preproc
=no
4127 rm -f conftest.err conftest.
$ac_ext
4128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4129 echo "${ECHO_T}$ac_header_preproc" >&6
4131 # So? What about this header?
4132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4138 ac_header_preproc
=yes
4141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4155 ## ------------------------------------------ ##
4156 ## Report this to the AC_PACKAGE_NAME lists. ##
4157 ## ------------------------------------------ ##
4160 sed "s/^/$as_me: WARNING: /" >&2
4163 echo "$as_me:$LINENO: checking for $ac_header" >&5
4164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 eval "$as_ac_Header=\$ac_header_preproc"
4170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4175 cat >>confdefs.h
<<_ACEOF
4176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4184 for ac_func
in getpagesize
4186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4187 echo "$as_me:$LINENO: checking for $ac_func" >&5
4188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4189 if eval "test \"\${$as_ac_var+set}\" = set"; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 cat >conftest.
$ac_ext <<_ACEOF
4195 cat confdefs.h
>>conftest.
$ac_ext
4196 cat >>conftest.
$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4200 #define $ac_func innocuous_$ac_func
4202 /* System header to define __stub macros and hopefully few prototypes,
4203 which can conflict with char $ac_func (); below.
4204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205 <limits.h> exists even on freestanding compilers. */
4208 # include <limits.h>
4210 # include <assert.h>
4215 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4223 /* The GNU C library defines this for functions which it implements
4224 to always fail with ENOSYS. Some functions are actually named
4225 something starting with __ and the normal name is an alias. */
4226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4229 char (*f) () = $ac_func;
4238 return f != $ac_func;
4243 rm -f conftest.
$ac_objext conftest
$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245 (eval $ac_link) 2>conftest.er1
4247 grep -v '^ *+' conftest.er1
>conftest.err
4249 cat conftest.err
>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try
='test -z "$ac_c_werror_flag"
4253 || test ! -s conftest.err'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try
='test -s conftest$ac_exeext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 eval "$as_ac_var=yes"
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.
$ac_ext >&5
4270 eval "$as_ac_var=no"
4272 rm -f conftest.err conftest.
$ac_objext \
4273 conftest
$ac_exeext conftest.
$ac_ext
4275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4277 if test `eval echo '${'$as_ac_var'}'` = yes; then
4278 cat >>confdefs.h
<<_ACEOF
4279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4285 echo "$as_me:$LINENO: checking for working mmap" >&5
4286 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4287 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test "$cross_compiling" = yes; then
4291 ac_cv_func_mmap_fixed_mapped
=no
4293 cat >conftest.
$ac_ext <<_ACEOF
4296 cat confdefs.h
>>conftest.
$ac_ext
4297 cat >>conftest.
$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4300 /* malloc might have been renamed as rpl_malloc. */
4303 /* Thanks to Mike Haertel and Jim Avera for this test.
4304 Here is a matrix of mmap possibilities:
4305 mmap private not fixed
4306 mmap private fixed at somewhere currently unmapped
4307 mmap private fixed at somewhere already mapped
4308 mmap shared not fixed
4309 mmap shared fixed at somewhere currently unmapped
4310 mmap shared fixed at somewhere already mapped
4311 For private mappings, we should verify that changes cannot be read()
4312 back from the file, nor mmap's back from the file at a different
4313 address. (There have been systems where private was not correctly
4314 implemented like the infamous i386 svr4.0, and systems where the
4315 VM page cache was not coherent with the file system buffer cache
4316 like early versions of FreeBSD and possibly contemporary NetBSD.)
4317 For shared mappings, we should conversely verify that changes get
4318 propagated back to all the places they're supposed to be.
4320 Grep wants private fixed already mapped.
4321 The main things grep needs to know about mmap are:
4322 * does it exist and is it safe to write into the mmap'd area
4323 * how to use it (BSD variants) */
4326 #include <sys/mman.h>
4328 #if !STDC_HEADERS && !HAVE_STDLIB_H
4332 /* This mess was copied from the GNU getpagesize.h. */
4333 #if !HAVE_GETPAGESIZE
4334 /* Assume that all systems that can run configure have sys/param.h. */
4335 # if !HAVE_SYS_PARAM_H
4336 # define HAVE_SYS_PARAM_H 1
4339 # ifdef _SC_PAGESIZE
4340 # define getpagesize() sysconf(_SC_PAGESIZE)
4341 # else /* no _SC_PAGESIZE */
4342 # if HAVE_SYS_PARAM_H
4343 # include <sys/param.h>
4344 # ifdef EXEC_PAGESIZE
4345 # define getpagesize() EXEC_PAGESIZE
4346 # else /* no EXEC_PAGESIZE */
4348 # define getpagesize() NBPG * CLSIZE
4351 # endif /* no CLSIZE */
4352 # else /* no NBPG */
4354 # define getpagesize() NBPC
4355 # else /* no NBPC */
4357 # define getpagesize() PAGESIZE
4358 # endif /* PAGESIZE */
4359 # endif /* no NBPC */
4360 # endif /* no NBPG */
4361 # endif /* no EXEC_PAGESIZE */
4362 # else /* no HAVE_SYS_PARAM_H */
4363 # define getpagesize() 8192 /* punt totally */
4364 # endif /* no HAVE_SYS_PARAM_H */
4365 # endif /* no _SC_PAGESIZE */
4367 #endif /* no HAVE_GETPAGESIZE */
4372 char *data, *data2, *data3;
4376 pagesize = getpagesize ();
4378 /* First, make a file with some known garbage in it. */
4379 data = (char *) malloc (pagesize);
4382 for (i = 0; i < pagesize; ++i)
4383 *(data + i) = rand ();
4385 fd = creat ("conftest.mmap", 0600);
4388 if (write (fd, data, pagesize) != pagesize)
4392 /* Next, try to mmap the file at a fixed address which already has
4393 something else allocated at it. If we can, also make sure that
4394 we see the same garbage. */
4395 fd = open ("conftest.mmap", O_RDWR);
4398 data2 = (char *) malloc (2 * pagesize);
4401 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4402 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4405 for (i = 0; i < pagesize; ++i)
4406 if (*(data + i) != *(data2 + i))
4409 /* Finally, make sure that changes to the mapped area do not
4410 percolate back to the file as seen by read(). (This is a bug on
4411 some variants of i386 svr4.0.) */
4412 for (i = 0; i < pagesize; ++i)
4413 *(data2 + i) = *(data2 + i) + 1;
4414 data3 = (char *) malloc (pagesize);
4417 if (read (fd, data3, pagesize) != pagesize)
4419 for (i = 0; i < pagesize; ++i)
4420 if (*(data + i) != *(data3 + i))
4426 rm -f conftest
$ac_exeext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428 (eval $ac_link) 2>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_cv_func_mmap_fixed_mapped
=yes
4439 echo "$as_me: program exited with status $ac_status" >&5
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.
$ac_ext >&5
4444 ac_cv_func_mmap_fixed_mapped
=no
4446 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4450 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4451 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4453 cat >>confdefs.h
<<\_ACEOF
4470 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4471 unistd.h values.h sys
/param.h
4473 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4475 echo "$as_me:$LINENO: checking for $ac_header" >&5
4476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4483 # Is the header compilable?
4484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4486 cat >conftest.
$ac_ext <<_ACEOF
4489 cat confdefs.h
>>conftest.
$ac_ext
4490 cat >>conftest.
$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 $ac_includes_default
4493 #include <$ac_header>
4495 rm -f conftest.
$ac_objext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>conftest.er1
4499 grep -v '^ *+' conftest.er1
>conftest.err
4501 cat conftest.err
>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try
='test -z "$ac_c_werror_flag"
4505 || test ! -s conftest.err'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try
='test -s conftest.$ac_objext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_header_compiler
=yes
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.
$ac_ext >&5
4522 ac_header_compiler
=no
4524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4526 echo "${ECHO_T}$ac_header_compiler" >&6
4528 # Is the header present?
4529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4531 cat >conftest.
$ac_ext <<_ACEOF
4534 cat confdefs.h
>>conftest.
$ac_ext
4535 cat >>conftest.
$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #include <$ac_header>
4539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4540 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1
>conftest.err
4544 cat conftest.err
>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev
/null
; then
4547 if test -s conftest.err
; then
4548 ac_cpp_err
=$ac_c_preproc_warn_flag
4549 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4556 if test -z "$ac_cpp_err"; then
4557 ac_header_preproc
=yes
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.
$ac_ext >&5
4562 ac_header_preproc
=no
4564 rm -f conftest.err conftest.
$ac_ext
4565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4566 echo "${ECHO_T}$ac_header_preproc" >&6
4568 # So? What about this header?
4569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4575 ac_header_preproc
=yes
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4592 ## ------------------------------------------ ##
4593 ## Report this to the AC_PACKAGE_NAME lists. ##
4594 ## ------------------------------------------ ##
4597 sed "s/^/$as_me: WARNING: /" >&2
4600 echo "$as_me:$LINENO: checking for $ac_header" >&5
4601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 eval "$as_ac_Header=\$ac_header_preproc"
4607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4612 cat >>confdefs.h
<<_ACEOF
4613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4630 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4631 __argz_count __argz_stringify __argz_next
4633 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4634 echo "$as_me:$LINENO: checking for $ac_func" >&5
4635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4636 if eval "test \"\${$as_ac_var+set}\" = set"; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 cat >conftest.
$ac_ext <<_ACEOF
4642 cat confdefs.h
>>conftest.
$ac_ext
4643 cat >>conftest.
$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4647 #define $ac_func innocuous_$ac_func
4649 /* System header to define __stub macros and hopefully few prototypes,
4650 which can conflict with char $ac_func (); below.
4651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652 <limits.h> exists even on freestanding compilers. */
4655 # include <limits.h>
4657 # include <assert.h>
4662 /* Override any gcc2 internal prototype to avoid an error. */
4667 /* We use char because int might match the return type of a gcc2
4668 builtin and then its argument prototype would still apply. */
4670 /* The GNU C library defines this for functions which it implements
4671 to always fail with ENOSYS. Some functions are actually named
4672 something starting with __ and the normal name is an alias. */
4673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4676 char (*f) () = $ac_func;
4685 return f != $ac_func;
4690 rm -f conftest.
$ac_objext conftest
$ac_exeext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>conftest.er1
4694 grep -v '^ *+' conftest.er1
>conftest.err
4696 cat conftest.err
>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try
='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try
='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 eval "$as_ac_var=yes"
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.
$ac_ext >&5
4717 eval "$as_ac_var=no"
4719 rm -f conftest.err conftest.
$ac_objext \
4720 conftest
$ac_exeext conftest.
$ac_ext
4722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4724 if test `eval echo '${'$as_ac_var'}'` = yes; then
4725 cat >>confdefs.h
<<_ACEOF
4726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4733 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4735 for ac_func
in stpcpy
4737 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738 echo "$as_me:$LINENO: checking for $ac_func" >&5
4739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4740 if eval "test \"\${$as_ac_var+set}\" = set"; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 cat >conftest.
$ac_ext <<_ACEOF
4746 cat confdefs.h
>>conftest.
$ac_ext
4747 cat >>conftest.
$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4751 #define $ac_func innocuous_$ac_func
4753 /* System header to define __stub macros and hopefully few prototypes,
4754 which can conflict with char $ac_func (); below.
4755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 <limits.h> exists even on freestanding compilers. */
4759 # include <limits.h>
4761 # include <assert.h>
4766 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4774 /* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4780 char (*f) () = $ac_func;
4789 return f != $ac_func;
4794 rm -f conftest.
$ac_objext conftest
$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>conftest.er1
4798 grep -v '^ *+' conftest.er1
>conftest.err
4800 cat conftest.err
>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try
='test -z "$ac_c_werror_flag"
4804 || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try
='test -s conftest$ac_exeext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 eval "$as_ac_var=yes"
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.
$ac_ext >&5
4821 eval "$as_ac_var=no"
4823 rm -f conftest.err conftest.
$ac_objext \
4824 conftest
$ac_exeext conftest.
$ac_ext
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4828 if test `eval echo '${'$as_ac_var'}'` = yes; then
4829 cat >>confdefs.h
<<_ACEOF
4830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4837 if test "${ac_cv_func_stpcpy}" = "yes"; then
4839 cat >>confdefs.h
<<\_ACEOF
4840 #define HAVE_STPCPY 1
4845 if test $ac_cv_header_locale_h = yes; then
4846 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4847 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4848 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 cat >conftest.
$ac_ext <<_ACEOF
4854 cat confdefs.h
>>conftest.
$ac_ext
4855 cat >>conftest.
$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4866 rm -f conftest.
$ac_objext conftest
$ac_exeext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4868 (eval $ac_link) 2>conftest.er1
4870 grep -v '^ *+' conftest.er1
>conftest.err
4872 cat conftest.err
>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try
='test -z "$ac_c_werror_flag"
4876 || test ! -s conftest.err'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try
='test -s conftest$ac_exeext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 am_cv_val_LC_MESSAGES
=yes
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.
$ac_ext >&5
4893 am_cv_val_LC_MESSAGES
=no
4895 rm -f conftest.err conftest.
$ac_objext \
4896 conftest
$ac_exeext conftest.
$ac_ext
4898 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4899 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4900 if test $am_cv_val_LC_MESSAGES = yes; then
4902 cat >>confdefs.h
<<\_ACEOF
4903 #define HAVE_LC_MESSAGES 1
4908 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4909 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4910 # Check whether --enable-nls or --disable-nls was given.
4911 if test "${enable_nls+set}" = set; then
4912 enableval
="$enable_nls"
4917 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4918 echo "${ECHO_T}$USE_NLS" >&6
4921 USE_INCLUDED_LIBINTL
=no
4923 if test "$USE_NLS" = "yes"; then
4924 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4925 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4927 # Check whether --with-included-gettext or --without-included-gettext was given.
4928 if test "${with_included_gettext+set}" = set; then
4929 withval
="$with_included_gettext"
4930 nls_cv_force_use_gnu_gettext
=$withval
4932 nls_cv_force_use_gnu_gettext
=no
4934 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4935 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4937 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4938 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4940 nls_cv_header_libgt
=
4943 if test "${ac_cv_header_libintl_h+set}" = set; then
4944 echo "$as_me:$LINENO: checking for libintl.h" >&5
4945 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4946 if test "${ac_cv_header_libintl_h+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4950 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4952 # Is the header compilable?
4953 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4954 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4955 cat >conftest.
$ac_ext <<_ACEOF
4958 cat confdefs.h
>>conftest.
$ac_ext
4959 cat >>conftest.
$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961 $ac_includes_default
4962 #include <libintl.h>
4964 rm -f conftest.
$ac_objext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>conftest.er1
4968 grep -v '^ *+' conftest.er1
>conftest.err
4970 cat conftest.err
>&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try
='test -z "$ac_c_werror_flag"
4974 || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try
='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_header_compiler
=yes
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.
$ac_ext >&5
4991 ac_header_compiler
=no
4993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4995 echo "${ECHO_T}$ac_header_compiler" >&6
4997 # Is the header present?
4998 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4999 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5000 cat >conftest.
$ac_ext <<_ACEOF
5003 cat confdefs.h
>>conftest.
$ac_ext
5004 cat >>conftest.
$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 #include <libintl.h>
5008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5009 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5011 grep -v '^ *+' conftest.er1
>conftest.err
5013 cat conftest.err
>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } >/dev
/null
; then
5016 if test -s conftest.err
; then
5017 ac_cpp_err
=$ac_c_preproc_warn_flag
5018 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5025 if test -z "$ac_cpp_err"; then
5026 ac_header_preproc
=yes
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.
$ac_ext >&5
5031 ac_header_preproc
=no
5033 rm -f conftest.err conftest.
$ac_ext
5034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5035 echo "${ECHO_T}$ac_header_preproc" >&6
5037 # So? What about this header?
5038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5040 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5041 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5042 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5043 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5044 ac_header_preproc
=yes
5047 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5048 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5049 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5050 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5052 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5054 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5056 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5057 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5058 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5061 ## ------------------------------------------ ##
5062 ## Report this to the AC_PACKAGE_NAME lists. ##
5063 ## ------------------------------------------ ##
5066 sed "s/^/$as_me: WARNING: /" >&2
5069 echo "$as_me:$LINENO: checking for libintl.h" >&5
5070 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5071 if test "${ac_cv_header_libintl_h+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 ac_cv_header_libintl_h
=$ac_header_preproc
5076 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5077 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5080 if test $ac_cv_header_libintl_h = yes; then
5081 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5082 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5083 if test "${gt_cv_func_gettext_libc+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 cat >conftest.
$ac_ext <<_ACEOF
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <libintl.h>
5096 return (int) gettext ("")
5101 rm -f conftest.
$ac_objext conftest
$ac_exeext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5103 (eval $ac_link) 2>conftest.er1
5105 grep -v '^ *+' conftest.er1
>conftest.err
5107 cat conftest.err
>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try
='test -z "$ac_c_werror_flag"
5111 || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try
='test -s conftest$ac_exeext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 gt_cv_func_gettext_libc
=yes
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.
$ac_ext >&5
5128 gt_cv_func_gettext_libc
=no
5130 rm -f conftest.err conftest.
$ac_objext \
5131 conftest
$ac_exeext conftest.
$ac_ext
5133 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5134 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5136 if test "$gt_cv_func_gettext_libc" != "yes"; then
5137 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5138 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5139 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 ac_check_lib_save_LIBS
=$LIBS
5144 cat >conftest.
$ac_ext <<_ACEOF
5147 cat confdefs.h
>>conftest.
$ac_ext
5148 cat >>conftest.
$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5151 /* Override any gcc2 internal prototype to avoid an error. */
5155 /* We use char because int might match the return type of a gcc2
5156 builtin and then its argument prototype would still apply. */
5157 char bindtextdomain ();
5166 rm -f conftest.
$ac_objext conftest
$ac_exeext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5168 (eval $ac_link) 2>conftest.er1
5170 grep -v '^ *+' conftest.er1
>conftest.err
5172 cat conftest.err
>&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } &&
5175 { ac_try
='test -z "$ac_c_werror_flag"
5176 || test ! -s conftest.err'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; } &&
5182 { ac_try
='test -s conftest$ac_exeext'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_cv_lib_intl_bindtextdomain
=yes
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.
$ac_ext >&5
5193 ac_cv_lib_intl_bindtextdomain
=no
5195 rm -f conftest.err conftest.
$ac_objext \
5196 conftest
$ac_exeext conftest.
$ac_ext
5197 LIBS
=$ac_check_lib_save_LIBS
5199 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5200 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5201 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5202 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5203 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5204 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 cat >conftest.
$ac_ext <<_ACEOF
5210 cat confdefs.h
>>conftest.
$ac_ext
5211 cat >>conftest.
$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5217 return (int) gettext ("")
5222 rm -f conftest.
$ac_objext conftest
$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1
>conftest.err
5228 cat conftest.err
>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try
='test -z "$ac_c_werror_flag"
5232 || test ! -s conftest.err'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try
='test -s conftest$ac_exeext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 gt_cv_func_gettext_libintl
=yes
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.
$ac_ext >&5
5249 gt_cv_func_gettext_libintl
=no
5251 rm -f conftest.err conftest.
$ac_objext \
5252 conftest
$ac_exeext conftest.
$ac_ext
5254 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5255 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5260 if test "$gt_cv_func_gettext_libc" = "yes" \
5261 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5263 cat >>confdefs.h
<<\_ACEOF
5264 #define HAVE_GETTEXT 1
5267 # Extract the first word of "msgfmt", so it can be a program name with args.
5268 set dummy msgfmt
; ac_word
=$2
5269 echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5271 if test "${ac_cv_path_MSGFMT+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5279 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5280 for ac_dir
in $PATH; do
5281 test -z "$ac_dir" && ac_dir
=.
5282 if test -f $ac_dir/$ac_word; then
5283 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5284 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5290 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5294 MSGFMT
="$ac_cv_path_MSGFMT"
5295 if test -n "$MSGFMT"; then
5296 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5297 echo "${ECHO_T}$MSGFMT" >&6
5299 echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6
5302 if test "$MSGFMT" != "no"; then
5304 for ac_func
in dcgettext
5306 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5307 echo "$as_me:$LINENO: checking for $ac_func" >&5
5308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5309 if eval "test \"\${$as_ac_var+set}\" = set"; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 cat >conftest.
$ac_ext <<_ACEOF
5315 cat confdefs.h
>>conftest.
$ac_ext
5316 cat >>conftest.
$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5320 #define $ac_func innocuous_$ac_func
5322 /* System header to define __stub macros and hopefully few prototypes,
5323 which can conflict with char $ac_func (); below.
5324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5325 <limits.h> exists even on freestanding compilers. */
5328 # include <limits.h>
5330 # include <assert.h>
5335 /* Override any gcc2 internal prototype to avoid an error. */
5340 /* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5343 /* The GNU C library defines this for functions which it implements
5344 to always fail with ENOSYS. Some functions are actually named
5345 something starting with __ and the normal name is an alias. */
5346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5349 char (*f) () = $ac_func;
5358 return f != $ac_func;
5363 rm -f conftest.
$ac_objext conftest
$ac_exeext
5364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5365 (eval $ac_link) 2>conftest.er1
5367 grep -v '^ *+' conftest.er1
>conftest.err
5369 cat conftest.err
>&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } &&
5372 { ac_try
='test -z "$ac_c_werror_flag"
5373 || test ! -s conftest.err'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try
='test -s conftest$ac_exeext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 eval "$as_ac_var=yes"
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.
$ac_ext >&5
5390 eval "$as_ac_var=no"
5392 rm -f conftest.err conftest.
$ac_objext \
5393 conftest
$ac_exeext conftest.
$ac_ext
5395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5397 if test `eval echo '${'$as_ac_var'}'` = yes; then
5398 cat >>confdefs.h
<<_ACEOF
5399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5405 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5406 set dummy gmsgfmt
; ac_word
=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir
=.
5422 for ac_exec_ext
in '' $ac_executable_extensions; do
5423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5435 GMSGFMT
=$ac_cv_path_GMSGFMT
5437 if test -n "$GMSGFMT"; then
5438 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5439 echo "${ECHO_T}$GMSGFMT" >&6
5441 echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6
5445 # Extract the first word of "xgettext", so it can be a program name with args.
5446 set dummy xgettext
; ac_word
=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5457 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5458 for ac_dir
in $PATH; do
5459 test -z "$ac_dir" && ac_dir
=.
5460 if test -f $ac_dir/$ac_word; then
5461 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5462 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5468 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5472 XGETTEXT
="$ac_cv_path_XGETTEXT"
5473 if test -n "$XGETTEXT"; then
5474 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5475 echo "${ECHO_T}$XGETTEXT" >&6
5477 echo "$as_me:$LINENO: result: no" >&5
5478 echo "${ECHO_T}no" >&6
5481 cat >conftest.
$ac_ext <<_ACEOF
5484 cat confdefs.h
>>conftest.
$ac_ext
5485 cat >>conftest.
$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5491 extern int _nl_msg_cat_cntr;
5492 return _nl_msg_cat_cntr
5497 rm -f conftest.
$ac_objext conftest
$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499 (eval $ac_link) 2>conftest.er1
5501 grep -v '^ *+' conftest.er1
>conftest.err
5503 cat conftest.err
>&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try
='test -z "$ac_c_werror_flag"
5507 || test ! -s conftest.err'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; } &&
5513 { ac_try
='test -s conftest$ac_exeext'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.
$ac_ext >&5
5528 rm -f conftest.err conftest.
$ac_objext \
5529 conftest
$ac_exeext conftest.
$ac_ext
5539 if test x
"$CATOBJEXT" = x
&& test -d $srcdir/..
/intl
; then
5540 # Neither gettext nor catgets in included in the C library.
5541 # Fall back on GNU gettext library (assuming it is present).
5542 nls_cv_use_gnu_gettext
=yes
5546 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5547 INTLOBJS
="\$(GETTOBJS)"
5548 # Extract the first word of "msgfmt", so it can be a program name with args.
5549 set dummy msgfmt
; ac_word
=$2
5550 echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552 if test "${ac_cv_path_MSGFMT+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5560 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5561 for ac_dir
in $PATH; do
5562 test -z "$ac_dir" && ac_dir
=.
5563 if test -f $ac_dir/$ac_word; then
5564 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5565 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5571 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5575 MSGFMT
="$ac_cv_path_MSGFMT"
5576 if test -n "$MSGFMT"; then
5577 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5578 echo "${ECHO_T}$MSGFMT" >&6
5580 echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5584 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5585 set dummy gmsgfmt
; ac_word
=$2
5586 echo "$as_me:$LINENO: checking for $ac_word" >&5
5587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5600 test -z "$as_dir" && as_dir
=.
5601 for ac_exec_ext
in '' $ac_executable_extensions; do
5602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5614 GMSGFMT
=$ac_cv_path_GMSGFMT
5616 if test -n "$GMSGFMT"; then
5617 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5618 echo "${ECHO_T}$GMSGFMT" >&6
5620 echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5624 # Extract the first word of "xgettext", so it can be a program name with args.
5625 set dummy xgettext
; ac_word
=$2
5626 echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5636 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5637 for ac_dir
in $PATH; do
5638 test -z "$ac_dir" && ac_dir
=.
5639 if test -f $ac_dir/$ac_word; then
5640 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5641 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5647 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5651 XGETTEXT
="$ac_cv_path_XGETTEXT"
5652 if test -n "$XGETTEXT"; then
5653 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5654 echo "${ECHO_T}$XGETTEXT" >&6
5656 echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5661 USE_INCLUDED_LIBINTL
=yes
5665 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5667 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5668 nls_cv_header_intl
=libintl.h
5669 nls_cv_header_libgt
=libgettext.h
5672 if test "$XGETTEXT" != ":"; then
5673 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5676 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5677 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5682 # We need to process the po/ directory.
5686 nls_cv_header_intl
=libintl.h
5687 nls_cv_header_libgt
=libgettext.h
5690 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5691 # because some of the sources are only built for this goal.
5692 if test "$PACKAGE" = gettext; then
5694 USE_INCLUDED_LIBINTL
=yes
5697 for lang
in $ALL_LINGUAS; do
5698 GMOFILES
="$GMOFILES $lang.gmo"
5699 POFILES
="$POFILES $lang.po"
5713 if test "x$CATOBJEXT" != "x"; then
5715 cat >>confdefs.h
<<\_ACEOF
5716 #define ENABLE_NLS 1
5722 if test "x$CATOBJEXT" != "x"; then
5723 if test "x$ALL_LINGUAS" = "x"; then
5726 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5727 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5729 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5730 case "$ALL_LINGUAS" in
5731 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5734 LINGUAS
=$NEW_LINGUAS
5735 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5736 echo "${ECHO_T}$LINGUAS" >&6
5739 if test -n "$LINGUAS"; then
5740 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5744 if test $ac_cv_header_locale_h = yes; then
5745 INCLUDE_LOCALE_H
="#include <locale.h>"
5748 /* The system does not provide the header <locale.h>. Take care yourself. */"
5752 if test -f $srcdir/po2tbl.
sed.
in; then
5753 if test "$CATOBJEXT" = ".cat"; then
5754 if test "${ac_cv_header_linux_version_h+set}" = set; then
5755 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5756 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5757 if test "${ac_cv_header_linux_version_h+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5761 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5763 # Is the header compilable?
5764 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5765 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5766 cat >conftest.
$ac_ext <<_ACEOF
5769 cat confdefs.h
>>conftest.
$ac_ext
5770 cat >>conftest.
$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 $ac_includes_default
5773 #include <linux/version.h>
5775 rm -f conftest.
$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5779 grep -v '^ *+' conftest.er1
>conftest.err
5781 cat conftest.err
>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try
='test -z "$ac_c_werror_flag"
5785 || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try
='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_header_compiler
=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.
$ac_ext >&5
5802 ac_header_compiler
=no
5804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5806 echo "${ECHO_T}$ac_header_compiler" >&6
5808 # Is the header present?
5809 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5810 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5811 cat >conftest.
$ac_ext <<_ACEOF
5814 cat confdefs.h
>>conftest.
$ac_ext
5815 cat >>conftest.
$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #include <linux/version.h>
5819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1
>conftest.err
5824 cat conftest.err
>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } >/dev
/null
; then
5827 if test -s conftest.err
; then
5828 ac_cpp_err
=$ac_c_preproc_warn_flag
5829 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5836 if test -z "$ac_cpp_err"; then
5837 ac_header_preproc
=yes
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.
$ac_ext >&5
5842 ac_header_preproc
=no
5844 rm -f conftest.err conftest.
$ac_ext
5845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5846 echo "${ECHO_T}$ac_header_preproc" >&6
5848 # So? What about this header?
5849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5851 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5852 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5853 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5854 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5855 ac_header_preproc
=yes
5858 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5859 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5861 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5863 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5865 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5867 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5869 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5872 ## ------------------------------------------ ##
5873 ## Report this to the AC_PACKAGE_NAME lists. ##
5874 ## ------------------------------------------ ##
5877 sed "s/^/$as_me: WARNING: /" >&2
5880 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5881 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5882 if test "${ac_cv_header_linux_version_h+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 ac_cv_header_linux_version_h
=$ac_header_preproc
5887 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5888 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5891 if test $ac_cv_header_linux_version_h = yes; then
5899 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5901 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5902 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5905 if test "$PACKAGE" = "gettext"; then
5915 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5921 if test -f $srcdir/po
/POTFILES.
in; then
5922 test -d po || mkdir po
5923 if test "x$srcdir" != "x."; then
5924 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5925 posrcprefix
="$srcdir/"
5927 posrcprefix
="../$srcdir/"
5933 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5934 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5938 # Check for common headers.
5939 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5940 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5946 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5948 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5950 echo "$as_me:$LINENO: checking for $ac_header" >&5
5951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5958 # Is the header compilable?
5959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5968 #include <$ac_header>
5970 rm -f conftest.
$ac_objext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 (eval $ac_compile) 2>conftest.er1
5974 grep -v '^ *+' conftest.er1
>conftest.err
5976 cat conftest.err
>&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } &&
5979 { ac_try
='test -z "$ac_c_werror_flag"
5980 || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try
='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_header_compiler
=yes
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.
$ac_ext >&5
5997 ac_header_compiler
=no
5999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6001 echo "${ECHO_T}$ac_header_compiler" >&6
6003 # Is the header present?
6004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6006 cat >conftest.
$ac_ext <<_ACEOF
6009 cat confdefs.h
>>conftest.
$ac_ext
6010 cat >>conftest.
$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <$ac_header>
6014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1
>conftest.err
6019 cat conftest.err
>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } >/dev
/null
; then
6022 if test -s conftest.err
; then
6023 ac_cpp_err
=$ac_c_preproc_warn_flag
6024 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6031 if test -z "$ac_cpp_err"; then
6032 ac_header_preproc
=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.
$ac_ext >&5
6037 ac_header_preproc
=no
6039 rm -f conftest.err conftest.
$ac_ext
6040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6041 echo "${ECHO_T}$ac_header_preproc" >&6
6043 # So? What about this header?
6044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6050 ac_header_preproc
=yes
6053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6067 ## ------------------------------------------ ##
6068 ## Report this to the AC_PACKAGE_NAME lists. ##
6069 ## ------------------------------------------ ##
6072 sed "s/^/$as_me: WARNING: /" >&2
6075 echo "$as_me:$LINENO: checking for $ac_header" >&5
6076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 eval "$as_ac_Header=\$ac_header_preproc"
6082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6087 cat >>confdefs.h
<<_ACEOF
6088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6097 for ac_header
in sys
/time.h sys
/resource.h
6099 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6101 echo "$as_me:$LINENO: checking for $ac_header" >&5
6102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6109 # Is the header compilable?
6110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 $ac_includes_default
6119 #include <$ac_header>
6121 rm -f conftest.
$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>conftest.er1
6125 grep -v '^ *+' conftest.er1
>conftest.err
6127 cat conftest.err
>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try
='test -z "$ac_c_werror_flag"
6131 || test ! -s conftest.err'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; } &&
6137 { ac_try
='test -s conftest.$ac_objext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_header_compiler
=yes
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.
$ac_ext >&5
6148 ac_header_compiler
=no
6150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6152 echo "${ECHO_T}$ac_header_compiler" >&6
6154 # Is the header present?
6155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6157 cat >conftest.
$ac_ext <<_ACEOF
6160 cat confdefs.h
>>conftest.
$ac_ext
6161 cat >>conftest.
$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <$ac_header>
6165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6168 grep -v '^ *+' conftest.er1
>conftest.err
6170 cat conftest.err
>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } >/dev
/null
; then
6173 if test -s conftest.err
; then
6174 ac_cpp_err
=$ac_c_preproc_warn_flag
6175 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6182 if test -z "$ac_cpp_err"; then
6183 ac_header_preproc
=yes
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.
$ac_ext >&5
6188 ac_header_preproc
=no
6190 rm -f conftest.err conftest.
$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6192 echo "${ECHO_T}$ac_header_preproc" >&6
6194 # So? What about this header?
6195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6201 ac_header_preproc
=yes
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6218 ## ------------------------------------------ ##
6219 ## Report this to the AC_PACKAGE_NAME lists. ##
6220 ## ------------------------------------------ ##
6223 sed "s/^/$as_me: WARNING: /" >&2
6226 echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 eval "$as_ac_Header=\$ac_header_preproc"
6233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h
<<_ACEOF
6239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248 for ac_header
in fcntl.h fpu_control.h
6250 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6252 echo "$as_me:$LINENO: checking for $ac_header" >&5
6253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6260 # Is the header compilable?
6261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6263 cat >conftest.
$ac_ext <<_ACEOF
6266 cat confdefs.h
>>conftest.
$ac_ext
6267 cat >>conftest.
$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 $ac_includes_default
6270 #include <$ac_header>
6272 rm -f conftest.
$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>conftest.er1
6276 grep -v '^ *+' conftest.er1
>conftest.err
6278 cat conftest.err
>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try
='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try
='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_header_compiler
=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 ac_header_compiler
=no
6301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6303 echo "${ECHO_T}$ac_header_compiler" >&6
6305 # Is the header present?
6306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6308 cat >conftest.
$ac_ext <<_ACEOF
6311 cat confdefs.h
>>conftest.
$ac_ext
6312 cat >>conftest.
$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <$ac_header>
6316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6317 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6319 grep -v '^ *+' conftest.er1
>conftest.err
6321 cat conftest.err
>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } >/dev
/null
; then
6324 if test -s conftest.err
; then
6325 ac_cpp_err
=$ac_c_preproc_warn_flag
6326 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6333 if test -z "$ac_cpp_err"; then
6334 ac_header_preproc
=yes
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.
$ac_ext >&5
6339 ac_header_preproc
=no
6341 rm -f conftest.err conftest.
$ac_ext
6342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6343 echo "${ECHO_T}$ac_header_preproc" >&6
6345 # So? What about this header?
6346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6352 ac_header_preproc
=yes
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6369 ## ------------------------------------------ ##
6370 ## Report this to the AC_PACKAGE_NAME lists. ##
6371 ## ------------------------------------------ ##
6374 sed "s/^/$as_me: WARNING: /" >&2
6377 echo "$as_me:$LINENO: checking for $ac_header" >&5
6378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 eval "$as_ac_Header=\$ac_header_preproc"
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389 cat >>confdefs.h
<<_ACEOF
6390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6400 for ac_header
in dlfcn.h errno.h sys
/stat.h
6402 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412 # Is the header compilable?
6413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6415 cat >conftest.
$ac_ext <<_ACEOF
6418 cat confdefs.h
>>conftest.
$ac_ext
6419 cat >>conftest.
$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 $ac_includes_default
6422 #include <$ac_header>
6424 rm -f conftest.
$ac_objext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426 (eval $ac_compile) 2>conftest.er1
6428 grep -v '^ *+' conftest.er1
>conftest.err
6430 cat conftest.err
>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try
='test -z "$ac_c_werror_flag"
6434 || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try
='test -s conftest.$ac_objext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_header_compiler
=yes
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.
$ac_ext >&5
6451 ac_header_compiler
=no
6453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6455 echo "${ECHO_T}$ac_header_compiler" >&6
6457 # Is the header present?
6458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6460 cat >conftest.
$ac_ext <<_ACEOF
6463 cat confdefs.h
>>conftest.
$ac_ext
6464 cat >>conftest.
$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <$ac_header>
6468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6469 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6471 grep -v '^ *+' conftest.er1
>conftest.err
6473 cat conftest.err
>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } >/dev
/null
; then
6476 if test -s conftest.err
; then
6477 ac_cpp_err
=$ac_c_preproc_warn_flag
6478 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6485 if test -z "$ac_cpp_err"; then
6486 ac_header_preproc
=yes
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.
$ac_ext >&5
6491 ac_header_preproc
=no
6493 rm -f conftest.err conftest.
$ac_ext
6494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6495 echo "${ECHO_T}$ac_header_preproc" >&6
6497 # So? What about this header?
6498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6504 ac_header_preproc
=yes
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6521 ## ------------------------------------------ ##
6522 ## Report this to the AC_PACKAGE_NAME lists. ##
6523 ## ------------------------------------------ ##
6526 sed "s/^/$as_me: WARNING: /" >&2
6529 echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 eval "$as_ac_Header=\$ac_header_preproc"
6536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6541 cat >>confdefs.h
<<_ACEOF
6542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553 for ac_func
in getrusage
time sigaction __setfpucw
6555 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6556 echo "$as_me:$LINENO: checking for $ac_func" >&5
6557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_var+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 cat >conftest.
$ac_ext <<_ACEOF
6564 cat confdefs.h
>>conftest.
$ac_ext
6565 cat >>conftest.
$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6569 #define $ac_func innocuous_$ac_func
6571 /* System header to define __stub macros and hopefully few prototypes,
6572 which can conflict with char $ac_func (); below.
6573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6574 <limits.h> exists even on freestanding compilers. */
6577 # include <limits.h>
6579 # include <assert.h>
6584 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6592 /* The GNU C library defines this for functions which it implements
6593 to always fail with ENOSYS. Some functions are actually named
6594 something starting with __ and the normal name is an alias. */
6595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6598 char (*f) () = $ac_func;
6607 return f != $ac_func;
6612 rm -f conftest.
$ac_objext conftest
$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>conftest.er1
6616 grep -v '^ *+' conftest.er1
>conftest.err
6618 cat conftest.err
>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try
='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try
='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 eval "$as_ac_var=yes"
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.
$ac_ext >&5
6639 eval "$as_ac_var=no"
6641 rm -f conftest.err conftest.
$ac_objext \
6642 conftest
$ac_exeext conftest.
$ac_ext
6644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6646 if test `eval echo '${'$as_ac_var'}'` = yes; then
6647 cat >>confdefs.h
<<_ACEOF
6648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6655 # Check for socket libraries
6657 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6658 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6659 if test "${ac_cv_lib_socket_bind+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_check_lib_save_LIBS
=$LIBS
6663 LIBS
="-lsocket $LIBS"
6664 cat >conftest.
$ac_ext <<_ACEOF
6667 cat confdefs.h
>>conftest.
$ac_ext
6668 cat >>conftest.
$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6686 rm -f conftest.
$ac_objext conftest
$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>conftest.er1
6690 grep -v '^ *+' conftest.er1
>conftest.err
6692 cat conftest.err
>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try
='test -z "$ac_c_werror_flag"
6696 || test ! -s conftest.err'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; } &&
6702 { ac_try
='test -s conftest$ac_exeext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_lib_socket_bind
=yes
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.
$ac_ext >&5
6713 ac_cv_lib_socket_bind
=no
6715 rm -f conftest.err conftest.
$ac_objext \
6716 conftest
$ac_exeext conftest.
$ac_ext
6717 LIBS
=$ac_check_lib_save_LIBS
6719 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6720 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6721 if test $ac_cv_lib_socket_bind = yes; then
6722 cat >>confdefs.h
<<_ACEOF
6723 #define HAVE_LIBSOCKET 1
6726 LIBS
="-lsocket $LIBS"
6731 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6732 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6733 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_check_lib_save_LIBS
=$LIBS
6738 cat >conftest.
$ac_ext <<_ACEOF
6741 cat confdefs.h
>>conftest.
$ac_ext
6742 cat >>conftest.
$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6745 /* Override any gcc2 internal prototype to avoid an error. */
6749 /* We use char because int might match the return type of a gcc2
6750 builtin and then its argument prototype would still apply. */
6751 char gethostbyname ();
6760 rm -f conftest.
$ac_objext conftest
$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>conftest.er1
6764 grep -v '^ *+' conftest.er1
>conftest.err
6766 cat conftest.err
>&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try
='test -z "$ac_c_werror_flag"
6770 || test ! -s conftest.err'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try
='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_lib_nsl_gethostbyname
=yes
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.
$ac_ext >&5
6787 ac_cv_lib_nsl_gethostbyname
=no
6789 rm -f conftest.err conftest.
$ac_objext \
6790 conftest
$ac_exeext conftest.
$ac_ext
6791 LIBS
=$ac_check_lib_save_LIBS
6793 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6794 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6795 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6796 cat >>confdefs.h
<<_ACEOF
6797 #define HAVE_LIBNSL 1
6805 .
${srcdir}/..
/..
/bfd
/configure.
host
6809 USE_MAINTAINER_MODE
=no
6810 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6811 if test "${enable_maintainer_mode+set}" = set; then
6812 enableval
="$enable_maintainer_mode"
6813 case "${enableval}" in
6814 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6816 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6817 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6818 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6820 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6821 echo "Setting maintainer mode" 6>&1
6828 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6829 if test "${enable_sim_bswap+set}" = set; then
6830 enableval
="$enable_sim_bswap"
6831 case "${enableval}" in
6832 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6833 no
) sim_bswap
="-DWITH_BSWAP=0";;
6834 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6835 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6836 { (exit 1); exit 1; }; }; sim_bswap
="";;
6838 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6839 echo "Setting bswap flags = $sim_bswap" 6>&1
6846 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6847 if test "${enable_sim_cflags+set}" = set; then
6848 enableval
="$enable_sim_cflags"
6849 case "${enableval}" in
6850 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6851 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6852 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6853 { (exit 1); exit 1; }; }; sim_cflags
="";;
6855 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6857 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6858 echo "Setting sim cflags = $sim_cflags" 6>&1
6865 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6866 if test "${enable_sim_debug+set}" = set; then
6867 enableval
="$enable_sim_debug"
6868 case "${enableval}" in
6869 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6870 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6871 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6873 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6874 echo "Setting sim debug = $sim_debug" 6>&1
6881 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6882 if test "${enable_sim_stdio+set}" = set; then
6883 enableval
="$enable_sim_stdio"
6884 case "${enableval}" in
6885 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6886 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6887 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6888 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6889 { (exit 1); exit 1; }; }; sim_stdio
="";;
6891 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6892 echo "Setting stdio flags = $sim_stdio" 6>&1
6899 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6900 if test "${enable_sim_trace+set}" = set; then
6901 enableval
="$enable_sim_trace"
6902 case "${enableval}" in
6903 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6904 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6906 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6909 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6910 if test x
"$sim_trace" = x
; then
6911 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6913 sim_trace
="${sim_trace}|TRACE_$x"
6916 sim_trace
="$sim_trace)'" ;;
6918 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6919 echo "Setting sim trace = $sim_trace" 6>&1
6926 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6927 if test "${enable_sim_profile+set}" = set; then
6928 enableval
="$enable_sim_profile"
6929 case "${enableval}" in
6930 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6931 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6933 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6936 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6937 if test x
"$sim_profile" = x
; then
6938 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6940 sim_profile
="${sim_profile}|PROFILE_$x"
6943 sim_profile
="$sim_profile)'" ;;
6945 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6946 echo "Setting sim profile = $sim_profile" 6>&1
6949 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6953 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6954 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6955 if test "${ac_cv_type_signal+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 cat >conftest.
$ac_ext <<_ACEOF
6961 cat confdefs.h
>>conftest.
$ac_ext
6962 cat >>conftest.
$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 #include <sys/types.h>
6970 extern "C" void (*signal (int, void (*)(int)))(int);
6972 void (*signal ()) ();
6983 rm -f conftest.
$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985 (eval $ac_compile) 2>conftest.er1
6987 grep -v '^ *+' conftest.er1
>conftest.err
6989 cat conftest.err
>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try
='test -z "$ac_c_werror_flag"
6993 || test ! -s conftest.err'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try
='test -s conftest.$ac_objext'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 ac_cv_type_signal
=void
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.
$ac_ext >&5
7010 ac_cv_type_signal
=int
7012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7015 echo "${ECHO_T}$ac_cv_type_signal" >&6
7017 cat >>confdefs.h
<<_ACEOF
7018 #define RETSIGTYPE $ac_cv_type_signal
7028 sim_link_links
=tconfig.h
7029 if test -f ${srcdir}/tconfig.
in
7031 sim_link_files
=tconfig.
in
7033 sim_link_files
=..
/common
/tconfig.
in
7036 # targ-vals.def points to the libc macro description file.
7038 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
7040 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
7041 sim_link_links
="${sim_link_links} targ-vals.def"
7045 wire_endian
="BIG_ENDIAN"
7047 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7048 if test "${enable_sim_endian+set}" = set; then
7049 enableval
="$enable_sim_endian"
7050 case "${enableval}" in
7051 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7052 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7053 yes) if test x
"$wire_endian" != x
; then
7054 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7056 if test x
"$default_endian" != x
; then
7057 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7059 echo "No hard-wired endian for target $target" 1>&6
7060 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
7063 no
) if test x
"$default_endian" != x
; then
7064 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7066 if test x
"$wire_endian" != x
; then
7067 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7069 echo "No default endian for target $target" 1>&6
7070 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7073 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7074 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7075 { (exit 1); exit 1; }; }; sim_endian
="";;
7077 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
7078 echo "Setting endian flags = $sim_endian" 6>&1
7081 if test x
"$default_endian" != x
; then
7082 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7084 if test x
"$wire_endian" != x
; then
7085 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7091 wire_alignment
="STRICT_ALIGNMENT"
7092 default_alignment
=""
7094 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7095 if test "${enable_sim_alignment+set}" = set; then
7096 enableval
="$enable_sim_alignment"
7097 case "${enableval}" in
7098 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7099 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7100 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7101 yes) if test x
"$wire_alignment" != x
; then
7102 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7104 if test x
"$default_alignment" != x
; then
7105 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
7107 echo "No hard-wired alignment for target $target" 1>&6
7108 sim_alignment
="-DWITH_ALIGNMENT=0"
7111 no
) if test x
"$default_alignment" != x
; then
7112 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7114 if test x
"$wire_alignment" != x
; then
7115 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7117 echo "No default alignment for target $target" 1>&6
7118 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
7121 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7122 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7123 { (exit 1); exit 1; }; }; sim_alignment
="";;
7125 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
7126 echo "Setting alignment flags = $sim_alignment" 6>&1
7129 if test x
"$default_alignment" != x
; then
7130 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7132 if test x
"$wire_alignment" != x
; then
7133 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7140 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7141 if test "${enable_sim_hostendian+set}" = set; then
7142 enableval
="$enable_sim_hostendian"
7143 case "${enableval}" in
7144 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
7145 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7146 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7147 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7148 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7149 { (exit 1); exit 1; }; }; sim_hostendian
="";;
7151 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
7152 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7156 if test "x$cross_compiling" = "xno"; then
7157 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7158 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7159 if test "${ac_cv_c_bigendian+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 # See if sys/param.h defines the BYTE_ORDER macro.
7163 cat >conftest.
$ac_ext <<_ACEOF
7166 cat confdefs.h
>>conftest.
$ac_ext
7167 cat >>conftest.
$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 #include <sys/types.h>
7170 #include <sys/param.h>
7175 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7183 rm -f conftest.
$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1
>conftest.err
7189 cat conftest.err
>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try
='test -z "$ac_c_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try
='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 # It does; now see whether it defined to BIG_ENDIAN or not.
7206 cat >conftest.
$ac_ext <<_ACEOF
7209 cat confdefs.h
>>conftest.
$ac_ext
7210 cat >>conftest.
$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <sys/types.h>
7213 #include <sys/param.h>
7218 #if BYTE_ORDER != BIG_ENDIAN
7226 rm -f conftest.
$ac_objext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228 (eval $ac_compile) 2>conftest.er1
7230 grep -v '^ *+' conftest.er1
>conftest.err
7232 cat conftest.err
>&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try
='test -z "$ac_c_werror_flag"
7236 || test ! -s conftest.err'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; } &&
7242 { ac_try
='test -s conftest.$ac_objext'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 ac_cv_c_bigendian
=yes
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.
$ac_ext >&5
7253 ac_cv_c_bigendian
=no
7255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.
$ac_ext >&5
7260 # It does not; compile a test program.
7261 if test "$cross_compiling" = yes; then
7262 # try to guess the endianness by grepping values into an object file
7263 ac_cv_c_bigendian
=unknown
7264 cat >conftest.
$ac_ext <<_ACEOF
7267 cat confdefs.h
>>conftest.
$ac_ext
7268 cat >>conftest.
$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7271 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7272 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7273 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7274 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7275 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7279 _ascii (); _ebcdic ();
7284 rm -f conftest.
$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286 (eval $ac_compile) 2>conftest.er1
7288 grep -v '^ *+' conftest.er1
>conftest.err
7290 cat conftest.err
>&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } &&
7293 { ac_try
='test -z "$ac_c_werror_flag"
7294 || test ! -s conftest.err'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; } &&
7300 { ac_try
='test -s conftest.$ac_objext'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7307 ac_cv_c_bigendian
=yes
7309 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7310 if test "$ac_cv_c_bigendian" = unknown
; then
7311 ac_cv_c_bigendian
=no
7313 # finding both strings is unlikely to happen, but who knows?
7314 ac_cv_c_bigendian
=unknown
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.
$ac_ext >&5
7322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7324 cat >conftest.
$ac_ext <<_ACEOF
7327 cat confdefs.h
>>conftest.
$ac_ext
7328 cat >>conftest.
$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7333 /* Are we little or big endian? From Harbison&Steele. */
7337 char c[sizeof (long)];
7340 exit (u.c[sizeof (long) - 1] == 1);
7343 rm -f conftest
$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 ac_cv_c_bigendian
=no
7356 echo "$as_me: program exited with status $ac_status" >&5
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7361 ac_cv_c_bigendian
=yes
7363 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7369 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7370 case $ac_cv_c_bigendian in
7373 cat >>confdefs.h
<<\_ACEOF
7374 #define WORDS_BIGENDIAN 1
7380 { { echo "$as_me:$LINENO: error: unknown endianness
7381 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7382 echo "$as_me: error: unknown endianness
7383 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7384 { (exit 1); exit 1; }; } ;;
7387 if test $ac_cv_c_bigendian = yes; then
7388 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7390 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7393 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7397 default_sim_scache
="16384"
7398 # Check whether --enable-sim-scache or --disable-sim-scache was given.
7399 if test "${enable_sim_scache+set}" = set; then
7400 enableval
="$enable_sim_scache"
7401 case "${enableval}" in
7402 yes) sim_scache
="-DWITH_SCACHE=${default_sim_scache}";;
7403 no
) sim_scache
="-DWITH_SCACHE=0" ;;
7404 [0-9]*) sim_scache
="-DWITH_SCACHE=${enableval}";;
7405 *) { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
7406 echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
7407 { (exit 1); exit 1; }; };
7410 if test x
"$silent" != x
"yes" && test x
"$sim_scache" != x
""; then
7411 echo "Setting scache size = $sim_scache" 6>&1
7414 sim_scache
="-DWITH_SCACHE=${default_sim_scache}"
7418 default_sim_default_model
="fr500"
7419 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
7420 if test "${enable_sim_default_model+set}" = set; then
7421 enableval
="$enable_sim_default_model"
7422 case "${enableval}" in
7423 yes|no
) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
7424 echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
7425 { (exit 1); exit 1; }; };;
7426 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
7428 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
7429 echo "Setting default model = $sim_default_model" 6>&1
7432 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
7436 # Check whether --enable-sim-environment or --disable-sim-environment was given.
7437 if test "${enable_sim_environment+set}" = set; then
7438 enableval
="$enable_sim_environment"
7439 case "${enableval}" in
7440 all | ALL
) sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
7441 user | USER
) sim_environment
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
7442 virtual | VIRTUAL
) sim_environment
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
7443 operating | OPERATING
) sim_environment
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
7444 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
7445 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
7446 { (exit 1); exit 1; }; };
7447 sim_environment
="";;
7449 if test x
"$silent" != x
"yes" && test x
"$sim_environment" != x
""; then
7450 echo "Setting sim environment = $sim_environment" 6>&1
7453 sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
7458 cgendir
='$(srcdir)/../../cgen'
7459 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
7460 if test "${enable_cgen_maint+set}" = set; then
7461 enableval
="$enable_cgen_maint"
7462 case "${enableval}" in
7463 yes) cgen_maint
=yes ;;
7464 no
) cgen_maint
=no
;;
7466 # argument is cgen install directory (not implemented yet).
7467 # Having a `share' directory might be more appropriate for the .scm,
7469 cgendir
=${cgen_maint}/lib
/cgen
7473 fi; if test x
${cgen_maint} != xno
; then
7484 # Enable making unknown traps dump out registers
7486 # Check whether --enable-sim-trapdump or --disable-sim-trapdump was given.
7487 if test "${enable_sim_trapdump+set}" = set; then
7488 enableval
="$enable_sim_trapdump"
7489 case "${enableval}" in
7490 yes) sim_trapdump
="-DTRAPDUMP=1";;
7491 no
) sim_trapdump
="-DTRAPDUMP=0";;
7492 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-trapdump\"" >&5
7493 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-trapdump\"" >&2;}
7494 { (exit 1); exit 1; }; }; sim_trapdump
="";;
7496 if test x
"$silent" != x
"yes" && test x
"$sim_trapdump" != x
""; then
7497 echo "Setting sim_trapdump = $sim_trapdump" 6>&1
7504 ac_sources
="$sim_link_files"
7505 ac_dests
="$sim_link_links"
7506 while test -n "$ac_sources"; do
7507 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
7508 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
7509 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
7511 ac_config_links
="$ac_config_links $ac_config_links_1"
7514 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
7515 cgen_breaks
="break cgen_rtx_error";
7518 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
7520 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
7522 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
7524 ac_config_commands
="$ac_config_commands Makefile"
7526 ac_config_commands
="$ac_config_commands stamp-h"
7528 cat >confcache
<<\_ACEOF
7529 # This file is a shell script that caches the results of configure
7530 # tests run on this system so they can be shared between configure
7531 # scripts and configure runs, see configure's option --config-cache.
7532 # It is not useful on other systems. If it contains results you don't
7533 # want to keep, you may remove or edit it.
7535 # config.status only pays attention to the cache file if you give it
7536 # the --recheck option to rerun configure.
7538 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7539 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7544 # The following way of writing the cache mishandles newlines in values,
7545 # but we know of no workaround that is simple, portable, and efficient.
7546 # So, don't put newlines in cache variables' values.
7547 # Ultrix sh set writes to stderr and can't be redirected directly,
7548 # and sets the high bit in the cache file unless we assign to the vars.
7551 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7553 # `set' does not quote correctly, so add quotes (double-quote
7554 # substitution turns \\\\ into \\, and sed turns \\ into \).
7557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7560 # `set' quotes correctly as required by POSIX, so do not add quotes.
7562 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7569 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7571 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7573 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7574 if test -w $cache_file; then
7575 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7576 cat confcache
>$cache_file
7578 echo "not updating unwritable cache $cache_file"
7583 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7584 # Let make expand exec_prefix.
7585 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7587 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7588 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7589 # trailing colons and then remove the whole line if VPATH becomes empty
7590 # (actually we leave an empty line to preserve line numbers).
7591 if test "x$srcdir" = x.
; then
7592 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7593 s/:*\$(srcdir):*/:/;
7594 s/:*\${srcdir}:*/:/;
7596 s/^\([^=]*=[ ]*\):*/\1/;
7602 DEFS
=-DHAVE_CONFIG_H
7606 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7607 # 1. Remove the extension, and $U if already installed.
7608 ac_i
=`echo "$ac_i" |
7609 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7611 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7612 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7616 LTLIBOBJS
=$ac_ltlibobjs
7620 : ${CONFIG_STATUS=./config.status}
7621 ac_clean_files_save
=$ac_clean_files
7622 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7623 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7624 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7625 cat >$CONFIG_STATUS <<_ACEOF
7627 # Generated by $as_me.
7628 # Run this file to recreate the current configuration.
7629 # Compiler output produced by configure, useful for debugging
7630 # configure, is in config.log if it exists.
7635 SHELL=\${CONFIG_SHELL-$SHELL}
7638 cat >>$CONFIG_STATUS <<\_ACEOF
7639 ## --------------------- ##
7640 ## M4sh Initialization. ##
7641 ## --------------------- ##
7643 # Be Bourne compatible
7644 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7647 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7648 # is contrary to our usage. Disable this feature.
7649 alias -g '${1+"$@"}'='"$@"'
7650 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7653 DUALCASE
=1; export DUALCASE
# for MKS sh
7655 # Support unset when possible.
7656 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7663 # Work around bugs in pre-3.0 UWIN ksh.
7664 $as_unset ENV MAIL MAILPATH
7671 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7672 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7673 LC_TELEPHONE LC_TIME
7675 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7676 eval $as_var=C
; export $as_var
7682 # Required to use basename.
7683 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7689 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7690 as_basename
=basename
7696 # Name of the executable.
7697 as_me
=`$as_basename "$0" ||
7698 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7699 X"$0" : 'X\(//\)$' \| \
7700 X"$0" : 'X\(/\)$' \| \
7701 . : '\(.\)' 2>/dev/null ||
7703 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7704 /^X\/\(\/\/\)$/{ s//\1/; q; }
7705 /^X\/\(\/\).*/{ s//\1/; q; }
7709 # PATH needs CR, and LINENO needs CR and PATH.
7710 # Avoid depending upon Character Ranges.
7711 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7712 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7713 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7714 as_cr_digits
='0123456789'
7715 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7717 # The user is always right.
7718 if test "${PATH_SEPARATOR+set}" != set; then
7719 echo "#! /bin/sh" >conf$$.sh
7720 echo "exit 0" >>conf$$.sh
7722 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7733 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7734 test "x$as_lineno_1" != "x$as_lineno_2" &&
7735 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7736 # Find who we are. Look in the path if we contain no path at all
7739 *[\\/]* ) as_myself
=$0 ;;
7740 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7744 test -z "$as_dir" && as_dir
=.
7745 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7750 # We did not find ourselves, most probably we were run as `sh COMMAND'
7751 # in which case we are not to be found in the path.
7752 if test "x$as_myself" = x
; then
7755 if test ! -f "$as_myself"; then
7756 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7757 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7758 { (exit 1); exit 1; }; }
7760 case $CONFIG_SHELL in
7762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7763 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7766 test -z "$as_dir" && as_dir
=.
7767 for as_base
in sh bash ksh sh5
; do
7770 if ("$as_dir/$as_base" -c '
7773 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7774 test "x$as_lineno_1" != "x$as_lineno_2" &&
7775 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7776 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7777 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7778 CONFIG_SHELL
=$as_dir/$as_base
7780 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7788 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7789 # uniformly replaced by the line number. The first 'sed' inserts a
7790 # line-number line before each line; the second 'sed' does the real
7791 # work. The second script uses 'N' to pair each line-number line
7792 # with the numbered line, and appends trailing '-' during
7793 # substitution so that $LINENO is not a special case at line end.
7794 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7795 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7796 sed '=' <$as_myself |
7801 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7804 s,^['$as_cr_digits']*\n,,
7806 chmod +x
$as_me.lineno ||
7807 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7808 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7809 { (exit 1); exit 1; }; }
7811 # Don't try to exec as it changes $[0], causing all sort of problems
7812 # (the dirname of $[0] is not the place where we might find the
7813 # original and so on. Autoconf is especially sensible to this).
7815 # Exit status is that of the last command.
7820 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7821 *c
*,-n*) ECHO_N
= ECHO_C
='
7823 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7824 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7827 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7833 rm -f conf$$ conf$$.exe conf$$.
file
7835 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7836 # We could just check for DJGPP; but this test a) works b) is more generic
7837 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7838 if test -f conf$$.exe
; then
7839 # Don't use ln at all; we don't have any links
7844 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7849 rm -f conf$$ conf$$.exe conf$$.
file
7851 if mkdir
-p .
2>/dev
/null
; then
7854 test -d .
/-p && rmdir .
/-p
7858 as_executable_p
="test -f"
7860 # Sed expression to map a string onto a valid CPP name.
7861 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7863 # Sed expression to map a string onto a valid variable name.
7864 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7868 # We need space, tab and new line, in precisely that order.
7878 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7879 # report actual input values of CONFIG_FILES etc. instead of their
7880 # values after options handling. Logging --version etc. is OK.
7884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7885 ## Running $as_me. ##
7890 This file was extended by $as_me, which was
7891 generated by GNU Autoconf 2.59. Invocation command line was
7893 CONFIG_FILES = $CONFIG_FILES
7894 CONFIG_HEADERS = $CONFIG_HEADERS
7895 CONFIG_LINKS = $CONFIG_LINKS
7896 CONFIG_COMMANDS = $CONFIG_COMMANDS
7900 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7904 # Files that config.status was made for.
7905 if test -n "$ac_config_files"; then
7906 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7909 if test -n "$ac_config_headers"; then
7910 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7913 if test -n "$ac_config_links"; then
7914 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7917 if test -n "$ac_config_commands"; then
7918 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7921 cat >>$CONFIG_STATUS <<\_ACEOF
7924 \`$as_me' instantiates files from templates according to the
7925 current configuration.
7927 Usage: $0 [OPTIONS] [FILE]...
7929 -h, --help print this help, then exit
7930 -V, --version print version number, then exit
7931 -q, --quiet do not print progress messages
7932 -d, --debug don't remove temporary files
7933 --recheck update $as_me by reconfiguring in the same conditions
7934 --file=FILE[:TEMPLATE]
7935 instantiate the configuration file FILE
7936 --header=FILE[:TEMPLATE]
7937 instantiate the configuration header FILE
7939 Configuration files:
7942 Configuration headers:
7945 Configuration links:
7948 Configuration commands:
7951 Report bugs to <bug-autoconf@gnu.org>."
7954 cat >>$CONFIG_STATUS <<_ACEOF
7957 configured by $0, generated by GNU Autoconf 2.59,
7958 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7960 Copyright (C) 2003 Free Software Foundation, Inc.
7961 This config.status script is free software; the Free Software Foundation
7962 gives unlimited permission to copy, distribute and modify it."
7967 cat >>$CONFIG_STATUS <<\_ACEOF
7968 # If no file are specified by the user, then we need to provide default
7969 # value. By we need to know if files were specified by the user.
7975 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7976 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7984 *) # This is not an option, so the user has probably given explicit
7987 ac_need_defaults
=false
;;
7991 # Handling of the options.
7993 cat >>$CONFIG_STATUS <<\_ACEOF
7994 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7996 --version |
--vers* |
-V )
7997 echo "$ac_cs_version"; exit 0 ;;
7999 # Conflict between --help and --header
8000 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8001 Try \`$0 --help' for more information." >&5
8002 echo "$as_me: error: ambiguous option: $1
8003 Try \`$0 --help' for more information." >&2;}
8004 { (exit 1); exit 1; }; };;
8005 --help |
--hel |
-h )
8006 echo "$ac_cs_usage"; exit 0 ;;
8007 --debug |
--d* |
-d )
8009 --file |
--fil |
--fi |
--f )
8011 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8012 ac_need_defaults
=false
;;
8013 --header |
--heade |
--head |
--hea )
8015 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8016 ac_need_defaults
=false
;;
8017 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8018 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8022 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8023 Try \`$0 --help' for more information." >&5
8024 echo "$as_me: error: unrecognized option: $1
8025 Try \`$0 --help' for more information." >&2;}
8026 { (exit 1); exit 1; }; } ;;
8028 *) ac_config_targets
="$ac_config_targets $1" ;;
8034 ac_configure_extra_args
=
8036 if $ac_cs_silent; then
8038 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8042 cat >>$CONFIG_STATUS <<_ACEOF
8043 if \$ac_cs_recheck; then
8044 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8045 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8054 cat >>$CONFIG_STATUS <<\_ACEOF
8055 for ac_config_target
in $ac_config_targets
8057 case "$ac_config_target" in
8058 # Handling of arguments.
8059 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8060 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8061 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8062 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
8063 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
8064 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
8065 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8066 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8067 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8068 { (exit 1); exit 1; }; };;
8072 # If the user did not use the arguments to specify the items to instantiate,
8073 # then the envvar interface is used. Set only those that are not.
8074 # We use the long form for the default assignment because of an extremely
8075 # bizarre bug on SunOS 4.1.3.
8076 if $ac_need_defaults; then
8077 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8078 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8079 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8080 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8083 # Have a temporary directory for convenience. Make it in the build tree
8084 # simply because there is no reason to put it here, and in addition,
8085 # creating and moving files from /tmp can sometimes cause problems.
8086 # Create a temporary directory, and hook for its removal unless debugging.
8089 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8090 trap '{ (exit 1); exit 1; }' 1 2 13 15
8093 # Create a (secure) tmp directory for tmp files.
8096 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8097 test -n "$tmp" && test -d "$tmp"
8100 tmp
=.
/confstat$$
-$RANDOM
8101 (umask 077 && mkdir
$tmp)
8104 echo "$me: cannot create a temporary directory in ." >&2
8105 { (exit 1); exit 1; }
8110 cat >>$CONFIG_STATUS <<_ACEOF
8113 # CONFIG_FILES section.
8116 # No need to generate the scripts if there are no CONFIG_FILES.
8117 # This happens for instance when ./config.status config.h
8118 if test -n "\$CONFIG_FILES"; then
8119 # Protect against being on the right side of a sed subst in config.status.
8120 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8121 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8122 s,@SHELL@,$SHELL,;t t
8123 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8124 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8125 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8126 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8127 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8128 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8129 s,@exec_prefix@,$exec_prefix,;t t
8130 s,@prefix@,$prefix,;t t
8131 s,@program_transform_name@,$program_transform_name,;t t
8132 s,@bindir@,$bindir,;t t
8133 s,@sbindir@,$sbindir,;t t
8134 s,@libexecdir@,$libexecdir,;t t
8135 s,@datadir@,$datadir,;t t
8136 s,@sysconfdir@,$sysconfdir,;t t
8137 s,@sharedstatedir@,$sharedstatedir,;t t
8138 s,@localstatedir@,$localstatedir,;t t
8139 s,@libdir@,$libdir,;t t
8140 s,@includedir@,$includedir,;t t
8141 s,@oldincludedir@,$oldincludedir,;t t
8142 s,@infodir@,$infodir,;t t
8143 s,@mandir@,$mandir,;t t
8144 s,@build_alias@,$build_alias,;t t
8145 s,@host_alias@,$host_alias,;t t
8146 s,@target_alias@,$target_alias,;t t
8148 s,@ECHO_C@,$ECHO_C,;t t
8149 s,@ECHO_N@,$ECHO_N,;t t
8150 s,@ECHO_T@,$ECHO_T,;t t
8152 s,@sim_environment@,$sim_environment,;t t
8153 s,@sim_alignment@,$sim_alignment,;t t
8154 s,@sim_assert@,$sim_assert,;t t
8155 s,@sim_bitsize@,$sim_bitsize,;t t
8156 s,@sim_endian@,$sim_endian,;t t
8157 s,@sim_hostendian@,$sim_hostendian,;t t
8158 s,@sim_float@,$sim_float,;t t
8159 s,@sim_scache@,$sim_scache,;t t
8160 s,@sim_default_model@,$sim_default_model,;t t
8161 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8162 s,@sim_hw_objs@,$sim_hw_objs,;t t
8163 s,@sim_hw@,$sim_hw,;t t
8164 s,@sim_inline@,$sim_inline,;t t
8165 s,@sim_packages@,$sim_packages,;t t
8166 s,@sim_regparm@,$sim_regparm,;t t
8167 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8168 s,@sim_smp@,$sim_smp,;t t
8169 s,@sim_stdcall@,$sim_stdcall,;t t
8170 s,@sim_xor_endian@,$sim_xor_endian,;t t
8171 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8172 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8173 s,@build@,$build,;t t
8174 s,@build_cpu@,$build_cpu,;t t
8175 s,@build_vendor@,$build_vendor,;t t
8176 s,@build_os@,$build_os,;t t
8178 s,@host_cpu@,$host_cpu,;t t
8179 s,@host_vendor@,$host_vendor,;t t
8180 s,@host_os@,$host_os,;t t
8181 s,@target@,$target,;t t
8182 s,@target_cpu@,$target_cpu,;t t
8183 s,@target_vendor@,$target_vendor,;t t
8184 s,@target_os@,$target_os,;t t
8186 s,@CFLAGS@,$CFLAGS,;t t
8187 s,@LDFLAGS@,$LDFLAGS,;t t
8188 s,@CPPFLAGS@,$CPPFLAGS,;t t
8189 s,@ac_ct_CC@,$ac_ct_CC,;t t
8190 s,@EXEEXT@,$EXEEXT,;t t
8191 s,@OBJEXT@,$OBJEXT,;t t
8192 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8193 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8194 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8195 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8196 s,@HDEFINES@,$HDEFINES,;t t
8198 s,@RANLIB@,$RANLIB,;t t
8199 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8200 s,@SET_MAKE@,$SET_MAKE,;t t
8202 s,@EGREP@,$EGREP,;t t
8203 s,@ALLOCA@,$ALLOCA,;t t
8204 s,@USE_NLS@,$USE_NLS,;t t
8205 s,@MSGFMT@,$MSGFMT,;t t
8206 s,@GMSGFMT@,$GMSGFMT,;t t
8207 s,@XGETTEXT@,$XGETTEXT,;t t
8208 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8209 s,@CATALOGS@,$CATALOGS,;t t
8210 s,@CATOBJEXT@,$CATOBJEXT,;t t
8211 s,@DATADIRNAME@,$DATADIRNAME,;t t
8212 s,@GMOFILES@,$GMOFILES,;t t
8213 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8214 s,@INTLDEPS@,$INTLDEPS,;t t
8215 s,@INTLLIBS@,$INTLLIBS,;t t
8216 s,@INTLOBJS@,$INTLOBJS,;t t
8217 s,@POFILES@,$POFILES,;t t
8218 s,@POSUB@,$POSUB,;t t
8219 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8220 s,@GT_NO@,$GT_NO,;t t
8221 s,@GT_YES@,$GT_YES,;t t
8222 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8224 s,@MAINT@,$MAINT,;t t
8225 s,@sim_bswap@,$sim_bswap,;t t
8226 s,@sim_cflags@,$sim_cflags,;t t
8227 s,@sim_debug@,$sim_debug,;t t
8228 s,@sim_stdio@,$sim_stdio,;t t
8229 s,@sim_trace@,$sim_trace,;t t
8230 s,@sim_profile@,$sim_profile,;t t
8231 s,@CGEN_MAINT@,$CGEN_MAINT,;t t
8232 s,@cgendir@,$cgendir,;t t
8234 s,@sim_trapdump@,$sim_trapdump,;t t
8235 s,@cgen_breaks@,$cgen_breaks,;t t
8236 s,@LIBOBJS@,$LIBOBJS,;t t
8237 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8242 cat >>$CONFIG_STATUS <<\_ACEOF
8243 # Split the substitutions into bite-sized pieces for seds with
8244 # small command number limits, like on Digital OSF/1 and HP-UX.
8246 ac_sed_frag
=1 # Number of current file.
8247 ac_beg
=1 # First line for current file.
8248 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8251 while $ac_more_lines; do
8252 if test $ac_beg -gt 1; then
8253 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8255 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8257 if test ! -s $tmp/subs.frag
; then
8260 # The purpose of the label and of the branching condition is to
8261 # speed up the sed processing (if there are no `@' at all, there
8262 # is no need to browse any of the substitutions).
8263 # These are the two extra sed commands mentioned above.
8265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8266 if test -z "$ac_sed_cmds"; then
8267 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8269 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8271 ac_sed_frag
=`expr $ac_sed_frag + 1`
8273 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8276 if test -z "$ac_sed_cmds"; then
8279 fi # test -n "$CONFIG_FILES"
8282 cat >>$CONFIG_STATUS <<\_ACEOF
8283 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8286 - |
*:- |
*:-:* ) # input from stdin
8288 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8289 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8290 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8291 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8292 * ) ac_file_in
=$ac_file.
in ;;
8295 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8296 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8298 X"$ac_file" : 'X\(//\)[^/]' \| \
8299 X"$ac_file" : 'X\(//\)$' \| \
8300 X"$ac_file" : 'X\(/\)' \| \
8301 . : '\(.\)' 2>/dev/null ||
8303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8305 /^X\(\/\/\)$/{ s//\1/; q; }
8306 /^X\(\/\).*/{ s//\1/; q; }
8308 { if $as_mkdir_p; then
8313 while test ! -d "$as_dir"; do
8314 as_dirs
="$as_dir $as_dirs"
8315 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8317 X"$as_dir" : 'X\(//\)[^/]' \| \
8318 X"$as_dir" : 'X\(//\)$' \| \
8319 X"$as_dir" : 'X\(/\)' \| \
8320 . : '\(.\)' 2>/dev/null ||
8322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8324 /^X\(\/\/\)$/{ s//\1/; q; }
8325 /^X\(\/\).*/{ s//\1/; q; }
8328 test ! -n "$as_dirs" || mkdir
$as_dirs
8329 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8331 { (exit 1); exit 1; }; }; }
8335 if test "$ac_dir" != .
; then
8336 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8337 # A "../" for each directory in $ac_dir_suffix.
8338 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8340 ac_dir_suffix
= ac_top_builddir
=
8344 .
) # No --srcdir option. We are building in place.
8346 if test -z "$ac_top_builddir"; then
8349 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8351 [\\/]* | ?
:[\\/]* ) # Absolute path.
8352 ac_srcdir
=$srcdir$ac_dir_suffix;
8353 ac_top_srcdir
=$srcdir ;;
8355 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8356 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8359 # Do not use `cd foo && pwd` to compute absolute paths, because
8360 # the directories may not exist.
8362 .
) ac_abs_builddir
="$ac_dir";;
8365 .
) ac_abs_builddir
=`pwd`;;
8366 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8367 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8370 case $ac_abs_builddir in
8371 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8373 case ${ac_top_builddir}.
in
8374 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8375 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8376 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8379 case $ac_abs_builddir in
8380 .
) ac_abs_srcdir
=$ac_srcdir;;
8383 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8384 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8385 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8388 case $ac_abs_builddir in
8389 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8391 case $ac_top_srcdir in
8392 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8393 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8394 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8400 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8401 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8404 if test x
"$ac_file" != x-
; then
8405 { echo "$as_me:$LINENO: creating $ac_file" >&5
8406 echo "$as_me: creating $ac_file" >&6;}
8409 # Let's still pretend it is `configure' which instantiates (i.e., don't
8410 # use $as_me), people would be surprised to read:
8411 # /* config.h. Generated by config.status. */
8412 if test x
"$ac_file" = x-
; then
8415 configure_input
="$ac_file. "
8417 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8418 sed 's,.*/,,'` by configure."
8420 # First look for the input files in the build tree, otherwise in the
8422 ac_file_inputs
=`IFS=:
8423 for f in $ac_file_in; do
8425 -) echo $tmp/stdin ;;
8427 # Absolute (can't be DOS-style, as IFS=:)
8428 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8429 echo "$as_me: error: cannot find input file: $f" >&2;}
8430 { (exit 1); exit 1; }; }
8433 if test -f "$f"; then
8436 elif test -f "$srcdir/$f"; then
8441 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8442 echo "$as_me: error: cannot find input file: $f" >&2;}
8443 { (exit 1); exit 1; }; }
8446 done` ||
{ (exit 1); exit 1; }
8448 cat >>$CONFIG_STATUS <<_ACEOF
8452 cat >>$CONFIG_STATUS <<\_ACEOF
8454 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8455 s
,@configure_input@
,$configure_input,;t t
8456 s
,@srcdir@
,$ac_srcdir,;t t
8457 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8458 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8459 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8460 s
,@builddir@
,$ac_builddir,;t t
8461 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8462 s
,@top_builddir@
,$ac_top_builddir,;t t
8463 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8464 s
,@INSTALL@
,$ac_INSTALL,;t t
8465 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8467 if test x"$ac_file" != x-; then
8468 mv $tmp/out $ac_file
8476 cat >>$CONFIG_STATUS <<\_ACEOF
8479 # CONFIG_HEADER section.
8482 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8483 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8485 # ac_d sets the value in "#define NAME VALUE" lines.
8486 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8487 ac_dB
='[ ].*$,\1#\2'
8490 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8491 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8492 ac_uB
='$,\1#\2define\3'
8496 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8497 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8499 - |
*:- |
*:-:* ) # input from stdin
8501 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8502 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8503 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8504 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8505 * ) ac_file_in
=$ac_file.
in ;;
8508 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8509 echo "$as_me: creating $ac_file" >&6;}
8511 # First look for the input files in the build tree, otherwise in the
8513 ac_file_inputs
=`IFS=:
8514 for f in $ac_file_in; do
8516 -) echo $tmp/stdin ;;
8518 # Absolute (can't be DOS-style, as IFS=:)
8519 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8520 echo "$as_me: error: cannot find input file: $f" >&2;}
8521 { (exit 1); exit 1; }; }
8522 # Do quote $f, to prevent DOS paths from being IFS'd.
8525 if test -f "$f"; then
8528 elif test -f "$srcdir/$f"; then
8533 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8534 echo "$as_me: error: cannot find input file: $f" >&2;}
8535 { (exit 1); exit 1; }; }
8538 done` ||
{ (exit 1); exit 1; }
8539 # Remove the trailing spaces.
8540 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8544 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8545 # `conftest.undefs', that substitutes the proper values into
8546 # config.h.in to produce config.h. The first handles `#define'
8547 # templates, and the second `#undef' templates.
8548 # And first: Protect against being on the right side of a sed subst in
8549 # config.status. Protect against being in an unquoted here document
8551 rm -f conftest.defines conftest.undefs
8552 # Using a here document instead of a string reduces the quoting nightmare.
8553 # Putting comments in sed scripts is not portable.
8555 # `end' is used to avoid that the second main sed command (meant for
8556 # 0-ary CPP macros) applies to n-ary macro definitions.
8557 # See the Autoconf documentation for `clear'.
8558 cat >confdef2sed.
sed <<\_ACEOF
8563 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8565 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8568 # If some macros were called several times there might be several times
8569 # the same #defines, which is useless. Nevertheless, we may not want to
8570 # sort them, since we want the *last* AC-DEFINE to be honored.
8571 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8572 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8573 rm -f confdef2sed.sed
8575 # This sed command replaces #undef with comments. This is necessary, for
8576 # example, in the case of _POSIX_SOURCE, which is predefined and required
8577 # on some systems where configure will not decide to define it.
8578 cat >>conftest.undefs <<\_ACEOF
8579 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8582 # Break up conftest.defines because some shells have a limit on the size
8583 # of here documents, and old seds have small limits too (100 cmds).
8584 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8585 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8586 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8587 echo ' :' >>$CONFIG_STATUS
8589 while grep . conftest.defines >/dev/null
8591 # Write a limited-size here document to $tmp/defines.sed.
8592 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8593 # Speed up: don't consider the non `#define' lines.
8594 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8595 # Work around the forget-to-reset-the-flag bug.
8596 echo 't clr' >>$CONFIG_STATUS
8597 echo ': clr' >>$CONFIG_STATUS
8598 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8600 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8604 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8605 rm -f conftest.defines
8606 mv conftest.
tail conftest.defines
8608 rm -f conftest.defines
8609 echo ' fi # grep' >>$CONFIG_STATUS
8610 echo >>$CONFIG_STATUS
8612 # Break up conftest.undefs because some shells have a limit on the size
8613 # of here documents, and old seds have small limits too (100 cmds).
8614 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8616 while grep . conftest.undefs
>/dev
/null
8618 # Write a limited-size here document to $tmp/undefs.sed.
8619 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8620 # Speed up: don't consider the non
`#undef'
8621 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8622 # Work around the forget-to-reset-the-flag bug.
8623 echo 't clr' >>$CONFIG_STATUS
8624 echo ': clr' >>$CONFIG_STATUS
8625 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8627 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8631 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8632 rm -f conftest.undefs
8633 mv conftest.tail conftest.undefs
8635 rm -f conftest.undefs
8637 cat >>$CONFIG_STATUS <<\_ACEOF
8638 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8639 # use $as_me), people would be surprised to read:
8640 # /* config.h. Generated by config.status. */
8641 if test x
"$ac_file" = x-
; then
8642 echo "/* Generated by configure. */" >$tmp/config.h
8644 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8646 cat $tmp/in >>$tmp/config.h
8648 if test x
"$ac_file" != x-
; then
8649 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8650 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8651 echo "$as_me: $ac_file is unchanged" >&6;}
8653 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8654 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8655 X"$ac_file" : 'X\(//\)[^/]' \| \
8656 X"$ac_file" : 'X\(//\)$' \| \
8657 X"$ac_file" : 'X\(/\)' \| \
8658 . : '\(.\)' 2>/dev/null ||
8660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8662 /^X\(\/\/\)$/{ s//\1/; q; }
8663 /^X\(\/\).*/{ s//\1/; q; }
8665 { if $as_mkdir_p; then
8670 while test ! -d "$as_dir"; do
8671 as_dirs
="$as_dir $as_dirs"
8672 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8674 X"$as_dir" : 'X\(//\)[^/]' \| \
8675 X"$as_dir" : 'X\(//\)$' \| \
8676 X"$as_dir" : 'X\(/\)' \| \
8677 . : '\(.\)' 2>/dev/null ||
8679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8681 /^X\(\/\/\)$/{ s//\1/; q; }
8682 /^X\(\/\).*/{ s//\1/; q; }
8685 test ! -n "$as_dirs" || mkdir
$as_dirs
8686 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8687 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8688 { (exit 1); exit 1; }; }; }
8691 mv $tmp/config.h
$ac_file
8699 cat >>$CONFIG_STATUS <<\_ACEOF
8702 # CONFIG_LINKS section.
8705 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
8706 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8707 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8709 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8710 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8712 if test ! -r $srcdir/$ac_source; then
8713 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8714 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8715 { (exit 1); exit 1; }; }
8719 # Make relative symlinks.
8720 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8721 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8722 X"$ac_dest" : 'X\(//\)[^/]' \| \
8723 X"$ac_dest" : 'X\(//\)$' \| \
8724 X"$ac_dest" : 'X\(/\)' \| \
8725 . : '\(.\)' 2>/dev/null ||
8727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8729 /^X\(\/\/\)$/{ s//\1/; q; }
8730 /^X\(\/\).*/{ s//\1/; q; }
8732 { if $as_mkdir_p; then
8733 mkdir
-p "$ac_dest_dir"
8735 as_dir
="$ac_dest_dir"
8737 while test ! -d "$as_dir"; do
8738 as_dirs
="$as_dir $as_dirs"
8739 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8741 X"$as_dir" : 'X\(//\)[^/]' \| \
8742 X"$as_dir" : 'X\(//\)$' \| \
8743 X"$as_dir" : 'X\(/\)' \| \
8744 . : '\(.\)' 2>/dev/null ||
8746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8748 /^X\(\/\/\)$/{ s//\1/; q; }
8749 /^X\(\/\).*/{ s//\1/; q; }
8752 test ! -n "$as_dirs" || mkdir
$as_dirs
8753 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8754 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8755 { (exit 1); exit 1; }; }; }
8759 if test "$ac_dest_dir" != .
; then
8760 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8761 # A "../" for each directory in $ac_dir_suffix.
8762 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8764 ac_dir_suffix
= ac_top_builddir
=
8768 .
) # No --srcdir option. We are building in place.
8770 if test -z "$ac_top_builddir"; then
8773 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8775 [\\/]* | ?
:[\\/]* ) # Absolute path.
8776 ac_srcdir
=$srcdir$ac_dir_suffix;
8777 ac_top_srcdir
=$srcdir ;;
8779 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8780 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8783 # Do not use `cd foo && pwd` to compute absolute paths, because
8784 # the directories may not exist.
8786 .
) ac_abs_builddir
="$ac_dest_dir";;
8788 case "$ac_dest_dir" in
8789 .
) ac_abs_builddir
=`pwd`;;
8790 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
8791 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
8794 case $ac_abs_builddir in
8795 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8797 case ${ac_top_builddir}.
in
8798 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8799 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8800 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8803 case $ac_abs_builddir in
8804 .
) ac_abs_srcdir
=$ac_srcdir;;
8807 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8808 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8809 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8812 case $ac_abs_builddir in
8813 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8815 case $ac_top_srcdir in
8816 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8817 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8818 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8824 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
8825 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
8828 # Try a symlink, then a hard link, then a copy.
8829 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
8830 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
8831 cp -p $srcdir/$ac_source $ac_dest ||
8832 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8833 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8834 { (exit 1); exit 1; }; }
8837 cat >>$CONFIG_STATUS <<\_ACEOF
8840 # CONFIG_COMMANDS section.
8842 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
8843 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8844 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8845 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8846 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8847 X"$ac_dest" : 'X\(//\)[^/]' \| \
8848 X"$ac_dest" : 'X\(//\)$' \| \
8849 X"$ac_dest" : 'X\(/\)' \| \
8850 . : '\(.\)' 2>/dev/null ||
8852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8854 /^X\(\/\/\)$/{ s//\1/; q; }
8855 /^X\(\/\).*/{ s//\1/; q; }
8857 { if $as_mkdir_p; then
8862 while test ! -d "$as_dir"; do
8863 as_dirs
="$as_dir $as_dirs"
8864 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8866 X"$as_dir" : 'X\(//\)[^/]' \| \
8867 X"$as_dir" : 'X\(//\)$' \| \
8868 X"$as_dir" : 'X\(/\)' \| \
8869 . : '\(.\)' 2>/dev/null ||
8871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8873 /^X\(\/\/\)$/{ s//\1/; q; }
8874 /^X\(\/\).*/{ s//\1/; q; }
8877 test ! -n "$as_dirs" || mkdir
$as_dirs
8878 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8879 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8880 { (exit 1); exit 1; }; }; }
8884 if test "$ac_dir" != .
; then
8885 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8886 # A "../" for each directory in $ac_dir_suffix.
8887 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8889 ac_dir_suffix
= ac_top_builddir
=
8893 .
) # No --srcdir option. We are building in place.
8895 if test -z "$ac_top_builddir"; then
8898 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8900 [\\/]* | ?
:[\\/]* ) # Absolute path.
8901 ac_srcdir
=$srcdir$ac_dir_suffix;
8902 ac_top_srcdir
=$srcdir ;;
8904 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8905 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8908 # Do not use `cd foo && pwd` to compute absolute paths, because
8909 # the directories may not exist.
8911 .
) ac_abs_builddir
="$ac_dir";;
8914 .
) ac_abs_builddir
=`pwd`;;
8915 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8916 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8919 case $ac_abs_builddir in
8920 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8922 case ${ac_top_builddir}.
in
8923 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8924 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8925 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8928 case $ac_abs_builddir in
8929 .
) ac_abs_srcdir
=$ac_srcdir;;
8932 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8933 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8934 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8937 case $ac_abs_builddir in
8938 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8940 case $ac_top_srcdir in
8941 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8942 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8943 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8948 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8949 echo "$as_me: executing $ac_dest commands" >&6;}
8951 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8952 rm -f Makesim1.tmp Makesim2.tmp Makefile
8953 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
8954 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
8955 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8956 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8957 <Makefile.sim
>Makefile
8958 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8960 stamp-h
) echo > stamp-h
;;
8965 cat >>$CONFIG_STATUS <<\_ACEOF
8967 { (exit 0); exit 0; }
8969 chmod +x
$CONFIG_STATUS
8970 ac_clean_files
=$ac_clean_files_save
8973 # configure is writing to config.log, and then calls config.status.
8974 # config.status does its own redirection, appending to config.log.
8975 # Unfortunately, on DOS this fails, as config.log is still kept open
8976 # by configure, so config.status won't be able to write to it; its
8977 # output is simply discarded. So we exec the FD to /dev/null,
8978 # effectively closing config.log, so it can be properly (re)opened and
8979 # appended to by config.status. When coming back to configure, we
8980 # need to make the FD available again.
8981 if test "$no_create" != yes; then
8983 ac_config_status_args
=
8984 test "$silent" = yes &&
8985 ac_config_status_args
="$ac_config_status_args --quiet"
8987 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8989 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8990 # would make configure fail if this is the last instruction.
8991 $ac_cs_success ||
{ (exit 1); exit 1; }