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 m68hc11_extra_objs 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-inline=inlines Specify
which functions should be inlined.
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-build-warnings Enable build-time compiler warnings
if gcc is used
865 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
866 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
869 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
870 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
871 --with-included-gettext use the GNU
gettext library included here
873 Some influential environment variables
:
874 CC C compiler
command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
877 nonstandard directory
<lib dir
>
878 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
879 headers
in a nonstandard directory
<include dir
>
882 Use these variables to override the choices made by
`configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
900 ac_dir_suffix= ac_top_builddir=
904 .) # No --srcdir option. We are building in place.
906 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 # Do not use `cd foo
&& pwd` to compute absolute paths, because
920 # the directories may not exist.
922 .) ac_abs_builddir="$ac_dir";;
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.59. Invocation command line was
1004 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1005 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1006 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1007 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1008 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1010 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1011 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1013 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1014 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1015 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1016 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1017 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1018 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1019 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_must_keep_next=false
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 -* ) ac_must_keep_next=true ;;
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log. We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close
' the trap.
1099 trap 'exit_status
=$?
1100 # Save into config.log some information that might help in debugging.
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1110 # The following way of writing the cache mishandles newlines in values,
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1133 for ac_var
in $ac_subst_vars
1135 eval ac_val
=$
`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -n "$ac_subst_files"; then
1147 for ac_var
in $ac_subst_files
1149 eval ac_val
=$
`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1155 if test -s confdefs.h
; then
1162 sed "/^$/d" confdefs.h |
sort
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1169 rm -f core
*.core
&&
1170 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1173 for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 # Predefined preprocessor variables.
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's
/^
/|
/' "$ac_site_file" >&5
1228 if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1245 # Check that the precious variables saved in the cache have kept the same
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1258 ac_cache_corrupted=: ;;
1260 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1267 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269 echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271 echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1292 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1299 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 ac_config_headers="$ac_config_headers config.h:config.in"
1323 # This file contains common code used by all simulators.
1325 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1326 # directory. It is intended to be invoked before any target specific stuff.
1327 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1328 # It is intended to be invoked last.
1330 # The simulator's configure.
in should
look like
:
1332 # dnl Process this file with autoconf to produce a configure script.
1333 # sinclude(../common/aclocal.m4)
1335 # AC_INIT(Makefile.in)
1339 # ... target specific stuff ...
1390 sim_inline
="-DDEFAULT_INLINE=0"
1427 # This file is derived from `gettext.m4'. The difference is that the
1428 # included macros assume Cygnus-style source and build trees.
1430 # Macro to add for using GNU gettext.
1431 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1433 # This file file be copied and used freely without restrictions. It can
1434 # be used in projects which are not available under the GNU Public License
1435 # but which still want to provide support for the GNU gettext functionality.
1436 # Please note that the actual code is *not* freely available.
1444 # Search path for a program which passes the given test.
1445 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1447 # This file file be copied and used freely without restrictions. It can
1448 # be used in projects which are not available under the GNU Public License
1449 # but which still want to provide support for the GNU gettext functionality.
1450 # Please note that the actual code is *not* freely available.
1456 # Check whether LC_MESSAGES is available in <locale.h>.
1457 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1459 # This file file be copied and used freely without restrictions. It can
1460 # be used in projects which are not available under the GNU Public License
1461 # but which still want to provide support for the GNU gettext functionality.
1462 # Please note that the actual code is *not* freely available.
1472 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1473 # it by inlining the macro's contents.
1474 # This file contains common code used by all simulators.
1476 # common.m4 invokes AC macros used by all simulators and by the common
1477 # directory. It is intended to be included before any target specific
1478 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1479 # the Makefile. It is intended to be invoked last.
1481 # The simulator's configure.in should look like:
1483 # dnl Process this file with autoconf to produce a configure script.
1485 # AC_INIT(Makefile.in)
1486 # AC_CONFIG_HEADER(config.h:config.in)
1488 # sinclude(../common/aclocal.m4)
1489 # sinclude(../common/common.m4)
1491 # ... target specific stuff ...
1494 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1495 if test -f $ac_dir/install-sh
; then
1497 ac_install_sh
="$ac_aux_dir/install-sh -c"
1499 elif test -f $ac_dir/install.sh
; then
1501 ac_install_sh
="$ac_aux_dir/install.sh -c"
1503 elif test -f $ac_dir/shtool
; then
1505 ac_install_sh
="$ac_aux_dir/shtool install -c"
1509 if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1514 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1515 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1516 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518 # Make sure we can run config.sub.
1519 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: checking build system type" >&5
1525 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526 if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 ac_cv_build_alias
=$build_alias
1530 test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias
=`$ac_config_guess`
1532 test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1542 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543 echo "${ECHO_T}$ac_cv_build" >&6
1545 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550 echo "$as_me:$LINENO: checking host system type" >&5
1551 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552 if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 ac_cv_host_alias
=$host_alias
1556 test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias
=$ac_cv_build_alias
1558 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565 echo "${ECHO_T}$ac_cv_host" >&6
1567 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572 echo "$as_me:$LINENO: checking target system type" >&5
1573 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574 if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 ac_cv_target_alias
=$target_alias
1578 test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias
=$ac_cv_host_alias
1580 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1586 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587 echo "${ECHO_T}$ac_cv_target" >&6
1588 target
=$ac_cv_target
1589 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594 # The aliases save the names the user supplied, while $host etc.
1595 # will get canonicalized.
1596 test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1599 program_prefix
=${target_alias}-
1600 test "$program_prefix" != NONE
&&
1601 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1602 # Use a double $ so make ignores it.
1603 test "$program_suffix" != NONE
&&
1604 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1605 # Double any \ or $. echo might interpret backslashes.
1606 # By default was `s,x,x', remove it if useless.
1607 cat <<\_ACEOF
>conftest.
sed
1608 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1610 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1614 ac_cpp
='$CPP $CPPFLAGS'
1615 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1616 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1617 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1618 if test -n "$ac_tool_prefix"; then
1619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1620 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC
="$CC" # Let the user override the test.
1629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir
=.
1634 for ac_exec_ext
in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1655 if test -z "$ac_cv_prog_CC"; then
1657 # Extract the first word of "gcc", so it can be a program name with args.
1658 set dummy gcc
; ac_word
=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1671 test -z "$as_dir" && as_dir
=.
1672 for ac_exec_ext
in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_ac_ct_CC
="gcc"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1697 if test -z "$CC"; then
1698 if test -n "$ac_tool_prefix"; then
1699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1700 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC
="$CC" # Let the user override the test.
1709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir
=.
1714 for ac_exec_ext
in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 if test -n "$CC"; then
1727 echo "$as_me:$LINENO: result: $CC" >&5
1728 echo "${ECHO_T}$CC" >&6
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1735 if test -z "$ac_cv_prog_CC"; then
1737 # Extract the first word of "cc", so it can be a program name with args.
1738 set dummy cc
; ac_word
=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir
=.
1752 for ac_exec_ext
in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC
="cc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1778 if test -z "$CC"; then
1779 # Extract the first word of "cc", so it can be a program name with args.
1780 set dummy cc
; ac_word
=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_CC+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 if test -n "$CC"; then
1787 ac_cv_prog_CC
="$CC" # Let the user override the test.
1790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1794 test -z "$as_dir" && as_dir
=.
1795 for ac_exec_ext
in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1798 ac_prog_rejected
=yes
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 if test $ac_prog_rejected = yes; then
1809 # We found a bogon in the path, so make sure we never use it.
1810 set dummy
$ac_cv_prog_CC
1812 if test $# != 0; then
1813 # We chose a different compiler from the bogus one.
1814 # However, it has the same basename, so the bogon will be chosen
1815 # first if we set CC to just the basename; use the full file name.
1817 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1823 if test -n "$CC"; then
1824 echo "$as_me:$LINENO: result: $CC" >&5
1825 echo "${ECHO_T}$CC" >&6
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1832 if test -z "$CC"; then
1833 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1837 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC
="$CC" # Let the user override the test.
1846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1850 test -z "$as_dir" && as_dir
=.
1851 for ac_exec_ext
in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 if test -n "$CC"; then
1864 echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1871 test -n "$CC" && break
1874 if test -z "$CC"; then
1878 # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy
$ac_prog; ac_word
=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$ac_ct_CC"; then
1886 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir
=.
1893 for ac_exec_ext
in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_CC
="$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1905 if test -n "$ac_ct_CC"; then
1906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907 echo "${ECHO_T}$ac_ct_CC" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1913 test -n "$ac_ct_CC" && break
1922 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: no acceptable C compiler found in \$PATH
1925 See \`config.log' for more details." >&2;}
1926 { (exit 1); exit 1; }; }
1928 # Provide some information about the compiler.
1929 echo "$as_me:$LINENO:" \
1930 "checking for C compiler version" >&5
1931 ac_compiler
=`set X $ac_compile; echo $2`
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1933 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1938 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }
1942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1943 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }
1948 cat >conftest.
$ac_ext <<_ACEOF
1951 cat confdefs.h
>>conftest.
$ac_ext
1952 cat >>conftest.
$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1963 ac_clean_files_save
=$ac_clean_files
1964 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1965 # Try to create an executable without -o first, disregard a.out.
1966 # It will help us diagnose broken compilers, and finding out an intuition
1968 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1969 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1970 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1972 (eval $ac_link_default) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # Find the output, starting from the most likely. This scheme is
1977 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1980 # Be careful to initialize this variable, since it used to be cached.
1981 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1983 # b.out is created by i960 compilers.
1984 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1986 test -f "$ac_file" ||
continue
1988 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1991 # This is the source file.
1994 # We found the default executable, but exeext='' is most
1998 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1999 # FIXME: I believe we export ac_cv_exeext for Libtool,
2000 # but it would be cool to find out if it's true. Does anybody
2001 # maintain Libtool? --akim.
2009 echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.
$ac_ext >&5
2012 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: C compiler cannot create executables
2015 See \`config.log' for more details." >&2;}
2016 { (exit 77); exit 77; }; }
2019 ac_exeext
=$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_file" >&5
2021 echo "${ECHO_T}$ac_file" >&6
2023 # Check the compiler produces executables we can run. If not, either
2024 # the compiler is broken, or we cross compile.
2025 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028 # If not cross compiling, check that we can run a simple program.
2029 if test "$cross_compiling" != yes; then
2030 if { ac_try
='./$ac_file'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2038 if test "$cross_compiling" = maybe
; then
2041 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2042 If you meant to cross compile, use \`--host'.
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot run C compiled programs.
2045 If you meant to cross compile, use \`--host'.
2046 See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2051 echo "$as_me:$LINENO: result: yes" >&5
2052 echo "${ECHO_T}yes" >&6
2054 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2055 ac_clean_files
=$ac_clean_files_save
2056 # Check the compiler produces executables we can run. If not, either
2057 # the compiler is broken, or we cross compile.
2058 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2059 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2060 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2061 echo "${ECHO_T}$cross_compiling" >&6
2063 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2064 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2066 (eval $ac_link) 2>&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; then
2070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2072 # work properly (i.e., refer to `conftest.exe'), while it won't with
2074 for ac_file
in conftest.exe conftest conftest.
*; do
2075 test -f "$ac_file" ||
continue
2077 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2078 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2085 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2088 See \`config.log' for more details." >&2;}
2089 { (exit 1); exit 1; }; }
2092 rm -f conftest
$ac_cv_exeext
2093 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2094 echo "${ECHO_T}$ac_cv_exeext" >&6
2096 rm -f conftest.
$ac_ext
2097 EXEEXT
=$ac_cv_exeext
2099 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2100 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2101 if test "${ac_cv_objext+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 cat >conftest.
$ac_ext <<_ACEOF
2107 cat confdefs.h
>>conftest.
$ac_ext
2108 cat >>conftest.
$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2119 rm -f conftest.o conftest.obj
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; then
2125 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2127 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2128 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.
$ac_ext >&5
2136 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2139 See \`config.log' for more details." >&2;}
2140 { (exit 1); exit 1; }; }
2143 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2145 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2146 echo "${ECHO_T}$ac_cv_objext" >&6
2147 OBJEXT
=$ac_cv_objext
2149 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 cat >conftest.
$ac_ext <<_ACEOF
2157 cat confdefs.h
>>conftest.
$ac_ext
2158 cat >>conftest.
$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2172 rm -f conftest.
$ac_objext
2173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2174 (eval $ac_compile) 2>conftest.er1
2176 grep -v '^ *+' conftest.er1
>conftest.err
2178 cat conftest.err
>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try
='test -z "$ac_c_werror_flag"
2182 || test ! -s conftest.err'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; } &&
2188 { ac_try
='test -s conftest.$ac_objext'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.
$ac_ext >&5
2201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2202 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2205 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2207 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2208 ac_test_CFLAGS
=${CFLAGS+set}
2209 ac_save_CFLAGS
=$CFLAGS
2211 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2213 if test "${ac_cv_prog_cc_g+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 cat >conftest.
$ac_ext <<_ACEOF
2219 cat confdefs.h
>>conftest.
$ac_ext
2220 cat >>conftest.
$ac_ext <<_ACEOF
2221 /* end confdefs.h. */
2231 rm -f conftest.
$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>conftest.er1
2235 grep -v '^ *+' conftest.er1
>conftest.err
2237 cat conftest.err
>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try
='test -z "$ac_c_werror_flag"
2241 || test ! -s conftest.err'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; } &&
2247 { ac_try
='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2255 echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.
$ac_ext >&5
2260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2262 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2263 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2264 if test "$ac_test_CFLAGS" = set; then
2265 CFLAGS
=$ac_save_CFLAGS
2266 elif test $ac_cv_prog_cc_g = yes; then
2267 if test "$GCC" = yes; then
2273 if test "$GCC" = yes; then
2279 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2280 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2281 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 ac_cv_prog_cc_stdc
=no
2286 cat >conftest.
$ac_ext <<_ACEOF
2289 cat confdefs.h
>>conftest.
$ac_ext
2290 cat >>conftest.
$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2294 #include <sys/types.h>
2295 #include <sys/stat.h>
2296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2297 struct buf { int x; };
2298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2299 static char *e (p, i)
2305 static char *f (char * (*g) (char **, int), char **p, ...)
2310 s = g (p, va_arg (v,int));
2315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2316 function prototypes and stuff, but not '\xHH' hex character constants.
2317 These don't provoke an error unfortunately, instead are silently treated
2318 as 'x'. The following induces an error, until -std1 is added to get
2319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2320 array size at least. It's necessary to write '\x00'==0 to get something
2321 that's true only with -std1. */
2322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2324 int test (int i, double x);
2325 struct s1 {int (*f) (int a);};
2326 struct s2 {int (*f) (double a);};
2327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2338 # Don't try gcc -ansi; that turns off useful extensions and
2339 # breaks some systems' header files.
2340 # AIX -qlanglvl=ansi
2341 # Ultrix and OSF/1 -std1
2342 # HP-UX 10.20 and later -Ae
2343 # HP-UX older versions -Aa -D_HPUX_SOURCE
2344 # SVR4 -Xc -D__EXTENSIONS__
2345 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2347 CC
="$ac_save_CC $ac_arg"
2348 rm -f conftest.
$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>conftest.er1
2352 grep -v '^ *+' conftest.er1
>conftest.err
2354 cat conftest.err
>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try
='test -z "$ac_c_werror_flag"
2358 || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try
='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 ac_cv_prog_cc_stdc
=$ac_arg
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.
$ac_ext >&5
2377 rm -f conftest.err conftest.
$ac_objext
2379 rm -f conftest.
$ac_ext conftest.
$ac_objext
2384 case "x$ac_cv_prog_cc_stdc" in
2386 echo "$as_me:$LINENO: result: none needed" >&5
2387 echo "${ECHO_T}none needed" >&6 ;;
2389 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2390 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2391 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2394 # Some people use a C++ compiler to compile C. Since we use `exit',
2395 # in C++ we need to declare it. In case someone uses the same compiler
2396 # for both compiling C and C++ we need to have the C++ compiler decide
2397 # the declaration of exit, since it's the most demanding environment.
2398 cat >conftest.
$ac_ext <<_ACEOF
2403 rm -f conftest.
$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2407 grep -v '^ *+' conftest.er1
>conftest.err
2409 cat conftest.err
>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try
='test -z "$ac_c_werror_flag"
2413 || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try
='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 for ac_declaration
in \
2427 'extern "C" void std::exit (int) throw (); using std::exit;' \
2428 'extern "C" void std::exit (int); using std::exit;' \
2429 'extern "C" void exit (int) throw ();' \
2430 'extern "C" void exit (int);' \
2433 cat >conftest.
$ac_ext <<_ACEOF
2436 cat confdefs.h
>>conftest.
$ac_ext
2437 cat >>conftest.
$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2449 rm -f conftest.
$ac_objext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>conftest.er1
2453 grep -v '^ *+' conftest.er1
>conftest.err
2455 cat conftest.err
>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try
='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try
='test -s conftest.$ac_objext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.
$ac_ext >&5
2478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2479 cat >conftest.
$ac_ext <<_ACEOF
2482 cat confdefs.h
>>conftest.
$ac_ext
2483 cat >>conftest.
$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2494 rm -f conftest.
$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2498 grep -v '^ *+' conftest.er1
>conftest.err
2500 cat conftest.err
>&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try
='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try
='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.
$ac_ext >&5
2522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2525 if test -n "$ac_declaration"; then
2526 echo '#ifdef __cplusplus' >>confdefs.h
2527 echo $ac_declaration >>confdefs.h
2528 echo '#endif' >>confdefs.h
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.
$ac_ext >&5
2536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2538 ac_cpp
='$CPP $CPPFLAGS'
2539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2543 # Find a good install program. We prefer a C program (faster),
2544 # so one script is as good as another. But avoid the broken or
2545 # incompatible versions:
2546 # SysV /etc/install, /usr/sbin/install
2547 # SunOS /usr/etc/install
2548 # IRIX /sbin/install
2550 # AmigaOS /C/install, which installs bootblocks on floppy discs
2551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2554 # OS/2's system install, which has a completely different semantic
2555 # ./install, which can be erroneously created by make from ./install.sh.
2556 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2557 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2558 if test -z "$INSTALL"; then
2559 if test "${ac_cv_path_install+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir
=.
2567 # Account for people who put trailing slashes in PATH elements.
2569 .
/ | .
// |
/cC
/* | \
2570 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2571 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2574 # OSF1 and SCO ODT 3.0 have their own names for install.
2575 # Don't use installbsd from OSF since it installs stuff as root
2577 for ac_prog
in ginstall scoinst
install; do
2578 for ac_exec_ext
in '' $ac_executable_extensions; do
2579 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2580 if test $ac_prog = install &&
2581 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2582 # AIX install. It has an incompatible calling convention.
2584 elif test $ac_prog = install &&
2585 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2586 # program-specific install script used by HP pwplus--don't use.
2589 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2601 if test "${ac_cv_path_install+set}" = set; then
2602 INSTALL
=$ac_cv_path_install
2604 # As a last resort, use the slow shell script. We don't cache a
2605 # path for INSTALL within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the path is relative.
2608 INSTALL
=$ac_install_sh
2611 echo "$as_me:$LINENO: result: $INSTALL" >&5
2612 echo "${ECHO_T}$INSTALL" >&6
2614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615 # It thinks the first close brace ends the variable substitution.
2616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2620 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2623 # Put a plausible default for CC_FOR_BUILD in Makefile.
2624 if test "x$cross_compiling" = "xno"; then
2625 CC_FOR_BUILD
='$(CC)'
2635 if test -n "$ac_tool_prefix"; then
2636 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2637 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2638 echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640 if test "${ac_cv_prog_RANLIB+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 if test -n "$RANLIB"; then
2644 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir
=.
2651 for ac_exec_ext
in '' $ac_executable_extensions; do
2652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 RANLIB
=$ac_cv_prog_RANLIB
2663 if test -n "$RANLIB"; then
2664 echo "$as_me:$LINENO: result: $RANLIB" >&5
2665 echo "${ECHO_T}$RANLIB" >&6
2667 echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6
2672 if test -z "$ac_cv_prog_RANLIB"; then
2673 ac_ct_RANLIB
=$RANLIB
2674 # Extract the first word of "ranlib", so it can be a program name with args.
2675 set dummy ranlib
; ac_word
=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 if test -n "$ac_ct_RANLIB"; then
2682 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir
=.
2689 for ac_exec_ext
in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2701 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2702 if test -n "$ac_ct_RANLIB"; then
2703 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2704 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2710 RANLIB
=$ac_ct_RANLIB
2712 RANLIB
="$ac_cv_prog_RANLIB"
2717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2719 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 cat >conftest.
make <<\_ACEOF
2725 @
echo 'ac_maketemp="$(MAKE)"'
2727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2729 if test -n "$ac_maketemp"; then
2730 eval ac_cv_prog_make_
${ac_make}_set
=yes
2732 eval ac_cv_prog_make_
${ac_make}_set
=no
2736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2737 echo "$as_me:$LINENO: result: yes" >&5
2738 echo "${ECHO_T}yes" >&6
2741 echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2743 SET_MAKE
="MAKE=${MAKE-make}"
2747 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2748 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2749 if test "${ac_cv_search_strerror+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 ac_func_search_save_LIBS
=$LIBS
2753 ac_cv_search_strerror
=no
2754 cat >conftest.
$ac_ext <<_ACEOF
2757 cat confdefs.h
>>conftest.
$ac_ext
2758 cat >>conftest.
$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2761 /* Override any gcc2 internal prototype to avoid an error. */
2765 /* We use char because int might match the return type of a gcc2
2766 builtin and then its argument prototype would still apply. */
2776 rm -f conftest.
$ac_objext conftest
$ac_exeext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2778 (eval $ac_link) 2>conftest.er1
2780 grep -v '^ *+' conftest.er1
>conftest.err
2782 cat conftest.err
>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try
='test -z "$ac_c_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try
='test -s conftest$ac_exeext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 ac_cv_search_strerror
="none required"
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.
$ac_ext >&5
2804 rm -f conftest.err conftest.
$ac_objext \
2805 conftest
$ac_exeext conftest.
$ac_ext
2806 if test "$ac_cv_search_strerror" = no
; then
2807 for ac_lib
in cposix
; do
2808 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2809 cat >conftest.
$ac_ext <<_ACEOF
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2816 /* Override any gcc2 internal prototype to avoid an error. */
2820 /* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2831 rm -f conftest.
$ac_objext conftest
$ac_exeext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2833 (eval $ac_link) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1
>conftest.err
2837 cat conftest.err
>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try
='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try
='test -s conftest$ac_exeext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_search_strerror
="-l$ac_lib"
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.
$ac_ext >&5
2860 rm -f conftest.err conftest.
$ac_objext \
2861 conftest
$ac_exeext conftest.
$ac_ext
2864 LIBS
=$ac_func_search_save_LIBS
2866 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2867 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2868 if test "$ac_cv_search_strerror" != no
; then
2869 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2874 ac_cpp
='$CPP $CPPFLAGS'
2875 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2878 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2880 # On Suns, sometimes $CPP names a directory.
2881 if test -n "$CPP" && test -d "$CPP"; then
2884 if test -z "$CPP"; then
2885 if test "${ac_cv_prog_CPP+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 # Double quotes because CPP needs to be expanded
2889 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2892 for ac_c_preproc_warn_flag
in '' yes
2894 # Use a header file that comes with gcc, so configuring glibc
2895 # with a fresh cross-compiler works.
2896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897 # <limits.h> exists even on freestanding compilers.
2898 # On the NeXT, cc -E runs the code through the compiler's parser,
2899 # not just through cpp. "Syntax error" is here to catch this case.
2900 cat >conftest.
$ac_ext <<_ACEOF
2903 cat confdefs.h
>>conftest.
$ac_ext
2904 cat >>conftest.
$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2907 # include <limits.h>
2909 # include <assert.h>
2913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2916 grep -v '^ *+' conftest.er1
>conftest.err
2918 cat conftest.err
>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } >/dev
/null
; then
2921 if test -s conftest.err
; then
2922 ac_cpp_err
=$ac_c_preproc_warn_flag
2923 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2930 if test -z "$ac_cpp_err"; then
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.
$ac_ext >&5
2936 # Broken: fails on valid input.
2939 rm -f conftest.err conftest.
$ac_ext
2941 # OK, works on sane cases. Now check whether non-existent headers
2942 # can be detected and how.
2943 cat >conftest.
$ac_ext <<_ACEOF
2946 cat confdefs.h
>>conftest.
$ac_ext
2947 cat >>conftest.
$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <ac_nonexistent.h>
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2954 grep -v '^ *+' conftest.er1
>conftest.err
2956 cat conftest.err
>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } >/dev
/null
; then
2959 if test -s conftest.err
; then
2960 ac_cpp_err
=$ac_c_preproc_warn_flag
2961 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2968 if test -z "$ac_cpp_err"; then
2969 # Broken: success on invalid input.
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.
$ac_ext >&5
2975 # Passes both tests.
2979 rm -f conftest.err conftest.
$ac_ext
2982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983 rm -f conftest.err conftest.
$ac_ext
2984 if $ac_preproc_ok; then
2996 echo "$as_me:$LINENO: result: $CPP" >&5
2997 echo "${ECHO_T}$CPP" >&6
2999 for ac_c_preproc_warn_flag
in '' yes
3001 # Use a header file that comes with gcc, so configuring glibc
3002 # with a fresh cross-compiler works.
3003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3004 # <limits.h> exists even on freestanding compilers.
3005 # On the NeXT, cc -E runs the code through the compiler's parser,
3006 # not just through cpp. "Syntax error" is here to catch this case.
3007 cat >conftest.
$ac_ext <<_ACEOF
3010 cat confdefs.h
>>conftest.
$ac_ext
3011 cat >>conftest.
$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3014 # include <limits.h>
3016 # include <assert.h>
3020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3023 grep -v '^ *+' conftest.er1
>conftest.err
3025 cat conftest.err
>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } >/dev
/null
; then
3028 if test -s conftest.err
; then
3029 ac_cpp_err
=$ac_c_preproc_warn_flag
3030 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3037 if test -z "$ac_cpp_err"; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.
$ac_ext >&5
3043 # Broken: fails on valid input.
3046 rm -f conftest.err conftest.
$ac_ext
3048 # OK, works on sane cases. Now check whether non-existent headers
3049 # can be detected and how.
3050 cat >conftest.
$ac_ext <<_ACEOF
3053 cat confdefs.h
>>conftest.
$ac_ext
3054 cat >>conftest.
$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056 #include <ac_nonexistent.h>
3058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3061 grep -v '^ *+' conftest.er1
>conftest.err
3063 cat conftest.err
>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } >/dev
/null
; then
3066 if test -s conftest.err
; then
3067 ac_cpp_err
=$ac_c_preproc_warn_flag
3068 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3075 if test -z "$ac_cpp_err"; then
3076 # Broken: success on invalid input.
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.
$ac_ext >&5
3082 # Passes both tests.
3086 rm -f conftest.err conftest.
$ac_ext
3089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090 rm -f conftest.err conftest.
$ac_ext
3091 if $ac_preproc_ok; then
3094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&5
3096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3097 See \`config.log' for more details." >&2;}
3098 { (exit 1); exit 1; }; }
3102 ac_cpp
='$CPP $CPPFLAGS'
3103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3108 echo "$as_me:$LINENO: checking for egrep" >&5
3109 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3110 if test "${ac_cv_prog_egrep+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3114 then ac_cv_prog_egrep
='grep -E'
3115 else ac_cv_prog_egrep
='egrep'
3118 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3119 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3120 EGREP
=$ac_cv_prog_egrep
3123 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3124 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3125 if test "${ac_cv_header_stdc+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 cat >conftest.
$ac_ext <<_ACEOF
3131 cat confdefs.h
>>conftest.
$ac_ext
3132 cat >>conftest.
$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3147 rm -f conftest.
$ac_objext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149 (eval $ac_compile) 2>conftest.er1
3151 grep -v '^ *+' conftest.er1
>conftest.err
3153 cat conftest.err
>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try
='test -z "$ac_c_werror_flag"
3157 || test ! -s conftest.err'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; } &&
3163 { ac_try
='test -s conftest.$ac_objext'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_cv_header_stdc
=yes
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.
$ac_ext >&5
3174 ac_cv_header_stdc
=no
3176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3178 if test $ac_cv_header_stdc = yes; then
3179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3180 cat >conftest.
$ac_ext <<_ACEOF
3183 cat confdefs.h
>>conftest.
$ac_ext
3184 cat >>conftest.
$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3190 $EGREP "memchr" >/dev
/null
2>&1; then
3193 ac_cv_header_stdc
=no
3199 if test $ac_cv_header_stdc = yes; then
3200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3201 cat >conftest.
$ac_ext <<_ACEOF
3204 cat confdefs.h
>>conftest.
$ac_ext
3205 cat >>conftest.
$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3211 $EGREP "free" >/dev
/null
2>&1; then
3214 ac_cv_header_stdc
=no
3220 if test $ac_cv_header_stdc = yes; then
3221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3222 if test "$cross_compiling" = yes; then
3225 cat >conftest.
$ac_ext <<_ACEOF
3228 cat confdefs.h
>>conftest.
$ac_ext
3229 cat >>conftest.
$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3232 #if ((' ' & 0x0FF) == 0x020)
3233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3236 # define ISLOWER(c) \
3237 (('a' <= (c) && (c) <= 'i') \
3238 || ('j' <= (c) && (c) <= 'r') \
3239 || ('s' <= (c) && (c) <= 'z'))
3240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3248 for (i = 0; i < 256; i++)
3249 if (XOR (islower (i), ISLOWER (i))
3250 || toupper (i) != TOUPPER (i))
3255 rm -f conftest
$ac_exeext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3257 (eval $ac_link) 2>&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3268 echo "$as_me: program exited with status $ac_status" >&5
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.
$ac_ext >&5
3273 ac_cv_header_stdc
=no
3275 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3280 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3281 if test $ac_cv_header_stdc = yes; then
3283 cat >>confdefs.h
<<\_ACEOF
3284 #define STDC_HEADERS 1
3289 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3290 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3291 if test "${ac_cv_c_const+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 cat >conftest.
$ac_ext <<_ACEOF
3297 cat confdefs.h
>>conftest.
$ac_ext
3298 cat >>conftest.
$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3304 /* FIXME: Include the comments suggested by Paul. */
3306 /* Ultrix mips cc rejects this. */
3307 typedef int charset[2];
3309 /* SunOS 4.1.1 cc rejects this. */
3310 char const *const *ccp;
3312 /* NEC SVR4.0.2 mips cc rejects this. */
3313 struct point {int x, y;};
3314 static struct point const zero = {0,0};
3315 /* AIX XL C 1.02.0.0 rejects this.
3316 It does not let you subtract one const X* pointer from another in
3317 an arm of an if-expression whose if-part is not a constant
3319 const char *g = "string";
3320 ccp = &g + (g ? g-g : 0);
3321 /* HPUX 7.0 cc rejects these. */
3324 ccp = (char const *const *) p;
3325 { /* SCO 3.2v4 cc rejects this. */
3327 char const *s = 0 ? (char *) 0 : (char const *) 0;
3331 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3333 const int *foo = &x[0];
3336 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3337 typedef const int *iptr;
3341 { /* AIX XL C 1.02.0.0 rejects this saying
3342 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3343 struct s { int j; const int *ap[3]; };
3344 struct s *b; b->j = 5;
3346 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3355 rm -f conftest.
$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3359 grep -v '^ *+' conftest.er1
>conftest.err
3361 cat conftest.err
>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try
='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.
$ac_ext >&5
3384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3386 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3387 echo "${ECHO_T}$ac_cv_c_const" >&6
3388 if test $ac_cv_c_const = no
; then
3390 cat >>confdefs.h
<<\_ACEOF
3396 echo "$as_me:$LINENO: checking for inline" >&5
3397 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3398 if test "${ac_cv_c_inline+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 for ac_kw
in inline __inline__ __inline
; do
3403 cat >conftest.
$ac_ext <<_ACEOF
3406 cat confdefs.h
>>conftest.
$ac_ext
3407 cat >>conftest.
$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3411 static $ac_kw foo_t static_foo () {return 0; }
3412 $ac_kw foo_t foo () {return 0; }
3416 rm -f conftest.
$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>conftest.er1
3420 grep -v '^ *+' conftest.er1
>conftest.err
3422 cat conftest.err
>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try
='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try
='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 ac_cv_c_inline
=$ac_kw; break
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.
$ac_ext >&5
3444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3448 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3449 echo "${ECHO_T}$ac_cv_c_inline" >&6
3452 case $ac_cv_c_inline in
3455 case $ac_cv_c_inline in
3457 *) ac_val
=$ac_cv_c_inline;;
3459 cat >>confdefs.h
<<_ACEOF
3461 #define inline $ac_val
3467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3477 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3478 inttypes.h stdint.h unistd.h
3480 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3481 echo "$as_me:$LINENO: checking for $ac_header" >&5
3482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 cat >conftest.
$ac_ext <<_ACEOF
3489 cat confdefs.h
>>conftest.
$ac_ext
3490 cat >>conftest.
$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 $ac_includes_default
3494 #include <$ac_header>
3496 rm -f conftest.
$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498 (eval $ac_compile) 2>conftest.er1
3500 grep -v '^ *+' conftest.er1
>conftest.err
3502 cat conftest.err
>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try
='test -z "$ac_c_werror_flag"
3506 || test ! -s conftest.err'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; } &&
3512 { ac_try
='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 eval "$as_ac_Header=yes"
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.
$ac_ext >&5
3523 eval "$as_ac_Header=no"
3525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3530 cat >>confdefs.h
<<_ACEOF
3531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3539 echo "$as_me:$LINENO: checking for off_t" >&5
3540 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3541 if test "${ac_cv_type_off_t+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 cat >conftest.
$ac_ext <<_ACEOF
3547 cat confdefs.h
>>conftest.
$ac_ext
3548 cat >>conftest.
$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 $ac_includes_default
3562 rm -f conftest.
$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3566 grep -v '^ *+' conftest.er1
>conftest.err
3568 cat conftest.err
>&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try
='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try
='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 ac_cv_type_off_t
=yes
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.
$ac_ext >&5
3591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3593 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3594 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3595 if test $ac_cv_type_off_t = yes; then
3599 cat >>confdefs.h
<<_ACEOF
3605 echo "$as_me:$LINENO: checking for size_t" >&5
3606 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3607 if test "${ac_cv_type_size_t+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 cat >conftest.
$ac_ext <<_ACEOF
3613 cat confdefs.h
>>conftest.
$ac_ext
3614 cat >>conftest.
$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 $ac_includes_default
3622 if (sizeof (size_t))
3628 rm -f conftest.
$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3632 grep -v '^ *+' conftest.er1
>conftest.err
3634 cat conftest.err
>&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try
='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try
='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_cv_type_size_t
=yes
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.
$ac_ext >&5
3655 ac_cv_type_size_t
=no
3657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3659 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3660 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3661 if test $ac_cv_type_size_t = yes; then
3665 cat >>confdefs.h
<<_ACEOF
3666 #define size_t unsigned
3671 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3672 # for constant arguments. Useless!
3673 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3674 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3675 if test "${ac_cv_working_alloca_h+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 cat >conftest.
$ac_ext <<_ACEOF
3681 cat confdefs.h
>>conftest.
$ac_ext
3682 cat >>conftest.
$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3688 char *p = (char *) alloca (2 * sizeof (int));
3693 rm -f conftest.
$ac_objext conftest
$ac_exeext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695 (eval $ac_link) 2>conftest.er1
3697 grep -v '^ *+' conftest.er1
>conftest.err
3699 cat conftest.err
>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try
='test -z "$ac_c_werror_flag"
3703 || test ! -s conftest.err'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; } &&
3709 { ac_try
='test -s conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 ac_cv_working_alloca_h
=yes
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.
$ac_ext >&5
3720 ac_cv_working_alloca_h
=no
3722 rm -f conftest.err conftest.
$ac_objext \
3723 conftest
$ac_exeext conftest.
$ac_ext
3725 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3726 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3727 if test $ac_cv_working_alloca_h = yes; then
3729 cat >>confdefs.h
<<\_ACEOF
3730 #define HAVE_ALLOCA_H 1
3735 echo "$as_me:$LINENO: checking for alloca" >&5
3736 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3737 if test "${ac_cv_func_alloca_works+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 cat >conftest.
$ac_ext <<_ACEOF
3743 cat confdefs.h
>>conftest.
$ac_ext
3744 cat >>conftest.
$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3747 # define alloca __builtin_alloca
3750 # include <malloc.h>
3751 # define alloca _alloca
3754 # include <alloca.h>
3759 # ifndef alloca /* predefined by HP cc +Olibcalls */
3770 char *p = (char *) alloca (1);
3775 rm -f conftest.
$ac_objext conftest
$ac_exeext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3777 (eval $ac_link) 2>conftest.er1
3779 grep -v '^ *+' conftest.er1
>conftest.err
3781 cat conftest.err
>&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try
='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try
='test -s conftest$ac_exeext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_cv_func_alloca_works
=yes
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.
$ac_ext >&5
3802 ac_cv_func_alloca_works
=no
3804 rm -f conftest.err conftest.
$ac_objext \
3805 conftest
$ac_exeext conftest.
$ac_ext
3807 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3808 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3810 if test $ac_cv_func_alloca_works = yes; then
3812 cat >>confdefs.h
<<\_ACEOF
3813 #define HAVE_ALLOCA 1
3817 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3818 # that cause trouble. Some versions do not even contain alloca or
3819 # contain a buggy version. If you still want to use their alloca,
3820 # use ar to extract alloca.o from them instead of compiling alloca.c.
3822 ALLOCA
=alloca.
$ac_objext
3824 cat >>confdefs.h
<<\_ACEOF
3829 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3830 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3831 if test "${ac_cv_os_cray+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 cat >conftest.
$ac_ext <<_ACEOF
3837 cat confdefs.h
>>conftest.
$ac_ext
3838 cat >>conftest.
$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3840 #if defined(CRAY) && ! defined(CRAY2)
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 $EGREP "webecray" >/dev
/null
2>&1; then
3856 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3857 echo "${ECHO_T}$ac_cv_os_cray" >&6
3858 if test $ac_cv_os_cray = yes; then
3859 for ac_func
in _getb67 GETB67 getb67
; do
3860 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3861 echo "$as_me:$LINENO: checking for $ac_func" >&5
3862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3863 if eval "test \"\${$as_ac_var+set}\" = set"; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 cat >conftest.
$ac_ext <<_ACEOF
3869 cat confdefs.h
>>conftest.
$ac_ext
3870 cat >>conftest.
$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3874 #define $ac_func innocuous_$ac_func
3876 /* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char $ac_func (); below.
3878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879 <limits.h> exists even on freestanding compilers. */
3882 # include <limits.h>
3884 # include <assert.h>
3889 /* Override any gcc2 internal prototype to avoid an error. */
3894 /* We use char because int might match the return type of a gcc2
3895 builtin and then its argument prototype would still apply. */
3897 /* The GNU C library defines this for functions which it implements
3898 to always fail with ENOSYS. Some functions are actually named
3899 something starting with __ and the normal name is an alias. */
3900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3903 char (*f) () = $ac_func;
3912 return f != $ac_func;
3917 rm -f conftest.
$ac_objext conftest
$ac_exeext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3919 (eval $ac_link) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1
>conftest.err
3923 cat conftest.err
>&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try
='test -z "$ac_c_werror_flag"
3927 || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try
='test -s conftest$ac_exeext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 eval "$as_ac_var=yes"
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.
$ac_ext >&5
3944 eval "$as_ac_var=no"
3946 rm -f conftest.err conftest.
$ac_objext \
3947 conftest
$ac_exeext conftest.
$ac_ext
3949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3951 if test `eval echo '${'$as_ac_var'}'` = yes; then
3953 cat >>confdefs.h
<<_ACEOF
3954 #define CRAY_STACKSEG_END $ac_func
3963 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3964 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3965 if test "${ac_cv_c_stack_direction+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 if test "$cross_compiling" = yes; then
3969 ac_cv_c_stack_direction
=0
3971 cat >conftest.
$ac_ext <<_ACEOF
3974 cat confdefs.h
>>conftest.
$ac_ext
3975 cat >>conftest.
$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3978 find_stack_direction ()
3980 static char *addr = 0;
3985 return find_stack_direction ();
3988 return (&dummy > addr) ? 1 : -1;
3994 exit (find_stack_direction () < 0);
3997 rm -f conftest
$ac_exeext
3998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999 (eval $ac_link) 2>&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_c_stack_direction
=1
4010 echo "$as_me: program exited with status $ac_status" >&5
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.
$ac_ext >&5
4015 ac_cv_c_stack_direction
=-1
4017 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4020 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4021 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4023 cat >>confdefs.h
<<_ACEOF
4024 #define STACK_DIRECTION $ac_cv_c_stack_direction
4032 for ac_header
in stdlib.h unistd.h
4034 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4036 echo "$as_me:$LINENO: checking for $ac_header" >&5
4037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4044 # Is the header compilable?
4045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4047 cat >conftest.
$ac_ext <<_ACEOF
4050 cat confdefs.h
>>conftest.
$ac_ext
4051 cat >>conftest.
$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 $ac_includes_default
4054 #include <$ac_header>
4056 rm -f conftest.
$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1
>conftest.err
4062 cat conftest.err
>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try
='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try
='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_header_compiler
=yes
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.
$ac_ext >&5
4083 ac_header_compiler
=no
4085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4087 echo "${ECHO_T}$ac_header_compiler" >&6
4089 # Is the header present?
4090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4092 cat >conftest.
$ac_ext <<_ACEOF
4095 cat confdefs.h
>>conftest.
$ac_ext
4096 cat >>conftest.
$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <$ac_header>
4100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4101 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1
>conftest.err
4105 cat conftest.err
>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } >/dev
/null
; then
4108 if test -s conftest.err
; then
4109 ac_cpp_err
=$ac_c_preproc_warn_flag
4110 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4117 if test -z "$ac_cpp_err"; then
4118 ac_header_preproc
=yes
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.
$ac_ext >&5
4123 ac_header_preproc
=no
4125 rm -f conftest.err conftest.
$ac_ext
4126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4127 echo "${ECHO_T}$ac_header_preproc" >&6
4129 # So? What about this header?
4130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4136 ac_header_preproc
=yes
4139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4153 ## ------------------------------------------ ##
4154 ## Report this to the AC_PACKAGE_NAME lists. ##
4155 ## ------------------------------------------ ##
4158 sed "s/^/$as_me: WARNING: /" >&2
4161 echo "$as_me:$LINENO: checking for $ac_header" >&5
4162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 eval "$as_ac_Header=\$ac_header_preproc"
4168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4173 cat >>confdefs.h
<<_ACEOF
4174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4182 for ac_func
in getpagesize
4184 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4185 echo "$as_me:$LINENO: checking for $ac_func" >&5
4186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4187 if eval "test \"\${$as_ac_var+set}\" = set"; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 cat >conftest.
$ac_ext <<_ACEOF
4193 cat confdefs.h
>>conftest.
$ac_ext
4194 cat >>conftest.
$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4198 #define $ac_func innocuous_$ac_func
4200 /* System header to define __stub macros and hopefully few prototypes,
4201 which can conflict with char $ac_func (); below.
4202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 <limits.h> exists even on freestanding compilers. */
4206 # include <limits.h>
4208 # include <assert.h>
4213 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4221 /* The GNU C library defines this for functions which it implements
4222 to always fail with ENOSYS. Some functions are actually named
4223 something starting with __ and the normal name is an alias. */
4224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4227 char (*f) () = $ac_func;
4236 return f != $ac_func;
4241 rm -f conftest.
$ac_objext conftest
$ac_exeext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243 (eval $ac_link) 2>conftest.er1
4245 grep -v '^ *+' conftest.er1
>conftest.err
4247 cat conftest.err
>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try
='test -z "$ac_c_werror_flag"
4251 || test ! -s conftest.err'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; } &&
4257 { ac_try
='test -s conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 eval "$as_ac_var=yes"
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.
$ac_ext >&5
4268 eval "$as_ac_var=no"
4270 rm -f conftest.err conftest.
$ac_objext \
4271 conftest
$ac_exeext conftest.
$ac_ext
4273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4275 if test `eval echo '${'$as_ac_var'}'` = yes; then
4276 cat >>confdefs.h
<<_ACEOF
4277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4283 echo "$as_me:$LINENO: checking for working mmap" >&5
4284 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4285 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 if test "$cross_compiling" = yes; then
4289 ac_cv_func_mmap_fixed_mapped
=no
4291 cat >conftest.
$ac_ext <<_ACEOF
4294 cat confdefs.h
>>conftest.
$ac_ext
4295 cat >>conftest.
$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 $ac_includes_default
4298 /* malloc might have been renamed as rpl_malloc. */
4301 /* Thanks to Mike Haertel and Jim Avera for this test.
4302 Here is a matrix of mmap possibilities:
4303 mmap private not fixed
4304 mmap private fixed at somewhere currently unmapped
4305 mmap private fixed at somewhere already mapped
4306 mmap shared not fixed
4307 mmap shared fixed at somewhere currently unmapped
4308 mmap shared fixed at somewhere already mapped
4309 For private mappings, we should verify that changes cannot be read()
4310 back from the file, nor mmap's back from the file at a different
4311 address. (There have been systems where private was not correctly
4312 implemented like the infamous i386 svr4.0, and systems where the
4313 VM page cache was not coherent with the file system buffer cache
4314 like early versions of FreeBSD and possibly contemporary NetBSD.)
4315 For shared mappings, we should conversely verify that changes get
4316 propagated back to all the places they're supposed to be.
4318 Grep wants private fixed already mapped.
4319 The main things grep needs to know about mmap are:
4320 * does it exist and is it safe to write into the mmap'd area
4321 * how to use it (BSD variants) */
4324 #include <sys/mman.h>
4326 #if !STDC_HEADERS && !HAVE_STDLIB_H
4330 /* This mess was copied from the GNU getpagesize.h. */
4331 #if !HAVE_GETPAGESIZE
4332 /* Assume that all systems that can run configure have sys/param.h. */
4333 # if !HAVE_SYS_PARAM_H
4334 # define HAVE_SYS_PARAM_H 1
4337 # ifdef _SC_PAGESIZE
4338 # define getpagesize() sysconf(_SC_PAGESIZE)
4339 # else /* no _SC_PAGESIZE */
4340 # if HAVE_SYS_PARAM_H
4341 # include <sys/param.h>
4342 # ifdef EXEC_PAGESIZE
4343 # define getpagesize() EXEC_PAGESIZE
4344 # else /* no EXEC_PAGESIZE */
4346 # define getpagesize() NBPG * CLSIZE
4349 # endif /* no CLSIZE */
4350 # else /* no NBPG */
4352 # define getpagesize() NBPC
4353 # else /* no NBPC */
4355 # define getpagesize() PAGESIZE
4356 # endif /* PAGESIZE */
4357 # endif /* no NBPC */
4358 # endif /* no NBPG */
4359 # endif /* no EXEC_PAGESIZE */
4360 # else /* no HAVE_SYS_PARAM_H */
4361 # define getpagesize() 8192 /* punt totally */
4362 # endif /* no HAVE_SYS_PARAM_H */
4363 # endif /* no _SC_PAGESIZE */
4365 #endif /* no HAVE_GETPAGESIZE */
4370 char *data, *data2, *data3;
4374 pagesize = getpagesize ();
4376 /* First, make a file with some known garbage in it. */
4377 data = (char *) malloc (pagesize);
4380 for (i = 0; i < pagesize; ++i)
4381 *(data + i) = rand ();
4383 fd = creat ("conftest.mmap", 0600);
4386 if (write (fd, data, pagesize) != pagesize)
4390 /* Next, try to mmap the file at a fixed address which already has
4391 something else allocated at it. If we can, also make sure that
4392 we see the same garbage. */
4393 fd = open ("conftest.mmap", O_RDWR);
4396 data2 = (char *) malloc (2 * pagesize);
4399 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4400 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4401 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4403 for (i = 0; i < pagesize; ++i)
4404 if (*(data + i) != *(data2 + i))
4407 /* Finally, make sure that changes to the mapped area do not
4408 percolate back to the file as seen by read(). (This is a bug on
4409 some variants of i386 svr4.0.) */
4410 for (i = 0; i < pagesize; ++i)
4411 *(data2 + i) = *(data2 + i) + 1;
4412 data3 = (char *) malloc (pagesize);
4415 if (read (fd, data3, pagesize) != pagesize)
4417 for (i = 0; i < pagesize; ++i)
4418 if (*(data + i) != *(data3 + i))
4424 rm -f conftest
$ac_exeext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4426 (eval $ac_link) 2>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_func_mmap_fixed_mapped
=yes
4437 echo "$as_me: program exited with status $ac_status" >&5
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.
$ac_ext >&5
4442 ac_cv_func_mmap_fixed_mapped
=no
4444 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4447 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4448 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4449 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4451 cat >>confdefs.h
<<\_ACEOF
4468 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4469 unistd.h values.h sys
/param.h
4471 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4473 echo "$as_me:$LINENO: checking for $ac_header" >&5
4474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4481 # Is the header compilable?
4482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4484 cat >conftest.
$ac_ext <<_ACEOF
4487 cat confdefs.h
>>conftest.
$ac_ext
4488 cat >>conftest.
$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 $ac_includes_default
4491 #include <$ac_header>
4493 rm -f conftest.
$ac_objext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>conftest.er1
4497 grep -v '^ *+' conftest.er1
>conftest.err
4499 cat conftest.err
>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try
='test -z "$ac_c_werror_flag"
4503 || test ! -s conftest.err'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; } &&
4509 { ac_try
='test -s conftest.$ac_objext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_header_compiler
=yes
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.
$ac_ext >&5
4520 ac_header_compiler
=no
4522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4524 echo "${ECHO_T}$ac_header_compiler" >&6
4526 # Is the header present?
4527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4529 cat >conftest.
$ac_ext <<_ACEOF
4532 cat confdefs.h
>>conftest.
$ac_ext
4533 cat >>conftest.
$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <$ac_header>
4537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4540 grep -v '^ *+' conftest.er1
>conftest.err
4542 cat conftest.err
>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev
/null
; then
4545 if test -s conftest.err
; then
4546 ac_cpp_err
=$ac_c_preproc_warn_flag
4547 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4554 if test -z "$ac_cpp_err"; then
4555 ac_header_preproc
=yes
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.
$ac_ext >&5
4560 ac_header_preproc
=no
4562 rm -f conftest.err conftest.
$ac_ext
4563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564 echo "${ECHO_T}$ac_header_preproc" >&6
4566 # So? What about this header?
4567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4573 ac_header_preproc
=yes
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4590 ## ------------------------------------------ ##
4591 ## Report this to the AC_PACKAGE_NAME lists. ##
4592 ## ------------------------------------------ ##
4595 sed "s/^/$as_me: WARNING: /" >&2
4598 echo "$as_me:$LINENO: checking for $ac_header" >&5
4599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 eval "$as_ac_Header=\$ac_header_preproc"
4605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4610 cat >>confdefs.h
<<_ACEOF
4611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4628 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4629 __argz_count __argz_stringify __argz_next
4631 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4632 echo "$as_me:$LINENO: checking for $ac_func" >&5
4633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4634 if eval "test \"\${$as_ac_var+set}\" = set"; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 cat >conftest.
$ac_ext <<_ACEOF
4640 cat confdefs.h
>>conftest.
$ac_ext
4641 cat >>conftest.
$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4645 #define $ac_func innocuous_$ac_func
4647 /* System header to define __stub macros and hopefully few prototypes,
4648 which can conflict with char $ac_func (); below.
4649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650 <limits.h> exists even on freestanding compilers. */
4653 # include <limits.h>
4655 # include <assert.h>
4660 /* Override any gcc2 internal prototype to avoid an error. */
4665 /* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4668 /* The GNU C library defines this for functions which it implements
4669 to always fail with ENOSYS. Some functions are actually named
4670 something starting with __ and the normal name is an alias. */
4671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4674 char (*f) () = $ac_func;
4683 return f != $ac_func;
4688 rm -f conftest.
$ac_objext conftest
$ac_exeext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690 (eval $ac_link) 2>conftest.er1
4692 grep -v '^ *+' conftest.er1
>conftest.err
4694 cat conftest.err
>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try
='test -z "$ac_c_werror_flag"
4698 || test ! -s conftest.err'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; } &&
4704 { ac_try
='test -s conftest$ac_exeext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 eval "$as_ac_var=yes"
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.
$ac_ext >&5
4715 eval "$as_ac_var=no"
4717 rm -f conftest.err conftest.
$ac_objext \
4718 conftest
$ac_exeext conftest.
$ac_ext
4720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4722 if test `eval echo '${'$as_ac_var'}'` = yes; then
4723 cat >>confdefs.h
<<_ACEOF
4724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4731 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4733 for ac_func
in stpcpy
4735 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4736 echo "$as_me:$LINENO: checking for $ac_func" >&5
4737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4738 if eval "test \"\${$as_ac_var+set}\" = set"; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 cat >conftest.
$ac_ext <<_ACEOF
4744 cat confdefs.h
>>conftest.
$ac_ext
4745 cat >>conftest.
$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4749 #define $ac_func innocuous_$ac_func
4751 /* System header to define __stub macros and hopefully few prototypes,
4752 which can conflict with char $ac_func (); below.
4753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4754 <limits.h> exists even on freestanding compilers. */
4757 # include <limits.h>
4759 # include <assert.h>
4764 /* Override any gcc2 internal prototype to avoid an error. */
4769 /* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4772 /* The GNU C library defines this for functions which it implements
4773 to always fail with ENOSYS. Some functions are actually named
4774 something starting with __ and the normal name is an alias. */
4775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4778 char (*f) () = $ac_func;
4787 return f != $ac_func;
4792 rm -f conftest.
$ac_objext conftest
$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4796 grep -v '^ *+' conftest.er1
>conftest.err
4798 cat conftest.err
>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try
='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try
='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 eval "$as_ac_var=yes"
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.
$ac_ext >&5
4819 eval "$as_ac_var=no"
4821 rm -f conftest.err conftest.
$ac_objext \
4822 conftest
$ac_exeext conftest.
$ac_ext
4824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4826 if test `eval echo '${'$as_ac_var'}'` = yes; then
4827 cat >>confdefs.h
<<_ACEOF
4828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4835 if test "${ac_cv_func_stpcpy}" = "yes"; then
4837 cat >>confdefs.h
<<\_ACEOF
4838 #define HAVE_STPCPY 1
4843 if test $ac_cv_header_locale_h = yes; then
4844 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4845 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4846 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4864 rm -f conftest.
$ac_objext conftest
$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1
>conftest.err
4870 cat conftest.err
>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try
='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 am_cv_val_LC_MESSAGES
=yes
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4891 am_cv_val_LC_MESSAGES
=no
4893 rm -f conftest.err conftest.
$ac_objext \
4894 conftest
$ac_exeext conftest.
$ac_ext
4896 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4897 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4898 if test $am_cv_val_LC_MESSAGES = yes; then
4900 cat >>confdefs.h
<<\_ACEOF
4901 #define HAVE_LC_MESSAGES 1
4906 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4907 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4908 # Check whether --enable-nls or --disable-nls was given.
4909 if test "${enable_nls+set}" = set; then
4910 enableval
="$enable_nls"
4915 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4916 echo "${ECHO_T}$USE_NLS" >&6
4919 USE_INCLUDED_LIBINTL
=no
4921 if test "$USE_NLS" = "yes"; then
4922 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4923 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4925 # Check whether --with-included-gettext or --without-included-gettext was given.
4926 if test "${with_included_gettext+set}" = set; then
4927 withval
="$with_included_gettext"
4928 nls_cv_force_use_gnu_gettext
=$withval
4930 nls_cv_force_use_gnu_gettext
=no
4932 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4933 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4935 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4936 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4938 nls_cv_header_libgt
=
4941 if test "${ac_cv_header_libintl_h+set}" = set; then
4942 echo "$as_me:$LINENO: checking for libintl.h" >&5
4943 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4944 if test "${ac_cv_header_libintl_h+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4948 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4950 # Is the header compilable?
4951 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4952 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4953 cat >conftest.
$ac_ext <<_ACEOF
4956 cat confdefs.h
>>conftest.
$ac_ext
4957 cat >>conftest.
$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 $ac_includes_default
4960 #include <libintl.h>
4962 rm -f conftest.
$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1
>conftest.err
4968 cat conftest.err
>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try
='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try
='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_header_compiler
=yes
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.
$ac_ext >&5
4989 ac_header_compiler
=no
4991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4993 echo "${ECHO_T}$ac_header_compiler" >&6
4995 # Is the header present?
4996 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4997 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4998 cat >conftest.
$ac_ext <<_ACEOF
5001 cat confdefs.h
>>conftest.
$ac_ext
5002 cat >>conftest.
$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 #include <libintl.h>
5006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5009 grep -v '^ *+' conftest.er1
>conftest.err
5011 cat conftest.err
>&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev
/null
; then
5014 if test -s conftest.err
; then
5015 ac_cpp_err
=$ac_c_preproc_warn_flag
5016 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5023 if test -z "$ac_cpp_err"; then
5024 ac_header_preproc
=yes
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5029 ac_header_preproc
=no
5031 rm -f conftest.err conftest.
$ac_ext
5032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5033 echo "${ECHO_T}$ac_header_preproc" >&6
5035 # So? What about this header?
5036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5038 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5039 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5040 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5041 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5042 ac_header_preproc
=yes
5045 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5046 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5047 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5048 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5049 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5050 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5052 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5054 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5056 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5059 ## ------------------------------------------ ##
5060 ## Report this to the AC_PACKAGE_NAME lists. ##
5061 ## ------------------------------------------ ##
5064 sed "s/^/$as_me: WARNING: /" >&2
5067 echo "$as_me:$LINENO: checking for libintl.h" >&5
5068 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5069 if test "${ac_cv_header_libintl_h+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 ac_cv_header_libintl_h
=$ac_header_preproc
5074 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5075 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5078 if test $ac_cv_header_libintl_h = yes; then
5079 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5080 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5081 if test "${gt_cv_func_gettext_libc+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 cat >conftest.
$ac_ext <<_ACEOF
5087 cat confdefs.h
>>conftest.
$ac_ext
5088 cat >>conftest.
$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 #include <libintl.h>
5094 return (int) gettext ("")
5099 rm -f conftest.
$ac_objext conftest
$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101 (eval $ac_link) 2>conftest.er1
5103 grep -v '^ *+' conftest.er1
>conftest.err
5105 cat conftest.err
>&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try
='test -z "$ac_c_werror_flag"
5109 || test ! -s conftest.err'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try
='test -s conftest$ac_exeext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 gt_cv_func_gettext_libc
=yes
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.
$ac_ext >&5
5126 gt_cv_func_gettext_libc
=no
5128 rm -f conftest.err conftest.
$ac_objext \
5129 conftest
$ac_exeext conftest.
$ac_ext
5131 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5132 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5134 if test "$gt_cv_func_gettext_libc" != "yes"; then
5135 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5136 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5137 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 ac_check_lib_save_LIBS
=$LIBS
5142 cat >conftest.
$ac_ext <<_ACEOF
5145 cat confdefs.h
>>conftest.
$ac_ext
5146 cat >>conftest.
$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5149 /* Override any gcc2 internal prototype to avoid an error. */
5153 /* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5155 char bindtextdomain ();
5164 rm -f conftest.
$ac_objext conftest
$ac_exeext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5166 (eval $ac_link) 2>conftest.er1
5168 grep -v '^ *+' conftest.er1
>conftest.err
5170 cat conftest.err
>&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try
='test -z "$ac_c_werror_flag"
5174 || test ! -s conftest.err'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; } &&
5180 { ac_try
='test -s conftest$ac_exeext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_cv_lib_intl_bindtextdomain
=yes
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.
$ac_ext >&5
5191 ac_cv_lib_intl_bindtextdomain
=no
5193 rm -f conftest.err conftest.
$ac_objext \
5194 conftest
$ac_exeext conftest.
$ac_ext
5195 LIBS
=$ac_check_lib_save_LIBS
5197 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5198 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5199 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5200 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5201 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5202 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 cat >conftest.
$ac_ext <<_ACEOF
5208 cat confdefs.h
>>conftest.
$ac_ext
5209 cat >>conftest.
$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5215 return (int) gettext ("")
5220 rm -f conftest.
$ac_objext conftest
$ac_exeext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5222 (eval $ac_link) 2>conftest.er1
5224 grep -v '^ *+' conftest.er1
>conftest.err
5226 cat conftest.err
>&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try
='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try
='test -s conftest$ac_exeext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 gt_cv_func_gettext_libintl
=yes
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.
$ac_ext >&5
5247 gt_cv_func_gettext_libintl
=no
5249 rm -f conftest.err conftest.
$ac_objext \
5250 conftest
$ac_exeext conftest.
$ac_ext
5252 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5253 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5258 if test "$gt_cv_func_gettext_libc" = "yes" \
5259 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5261 cat >>confdefs.h
<<\_ACEOF
5262 #define HAVE_GETTEXT 1
5265 # Extract the first word of "msgfmt", so it can be a program name with args.
5266 set dummy msgfmt
; ac_word
=$2
5267 echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269 if test "${ac_cv_path_MSGFMT+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5277 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5278 for ac_dir
in $PATH; do
5279 test -z "$ac_dir" && ac_dir
=.
5280 if test -f $ac_dir/$ac_word; then
5281 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5282 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5288 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5292 MSGFMT
="$ac_cv_path_MSGFMT"
5293 if test -n "$MSGFMT"; then
5294 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5295 echo "${ECHO_T}$MSGFMT" >&6
5297 echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5300 if test "$MSGFMT" != "no"; then
5302 for ac_func
in dcgettext
5304 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5305 echo "$as_me:$LINENO: checking for $ac_func" >&5
5306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5307 if eval "test \"\${$as_ac_var+set}\" = set"; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 cat >conftest.
$ac_ext <<_ACEOF
5313 cat confdefs.h
>>conftest.
$ac_ext
5314 cat >>conftest.
$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5318 #define $ac_func innocuous_$ac_func
5320 /* System header to define __stub macros and hopefully few prototypes,
5321 which can conflict with char $ac_func (); below.
5322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5323 <limits.h> exists even on freestanding compilers. */
5326 # include <limits.h>
5328 # include <assert.h>
5333 /* Override any gcc2 internal prototype to avoid an error. */
5338 /* We use char because int might match the return type of a gcc2
5339 builtin and then its argument prototype would still apply. */
5341 /* The GNU C library defines this for functions which it implements
5342 to always fail with ENOSYS. Some functions are actually named
5343 something starting with __ and the normal name is an alias. */
5344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5347 char (*f) () = $ac_func;
5356 return f != $ac_func;
5361 rm -f conftest.
$ac_objext conftest
$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>conftest.er1
5365 grep -v '^ *+' conftest.er1
>conftest.err
5367 cat conftest.err
>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try
='test -z "$ac_c_werror_flag"
5371 || test ! -s conftest.err'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; } &&
5377 { ac_try
='test -s conftest$ac_exeext'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 eval "$as_ac_var=yes"
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.
$ac_ext >&5
5388 eval "$as_ac_var=no"
5390 rm -f conftest.err conftest.
$ac_objext \
5391 conftest
$ac_exeext conftest.
$ac_ext
5393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5395 if test `eval echo '${'$as_ac_var'}'` = yes; then
5396 cat >>confdefs.h
<<_ACEOF
5397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5403 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5404 set dummy gmsgfmt
; ac_word
=$2
5405 echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5407 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir
=.
5420 for ac_exec_ext
in '' $ac_executable_extensions; do
5421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5433 GMSGFMT
=$ac_cv_path_GMSGFMT
5435 if test -n "$GMSGFMT"; then
5436 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5437 echo "${ECHO_T}$GMSGFMT" >&6
5439 echo "$as_me:$LINENO: result: no" >&5
5440 echo "${ECHO_T}no" >&6
5443 # Extract the first word of "xgettext", so it can be a program name with args.
5444 set dummy xgettext
; ac_word
=$2
5445 echo "$as_me:$LINENO: checking for $ac_word" >&5
5446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5447 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5455 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5456 for ac_dir
in $PATH; do
5457 test -z "$ac_dir" && ac_dir
=.
5458 if test -f $ac_dir/$ac_word; then
5459 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5460 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5466 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5470 XGETTEXT
="$ac_cv_path_XGETTEXT"
5471 if test -n "$XGETTEXT"; then
5472 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5473 echo "${ECHO_T}$XGETTEXT" >&6
5475 echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6
5479 cat >conftest.
$ac_ext <<_ACEOF
5482 cat confdefs.h
>>conftest.
$ac_ext
5483 cat >>conftest.
$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5489 extern int _nl_msg_cat_cntr;
5490 return _nl_msg_cat_cntr
5495 rm -f conftest.
$ac_objext conftest
$ac_exeext
5496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5497 (eval $ac_link) 2>conftest.er1
5499 grep -v '^ *+' conftest.er1
>conftest.err
5501 cat conftest.err
>&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try
='test -z "$ac_c_werror_flag"
5505 || test ! -s conftest.err'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try
='test -s conftest$ac_exeext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.
$ac_ext >&5
5526 rm -f conftest.err conftest.
$ac_objext \
5527 conftest
$ac_exeext conftest.
$ac_ext
5537 if test x
"$CATOBJEXT" = x
&& test -d $srcdir/..
/intl
; then
5538 # Neither gettext nor catgets in included in the C library.
5539 # Fall back on GNU gettext library (assuming it is present).
5540 nls_cv_use_gnu_gettext
=yes
5544 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5545 INTLOBJS
="\$(GETTOBJS)"
5546 # Extract the first word of "msgfmt", so it can be a program name with args.
5547 set dummy msgfmt
; ac_word
=$2
5548 echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550 if test "${ac_cv_path_MSGFMT+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5558 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5559 for ac_dir
in $PATH; do
5560 test -z "$ac_dir" && ac_dir
=.
5561 if test -f $ac_dir/$ac_word; then
5562 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5563 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5569 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5573 MSGFMT
="$ac_cv_path_MSGFMT"
5574 if test -n "$MSGFMT"; then
5575 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5576 echo "${ECHO_T}$MSGFMT" >&6
5578 echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5582 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5583 set dummy gmsgfmt
; ac_word
=$2
5584 echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir
=.
5599 for ac_exec_ext
in '' $ac_executable_extensions; do
5600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5612 GMSGFMT
=$ac_cv_path_GMSGFMT
5614 if test -n "$GMSGFMT"; then
5615 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5616 echo "${ECHO_T}$GMSGFMT" >&6
5618 echo "$as_me:$LINENO: result: no" >&5
5619 echo "${ECHO_T}no" >&6
5622 # Extract the first word of "xgettext", so it can be a program name with args.
5623 set dummy xgettext
; ac_word
=$2
5624 echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5635 for ac_dir
in $PATH; do
5636 test -z "$ac_dir" && ac_dir
=.
5637 if test -f $ac_dir/$ac_word; then
5638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5639 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5645 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5649 XGETTEXT
="$ac_cv_path_XGETTEXT"
5650 if test -n "$XGETTEXT"; then
5651 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5652 echo "${ECHO_T}$XGETTEXT" >&6
5654 echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5659 USE_INCLUDED_LIBINTL
=yes
5663 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5665 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5666 nls_cv_header_intl
=libintl.h
5667 nls_cv_header_libgt
=libgettext.h
5670 if test "$XGETTEXT" != ":"; then
5671 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5674 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5675 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5680 # We need to process the po/ directory.
5684 nls_cv_header_intl
=libintl.h
5685 nls_cv_header_libgt
=libgettext.h
5688 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5689 # because some of the sources are only built for this goal.
5690 if test "$PACKAGE" = gettext; then
5692 USE_INCLUDED_LIBINTL
=yes
5695 for lang
in $ALL_LINGUAS; do
5696 GMOFILES
="$GMOFILES $lang.gmo"
5697 POFILES
="$POFILES $lang.po"
5711 if test "x$CATOBJEXT" != "x"; then
5713 cat >>confdefs.h
<<\_ACEOF
5714 #define ENABLE_NLS 1
5720 if test "x$CATOBJEXT" != "x"; then
5721 if test "x$ALL_LINGUAS" = "x"; then
5724 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5725 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5727 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5728 case "$ALL_LINGUAS" in
5729 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5732 LINGUAS
=$NEW_LINGUAS
5733 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5734 echo "${ECHO_T}$LINGUAS" >&6
5737 if test -n "$LINGUAS"; then
5738 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5742 if test $ac_cv_header_locale_h = yes; then
5743 INCLUDE_LOCALE_H
="#include <locale.h>"
5746 /* The system does not provide the header <locale.h>. Take care yourself. */"
5750 if test -f $srcdir/po2tbl.
sed.
in; then
5751 if test "$CATOBJEXT" = ".cat"; then
5752 if test "${ac_cv_header_linux_version_h+set}" = set; then
5753 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5754 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5755 if test "${ac_cv_header_linux_version_h+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5759 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5761 # Is the header compilable?
5762 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5763 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5764 cat >conftest.
$ac_ext <<_ACEOF
5767 cat confdefs.h
>>conftest.
$ac_ext
5768 cat >>conftest.
$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 $ac_includes_default
5771 #include <linux/version.h>
5773 rm -f conftest.
$ac_objext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>conftest.er1
5777 grep -v '^ *+' conftest.er1
>conftest.err
5779 cat conftest.err
>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try
='test -z "$ac_c_werror_flag"
5783 || test ! -s conftest.err'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; } &&
5789 { ac_try
='test -s conftest.$ac_objext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_header_compiler
=yes
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.
$ac_ext >&5
5800 ac_header_compiler
=no
5802 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5804 echo "${ECHO_T}$ac_header_compiler" >&6
5806 # Is the header present?
5807 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5808 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5809 cat >conftest.
$ac_ext <<_ACEOF
5812 cat confdefs.h
>>conftest.
$ac_ext
5813 cat >>conftest.
$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 #include <linux/version.h>
5817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5818 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5820 grep -v '^ *+' conftest.er1
>conftest.err
5822 cat conftest.err
>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } >/dev
/null
; then
5825 if test -s conftest.err
; then
5826 ac_cpp_err
=$ac_c_preproc_warn_flag
5827 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5834 if test -z "$ac_cpp_err"; then
5835 ac_header_preproc
=yes
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.
$ac_ext >&5
5840 ac_header_preproc
=no
5842 rm -f conftest.err conftest.
$ac_ext
5843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5844 echo "${ECHO_T}$ac_header_preproc" >&6
5846 # So? What about this header?
5847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5849 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5850 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5851 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5852 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5853 ac_header_preproc
=yes
5856 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5857 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5858 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5859 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5861 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5863 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5865 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5867 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5870 ## ------------------------------------------ ##
5871 ## Report this to the AC_PACKAGE_NAME lists. ##
5872 ## ------------------------------------------ ##
5875 sed "s/^/$as_me: WARNING: /" >&2
5878 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5879 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5880 if test "${ac_cv_header_linux_version_h+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 ac_cv_header_linux_version_h
=$ac_header_preproc
5885 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5886 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5889 if test $ac_cv_header_linux_version_h = yes; then
5897 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5899 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5900 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5903 if test "$PACKAGE" = "gettext"; then
5913 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5919 if test -f $srcdir/po
/POTFILES.
in; then
5920 test -d po || mkdir po
5921 if test "x$srcdir" != "x."; then
5922 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5923 posrcprefix
="$srcdir/"
5925 posrcprefix
="../$srcdir/"
5931 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5932 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5936 # Check for common headers.
5937 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5938 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5944 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5946 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5948 echo "$as_me:$LINENO: checking for $ac_header" >&5
5949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5956 # Is the header compilable?
5957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5959 cat >conftest.
$ac_ext <<_ACEOF
5962 cat confdefs.h
>>conftest.
$ac_ext
5963 cat >>conftest.
$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 #include <$ac_header>
5968 rm -f conftest.
$ac_objext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>conftest.er1
5972 grep -v '^ *+' conftest.er1
>conftest.err
5974 cat conftest.err
>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try
='test -z "$ac_c_werror_flag"
5978 || test ! -s conftest.err'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; } &&
5984 { ac_try
='test -s conftest.$ac_objext'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 ac_header_compiler
=yes
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.
$ac_ext >&5
5995 ac_header_compiler
=no
5997 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5999 echo "${ECHO_T}$ac_header_compiler" >&6
6001 # Is the header present?
6002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6004 cat >conftest.
$ac_ext <<_ACEOF
6007 cat confdefs.h
>>conftest.
$ac_ext
6008 cat >>conftest.
$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 #include <$ac_header>
6012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6013 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1
>conftest.err
6017 cat conftest.err
>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } >/dev
/null
; then
6020 if test -s conftest.err
; then
6021 ac_cpp_err
=$ac_c_preproc_warn_flag
6022 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6029 if test -z "$ac_cpp_err"; then
6030 ac_header_preproc
=yes
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.
$ac_ext >&5
6035 ac_header_preproc
=no
6037 rm -f conftest.err conftest.
$ac_ext
6038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6039 echo "${ECHO_T}$ac_header_preproc" >&6
6041 # So? What about this header?
6042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6048 ac_header_preproc
=yes
6051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6065 ## ------------------------------------------ ##
6066 ## Report this to the AC_PACKAGE_NAME lists. ##
6067 ## ------------------------------------------ ##
6070 sed "s/^/$as_me: WARNING: /" >&2
6073 echo "$as_me:$LINENO: checking for $ac_header" >&5
6074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 eval "$as_ac_Header=\$ac_header_preproc"
6080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6085 cat >>confdefs.h
<<_ACEOF
6086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095 for ac_header
in sys
/time.h sys
/resource.h
6097 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099 echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6107 # Is the header compilable?
6108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6110 cat >conftest.
$ac_ext <<_ACEOF
6113 cat confdefs.h
>>conftest.
$ac_ext
6114 cat >>conftest.
$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 $ac_includes_default
6117 #include <$ac_header>
6119 rm -f conftest.
$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1
>conftest.err
6125 cat conftest.err
>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try
='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try
='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_header_compiler
=yes
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.
$ac_ext >&5
6146 ac_header_compiler
=no
6148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6150 echo "${ECHO_T}$ac_header_compiler" >&6
6152 # Is the header present?
6153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6155 cat >conftest.
$ac_ext <<_ACEOF
6158 cat confdefs.h
>>conftest.
$ac_ext
6159 cat >>conftest.
$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <$ac_header>
6163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6164 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6166 grep -v '^ *+' conftest.er1
>conftest.err
6168 cat conftest.err
>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } >/dev
/null
; then
6171 if test -s conftest.err
; then
6172 ac_cpp_err
=$ac_c_preproc_warn_flag
6173 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6180 if test -z "$ac_cpp_err"; then
6181 ac_header_preproc
=yes
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.
$ac_ext >&5
6186 ac_header_preproc
=no
6188 rm -f conftest.err conftest.
$ac_ext
6189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6190 echo "${ECHO_T}$ac_header_preproc" >&6
6192 # So? What about this header?
6193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6199 ac_header_preproc
=yes
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6216 ## ------------------------------------------ ##
6217 ## Report this to the AC_PACKAGE_NAME lists. ##
6218 ## ------------------------------------------ ##
6221 sed "s/^/$as_me: WARNING: /" >&2
6224 echo "$as_me:$LINENO: checking for $ac_header" >&5
6225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 eval "$as_ac_Header=\$ac_header_preproc"
6231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6236 cat >>confdefs.h
<<_ACEOF
6237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6246 for ac_header
in fcntl.h fpu_control.h
6248 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo "$as_me:$LINENO: checking for $ac_header" >&5
6251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6258 # Is the header compilable?
6259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6268 #include <$ac_header>
6270 rm -f conftest.
$ac_objext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>conftest.er1
6274 grep -v '^ *+' conftest.er1
>conftest.err
6276 cat conftest.err
>&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try
='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try
='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_header_compiler
=yes
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.
$ac_ext >&5
6297 ac_header_compiler
=no
6299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6301 echo "${ECHO_T}$ac_header_compiler" >&6
6303 # Is the header present?
6304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6306 cat >conftest.
$ac_ext <<_ACEOF
6309 cat confdefs.h
>>conftest.
$ac_ext
6310 cat >>conftest.
$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <$ac_header>
6314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1
>conftest.err
6319 cat conftest.err
>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } >/dev
/null
; then
6322 if test -s conftest.err
; then
6323 ac_cpp_err
=$ac_c_preproc_warn_flag
6324 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6331 if test -z "$ac_cpp_err"; then
6332 ac_header_preproc
=yes
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.
$ac_ext >&5
6337 ac_header_preproc
=no
6339 rm -f conftest.err conftest.
$ac_ext
6340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6341 echo "${ECHO_T}$ac_header_preproc" >&6
6343 # So? What about this header?
6344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6350 ac_header_preproc
=yes
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6367 ## ------------------------------------------ ##
6368 ## Report this to the AC_PACKAGE_NAME lists. ##
6369 ## ------------------------------------------ ##
6372 sed "s/^/$as_me: WARNING: /" >&2
6375 echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 eval "$as_ac_Header=\$ac_header_preproc"
6382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 cat >>confdefs.h
<<_ACEOF
6388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6398 for ac_header
in dlfcn.h errno.h sys
/stat.h
6400 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo "$as_me:$LINENO: checking for $ac_header" >&5
6403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6410 # Is the header compilable?
6411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6413 cat >conftest.
$ac_ext <<_ACEOF
6416 cat confdefs.h
>>conftest.
$ac_ext
6417 cat >>conftest.
$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 #include <$ac_header>
6422 rm -f conftest.
$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>conftest.er1
6426 grep -v '^ *+' conftest.er1
>conftest.err
6428 cat conftest.err
>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try
='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try
='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler
=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.
$ac_ext >&5
6449 ac_header_compiler
=no
6451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458 cat >conftest.
$ac_ext <<_ACEOF
6461 cat confdefs.h
>>conftest.
$ac_ext
6462 cat >>conftest.
$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <$ac_header>
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6469 grep -v '^ *+' conftest.er1
>conftest.err
6471 cat conftest.err
>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev
/null
; then
6474 if test -s conftest.err
; then
6475 ac_cpp_err
=$ac_c_preproc_warn_flag
6476 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6483 if test -z "$ac_cpp_err"; then
6484 ac_header_preproc
=yes
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.
$ac_ext >&5
6489 ac_header_preproc
=no
6491 rm -f conftest.err conftest.
$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc
=yes
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6519 ## ------------------------------------------ ##
6520 ## Report this to the AC_PACKAGE_NAME lists. ##
6521 ## ------------------------------------------ ##
6524 sed "s/^/$as_me: WARNING: /" >&2
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 eval "$as_ac_Header=\$ac_header_preproc"
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h
<<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551 for ac_func
in getrusage
time sigaction __setfpucw
6553 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6554 echo "$as_me:$LINENO: checking for $ac_func" >&5
6555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6556 if eval "test \"\${$as_ac_var+set}\" = set"; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 cat >conftest.
$ac_ext <<_ACEOF
6562 cat confdefs.h
>>conftest.
$ac_ext
6563 cat >>conftest.
$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6567 #define $ac_func innocuous_$ac_func
6569 /* System header to define __stub macros and hopefully few prototypes,
6570 which can conflict with char $ac_func (); below.
6571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6572 <limits.h> exists even on freestanding compilers. */
6575 # include <limits.h>
6577 # include <assert.h>
6582 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6590 /* The GNU C library defines this for functions which it implements
6591 to always fail with ENOSYS. Some functions are actually named
6592 something starting with __ and the normal name is an alias. */
6593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6596 char (*f) () = $ac_func;
6605 return f != $ac_func;
6610 rm -f conftest.
$ac_objext conftest
$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>conftest.er1
6614 grep -v '^ *+' conftest.er1
>conftest.err
6616 cat conftest.err
>&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try
='test -z "$ac_c_werror_flag"
6620 || test ! -s conftest.err'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try
='test -s conftest$ac_exeext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 eval "$as_ac_var=yes"
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.
$ac_ext >&5
6637 eval "$as_ac_var=no"
6639 rm -f conftest.err conftest.
$ac_objext \
6640 conftest
$ac_exeext conftest.
$ac_ext
6642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6644 if test `eval echo '${'$as_ac_var'}'` = yes; then
6645 cat >>confdefs.h
<<_ACEOF
6646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6653 # Check for socket libraries
6655 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6656 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6657 if test "${ac_cv_lib_socket_bind+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 ac_check_lib_save_LIBS
=$LIBS
6661 LIBS
="-lsocket $LIBS"
6662 cat >conftest.
$ac_ext <<_ACEOF
6665 cat confdefs.h
>>conftest.
$ac_ext
6666 cat >>conftest.
$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6669 /* Override any gcc2 internal prototype to avoid an error. */
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6684 rm -f conftest.
$ac_objext conftest
$ac_exeext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6686 (eval $ac_link) 2>conftest.er1
6688 grep -v '^ *+' conftest.er1
>conftest.err
6690 cat conftest.err
>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try
='test -z "$ac_c_werror_flag"
6694 || test ! -s conftest.err'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; } &&
6700 { ac_try
='test -s conftest$ac_exeext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_lib_socket_bind
=yes
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.
$ac_ext >&5
6711 ac_cv_lib_socket_bind
=no
6713 rm -f conftest.err conftest.
$ac_objext \
6714 conftest
$ac_exeext conftest.
$ac_ext
6715 LIBS
=$ac_check_lib_save_LIBS
6717 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6718 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6719 if test $ac_cv_lib_socket_bind = yes; then
6720 cat >>confdefs.h
<<_ACEOF
6721 #define HAVE_LIBSOCKET 1
6724 LIBS
="-lsocket $LIBS"
6729 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6730 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6731 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 ac_check_lib_save_LIBS
=$LIBS
6736 cat >conftest.
$ac_ext <<_ACEOF
6739 cat confdefs.h
>>conftest.
$ac_ext
6740 cat >>conftest.
$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6743 /* Override any gcc2 internal prototype to avoid an error. */
6747 /* We use char because int might match the return type of a gcc2
6748 builtin and then its argument prototype would still apply. */
6749 char gethostbyname ();
6758 rm -f conftest.
$ac_objext conftest
$ac_exeext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>conftest.er1
6762 grep -v '^ *+' conftest.er1
>conftest.err
6764 cat conftest.err
>&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } &&
6767 { ac_try
='test -z "$ac_c_werror_flag"
6768 || test ! -s conftest.err'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try
='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 ac_cv_lib_nsl_gethostbyname
=yes
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.
$ac_ext >&5
6785 ac_cv_lib_nsl_gethostbyname
=no
6787 rm -f conftest.err conftest.
$ac_objext \
6788 conftest
$ac_exeext conftest.
$ac_ext
6789 LIBS
=$ac_check_lib_save_LIBS
6791 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6792 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6793 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6794 cat >>confdefs.h
<<_ACEOF
6795 #define HAVE_LIBNSL 1
6803 .
${srcdir}/..
/..
/bfd
/configure.
host
6807 USE_MAINTAINER_MODE
=no
6808 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6809 if test "${enable_maintainer_mode+set}" = set; then
6810 enableval
="$enable_maintainer_mode"
6811 case "${enableval}" in
6812 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6814 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6815 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6816 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6818 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6819 echo "Setting maintainer mode" 6>&1
6826 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6827 if test "${enable_sim_bswap+set}" = set; then
6828 enableval
="$enable_sim_bswap"
6829 case "${enableval}" in
6830 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6831 no
) sim_bswap
="-DWITH_BSWAP=0";;
6832 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6833 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6834 { (exit 1); exit 1; }; }; sim_bswap
="";;
6836 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6837 echo "Setting bswap flags = $sim_bswap" 6>&1
6844 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6845 if test "${enable_sim_cflags+set}" = set; then
6846 enableval
="$enable_sim_cflags"
6847 case "${enableval}" in
6848 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6849 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6850 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6851 { (exit 1); exit 1; }; }; sim_cflags
="";;
6853 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6855 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6856 echo "Setting sim cflags = $sim_cflags" 6>&1
6863 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6864 if test "${enable_sim_debug+set}" = set; then
6865 enableval
="$enable_sim_debug"
6866 case "${enableval}" in
6867 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6868 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6869 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6871 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6872 echo "Setting sim debug = $sim_debug" 6>&1
6879 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6880 if test "${enable_sim_stdio+set}" = set; then
6881 enableval
="$enable_sim_stdio"
6882 case "${enableval}" in
6883 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6884 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6885 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6886 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6887 { (exit 1); exit 1; }; }; sim_stdio
="";;
6889 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6890 echo "Setting stdio flags = $sim_stdio" 6>&1
6897 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6898 if test "${enable_sim_trace+set}" = set; then
6899 enableval
="$enable_sim_trace"
6900 case "${enableval}" in
6901 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6902 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6904 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6907 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6908 if test x
"$sim_trace" = x
; then
6909 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6911 sim_trace
="${sim_trace}|TRACE_$x"
6914 sim_trace
="$sim_trace)'" ;;
6916 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6917 echo "Setting sim trace = $sim_trace" 6>&1
6924 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6925 if test "${enable_sim_profile+set}" = set; then
6926 enableval
="$enable_sim_profile"
6927 case "${enableval}" in
6928 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6929 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6931 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6934 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6935 if test x
"$sim_profile" = x
; then
6936 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6938 sim_profile
="${sim_profile}|PROFILE_$x"
6941 sim_profile
="$sim_profile)'" ;;
6943 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6944 echo "Setting sim profile = $sim_profile" 6>&1
6947 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6951 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6952 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6953 if test "${ac_cv_type_signal+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 cat >conftest.
$ac_ext <<_ACEOF
6959 cat confdefs.h
>>conftest.
$ac_ext
6960 cat >>conftest.
$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <sys/types.h>
6968 extern "C" void (*signal (int, void (*)(int)))(int);
6970 void (*signal ()) ();
6981 rm -f conftest.
$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6985 grep -v '^ *+' conftest.er1
>conftest.err
6987 cat conftest.err
>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try
='test -z "$ac_c_werror_flag"
6991 || test ! -s conftest.err'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; } &&
6997 { ac_try
='test -s conftest.$ac_objext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7003 ac_cv_type_signal
=void
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.
$ac_ext >&5
7008 ac_cv_type_signal
=int
7010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7012 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7013 echo "${ECHO_T}$ac_cv_type_signal" >&6
7015 cat >>confdefs.h
<<_ACEOF
7016 #define RETSIGTYPE $ac_cv_type_signal
7026 sim_link_links
=tconfig.h
7027 if test -f ${srcdir}/tconfig.
in
7029 sim_link_files
=tconfig.
in
7031 sim_link_files
=..
/common
/tconfig.
in
7034 # targ-vals.def points to the libc macro description file.
7036 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
7038 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
7039 sim_link_links
="${sim_link_links} targ-vals.def"
7043 default_sim_inline
=""
7044 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7045 if test "${enable_sim_inline+set}" = set; then
7046 enableval
="$enable_sim_inline"
7048 case "$enableval" in
7049 no
) sim_inline
="-DDEFAULT_INLINE=0";;
7050 0) sim_inline
="-DDEFAULT_INLINE=0";;
7051 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
7052 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
7053 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
7056 *_INLINE
=*) new_flag
="-D$x";;
7057 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7058 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
7059 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
7061 if test x
"$sim_inline" = x
""; then
7062 sim_inline
="$new_flag"
7064 sim_inline
="$sim_inline $new_flag"
7068 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
7069 echo "Setting inline flags = $sim_inline" 6>&1
7073 if test "x$cross_compiling" = "xno"; then
7074 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
7075 sim_inline
="${default_sim_inline}"
7076 if test x
"$silent" != x
"yes"; then
7077 echo "Setting inline flags = $sim_inline" 6>&1
7083 sim_inline
="-DDEFAULT_INLINE=0"
7086 wire_alignment
="NONSTRICT_ALIGNMENT"
7087 default_alignment
=""
7089 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7090 if test "${enable_sim_alignment+set}" = set; then
7091 enableval
="$enable_sim_alignment"
7092 case "${enableval}" in
7093 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7094 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7095 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7096 yes) if test x
"$wire_alignment" != x
; then
7097 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7099 if test x
"$default_alignment" != x
; then
7100 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
7102 echo "No hard-wired alignment for target $target" 1>&6
7103 sim_alignment
="-DWITH_ALIGNMENT=0"
7106 no
) if test x
"$default_alignment" != x
; then
7107 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7109 if test x
"$wire_alignment" != x
; then
7110 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7112 echo "No default alignment for target $target" 1>&6
7113 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
7116 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7117 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7118 { (exit 1); exit 1; }; }; sim_alignment
="";;
7120 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
7121 echo "Setting alignment flags = $sim_alignment" 6>&1
7124 if test x
"$default_alignment" != x
; then
7125 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7127 if test x
"$wire_alignment" != x
; then
7128 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7135 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7136 if test "${enable_sim_hostendian+set}" = set; then
7137 enableval
="$enable_sim_hostendian"
7138 case "${enableval}" in
7139 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
7140 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7141 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7142 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7143 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7144 { (exit 1); exit 1; }; }; sim_hostendian
="";;
7146 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
7147 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7151 if test "x$cross_compiling" = "xno"; then
7152 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7153 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7154 if test "${ac_cv_c_bigendian+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 # See if sys/param.h defines the BYTE_ORDER macro.
7158 cat >conftest.
$ac_ext <<_ACEOF
7161 cat confdefs.h
>>conftest.
$ac_ext
7162 cat >>conftest.
$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7164 #include <sys/types.h>
7165 #include <sys/param.h>
7170 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7178 rm -f conftest.
$ac_objext
7179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180 (eval $ac_compile) 2>conftest.er1
7182 grep -v '^ *+' conftest.er1
>conftest.err
7184 cat conftest.err
>&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try
='test -z "$ac_c_werror_flag"
7188 || test ! -s conftest.err'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; } &&
7194 { ac_try
='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 # It does; now see whether it defined to BIG_ENDIAN or not.
7201 cat >conftest.
$ac_ext <<_ACEOF
7204 cat confdefs.h
>>conftest.
$ac_ext
7205 cat >>conftest.
$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 #include <sys/types.h>
7208 #include <sys/param.h>
7213 #if BYTE_ORDER != BIG_ENDIAN
7221 rm -f conftest.
$ac_objext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223 (eval $ac_compile) 2>conftest.er1
7225 grep -v '^ *+' conftest.er1
>conftest.err
7227 cat conftest.err
>&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } &&
7230 { ac_try
='test -z "$ac_c_werror_flag"
7231 || test ! -s conftest.err'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; } &&
7237 { ac_try
='test -s conftest.$ac_objext'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
7243 ac_cv_c_bigendian
=yes
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.
$ac_ext >&5
7248 ac_cv_c_bigendian
=no
7250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.
$ac_ext >&5
7255 # It does not; compile a test program.
7256 if test "$cross_compiling" = yes; then
7257 # try to guess the endianness by grepping values into an object file
7258 ac_cv_c_bigendian
=unknown
7259 cat >conftest.
$ac_ext <<_ACEOF
7262 cat confdefs.h
>>conftest.
$ac_ext
7263 cat >>conftest.
$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7266 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7267 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7268 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7269 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7270 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7274 _ascii (); _ebcdic ();
7279 rm -f conftest.
$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7283 grep -v '^ *+' conftest.er1
>conftest.err
7285 cat conftest.err
>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try
='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try
='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7302 ac_cv_c_bigendian
=yes
7304 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7305 if test "$ac_cv_c_bigendian" = unknown
; then
7306 ac_cv_c_bigendian
=no
7308 # finding both strings is unlikely to happen, but who knows?
7309 ac_cv_c_bigendian
=unknown
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.
$ac_ext >&5
7317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7319 cat >conftest.
$ac_ext <<_ACEOF
7322 cat confdefs.h
>>conftest.
$ac_ext
7323 cat >>conftest.
$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7328 /* Are we little or big endian? From Harbison&Steele. */
7332 char c[sizeof (long)];
7335 exit (u.c[sizeof (long) - 1] == 1);
7338 rm -f conftest
$ac_exeext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7340 (eval $ac_link) 2>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_c_bigendian
=no
7351 echo "$as_me: program exited with status $ac_status" >&5
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.
$ac_ext >&5
7356 ac_cv_c_bigendian
=yes
7358 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7361 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7364 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7365 case $ac_cv_c_bigendian in
7368 cat >>confdefs.h
<<\_ACEOF
7369 #define WORDS_BIGENDIAN 1
7375 { { echo "$as_me:$LINENO: error: unknown endianness
7376 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7377 echo "$as_me: error: unknown endianness
7378 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7379 { (exit 1); exit 1; }; } ;;
7382 if test $ac_cv_c_bigendian = yes; then
7383 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7385 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7388 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7392 # NOTE: Don't add -Wall or -Wunused, they both include
7393 # -Wunused-parameter which reports bogus warnings.
7394 # NOTE: If you add to this list, remember to update
7395 # gdb/doc/gdbint.texinfo.
7396 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7397 -Wformat -Wparentheses -Wpointer-arith"
7398 # GCC supports -Wuninitialized only with -O or -On, n != 0.
7399 if test x
${CFLAGS+set} = xset
; then
7403 build_warnings
="${build_warnings} -Wuninitialized"
7407 build_warnings
="${build_warnings} -Wuninitialized"
7409 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7410 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7411 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7412 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7413 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7414 # -Woverloaded-virtual -Winline -Werror"
7415 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7416 if test "${enable_build_warnings+set}" = set; then
7417 enableval
="$enable_build_warnings"
7418 case "${enableval}" in
7420 no
) build_warnings
="-w";;
7421 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7422 build_warnings
="${build_warnings} ${t}";;
7423 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7424 build_warnings
="${t} ${build_warnings}";;
7425 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7427 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7428 echo "Setting compiler warning flags = $build_warnings" 6>&1
7430 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7431 if test "${enable_sim_build_warnings+set}" = set; then
7432 enableval
="$enable_sim_build_warnings"
7433 case "${enableval}" in
7435 no
) build_warnings
="-w";;
7436 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7437 build_warnings
="${build_warnings} ${t}";;
7438 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7439 build_warnings
="${t} ${build_warnings}";;
7440 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7442 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7443 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7447 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7449 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7450 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7451 # Separate out the -Werror flag as some files just cannot be
7452 # compiled with it enabled.
7453 for w
in ${build_warnings}; do
7455 -Werr*) WERROR_CFLAGS
=-Werror ;;
7456 *) # Check that GCC accepts it
7457 saved_CFLAGS
="$CFLAGS"
7459 cat >conftest.
$ac_ext <<_ACEOF
7462 cat confdefs.h
>>conftest.
$ac_ext
7463 cat >>conftest.
$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7474 rm -f conftest.
$ac_objext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476 (eval $ac_compile) 2>conftest.er1
7478 grep -v '^ *+' conftest.er1
>conftest.err
7480 cat conftest.err
>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try
='test -z "$ac_c_werror_flag"
7484 || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try
='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.
$ac_ext >&5
7502 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7503 CFLAGS
="$saved_CFLAGS"
7506 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7507 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7512 # Add simulated hardware devices
7516 m68hc11-
*-*|m6811-
*-*)
7518 hw_extra_devices
="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram"
7519 m68hc11_extra_objs
="dv-sockser.o"
7520 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_M68HC11=1"
7523 m68hc11_extra_objs
=""
7527 if test x
"$hw_enabled" = x
"yes"; then
7532 if test "$hw_devices"; then
7533 hardware
="core pal glue"
7535 hardware
="core pal glue $hw_extra_devices"
7537 sim_hw_cflags
="-DWITH_HW=1"
7539 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7540 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7541 if test "${enable_sim_hardware+set}" = set; then
7542 enableval
="$enable_sim_hardware"
7544 case "${enableval}" in
7547 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7548 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7549 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7551 if test "$sim_hw_p" != yes; then
7553 sim_hw_cflags
="-DWITH_HW=0"
7556 sim_hw_cflags
="-DWITH_HW=1"
7559 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
7560 for i
in $hardware ; do
7563 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
7567 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
7568 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7572 if test "$sim_hw_p" != yes; then
7574 sim_hw_cflags
="-DWITH_HW=0"
7577 if test x
"$silent" != x
"yes"; then
7578 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7587 for ac_header
in string.h
strings.h stdlib.h stdlib.h fcntl.h
7589 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7591 echo "$as_me:$LINENO: checking for $ac_header" >&5
7592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7599 # Is the header compilable?
7600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7602 cat >conftest.
$ac_ext <<_ACEOF
7605 cat confdefs.h
>>conftest.
$ac_ext
7606 cat >>conftest.
$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7608 $ac_includes_default
7609 #include <$ac_header>
7611 rm -f conftest.
$ac_objext
7612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7613 (eval $ac_compile) 2>conftest.er1
7615 grep -v '^ *+' conftest.er1
>conftest.err
7617 cat conftest.err
>&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try
='test -z "$ac_c_werror_flag"
7621 || test ! -s conftest.err'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try
='test -s conftest.$ac_objext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_header_compiler
=yes
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.
$ac_ext >&5
7638 ac_header_compiler
=no
7640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642 echo "${ECHO_T}$ac_header_compiler" >&6
7644 # Is the header present?
7645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7647 cat >conftest.
$ac_ext <<_ACEOF
7650 cat confdefs.h
>>conftest.
$ac_ext
7651 cat >>conftest.
$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 #include <$ac_header>
7655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7656 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7658 grep -v '^ *+' conftest.er1
>conftest.err
7660 cat conftest.err
>&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } >/dev
/null
; then
7663 if test -s conftest.err
; then
7664 ac_cpp_err
=$ac_c_preproc_warn_flag
7665 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7672 if test -z "$ac_cpp_err"; then
7673 ac_header_preproc
=yes
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.
$ac_ext >&5
7678 ac_header_preproc
=no
7680 rm -f conftest.err conftest.
$ac_ext
7681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7682 echo "${ECHO_T}$ac_header_preproc" >&6
7684 # So? What about this header?
7685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7691 ac_header_preproc
=yes
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7708 ## ------------------------------------------ ##
7709 ## Report this to the AC_PACKAGE_NAME lists. ##
7710 ## ------------------------------------------ ##
7713 sed "s/^/$as_me: WARNING: /" >&2
7716 echo "$as_me:$LINENO: checking for $ac_header" >&5
7717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 eval "$as_ac_Header=\$ac_header_preproc"
7723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7728 cat >>confdefs.h
<<_ACEOF
7729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7740 ac_sources
="$sim_link_files"
7741 ac_dests
="$sim_link_links"
7742 while test -n "$ac_sources"; do
7743 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
7744 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
7745 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
7747 ac_config_links
="$ac_config_links $ac_config_links_1"
7750 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
7751 cgen_breaks
="break cgen_rtx_error";
7754 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
7756 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
7758 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
7760 ac_config_commands
="$ac_config_commands Makefile"
7762 ac_config_commands
="$ac_config_commands stamp-h"
7764 cat >confcache
<<\_ACEOF
7765 # This file is a shell script that caches the results of configure
7766 # tests run on this system so they can be shared between configure
7767 # scripts and configure runs, see configure's option --config-cache.
7768 # It is not useful on other systems. If it contains results you don't
7769 # want to keep, you may remove or edit it.
7771 # config.status only pays attention to the cache file if you give it
7772 # the --recheck option to rerun configure.
7774 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7775 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7780 # The following way of writing the cache mishandles newlines in values,
7781 # but we know of no workaround that is simple, portable, and efficient.
7782 # So, don't put newlines in cache variables' values.
7783 # Ultrix sh set writes to stderr and can't be redirected directly,
7784 # and sets the high bit in the cache file unless we assign to the vars.
7787 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7789 # `set' does not quote correctly, so add quotes (double-quote
7790 # substitution turns \\\\ into \\, and sed turns \\ into \).
7793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7796 # `set' quotes correctly as required by POSIX, so do not add quotes.
7798 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7805 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7807 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7809 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7810 if test -w $cache_file; then
7811 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7812 cat confcache
>$cache_file
7814 echo "not updating unwritable cache $cache_file"
7819 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7820 # Let make expand exec_prefix.
7821 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7823 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7824 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7825 # trailing colons and then remove the whole line if VPATH becomes empty
7826 # (actually we leave an empty line to preserve line numbers).
7827 if test "x$srcdir" = x.
; then
7828 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7829 s/:*\$(srcdir):*/:/;
7830 s/:*\${srcdir}:*/:/;
7832 s/^\([^=]*=[ ]*\):*/\1/;
7838 DEFS
=-DHAVE_CONFIG_H
7842 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7843 # 1. Remove the extension, and $U if already installed.
7844 ac_i
=`echo "$ac_i" |
7845 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7847 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7848 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7852 LTLIBOBJS
=$ac_ltlibobjs
7856 : ${CONFIG_STATUS=./config.status}
7857 ac_clean_files_save
=$ac_clean_files
7858 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7859 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7860 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7861 cat >$CONFIG_STATUS <<_ACEOF
7863 # Generated by $as_me.
7864 # Run this file to recreate the current configuration.
7865 # Compiler output produced by configure, useful for debugging
7866 # configure, is in config.log if it exists.
7871 SHELL=\${CONFIG_SHELL-$SHELL}
7874 cat >>$CONFIG_STATUS <<\_ACEOF
7875 ## --------------------- ##
7876 ## M4sh Initialization. ##
7877 ## --------------------- ##
7879 # Be Bourne compatible
7880 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7883 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7884 # is contrary to our usage. Disable this feature.
7885 alias -g '${1+"$@"}'='"$@"'
7886 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7889 DUALCASE
=1; export DUALCASE
# for MKS sh
7891 # Support unset when possible.
7892 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7899 # Work around bugs in pre-3.0 UWIN ksh.
7900 $as_unset ENV MAIL MAILPATH
7907 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7908 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7909 LC_TELEPHONE LC_TIME
7911 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7912 eval $as_var=C
; export $as_var
7918 # Required to use basename.
7919 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7925 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7926 as_basename
=basename
7932 # Name of the executable.
7933 as_me
=`$as_basename "$0" ||
7934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7935 X"$0" : 'X\(//\)$' \| \
7936 X"$0" : 'X\(/\)$' \| \
7937 . : '\(.\)' 2>/dev/null ||
7939 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7940 /^X\/\(\/\/\)$/{ s//\1/; q; }
7941 /^X\/\(\/\).*/{ s//\1/; q; }
7945 # PATH needs CR, and LINENO needs CR and PATH.
7946 # Avoid depending upon Character Ranges.
7947 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7948 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7949 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7950 as_cr_digits
='0123456789'
7951 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7953 # The user is always right.
7954 if test "${PATH_SEPARATOR+set}" != set; then
7955 echo "#! /bin/sh" >conf$$.sh
7956 echo "exit 0" >>conf$$.sh
7958 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7969 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7970 test "x$as_lineno_1" != "x$as_lineno_2" &&
7971 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7972 # Find who we are. Look in the path if we contain no path at all
7975 *[\\/]* ) as_myself
=$0 ;;
7976 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir
=.
7981 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7986 # We did not find ourselves, most probably we were run as `sh COMMAND'
7987 # in which case we are not to be found in the path.
7988 if test "x$as_myself" = x
; then
7991 if test ! -f "$as_myself"; then
7992 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7993 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7994 { (exit 1); exit 1; }; }
7996 case $CONFIG_SHELL in
7998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7999 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8002 test -z "$as_dir" && as_dir
=.
8003 for as_base
in sh bash ksh sh5
; do
8006 if ("$as_dir/$as_base" -c '
8009 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8010 test "x$as_lineno_1" != "x$as_lineno_2" &&
8011 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8012 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8013 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8014 CONFIG_SHELL
=$as_dir/$as_base
8016 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8024 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8025 # uniformly replaced by the line number. The first 'sed' inserts a
8026 # line-number line before each line; the second 'sed' does the real
8027 # work. The second script uses 'N' to pair each line-number line
8028 # with the numbered line, and appends trailing '-' during
8029 # substitution so that $LINENO is not a special case at line end.
8030 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8031 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8032 sed '=' <$as_myself |
8037 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8040 s,^['$as_cr_digits']*\n,,
8042 chmod +x
$as_me.lineno ||
8043 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8044 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8045 { (exit 1); exit 1; }; }
8047 # Don't try to exec as it changes $[0], causing all sort of problems
8048 # (the dirname of $[0] is not the place where we might find the
8049 # original and so on. Autoconf is especially sensible to this).
8051 # Exit status is that of the last command.
8056 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8057 *c
*,-n*) ECHO_N
= ECHO_C
='
8059 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8060 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8063 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8069 rm -f conf$$ conf$$.exe conf$$.
file
8071 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8072 # We could just check for DJGPP; but this test a) works b) is more generic
8073 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8074 if test -f conf$$.exe
; then
8075 # Don't use ln at all; we don't have any links
8080 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8085 rm -f conf$$ conf$$.exe conf$$.
file
8087 if mkdir
-p .
2>/dev
/null
; then
8090 test -d .
/-p && rmdir .
/-p
8094 as_executable_p
="test -f"
8096 # Sed expression to map a string onto a valid CPP name.
8097 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8099 # Sed expression to map a string onto a valid variable name.
8100 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8104 # We need space, tab and new line, in precisely that order.
8114 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8115 # report actual input values of CONFIG_FILES etc. instead of their
8116 # values after options handling. Logging --version etc. is OK.
8120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8121 ## Running $as_me. ##
8126 This file was extended by $as_me, which was
8127 generated by GNU Autoconf 2.59. Invocation command line was
8129 CONFIG_FILES = $CONFIG_FILES
8130 CONFIG_HEADERS = $CONFIG_HEADERS
8131 CONFIG_LINKS = $CONFIG_LINKS
8132 CONFIG_COMMANDS = $CONFIG_COMMANDS
8136 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8140 # Files that config.status was made for.
8141 if test -n "$ac_config_files"; then
8142 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8145 if test -n "$ac_config_headers"; then
8146 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8149 if test -n "$ac_config_links"; then
8150 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8153 if test -n "$ac_config_commands"; then
8154 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8157 cat >>$CONFIG_STATUS <<\_ACEOF
8160 \`$as_me' instantiates files from templates according to the
8161 current configuration.
8163 Usage: $0 [OPTIONS] [FILE]...
8165 -h, --help print this help, then exit
8166 -V, --version print version number, then exit
8167 -q, --quiet do not print progress messages
8168 -d, --debug don't remove temporary files
8169 --recheck update $as_me by reconfiguring in the same conditions
8170 --file=FILE[:TEMPLATE]
8171 instantiate the configuration file FILE
8172 --header=FILE[:TEMPLATE]
8173 instantiate the configuration header FILE
8175 Configuration files:
8178 Configuration headers:
8181 Configuration links:
8184 Configuration commands:
8187 Report bugs to <bug-autoconf@gnu.org>."
8190 cat >>$CONFIG_STATUS <<_ACEOF
8193 configured by $0, generated by GNU Autoconf 2.59,
8194 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8196 Copyright (C) 2003 Free Software Foundation, Inc.
8197 This config.status script is free software; the Free Software Foundation
8198 gives unlimited permission to copy, distribute and modify it."
8203 cat >>$CONFIG_STATUS <<\_ACEOF
8204 # If no file are specified by the user, then we need to provide default
8205 # value. By we need to know if files were specified by the user.
8211 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8212 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8220 *) # This is not an option, so the user has probably given explicit
8223 ac_need_defaults
=false
;;
8227 # Handling of the options.
8229 cat >>$CONFIG_STATUS <<\_ACEOF
8230 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8232 --version |
--vers* |
-V )
8233 echo "$ac_cs_version"; exit 0 ;;
8235 # Conflict between --help and --header
8236 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8237 Try \`$0 --help' for more information." >&5
8238 echo "$as_me: error: ambiguous option: $1
8239 Try \`$0 --help' for more information." >&2;}
8240 { (exit 1); exit 1; }; };;
8241 --help |
--hel |
-h )
8242 echo "$ac_cs_usage"; exit 0 ;;
8243 --debug |
--d* |
-d )
8245 --file |
--fil |
--fi |
--f )
8247 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8248 ac_need_defaults
=false
;;
8249 --header |
--heade |
--head |
--hea )
8251 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8252 ac_need_defaults
=false
;;
8253 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8254 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8258 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8259 Try \`$0 --help' for more information." >&5
8260 echo "$as_me: error: unrecognized option: $1
8261 Try \`$0 --help' for more information." >&2;}
8262 { (exit 1); exit 1; }; } ;;
8264 *) ac_config_targets
="$ac_config_targets $1" ;;
8270 ac_configure_extra_args
=
8272 if $ac_cs_silent; then
8274 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8278 cat >>$CONFIG_STATUS <<_ACEOF
8279 if \$ac_cs_recheck; then
8280 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8281 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8290 cat >>$CONFIG_STATUS <<\_ACEOF
8291 for ac_config_target
in $ac_config_targets
8293 case "$ac_config_target" in
8294 # Handling of arguments.
8295 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8296 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8297 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8298 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
8299 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
8300 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
8301 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8302 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8303 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8304 { (exit 1); exit 1; }; };;
8308 # If the user did not use the arguments to specify the items to instantiate,
8309 # then the envvar interface is used. Set only those that are not.
8310 # We use the long form for the default assignment because of an extremely
8311 # bizarre bug on SunOS 4.1.3.
8312 if $ac_need_defaults; then
8313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8314 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8315 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8319 # Have a temporary directory for convenience. Make it in the build tree
8320 # simply because there is no reason to put it here, and in addition,
8321 # creating and moving files from /tmp can sometimes cause problems.
8322 # Create a temporary directory, and hook for its removal unless debugging.
8325 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8326 trap '{ (exit 1); exit 1; }' 1 2 13 15
8329 # Create a (secure) tmp directory for tmp files.
8332 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8333 test -n "$tmp" && test -d "$tmp"
8336 tmp
=.
/confstat$$
-$RANDOM
8337 (umask 077 && mkdir
$tmp)
8340 echo "$me: cannot create a temporary directory in ." >&2
8341 { (exit 1); exit 1; }
8346 cat >>$CONFIG_STATUS <<_ACEOF
8349 # CONFIG_FILES section.
8352 # No need to generate the scripts if there are no CONFIG_FILES.
8353 # This happens for instance when ./config.status config.h
8354 if test -n "\$CONFIG_FILES"; then
8355 # Protect against being on the right side of a sed subst in config.status.
8356 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8357 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8358 s,@SHELL@,$SHELL,;t t
8359 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8360 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8361 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8362 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8363 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8364 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8365 s,@exec_prefix@,$exec_prefix,;t t
8366 s,@prefix@,$prefix,;t t
8367 s,@program_transform_name@,$program_transform_name,;t t
8368 s,@bindir@,$bindir,;t t
8369 s,@sbindir@,$sbindir,;t t
8370 s,@libexecdir@,$libexecdir,;t t
8371 s,@datadir@,$datadir,;t t
8372 s,@sysconfdir@,$sysconfdir,;t t
8373 s,@sharedstatedir@,$sharedstatedir,;t t
8374 s,@localstatedir@,$localstatedir,;t t
8375 s,@libdir@,$libdir,;t t
8376 s,@includedir@,$includedir,;t t
8377 s,@oldincludedir@,$oldincludedir,;t t
8378 s,@infodir@,$infodir,;t t
8379 s,@mandir@,$mandir,;t t
8380 s,@build_alias@,$build_alias,;t t
8381 s,@host_alias@,$host_alias,;t t
8382 s,@target_alias@,$target_alias,;t t
8384 s,@ECHO_C@,$ECHO_C,;t t
8385 s,@ECHO_N@,$ECHO_N,;t t
8386 s,@ECHO_T@,$ECHO_T,;t t
8388 s,@sim_environment@,$sim_environment,;t t
8389 s,@sim_alignment@,$sim_alignment,;t t
8390 s,@sim_assert@,$sim_assert,;t t
8391 s,@sim_bitsize@,$sim_bitsize,;t t
8392 s,@sim_endian@,$sim_endian,;t t
8393 s,@sim_hostendian@,$sim_hostendian,;t t
8394 s,@sim_float@,$sim_float,;t t
8395 s,@sim_scache@,$sim_scache,;t t
8396 s,@sim_default_model@,$sim_default_model,;t t
8397 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8398 s,@sim_hw_objs@,$sim_hw_objs,;t t
8399 s,@sim_hw@,$sim_hw,;t t
8400 s,@sim_inline@,$sim_inline,;t t
8401 s,@sim_packages@,$sim_packages,;t t
8402 s,@sim_regparm@,$sim_regparm,;t t
8403 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8404 s,@sim_smp@,$sim_smp,;t t
8405 s,@sim_stdcall@,$sim_stdcall,;t t
8406 s,@sim_xor_endian@,$sim_xor_endian,;t t
8407 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8408 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8409 s,@build@,$build,;t t
8410 s,@build_cpu@,$build_cpu,;t t
8411 s,@build_vendor@,$build_vendor,;t t
8412 s,@build_os@,$build_os,;t t
8414 s,@host_cpu@,$host_cpu,;t t
8415 s,@host_vendor@,$host_vendor,;t t
8416 s,@host_os@,$host_os,;t t
8417 s,@target@,$target,;t t
8418 s,@target_cpu@,$target_cpu,;t t
8419 s,@target_vendor@,$target_vendor,;t t
8420 s,@target_os@,$target_os,;t t
8422 s,@CFLAGS@,$CFLAGS,;t t
8423 s,@LDFLAGS@,$LDFLAGS,;t t
8424 s,@CPPFLAGS@,$CPPFLAGS,;t t
8425 s,@ac_ct_CC@,$ac_ct_CC,;t t
8426 s,@EXEEXT@,$EXEEXT,;t t
8427 s,@OBJEXT@,$OBJEXT,;t t
8428 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8429 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8430 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8431 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8432 s,@HDEFINES@,$HDEFINES,;t t
8434 s,@RANLIB@,$RANLIB,;t t
8435 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8436 s,@SET_MAKE@,$SET_MAKE,;t t
8438 s,@EGREP@,$EGREP,;t t
8439 s,@ALLOCA@,$ALLOCA,;t t
8440 s,@USE_NLS@,$USE_NLS,;t t
8441 s,@MSGFMT@,$MSGFMT,;t t
8442 s,@GMSGFMT@,$GMSGFMT,;t t
8443 s,@XGETTEXT@,$XGETTEXT,;t t
8444 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8445 s,@CATALOGS@,$CATALOGS,;t t
8446 s,@CATOBJEXT@,$CATOBJEXT,;t t
8447 s,@DATADIRNAME@,$DATADIRNAME,;t t
8448 s,@GMOFILES@,$GMOFILES,;t t
8449 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8450 s,@INTLDEPS@,$INTLDEPS,;t t
8451 s,@INTLLIBS@,$INTLLIBS,;t t
8452 s,@INTLOBJS@,$INTLOBJS,;t t
8453 s,@POFILES@,$POFILES,;t t
8454 s,@POSUB@,$POSUB,;t t
8455 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8456 s,@GT_NO@,$GT_NO,;t t
8457 s,@GT_YES@,$GT_YES,;t t
8458 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8460 s,@MAINT@,$MAINT,;t t
8461 s,@sim_bswap@,$sim_bswap,;t t
8462 s,@sim_cflags@,$sim_cflags,;t t
8463 s,@sim_debug@,$sim_debug,;t t
8464 s,@sim_stdio@,$sim_stdio,;t t
8465 s,@sim_trace@,$sim_trace,;t t
8466 s,@sim_profile@,$sim_profile,;t t
8467 s,@m68hc11_extra_objs@,$m68hc11_extra_objs,;t t
8468 s,@cgen_breaks@,$cgen_breaks,;t t
8469 s,@LIBOBJS@,$LIBOBJS,;t t
8470 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8475 cat >>$CONFIG_STATUS <<\_ACEOF
8476 # Split the substitutions into bite-sized pieces for seds with
8477 # small command number limits, like on Digital OSF/1 and HP-UX.
8479 ac_sed_frag
=1 # Number of current file.
8480 ac_beg
=1 # First line for current file.
8481 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8484 while $ac_more_lines; do
8485 if test $ac_beg -gt 1; then
8486 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8488 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8490 if test ! -s $tmp/subs.frag
; then
8493 # The purpose of the label and of the branching condition is to
8494 # speed up the sed processing (if there are no `@' at all, there
8495 # is no need to browse any of the substitutions).
8496 # These are the two extra sed commands mentioned above.
8498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8499 if test -z "$ac_sed_cmds"; then
8500 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8502 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8504 ac_sed_frag
=`expr $ac_sed_frag + 1`
8506 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8509 if test -z "$ac_sed_cmds"; then
8512 fi # test -n "$CONFIG_FILES"
8515 cat >>$CONFIG_STATUS <<\_ACEOF
8516 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8517 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8519 - |
*:- |
*:-:* ) # input from stdin
8521 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8522 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8523 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8524 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8525 * ) ac_file_in
=$ac_file.
in ;;
8528 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8529 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8531 X"$ac_file" : 'X\(//\)[^/]' \| \
8532 X"$ac_file" : 'X\(//\)$' \| \
8533 X"$ac_file" : 'X\(/\)' \| \
8534 . : '\(.\)' 2>/dev/null ||
8536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8538 /^X\(\/\/\)$/{ s//\1/; q; }
8539 /^X\(\/\).*/{ s//\1/; q; }
8541 { if $as_mkdir_p; then
8546 while test ! -d "$as_dir"; do
8547 as_dirs
="$as_dir $as_dirs"
8548 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8550 X"$as_dir" : 'X\(//\)[^/]' \| \
8551 X"$as_dir" : 'X\(//\)$' \| \
8552 X"$as_dir" : 'X\(/\)' \| \
8553 . : '\(.\)' 2>/dev/null ||
8555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8557 /^X\(\/\/\)$/{ s//\1/; q; }
8558 /^X\(\/\).*/{ s//\1/; q; }
8561 test ! -n "$as_dirs" || mkdir
$as_dirs
8562 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8563 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8564 { (exit 1); exit 1; }; }; }
8568 if test "$ac_dir" != .
; then
8569 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8570 # A "../" for each directory in $ac_dir_suffix.
8571 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8573 ac_dir_suffix
= ac_top_builddir
=
8577 .
) # No --srcdir option. We are building in place.
8579 if test -z "$ac_top_builddir"; then
8582 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8584 [\\/]* | ?
:[\\/]* ) # Absolute path.
8585 ac_srcdir
=$srcdir$ac_dir_suffix;
8586 ac_top_srcdir
=$srcdir ;;
8588 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8589 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8592 # Do not use `cd foo && pwd` to compute absolute paths, because
8593 # the directories may not exist.
8595 .
) ac_abs_builddir
="$ac_dir";;
8598 .
) ac_abs_builddir
=`pwd`;;
8599 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8600 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8603 case $ac_abs_builddir in
8604 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8606 case ${ac_top_builddir}.
in
8607 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8608 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8609 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8612 case $ac_abs_builddir in
8613 .
) ac_abs_srcdir
=$ac_srcdir;;
8616 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8617 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8618 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8621 case $ac_abs_builddir in
8622 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8624 case $ac_top_srcdir in
8625 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8626 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8627 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8633 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8634 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8637 if test x
"$ac_file" != x-
; then
8638 { echo "$as_me:$LINENO: creating $ac_file" >&5
8639 echo "$as_me: creating $ac_file" >&6;}
8642 # Let's still pretend it is `configure' which instantiates (i.e., don't
8643 # use $as_me), people would be surprised to read:
8644 # /* config.h. Generated by config.status. */
8645 if test x
"$ac_file" = x-
; then
8648 configure_input
="$ac_file. "
8650 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8651 sed 's,.*/,,'` by configure."
8653 # First look for the input files in the build tree, otherwise in the
8655 ac_file_inputs
=`IFS=:
8656 for f in $ac_file_in; do
8658 -) echo $tmp/stdin ;;
8660 # Absolute (can't be DOS-style, as IFS=:)
8661 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8662 echo "$as_me: error: cannot find input file: $f" >&2;}
8663 { (exit 1); exit 1; }; }
8666 if test -f "$f"; then
8669 elif test -f "$srcdir/$f"; then
8674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8675 echo "$as_me: error: cannot find input file: $f" >&2;}
8676 { (exit 1); exit 1; }; }
8679 done` ||
{ (exit 1); exit 1; }
8681 cat >>$CONFIG_STATUS <<_ACEOF
8685 cat >>$CONFIG_STATUS <<\_ACEOF
8687 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8688 s
,@configure_input@
,$configure_input,;t t
8689 s
,@srcdir@
,$ac_srcdir,;t t
8690 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8691 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8692 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8693 s
,@builddir@
,$ac_builddir,;t t
8694 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8695 s
,@top_builddir@
,$ac_top_builddir,;t t
8696 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8697 s
,@INSTALL@
,$ac_INSTALL,;t t
8698 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8700 if test x"$ac_file" != x-; then
8701 mv $tmp/out $ac_file
8709 cat >>$CONFIG_STATUS <<\_ACEOF
8712 # CONFIG_HEADER section.
8715 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8716 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8718 # ac_d sets the value in "#define NAME VALUE" lines.
8719 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8720 ac_dB
='[ ].*$,\1#\2'
8723 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8724 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8725 ac_uB
='$,\1#\2define\3'
8729 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8732 - |
*:- |
*:-:* ) # input from stdin
8734 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8735 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8736 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8737 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8738 * ) ac_file_in
=$ac_file.
in ;;
8741 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8742 echo "$as_me: creating $ac_file" >&6;}
8744 # First look for the input files in the build tree, otherwise in the
8746 ac_file_inputs
=`IFS=:
8747 for f in $ac_file_in; do
8749 -) echo $tmp/stdin ;;
8751 # Absolute (can't be DOS-style, as IFS=:)
8752 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8753 echo "$as_me: error: cannot find input file: $f" >&2;}
8754 { (exit 1); exit 1; }; }
8755 # Do quote $f, to prevent DOS paths from being IFS'd.
8758 if test -f "$f"; then
8761 elif test -f "$srcdir/$f"; then
8766 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8767 echo "$as_me: error: cannot find input file: $f" >&2;}
8768 { (exit 1); exit 1; }; }
8771 done` ||
{ (exit 1); exit 1; }
8772 # Remove the trailing spaces.
8773 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8777 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8778 # `conftest.undefs', that substitutes the proper values into
8779 # config.h.in to produce config.h. The first handles `#define'
8780 # templates, and the second `#undef' templates.
8781 # And first: Protect against being on the right side of a sed subst in
8782 # config.status. Protect against being in an unquoted here document
8784 rm -f conftest.defines conftest.undefs
8785 # Using a here document instead of a string reduces the quoting nightmare.
8786 # Putting comments in sed scripts is not portable.
8788 # `end' is used to avoid that the second main sed command (meant for
8789 # 0-ary CPP macros) applies to n-ary macro definitions.
8790 # See the Autoconf documentation for `clear'.
8791 cat >confdef2sed.
sed <<\_ACEOF
8796 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8798 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8801 # If some macros were called several times there might be several times
8802 # the same #defines, which is useless. Nevertheless, we may not want to
8803 # sort them, since we want the *last* AC-DEFINE to be honored.
8804 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8805 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8806 rm -f confdef2sed.sed
8808 # This sed command replaces #undef with comments. This is necessary, for
8809 # example, in the case of _POSIX_SOURCE, which is predefined and required
8810 # on some systems where configure will not decide to define it.
8811 cat >>conftest.undefs <<\_ACEOF
8812 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8815 # Break up conftest.defines because some shells have a limit on the size
8816 # of here documents, and old seds have small limits too (100 cmds).
8817 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8818 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8819 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8820 echo ' :' >>$CONFIG_STATUS
8822 while grep . conftest.defines >/dev/null
8824 # Write a limited-size here document to $tmp/defines.sed.
8825 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8826 # Speed up: don't consider the non `#define' lines.
8827 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8828 # Work around the forget-to-reset-the-flag bug.
8829 echo 't clr' >>$CONFIG_STATUS
8830 echo ': clr' >>$CONFIG_STATUS
8831 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8833 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8837 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8838 rm -f conftest.defines
8839 mv conftest.
tail conftest.defines
8841 rm -f conftest.defines
8842 echo ' fi # grep' >>$CONFIG_STATUS
8843 echo >>$CONFIG_STATUS
8845 # Break up conftest.undefs because some shells have a limit on the size
8846 # of here documents, and old seds have small limits too (100 cmds).
8847 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8849 while grep . conftest.undefs
>/dev
/null
8851 # Write a limited-size here document to $tmp/undefs.sed.
8852 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8853 # Speed up: don't consider the non
`#undef'
8854 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8855 # Work around the forget-to-reset-the-flag bug.
8856 echo 't clr' >>$CONFIG_STATUS
8857 echo ': clr' >>$CONFIG_STATUS
8858 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8860 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8864 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8865 rm -f conftest.undefs
8866 mv conftest.tail conftest.undefs
8868 rm -f conftest.undefs
8870 cat >>$CONFIG_STATUS <<\_ACEOF
8871 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8872 # use $as_me), people would be surprised to read:
8873 # /* config.h. Generated by config.status. */
8874 if test x
"$ac_file" = x-
; then
8875 echo "/* Generated by configure. */" >$tmp/config.h
8877 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8879 cat $tmp/in >>$tmp/config.h
8881 if test x
"$ac_file" != x-
; then
8882 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8883 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8884 echo "$as_me: $ac_file is unchanged" >&6;}
8886 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8888 X"$ac_file" : 'X\(//\)[^/]' \| \
8889 X"$ac_file" : 'X\(//\)$' \| \
8890 X"$ac_file" : 'X\(/\)' \| \
8891 . : '\(.\)' 2>/dev/null ||
8893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8895 /^X\(\/\/\)$/{ s//\1/; q; }
8896 /^X\(\/\).*/{ s//\1/; q; }
8898 { if $as_mkdir_p; then
8903 while test ! -d "$as_dir"; do
8904 as_dirs
="$as_dir $as_dirs"
8905 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8907 X"$as_dir" : 'X\(//\)[^/]' \| \
8908 X"$as_dir" : 'X\(//\)$' \| \
8909 X"$as_dir" : 'X\(/\)' \| \
8910 . : '\(.\)' 2>/dev/null ||
8912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8914 /^X\(\/\/\)$/{ s//\1/; q; }
8915 /^X\(\/\).*/{ s//\1/; q; }
8918 test ! -n "$as_dirs" || mkdir
$as_dirs
8919 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8921 { (exit 1); exit 1; }; }; }
8924 mv $tmp/config.h
$ac_file
8932 cat >>$CONFIG_STATUS <<\_ACEOF
8935 # CONFIG_LINKS section.
8938 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
8939 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8940 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8942 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8943 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8945 if test ! -r $srcdir/$ac_source; then
8946 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8947 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8948 { (exit 1); exit 1; }; }
8952 # Make relative symlinks.
8953 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8954 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8955 X"$ac_dest" : 'X\(//\)[^/]' \| \
8956 X"$ac_dest" : 'X\(//\)$' \| \
8957 X"$ac_dest" : 'X\(/\)' \| \
8958 . : '\(.\)' 2>/dev/null ||
8960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8962 /^X\(\/\/\)$/{ s//\1/; q; }
8963 /^X\(\/\).*/{ s//\1/; q; }
8965 { if $as_mkdir_p; then
8966 mkdir
-p "$ac_dest_dir"
8968 as_dir
="$ac_dest_dir"
8970 while test ! -d "$as_dir"; do
8971 as_dirs
="$as_dir $as_dirs"
8972 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8974 X"$as_dir" : 'X\(//\)[^/]' \| \
8975 X"$as_dir" : 'X\(//\)$' \| \
8976 X"$as_dir" : 'X\(/\)' \| \
8977 . : '\(.\)' 2>/dev/null ||
8979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8981 /^X\(\/\/\)$/{ s//\1/; q; }
8982 /^X\(\/\).*/{ s//\1/; q; }
8985 test ! -n "$as_dirs" || mkdir
$as_dirs
8986 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8987 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8988 { (exit 1); exit 1; }; }; }
8992 if test "$ac_dest_dir" != .
; then
8993 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8994 # A "../" for each directory in $ac_dir_suffix.
8995 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8997 ac_dir_suffix
= ac_top_builddir
=
9001 .
) # No --srcdir option. We are building in place.
9003 if test -z "$ac_top_builddir"; then
9006 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9008 [\\/]* | ?
:[\\/]* ) # Absolute path.
9009 ac_srcdir
=$srcdir$ac_dir_suffix;
9010 ac_top_srcdir
=$srcdir ;;
9012 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9013 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9016 # Do not use `cd foo && pwd` to compute absolute paths, because
9017 # the directories may not exist.
9019 .
) ac_abs_builddir
="$ac_dest_dir";;
9021 case "$ac_dest_dir" in
9022 .
) ac_abs_builddir
=`pwd`;;
9023 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
9024 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
9027 case $ac_abs_builddir in
9028 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9030 case ${ac_top_builddir}.
in
9031 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9032 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9033 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9036 case $ac_abs_builddir in
9037 .
) ac_abs_srcdir
=$ac_srcdir;;
9040 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9041 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9042 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9045 case $ac_abs_builddir in
9046 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9048 case $ac_top_srcdir in
9049 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9050 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9051 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9057 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9058 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
9061 # Try a symlink, then a hard link, then a copy.
9062 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
9063 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
9064 cp -p $srcdir/$ac_source $ac_dest ||
9065 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9066 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9067 { (exit 1); exit 1; }; }
9070 cat >>$CONFIG_STATUS <<\_ACEOF
9073 # CONFIG_COMMANDS section.
9075 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9076 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9077 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9078 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9079 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9080 X"$ac_dest" : 'X\(//\)[^/]' \| \
9081 X"$ac_dest" : 'X\(//\)$' \| \
9082 X"$ac_dest" : 'X\(/\)' \| \
9083 . : '\(.\)' 2>/dev/null ||
9085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9087 /^X\(\/\/\)$/{ s//\1/; q; }
9088 /^X\(\/\).*/{ s//\1/; q; }
9090 { if $as_mkdir_p; then
9095 while test ! -d "$as_dir"; do
9096 as_dirs
="$as_dir $as_dirs"
9097 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9099 X"$as_dir" : 'X\(//\)[^/]' \| \
9100 X"$as_dir" : 'X\(//\)$' \| \
9101 X"$as_dir" : 'X\(/\)' \| \
9102 . : '\(.\)' 2>/dev/null ||
9104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9106 /^X\(\/\/\)$/{ s//\1/; q; }
9107 /^X\(\/\).*/{ s//\1/; q; }
9110 test ! -n "$as_dirs" || mkdir
$as_dirs
9111 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9113 { (exit 1); exit 1; }; }; }
9117 if test "$ac_dir" != .
; then
9118 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9119 # A "../" for each directory in $ac_dir_suffix.
9120 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9122 ac_dir_suffix
= ac_top_builddir
=
9126 .
) # No --srcdir option. We are building in place.
9128 if test -z "$ac_top_builddir"; then
9131 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9133 [\\/]* | ?
:[\\/]* ) # Absolute path.
9134 ac_srcdir
=$srcdir$ac_dir_suffix;
9135 ac_top_srcdir
=$srcdir ;;
9137 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9138 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9141 # Do not use `cd foo && pwd` to compute absolute paths, because
9142 # the directories may not exist.
9144 .
) ac_abs_builddir
="$ac_dir";;
9147 .
) ac_abs_builddir
=`pwd`;;
9148 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9149 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9152 case $ac_abs_builddir in
9153 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9155 case ${ac_top_builddir}.
in
9156 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9157 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9158 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9161 case $ac_abs_builddir in
9162 .
) ac_abs_srcdir
=$ac_srcdir;;
9165 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9166 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9167 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9170 case $ac_abs_builddir in
9171 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9173 case $ac_top_srcdir in
9174 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9175 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9176 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9181 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9182 echo "$as_me: executing $ac_dest commands" >&6;}
9184 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9185 rm -f Makesim1.tmp Makesim2.tmp Makefile
9186 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
9187 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
9188 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9189 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9190 <Makefile.sim
>Makefile
9191 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9193 stamp-h
) echo > stamp-h
;;
9198 cat >>$CONFIG_STATUS <<\_ACEOF
9200 { (exit 0); exit 0; }
9202 chmod +x
$CONFIG_STATUS
9203 ac_clean_files
=$ac_clean_files_save
9206 # configure is writing to config.log, and then calls config.status.
9207 # config.status does its own redirection, appending to config.log.
9208 # Unfortunately, on DOS this fails, as config.log is still kept open
9209 # by configure, so config.status won't be able to write to it; its
9210 # output is simply discarded. So we exec the FD to /dev/null,
9211 # effectively closing config.log, so it can be properly (re)opened and
9212 # appended to by config.status. When coming back to configure, we
9213 # need to make the FD available again.
9214 if test "$no_create" != yes; then
9216 ac_config_status_args
=
9217 test "$silent" = yes &&
9218 ac_config_status_args
="$ac_config_status_args --quiet"
9220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9223 # would make configure fail if this is the last instruction.
9224 $ac_cs_success ||
{ (exit 1); exit 1; }