Index: arm/ChangeLog
[deliverable/binutils-gdb.git] / sim / mn10300 / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657
AC
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
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## --------------------- ##
c906108c 11
b7026657
AC
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
c906108c 23
b7026657
AC
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
c906108c
SS
30
31
b7026657
AC
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
c906108c 37
b7026657
AC
38# NLS nuisances.
39for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
c906108c 50
b7026657
AC
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
c906108c 57
b7026657
AC
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
c906108c
SS
63
64
b7026657
AC
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
c906108c
SS
76
77
b7026657
AC
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 85
b7026657
AC
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
c906108c
SS
98
99
b7026657
AC
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
c906108c 116
b7026657
AC
117 ;;
118 esac
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
122 as_myself=$0
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
c906108c 155
b7026657
AC
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 |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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; }; }
177
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
c906108c
SS
185
186
b7026657
AC
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
c906108c 193
b7026657
AC
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
c906108c 199
b7026657
AC
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
c906108c 217
b7026657
AC
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
c906108c 224
b7026657 225as_executable_p="test -f"
c906108c 226
b7026657
AC
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 229
b7026657
AC
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
232
233
b7026657
AC
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
c906108c 239
b7026657
AC
240# CDPATH.
241$as_unset CDPATH
c906108c
SS
242
243
b7026657
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 248
b7026657 249exec 6>&1
c906108c 250
c906108c 251#
b7026657 252# Initializations.
c906108c 253#
b7026657
AC
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
c906108c 261
b7026657
AC
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}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="Makefile.in"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
c906108c 311
b7026657
AC
312ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile cgen_breaks LIBOBJS LTLIBOBJS'
313ac_subst_files=''
c906108c
SS
314
315# Initialize some variables set by options.
b7026657
AC
316ac_init_help=
317ac_init_version=false
c906108c
SS
318# The variables have the same names as the options, with
319# dashes changed to underlines.
b7026657 320cache_file=/dev/null
c906108c 321exec_prefix=NONE
c906108c 322no_create=
c906108c
SS
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
c906108c
SS
331verbose=
332x_includes=NONE
333x_libraries=NONE
b7026657
AC
334
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.
c906108c
SS
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
c906108c
SS
353ac_prev=
354for ac_option
355do
c906108c
SS
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
b7026657 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
b7026657 367 case $ac_option in
c906108c
SS
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 372 bindir=$ac_optarg ;;
c906108c
SS
373
374 -build | --build | --buil | --bui | --bu)
b7026657 375 ac_prev=build_alias ;;
c906108c 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 377 build_alias=$ac_optarg ;;
c906108c
SS
378
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=*)
b7026657
AC
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
c906108c
SS
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
b7026657 393 datadir=$ac_optarg ;;
c906108c
SS
394
395 -disable-* | --disable-*)
b7026657 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 397 # Reject names that are not valid shell variable names.
b7026657
AC
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" ;;
c906108c
SS
403
404 -enable-* | --enable-*)
b7026657 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 406 # Reject names that are not valid shell variable names.
b7026657
AC
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'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
413 *) ac_optarg=yes ;;
414 esac
b7026657 415 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
416
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=*)
b7026657 424 exec_prefix=$ac_optarg ;;
c906108c
SS
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
b7026657
AC
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
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 ;;
c906108c
SS
436
437 -host | --host | --hos | --ho)
b7026657 438 ac_prev=host_alias ;;
c906108c 439 -host=* | --host=* | --hos=* | --ho=*)
b7026657 440 host_alias=$ac_optarg ;;
c906108c
SS
441
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=*)
b7026657 447 includedir=$ac_optarg ;;
c906108c
SS
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 452 infodir=$ac_optarg ;;
c906108c
SS
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 457 libdir=$ac_optarg ;;
c906108c
SS
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
b7026657 464 libexecdir=$ac_optarg ;;
c906108c
SS
465
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=*)
b7026657 473 localstatedir=$ac_optarg ;;
c906108c
SS
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 478 mandir=$ac_optarg ;;
c906108c
SS
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 485 | --no-cr | --no-c | -n)
c906108c
SS
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
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=*)
b7026657 499 oldincludedir=$ac_optarg ;;
c906108c
SS
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 504 prefix=$ac_optarg ;;
c906108c
SS
505
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=*)
b7026657 511 program_prefix=$ac_optarg ;;
c906108c
SS
512
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=*)
b7026657 518 program_suffix=$ac_optarg ;;
c906108c
SS
519
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=*)
b7026657 535 program_transform_name=$ac_optarg ;;
c906108c
SS
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
b7026657 545 sbindir=$ac_optarg ;;
c906108c
SS
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
b7026657 556 sharedstatedir=$ac_optarg ;;
c906108c
SS
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
b7026657 561 site=$ac_optarg ;;
eb2d80b4 562
c906108c
SS
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 566 srcdir=$ac_optarg ;;
c906108c
SS
567
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=*)
b7026657 573 sysconfdir=$ac_optarg ;;
c906108c
SS
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 576 ac_prev=target_alias ;;
c906108c 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 578 target_alias=$ac_optarg ;;
c906108c
SS
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
b7026657
AC
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
c906108c
SS
585
586 -with-* | --with-*)
b7026657 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 588 # Reject names that are not valid shell variable names.
b7026657
AC
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; }; }
c906108c 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
b7026657
AC
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
595 *) ac_optarg=yes ;;
596 esac
b7026657 597 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
598
599 -without-* | --without-*)
b7026657 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 601 # Reject names that are not valid shell variable names.
b7026657
AC
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" ;;
c906108c
SS
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
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=*)
b7026657 617 x_includes=$ac_optarg ;;
c906108c
SS
618
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=*)
b7026657 624 x_libraries=$ac_optarg ;;
c906108c 625
b7026657
AC
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
c906108c
SS
629 ;;
630
b7026657
AC
631 *=*)
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'"
639 export $ac_envvar ;;
640
c906108c 641 *)
b7026657
AC
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}
c906108c
SS
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
b7026657
AC
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; }; }
c906108c 656fi
c906108c 657
b7026657
AC
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
c906108c 668
b7026657
AC
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 672do
b7026657
AC
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
c906108c
SS
678 esac
679done
680
b7026657
AC
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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
695 cross_compiling=yes
696 fi
697fi
c906108c 698
b7026657
AC
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
c906108c 703
c906108c
SS
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
b7026657
AC
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 ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
c906108c
SS
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
b7026657
AC
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
c906108c 732 else
b7026657
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
c906108c
SS
735 fi
736fi
b7026657
AC
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
c906108c 773
b7026657
AC
774#
775# Report the --help message.
776#
777if 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.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
c906108c 782
b7026657 783Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 784
b7026657
AC
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 787
b7026657 788Defaults for the options are specified in brackets.
c906108c 789
b7026657
AC
790Configuration:
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 \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
c906108c 809
b7026657
AC
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
c906108c 814
b7026657
AC
815For better control, use the options below.
816
817Fine 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]
830_ACEOF
831
832 cat <<\_ACEOF
833
834Program names:
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
838
839System types:
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]
843_ACEOF
c906108c 844fi
b7026657
AC
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-endian=endian Specify target byte endian orientation.
862 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify host byte endian orientation.
864 --enable-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-reserved-bits Specify whether to check reserved bits in instruction.
867 --enable-sim-bitsize=N Specify target bitsize (32 or 64).
868 --enable-sim-inline=inlines Specify which functions should be inlined.
869 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
870
871Optional Packages:
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-included-gettext use the GNU gettext library included here
875
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
c906108c
SS
889fi
890
b7026657
AC
891if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
c906108c 897
b7026657
AC
898if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
c906108c 902else
b7026657 903 ac_dir_suffix= ac_top_builddir=
c906108c
SS
904fi
905
b7026657
AC
906case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920esac
921
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959esac
960
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
976 cd $ac_popdir
977 done
c906108c 978fi
b7026657
AC
979
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982 cat <<\_ACEOF
983
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988 exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
994
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032done
1033
1034} >&5
1035
1036cat >&5 <<_ACEOF
1037
1038
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
1042
1043_ACEOF
1044
1045
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log. We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114{
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127}
1128 echo
1129
1130 cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229done
1230
1231if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290done
1291if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324# Make sure we can run config.sub.
1325$ac_config_sub sun4 >/dev/null 2>&1 ||
1326 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1327echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1328 { (exit 1); exit 1; }; }
1329
1330echo "$as_me:$LINENO: checking build system type" >&5
1331echo $ECHO_N "checking build system type... $ECHO_C" >&6
1332if test "${ac_cv_build+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1334else
1335 ac_cv_build_alias=$build_alias
1336test -z "$ac_cv_build_alias" &&
1337 ac_cv_build_alias=`$ac_config_guess`
1338test -z "$ac_cv_build_alias" &&
1339 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1340echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1341 { (exit 1); exit 1; }; }
1342ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1343 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1344echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1345 { (exit 1); exit 1; }; }
1346
1347fi
1348echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1349echo "${ECHO_T}$ac_cv_build" >&6
1350build=$ac_cv_build
1351build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354
1355
1356echo "$as_me:$LINENO: checking host system type" >&5
1357echo $ECHO_N "checking host system type... $ECHO_C" >&6
1358if test "${ac_cv_host+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360else
1361 ac_cv_host_alias=$host_alias
1362test -z "$ac_cv_host_alias" &&
1363 ac_cv_host_alias=$ac_cv_build_alias
1364ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1366echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369fi
1370echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1371echo "${ECHO_T}$ac_cv_host" >&6
1372host=$ac_cv_host
1373host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1379echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1380set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1381if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384 cat >conftest.make <<\_ACEOF
1385all:
1386 @echo 'ac_maketemp="$(MAKE)"'
1387_ACEOF
1388# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1389eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1390if test -n "$ac_maketemp"; then
1391 eval ac_cv_prog_make_${ac_make}_set=yes
1392else
1393 eval ac_cv_prog_make_${ac_make}_set=no
1394fi
1395rm -f conftest.make
1396fi
1397if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1398 echo "$as_me:$LINENO: result: yes" >&5
1399echo "${ECHO_T}yes" >&6
1400 SET_MAKE=
1401else
1402 echo "$as_me:$LINENO: result: no" >&5
1403echo "${ECHO_T}no" >&6
1404 SET_MAKE="MAKE=${MAKE-make}"
1405fi
1406
1407
1408echo "$as_me:$LINENO: checking for library containing strerror" >&5
1409echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1410if test "${ac_cv_search_strerror+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412else
1413 ac_func_search_save_LIBS=$LIBS
1414ac_cv_search_strerror=no
1415cat >conftest.$ac_ext <<_ACEOF
1416/* confdefs.h. */
1417_ACEOF
1418cat confdefs.h >>conftest.$ac_ext
1419cat >>conftest.$ac_ext <<_ACEOF
1420/* end confdefs.h. */
1421
1422/* Override any gcc2 internal prototype to avoid an error. */
1423#ifdef __cplusplus
1424extern "C"
1425#endif
1426/* We use char because int might match the return type of a gcc2
1427 builtin and then its argument prototype would still apply. */
1428char strerror ();
1429int
1430main ()
1431{
1432strerror ();
1433 ;
1434 return 0;
1435}
1436_ACEOF
1437rm -f conftest.$ac_objext conftest$ac_exeext
1438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1439 (eval $ac_link) 2>conftest.er1
1440 ac_status=$?
1441 grep -v '^ *+' conftest.er1 >conftest.err
1442 rm -f conftest.er1
1443 cat conftest.err >&5
1444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1445 (exit $ac_status); } &&
1446 { ac_try='test -z "$ac_c_werror_flag"
1447 || test ! -s conftest.err'
1448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1449 (eval $ac_try) 2>&5
1450 ac_status=$?
1451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1452 (exit $ac_status); }; } &&
1453 { ac_try='test -s conftest$ac_exeext'
1454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1455 (eval $ac_try) 2>&5
1456 ac_status=$?
1457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1458 (exit $ac_status); }; }; then
1459 ac_cv_search_strerror="none required"
1460else
1461 echo "$as_me: failed program was:" >&5
1462sed 's/^/| /' conftest.$ac_ext >&5
1463
1464fi
1465rm -f conftest.err conftest.$ac_objext \
1466 conftest$ac_exeext conftest.$ac_ext
1467if test "$ac_cv_search_strerror" = no; then
1468 for ac_lib in cposix; do
1469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1470 cat >conftest.$ac_ext <<_ACEOF
1471/* confdefs.h. */
1472_ACEOF
1473cat confdefs.h >>conftest.$ac_ext
1474cat >>conftest.$ac_ext <<_ACEOF
1475/* end confdefs.h. */
1476
1477/* Override any gcc2 internal prototype to avoid an error. */
1478#ifdef __cplusplus
1479extern "C"
1480#endif
1481/* We use char because int might match the return type of a gcc2
1482 builtin and then its argument prototype would still apply. */
1483char strerror ();
1484int
1485main ()
1486{
1487strerror ();
1488 ;
1489 return 0;
1490}
1491_ACEOF
1492rm -f conftest.$ac_objext conftest$ac_exeext
1493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1494 (eval $ac_link) 2>conftest.er1
1495 ac_status=$?
1496 grep -v '^ *+' conftest.er1 >conftest.err
1497 rm -f conftest.er1
1498 cat conftest.err >&5
1499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1500 (exit $ac_status); } &&
1501 { ac_try='test -z "$ac_c_werror_flag"
1502 || test ! -s conftest.err'
1503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1504 (eval $ac_try) 2>&5
1505 ac_status=$?
1506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1507 (exit $ac_status); }; } &&
1508 { ac_try='test -s conftest$ac_exeext'
1509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1510 (eval $ac_try) 2>&5
1511 ac_status=$?
1512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1513 (exit $ac_status); }; }; then
1514 ac_cv_search_strerror="-l$ac_lib"
1515break
1516else
1517 echo "$as_me: failed program was:" >&5
1518sed 's/^/| /' conftest.$ac_ext >&5
1519
1520fi
1521rm -f conftest.err conftest.$ac_objext \
1522 conftest$ac_exeext conftest.$ac_ext
1523 done
1524fi
1525LIBS=$ac_func_search_save_LIBS
1526fi
1527echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1528echo "${ECHO_T}$ac_cv_search_strerror" >&6
1529if test "$ac_cv_search_strerror" != no; then
1530 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1531
1532fi
1533
1534ac_ext=c
1535ac_cpp='$CPP $CPPFLAGS'
1536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1540echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1541# On Suns, sometimes $CPP names a directory.
1542if test -n "$CPP" && test -d "$CPP"; then
1543 CPP=
1544fi
1545if test -z "$CPP"; then
1546 if test "${ac_cv_prog_CPP+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 # Double quotes because CPP needs to be expanded
1550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1551 do
1552 ac_preproc_ok=false
1553for ac_c_preproc_warn_flag in '' yes
1554do
1555 # Use a header file that comes with gcc, so configuring glibc
1556 # with a fresh cross-compiler works.
1557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1558 # <limits.h> exists even on freestanding compilers.
1559 # On the NeXT, cc -E runs the code through the compiler's parser,
1560 # not just through cpp. "Syntax error" is here to catch this case.
1561 cat >conftest.$ac_ext <<_ACEOF
1562/* confdefs.h. */
1563_ACEOF
1564cat confdefs.h >>conftest.$ac_ext
1565cat >>conftest.$ac_ext <<_ACEOF
1566/* end confdefs.h. */
1567#ifdef __STDC__
1568# include <limits.h>
1569#else
1570# include <assert.h>
1571#endif
1572 Syntax error
1573_ACEOF
1574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1576 ac_status=$?
1577 grep -v '^ *+' conftest.er1 >conftest.err
1578 rm -f conftest.er1
1579 cat conftest.err >&5
1580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1581 (exit $ac_status); } >/dev/null; then
1582 if test -s conftest.err; then
1583 ac_cpp_err=$ac_c_preproc_warn_flag
1584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1585 else
1586 ac_cpp_err=
1587 fi
1588else
1589 ac_cpp_err=yes
1590fi
1591if test -z "$ac_cpp_err"; then
1592 :
1593else
1594 echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 # Broken: fails on valid input.
1598continue
1599fi
1600rm -f conftest.err conftest.$ac_ext
1601
1602 # OK, works on sane cases. Now check whether non-existent headers
1603 # can be detected and how.
1604 cat >conftest.$ac_ext <<_ACEOF
1605/* confdefs.h. */
1606_ACEOF
1607cat confdefs.h >>conftest.$ac_ext
1608cat >>conftest.$ac_ext <<_ACEOF
1609/* end confdefs.h. */
1610#include <ac_nonexistent.h>
1611_ACEOF
1612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1614 ac_status=$?
1615 grep -v '^ *+' conftest.er1 >conftest.err
1616 rm -f conftest.er1
1617 cat conftest.err >&5
1618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1619 (exit $ac_status); } >/dev/null; then
1620 if test -s conftest.err; then
1621 ac_cpp_err=$ac_c_preproc_warn_flag
1622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1623 else
1624 ac_cpp_err=
1625 fi
1626else
1627 ac_cpp_err=yes
1628fi
1629if test -z "$ac_cpp_err"; then
1630 # Broken: success on invalid input.
1631continue
1632else
1633 echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 # Passes both tests.
1637ac_preproc_ok=:
1638break
1639fi
1640rm -f conftest.err conftest.$ac_ext
1641
1642done
1643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1644rm -f conftest.err conftest.$ac_ext
1645if $ac_preproc_ok; then
1646 break
1647fi
1648
1649 done
1650 ac_cv_prog_CPP=$CPP
1651
1652fi
1653 CPP=$ac_cv_prog_CPP
1654else
1655 ac_cv_prog_CPP=$CPP
1656fi
1657echo "$as_me:$LINENO: result: $CPP" >&5
1658echo "${ECHO_T}$CPP" >&6
1659ac_preproc_ok=false
1660for ac_c_preproc_warn_flag in '' yes
1661do
1662 # Use a header file that comes with gcc, so configuring glibc
1663 # with a fresh cross-compiler works.
1664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1665 # <limits.h> exists even on freestanding compilers.
1666 # On the NeXT, cc -E runs the code through the compiler's parser,
1667 # not just through cpp. "Syntax error" is here to catch this case.
1668 cat >conftest.$ac_ext <<_ACEOF
1669/* confdefs.h. */
1670_ACEOF
1671cat confdefs.h >>conftest.$ac_ext
1672cat >>conftest.$ac_ext <<_ACEOF
1673/* end confdefs.h. */
1674#ifdef __STDC__
1675# include <limits.h>
1676#else
1677# include <assert.h>
1678#endif
1679 Syntax error
1680_ACEOF
1681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1683 ac_status=$?
1684 grep -v '^ *+' conftest.er1 >conftest.err
1685 rm -f conftest.er1
1686 cat conftest.err >&5
1687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688 (exit $ac_status); } >/dev/null; then
1689 if test -s conftest.err; then
1690 ac_cpp_err=$ac_c_preproc_warn_flag
1691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1692 else
1693 ac_cpp_err=
1694 fi
1695else
1696 ac_cpp_err=yes
1697fi
1698if test -z "$ac_cpp_err"; then
1699 :
1700else
1701 echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 # Broken: fails on valid input.
1705continue
1706fi
1707rm -f conftest.err conftest.$ac_ext
1708
1709 # OK, works on sane cases. Now check whether non-existent headers
1710 # can be detected and how.
1711 cat >conftest.$ac_ext <<_ACEOF
1712/* confdefs.h. */
1713_ACEOF
1714cat confdefs.h >>conftest.$ac_ext
1715cat >>conftest.$ac_ext <<_ACEOF
1716/* end confdefs.h. */
1717#include <ac_nonexistent.h>
1718_ACEOF
1719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1721 ac_status=$?
1722 grep -v '^ *+' conftest.er1 >conftest.err
1723 rm -f conftest.er1
1724 cat conftest.err >&5
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); } >/dev/null; then
1727 if test -s conftest.err; then
1728 ac_cpp_err=$ac_c_preproc_warn_flag
1729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1730 else
1731 ac_cpp_err=
1732 fi
1733else
1734 ac_cpp_err=yes
1735fi
1736if test -z "$ac_cpp_err"; then
1737 # Broken: success on invalid input.
1738continue
1739else
1740 echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 # Passes both tests.
1744ac_preproc_ok=:
1745break
1746fi
1747rm -f conftest.err conftest.$ac_ext
1748
1749done
1750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1751rm -f conftest.err conftest.$ac_ext
1752if $ac_preproc_ok; then
1753 :
1754else
1755 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1756See \`config.log' for more details." >&5
1757echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1758See \`config.log' for more details." >&2;}
1759 { (exit 1); exit 1; }; }
1760fi
1761
1762ac_ext=c
1763ac_cpp='$CPP $CPPFLAGS'
1764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767
1768
1769echo "$as_me:$LINENO: checking for egrep" >&5
1770echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1771if test "${ac_cv_prog_egrep+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1775 then ac_cv_prog_egrep='grep -E'
1776 else ac_cv_prog_egrep='egrep'
1777 fi
1778fi
1779echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1780echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1781 EGREP=$ac_cv_prog_egrep
1782
1783
1784echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1785echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1786if test "${ac_cv_header_stdc+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789 cat >conftest.$ac_ext <<_ACEOF
1790/* confdefs.h. */
1791_ACEOF
1792cat confdefs.h >>conftest.$ac_ext
1793cat >>conftest.$ac_ext <<_ACEOF
1794/* end confdefs.h. */
1795#include <stdlib.h>
1796#include <stdarg.h>
1797#include <string.h>
1798#include <float.h>
1799
1800int
1801main ()
1802{
1803
1804 ;
1805 return 0;
1806}
1807_ACEOF
1808rm -f conftest.$ac_objext
1809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1810 (eval $ac_compile) 2>conftest.er1
1811 ac_status=$?
1812 grep -v '^ *+' conftest.er1 >conftest.err
1813 rm -f conftest.er1
1814 cat conftest.err >&5
1815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 (exit $ac_status); } &&
1817 { ac_try='test -z "$ac_c_werror_flag"
1818 || test ! -s conftest.err'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820 (eval $ac_try) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; } &&
1824 { ac_try='test -s conftest.$ac_objext'
1825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1826 (eval $ac_try) 2>&5
1827 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }; }; then
1830 ac_cv_header_stdc=yes
1831else
1832 echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835ac_cv_header_stdc=no
1836fi
1837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
1838
1839if test $ac_cv_header_stdc = yes; then
1840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b7026657
AC
1841 cat >conftest.$ac_ext <<_ACEOF
1842/* confdefs.h. */
1843_ACEOF
1844cat confdefs.h >>conftest.$ac_ext
1845cat >>conftest.$ac_ext <<_ACEOF
1846/* end confdefs.h. */
c906108c 1847#include <string.h>
b7026657
AC
1848
1849_ACEOF
c906108c 1850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 1851 $EGREP "memchr" >/dev/null 2>&1; then
c906108c
SS
1852 :
1853else
c906108c
SS
1854 ac_cv_header_stdc=no
1855fi
1856rm -f conftest*
1857
1858fi
1859
1860if test $ac_cv_header_stdc = yes; then
1861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b7026657
AC
1862 cat >conftest.$ac_ext <<_ACEOF
1863/* confdefs.h. */
1864_ACEOF
1865cat confdefs.h >>conftest.$ac_ext
1866cat >>conftest.$ac_ext <<_ACEOF
1867/* end confdefs.h. */
c906108c 1868#include <stdlib.h>
b7026657
AC
1869
1870_ACEOF
c906108c 1871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 1872 $EGREP "free" >/dev/null 2>&1; then
c906108c
SS
1873 :
1874else
c906108c
SS
1875 ac_cv_header_stdc=no
1876fi
1877rm -f conftest*
1878
1879fi
1880
1881if test $ac_cv_header_stdc = yes; then
1882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b7026657 1883 if test "$cross_compiling" = yes; then
c906108c
SS
1884 :
1885else
b7026657
AC
1886 cat >conftest.$ac_ext <<_ACEOF
1887/* confdefs.h. */
1888_ACEOF
1889cat confdefs.h >>conftest.$ac_ext
1890cat >>conftest.$ac_ext <<_ACEOF
1891/* end confdefs.h. */
c906108c 1892#include <ctype.h>
b7026657
AC
1893#if ((' ' & 0x0FF) == 0x020)
1894# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1895# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1896#else
1897# define ISLOWER(c) \
1898 (('a' <= (c) && (c) <= 'i') \
1899 || ('j' <= (c) && (c) <= 'r') \
1900 || ('s' <= (c) && (c) <= 'z'))
1901# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1902#endif
c906108c 1903
b7026657
AC
1904#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1905int
1906main ()
1907{
1908 int i;
1909 for (i = 0; i < 256; i++)
1910 if (XOR (islower (i), ISLOWER (i))
1911 || toupper (i) != TOUPPER (i))
1912 exit(2);
1913 exit (0);
1914}
1915_ACEOF
1916rm -f conftest$ac_exeext
1917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918 (eval $ac_link) 2>&5
1919 ac_status=$?
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923 (eval $ac_try) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; }; then
c906108c
SS
1927 :
1928else
b7026657
AC
1929 echo "$as_me: program exited with status $ac_status" >&5
1930echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933( exit $ac_status )
1934ac_cv_header_stdc=no
c906108c 1935fi
b7026657 1936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 1937fi
c906108c
SS
1938fi
1939fi
b7026657
AC
1940echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1941echo "${ECHO_T}$ac_cv_header_stdc" >&6
c906108c 1942if test $ac_cv_header_stdc = yes; then
b7026657
AC
1943
1944cat >>confdefs.h <<\_ACEOF
c906108c 1945#define STDC_HEADERS 1
b7026657
AC
1946_ACEOF
1947
1948fi
1949
1950echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1951echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1952if test "${ac_cv_c_const+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954else
1955 cat >conftest.$ac_ext <<_ACEOF
1956/* confdefs.h. */
1957_ACEOF
1958cat confdefs.h >>conftest.$ac_ext
1959cat >>conftest.$ac_ext <<_ACEOF
1960/* end confdefs.h. */
1961
1962int
1963main ()
1964{
1965/* FIXME: Include the comments suggested by Paul. */
1966#ifndef __cplusplus
1967 /* Ultrix mips cc rejects this. */
1968 typedef int charset[2];
1969 const charset x;
1970 /* SunOS 4.1.1 cc rejects this. */
1971 char const *const *ccp;
1972 char **p;
1973 /* NEC SVR4.0.2 mips cc rejects this. */
1974 struct point {int x, y;};
1975 static struct point const zero = {0,0};
1976 /* AIX XL C 1.02.0.0 rejects this.
1977 It does not let you subtract one const X* pointer from another in
1978 an arm of an if-expression whose if-part is not a constant
1979 expression */
1980 const char *g = "string";
1981 ccp = &g + (g ? g-g : 0);
1982 /* HPUX 7.0 cc rejects these. */
1983 ++ccp;
1984 p = (char**) ccp;
1985 ccp = (char const *const *) p;
1986 { /* SCO 3.2v4 cc rejects this. */
1987 char *t;
1988 char const *s = 0 ? (char *) 0 : (char const *) 0;
1989
1990 *t++ = 0;
1991 }
1992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1993 int x[] = {25, 17};
1994 const int *foo = &x[0];
1995 ++foo;
1996 }
1997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1998 typedef const int *iptr;
1999 iptr p = 0;
2000 ++p;
2001 }
2002 { /* AIX XL C 1.02.0.0 rejects this saying
2003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2004 struct s { int j; const int *ap[3]; };
2005 struct s *b; b->j = 5;
2006 }
2007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2008 const int foo = 10;
2009 }
2010#endif
c906108c 2011
b7026657
AC
2012 ;
2013 return 0;
2014}
2015_ACEOF
2016rm -f conftest.$ac_objext
2017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>conftest.er1
2019 ac_status=$?
2020 grep -v '^ *+' conftest.er1 >conftest.err
2021 rm -f conftest.er1
2022 cat conftest.err >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); } &&
2025 { ac_try='test -z "$ac_c_werror_flag"
2026 || test ! -s conftest.err'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
c906108c
SS
2038 ac_cv_c_const=yes
2039else
b7026657
AC
2040 echo "$as_me: failed program was:" >&5
2041sed 's/^/| /' conftest.$ac_ext >&5
2042
2043ac_cv_c_const=no
c906108c 2044fi
b7026657 2045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2046fi
b7026657
AC
2047echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2048echo "${ECHO_T}$ac_cv_c_const" >&6
c906108c 2049if test $ac_cv_c_const = no; then
b7026657
AC
2050
2051cat >>confdefs.h <<\_ACEOF
2052#define const
2053_ACEOF
c906108c
SS
2054
2055fi
2056
b7026657
AC
2057echo "$as_me:$LINENO: checking for inline" >&5
2058echo $ECHO_N "checking for inline... $ECHO_C" >&6
2059if test "${ac_cv_c_inline+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2061else
2062 ac_cv_c_inline=no
2063for ac_kw in inline __inline__ __inline; do
b7026657
AC
2064 cat >conftest.$ac_ext <<_ACEOF
2065/* confdefs.h. */
2066_ACEOF
2067cat confdefs.h >>conftest.$ac_ext
2068cat >>conftest.$ac_ext <<_ACEOF
2069/* end confdefs.h. */
2070#ifndef __cplusplus
2071typedef int foo_t;
2072static $ac_kw foo_t static_foo () {return 0; }
2073$ac_kw foo_t foo () {return 0; }
2074#endif
2075
2076_ACEOF
2077rm -f conftest.$ac_objext
2078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>conftest.er1
2080 ac_status=$?
2081 grep -v '^ *+' conftest.er1 >conftest.err
2082 rm -f conftest.er1
2083 cat conftest.err >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -z "$ac_c_werror_flag"
2087 || test ! -s conftest.err'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 (eval $ac_try) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; } &&
2093 { ac_try='test -s conftest.$ac_objext'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; }; then
c906108c
SS
2099 ac_cv_c_inline=$ac_kw; break
2100else
b7026657
AC
2101 echo "$as_me: failed program was:" >&5
2102sed 's/^/| /' conftest.$ac_ext >&5
2103
c906108c 2104fi
b7026657 2105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
2106done
2107
2108fi
b7026657
AC
2109echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2110echo "${ECHO_T}$ac_cv_c_inline" >&6
2111
c906108c 2112
b7026657 2113case $ac_cv_c_inline in
c906108c 2114 inline | yes) ;;
b7026657
AC
2115 *)
2116 case $ac_cv_c_inline in
2117 no) ac_val=;;
2118 *) ac_val=$ac_cv_c_inline;;
2119 esac
2120 cat >>confdefs.h <<_ACEOF
2121#ifndef __cplusplus
2122#define inline $ac_val
2123#endif
2124_ACEOF
2125 ;;
c906108c
SS
2126esac
2127
b7026657
AC
2128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2139 inttypes.h stdint.h unistd.h
2140do
2141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2142echo "$as_me:$LINENO: checking for $ac_header" >&5
2143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2144if eval "test \"\${$as_ac_Header+set}\" = set"; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
2147 cat >conftest.$ac_ext <<_ACEOF
2148/* confdefs.h. */
2149_ACEOF
2150cat confdefs.h >>conftest.$ac_ext
2151cat >>conftest.$ac_ext <<_ACEOF
2152/* end confdefs.h. */
2153$ac_includes_default
2154
2155#include <$ac_header>
2156_ACEOF
2157rm -f conftest.$ac_objext
2158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>conftest.er1
2160 ac_status=$?
2161 grep -v '^ *+' conftest.er1 >conftest.err
2162 rm -f conftest.er1
2163 cat conftest.err >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try='test -z "$ac_c_werror_flag"
2167 || test ! -s conftest.err'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 eval "$as_ac_Header=yes"
2180else
2181 echo "$as_me: failed program was:" >&5
2182sed 's/^/| /' conftest.$ac_ext >&5
2183
2184eval "$as_ac_Header=no"
2185fi
2186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2187fi
2188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2190if test `eval echo '${'$as_ac_Header'}'` = yes; then
2191 cat >>confdefs.h <<_ACEOF
2192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2193_ACEOF
2194
2195fi
2196
2197done
2198
2199
2200echo "$as_me:$LINENO: checking for off_t" >&5
2201echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2202if test "${ac_cv_type_off_t+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205 cat >conftest.$ac_ext <<_ACEOF
2206/* confdefs.h. */
2207_ACEOF
2208cat confdefs.h >>conftest.$ac_ext
2209cat >>conftest.$ac_ext <<_ACEOF
2210/* end confdefs.h. */
2211$ac_includes_default
2212int
2213main ()
2214{
2215if ((off_t *) 0)
2216 return 0;
2217if (sizeof (off_t))
2218 return 0;
2219 ;
2220 return 0;
2221}
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
c906108c
SS
2245 ac_cv_type_off_t=yes
2246else
b7026657
AC
2247 echo "$as_me: failed program was:" >&5
2248sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2249
b7026657
AC
2250ac_cv_type_off_t=no
2251fi
2252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2253fi
b7026657
AC
2254echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2255echo "${ECHO_T}$ac_cv_type_off_t" >&6
2256if test $ac_cv_type_off_t = yes; then
2257 :
2258else
2259
2260cat >>confdefs.h <<_ACEOF
c906108c 2261#define off_t long
b7026657 2262_ACEOF
c906108c
SS
2263
2264fi
2265
b7026657
AC
2266echo "$as_me:$LINENO: checking for size_t" >&5
2267echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2268if test "${ac_cv_type_size_t+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2270else
b7026657
AC
2271 cat >conftest.$ac_ext <<_ACEOF
2272/* confdefs.h. */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h. */
2277$ac_includes_default
2278int
2279main ()
2280{
2281if ((size_t *) 0)
2282 return 0;
2283if (sizeof (size_t))
2284 return 0;
2285 ;
2286 return 0;
2287}
2288_ACEOF
2289rm -f conftest.$ac_objext
2290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>conftest.er1
2292 ac_status=$?
2293 grep -v '^ *+' conftest.er1 >conftest.err
2294 rm -f conftest.er1
2295 cat conftest.err >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); } &&
2298 { ac_try='test -z "$ac_c_werror_flag"
2299 || test ! -s conftest.err'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; } &&
2305 { ac_try='test -s conftest.$ac_objext'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 (eval $ac_try) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
c906108c
SS
2311 ac_cv_type_size_t=yes
2312else
b7026657
AC
2313 echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2315
b7026657 2316ac_cv_type_size_t=no
c906108c 2317fi
b7026657
AC
2318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2319fi
2320echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2321echo "${ECHO_T}$ac_cv_type_size_t" >&6
2322if test $ac_cv_type_size_t = yes; then
2323 :
2324else
2325
2326cat >>confdefs.h <<_ACEOF
c906108c 2327#define size_t unsigned
b7026657 2328_ACEOF
c906108c
SS
2329
2330fi
2331
2332# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2333# for constant arguments. Useless!
b7026657
AC
2334echo "$as_me:$LINENO: checking for working alloca.h" >&5
2335echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2336if test "${ac_cv_working_alloca_h+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339 cat >conftest.$ac_ext <<_ACEOF
2340/* confdefs.h. */
2341_ACEOF
2342cat confdefs.h >>conftest.$ac_ext
2343cat >>conftest.$ac_ext <<_ACEOF
2344/* end confdefs.h. */
c906108c 2345#include <alloca.h>
b7026657
AC
2346int
2347main ()
2348{
2349char *p = (char *) alloca (2 * sizeof (int));
2350 ;
2351 return 0;
2352}
2353_ACEOF
2354rm -f conftest.$ac_objext conftest$ac_exeext
2355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2356 (eval $ac_link) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest$ac_exeext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_working_alloca_h=yes
2377else
2378 echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381ac_cv_working_alloca_h=no
2382fi
2383rm -f conftest.err conftest.$ac_objext \
2384 conftest$ac_exeext conftest.$ac_ext
2385fi
2386echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2387echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2388if test $ac_cv_working_alloca_h = yes; then
2389
2390cat >>confdefs.h <<\_ACEOF
c906108c 2391#define HAVE_ALLOCA_H 1
b7026657 2392_ACEOF
c906108c
SS
2393
2394fi
2395
b7026657
AC
2396echo "$as_me:$LINENO: checking for alloca" >&5
2397echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2398if test "${ac_cv_func_alloca_works+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2400else
b7026657
AC
2401 cat >conftest.$ac_ext <<_ACEOF
2402/* confdefs.h. */
2403_ACEOF
2404cat confdefs.h >>conftest.$ac_ext
2405cat >>conftest.$ac_ext <<_ACEOF
2406/* end confdefs.h. */
c906108c
SS
2407#ifdef __GNUC__
2408# define alloca __builtin_alloca
2409#else
2410# ifdef _MSC_VER
2411# include <malloc.h>
2412# define alloca _alloca
2413# else
2414# if HAVE_ALLOCA_H
2415# include <alloca.h>
2416# else
2417# ifdef _AIX
2418 #pragma alloca
2419# else
2420# ifndef alloca /* predefined by HP cc +Olibcalls */
2421char *alloca ();
2422# endif
2423# endif
2424# endif
2425# endif
2426#endif
2427
b7026657
AC
2428int
2429main ()
2430{
2431char *p = (char *) alloca (1);
2432 ;
2433 return 0;
2434}
2435_ACEOF
2436rm -f conftest.$ac_objext conftest$ac_exeext
2437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2438 (eval $ac_link) 2>conftest.er1
2439 ac_status=$?
2440 grep -v '^ *+' conftest.er1 >conftest.err
2441 rm -f conftest.er1
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } &&
2445 { ac_try='test -z "$ac_c_werror_flag"
2446 || test ! -s conftest.err'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; } &&
2452 { ac_try='test -s conftest$ac_exeext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
c906108c
SS
2458 ac_cv_func_alloca_works=yes
2459else
b7026657
AC
2460 echo "$as_me: failed program was:" >&5
2461sed 's/^/| /' conftest.$ac_ext >&5
2462
2463ac_cv_func_alloca_works=no
c906108c 2464fi
b7026657
AC
2465rm -f conftest.err conftest.$ac_objext \
2466 conftest$ac_exeext conftest.$ac_ext
c906108c 2467fi
b7026657
AC
2468echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2469echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
c906108c 2470
c906108c 2471if test $ac_cv_func_alloca_works = yes; then
c906108c 2472
b7026657
AC
2473cat >>confdefs.h <<\_ACEOF
2474#define HAVE_ALLOCA 1
2475_ACEOF
c906108c 2476
b7026657 2477else
c906108c 2478 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
b7026657
AC
2479# that cause trouble. Some versions do not even contain alloca or
2480# contain a buggy version. If you still want to use their alloca,
2481# use ar to extract alloca.o from them instead of compiling alloca.c.
2482
2483ALLOCA=alloca.$ac_objext
2484
2485cat >>confdefs.h <<\_ACEOF
c906108c 2486#define C_ALLOCA 1
b7026657 2487_ACEOF
c906108c
SS
2488
2489
b7026657
AC
2490echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2491echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2492if test "${ac_cv_os_cray+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2494else
b7026657
AC
2495 cat >conftest.$ac_ext <<_ACEOF
2496/* confdefs.h. */
2497_ACEOF
2498cat confdefs.h >>conftest.$ac_ext
2499cat >>conftest.$ac_ext <<_ACEOF
2500/* end confdefs.h. */
c906108c
SS
2501#if defined(CRAY) && ! defined(CRAY2)
2502webecray
2503#else
2504wenotbecray
2505#endif
2506
b7026657 2507_ACEOF
c906108c 2508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 2509 $EGREP "webecray" >/dev/null 2>&1; then
c906108c
SS
2510 ac_cv_os_cray=yes
2511else
c906108c
SS
2512 ac_cv_os_cray=no
2513fi
2514rm -f conftest*
2515
2516fi
b7026657
AC
2517echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2518echo "${ECHO_T}$ac_cv_os_cray" >&6
c906108c 2519if test $ac_cv_os_cray = yes; then
b7026657
AC
2520 for ac_func in _getb67 GETB67 getb67; do
2521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2522echo "$as_me:$LINENO: checking for $ac_func" >&5
2523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2524if eval "test \"\${$as_ac_var+set}\" = set"; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 cat >conftest.$ac_ext <<_ACEOF
2528/* confdefs.h. */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h. */
2533/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2535#define $ac_func innocuous_$ac_func
2536
c906108c 2537/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
2538 which can conflict with char $ac_func (); below.
2539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2540 <limits.h> exists even on freestanding compilers. */
2541
2542#ifdef __STDC__
2543# include <limits.h>
2544#else
2545# include <assert.h>
2546#endif
c906108c 2547
b7026657 2548#undef $ac_func
c906108c 2549
b7026657
AC
2550/* Override any gcc2 internal prototype to avoid an error. */
2551#ifdef __cplusplus
2552extern "C"
2553{
2554#endif
2555/* We use char because int might match the return type of a gcc2
2556 builtin and then its argument prototype would still apply. */
2557char $ac_func ();
c906108c
SS
2558/* The GNU C library defines this for functions which it implements
2559 to always fail with ENOSYS. Some functions are actually named
2560 something starting with __ and the normal name is an alias. */
2561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2562choke me
2563#else
b7026657
AC
2564char (*f) () = $ac_func;
2565#endif
2566#ifdef __cplusplus
2567}
c906108c
SS
2568#endif
2569
b7026657
AC
2570int
2571main ()
2572{
2573return f != $ac_func;
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext conftest$ac_exeext
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 eval "$as_ac_var=yes"
2601else
2602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605eval "$as_ac_var=no"
2606fi
2607rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
2609fi
2610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2611echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2612if test `eval echo '${'$as_ac_var'}'` = yes; then
2613
2614cat >>confdefs.h <<_ACEOF
c906108c 2615#define CRAY_STACKSEG_END $ac_func
b7026657 2616_ACEOF
c906108c 2617
b7026657 2618 break
c906108c
SS
2619fi
2620
b7026657 2621 done
c906108c
SS
2622fi
2623
b7026657
AC
2624echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2625echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2626if test "${ac_cv_c_stack_direction+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2628else
2629 if test "$cross_compiling" = yes; then
2630 ac_cv_c_stack_direction=0
2631else
b7026657
AC
2632 cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h. */
2638int
c906108c
SS
2639find_stack_direction ()
2640{
2641 static char *addr = 0;
2642 auto char dummy;
2643 if (addr == 0)
2644 {
2645 addr = &dummy;
2646 return find_stack_direction ();
2647 }
2648 else
2649 return (&dummy > addr) ? 1 : -1;
2650}
b7026657
AC
2651
2652int
c906108c
SS
2653main ()
2654{
b7026657 2655 exit (find_stack_direction () < 0);
c906108c 2656}
b7026657
AC
2657_ACEOF
2658rm -f conftest$ac_exeext
2659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660 (eval $ac_link) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
c906108c
SS
2669 ac_cv_c_stack_direction=1
2670else
b7026657
AC
2671 echo "$as_me: program exited with status $ac_status" >&5
2672echo "$as_me: failed program was:" >&5
2673sed 's/^/| /' conftest.$ac_ext >&5
2674
2675( exit $ac_status )
2676ac_cv_c_stack_direction=-1
c906108c 2677fi
b7026657 2678rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 2679fi
c906108c 2680fi
b7026657
AC
2681echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2682echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
c906108c 2683
b7026657 2684cat >>confdefs.h <<_ACEOF
c906108c 2685#define STACK_DIRECTION $ac_cv_c_stack_direction
b7026657
AC
2686_ACEOF
2687
c906108c
SS
2688
2689fi
2690
b7026657
AC
2691
2692
2693for ac_header in stdlib.h unistd.h
c906108c 2694do
b7026657
AC
2695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2696if eval "test \"\${$as_ac_Header+set}\" = set"; then
2697 echo "$as_me:$LINENO: checking for $ac_header" >&5
2698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2699if eval "test \"\${$as_ac_Header+set}\" = set"; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701fi
2702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2704else
2705 # Is the header compilable?
2706echo "$as_me:$LINENO: checking $ac_header usability" >&5
2707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2708cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h. */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h. */
2714$ac_includes_default
2715#include <$ac_header>
2716_ACEOF
2717rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 ac_header_compiler=yes
2740else
2741 echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744ac_header_compiler=no
2745fi
2746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2748echo "${ECHO_T}$ac_header_compiler" >&6
2749
2750# Is the header present?
2751echo "$as_me:$LINENO: checking $ac_header presence" >&5
2752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2753cat >conftest.$ac_ext <<_ACEOF
2754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
2759#include <$ac_header>
2760_ACEOF
2761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2763 ac_status=$?
2764 grep -v '^ *+' conftest.er1 >conftest.err
2765 rm -f conftest.er1
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } >/dev/null; then
2769 if test -s conftest.err; then
2770 ac_cpp_err=$ac_c_preproc_warn_flag
2771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2772 else
2773 ac_cpp_err=
2774 fi
2775else
2776 ac_cpp_err=yes
c906108c 2777fi
b7026657
AC
2778if test -z "$ac_cpp_err"; then
2779 ac_header_preproc=yes
2780else
2781 echo "$as_me: failed program was:" >&5
2782sed 's/^/| /' conftest.$ac_ext >&5
2783
2784 ac_header_preproc=no
c906108c 2785fi
b7026657
AC
2786rm -f conftest.err conftest.$ac_ext
2787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2788echo "${ECHO_T}$ac_header_preproc" >&6
2789
2790# So? What about this header?
2791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2792 yes:no: )
2793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2797 ac_header_preproc=yes
2798 ;;
2799 no:yes:* )
2800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2812 (
2813 cat <<\_ASBOX
2814## ------------------------------------------ ##
2815## Report this to the AC_PACKAGE_NAME lists. ##
2816## ------------------------------------------ ##
2817_ASBOX
2818 ) |
2819 sed "s/^/$as_me: WARNING: /" >&2
2820 ;;
2821esac
2822echo "$as_me:$LINENO: checking for $ac_header" >&5
2823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2824if eval "test \"\${$as_ac_Header+set}\" = set"; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2826else
b7026657
AC
2827 eval "$as_ac_Header=\$ac_header_preproc"
2828fi
2829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2831
2832fi
2833if test `eval echo '${'$as_ac_Header'}'` = yes; then
2834 cat >>confdefs.h <<_ACEOF
2835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2836_ACEOF
2837
c906108c 2838fi
b7026657 2839
c906108c
SS
2840done
2841
b7026657 2842
c906108c
SS
2843for ac_func in getpagesize
2844do
b7026657
AC
2845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2846echo "$as_me:$LINENO: checking for $ac_func" >&5
2847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2848if eval "test \"\${$as_ac_var+set}\" = set"; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850else
2851 cat >conftest.$ac_ext <<_ACEOF
2852/* confdefs.h. */
2853_ACEOF
2854cat confdefs.h >>conftest.$ac_ext
2855cat >>conftest.$ac_ext <<_ACEOF
2856/* end confdefs.h. */
2857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2859#define $ac_func innocuous_$ac_func
2860
c906108c 2861/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
2862 which can conflict with char $ac_func (); below.
2863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2864 <limits.h> exists even on freestanding compilers. */
2865
2866#ifdef __STDC__
2867# include <limits.h>
2868#else
2869# include <assert.h>
2870#endif
c906108c 2871
b7026657 2872#undef $ac_func
c906108c 2873
b7026657
AC
2874/* Override any gcc2 internal prototype to avoid an error. */
2875#ifdef __cplusplus
2876extern "C"
2877{
2878#endif
2879/* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
2881char $ac_func ();
c906108c
SS
2882/* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2886choke me
2887#else
b7026657
AC
2888char (*f) () = $ac_func;
2889#endif
2890#ifdef __cplusplus
2891}
c906108c
SS
2892#endif
2893
b7026657
AC
2894int
2895main ()
2896{
2897return f != $ac_func;
2898 ;
2899 return 0;
2900}
2901_ACEOF
2902rm -f conftest.$ac_objext conftest$ac_exeext
2903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2904 (eval $ac_link) 2>conftest.er1
2905 ac_status=$?
2906 grep -v '^ *+' conftest.er1 >conftest.err
2907 rm -f conftest.er1
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -z "$ac_c_werror_flag"
2912 || test ! -s conftest.err'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; } &&
2918 { ac_try='test -s conftest$ac_exeext'
2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 (eval $ac_try) 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2924 eval "$as_ac_var=yes"
2925else
2926 echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929eval "$as_ac_var=no"
2930fi
2931rm -f conftest.err conftest.$ac_objext \
2932 conftest$ac_exeext conftest.$ac_ext
2933fi
2934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2935echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2936if test `eval echo '${'$as_ac_var'}'` = yes; then
2937 cat >>confdefs.h <<_ACEOF
2938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2939_ACEOF
c906108c 2940
c906108c
SS
2941fi
2942done
2943
b7026657
AC
2944echo "$as_me:$LINENO: checking for working mmap" >&5
2945echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2946if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2948else
2949 if test "$cross_compiling" = yes; then
2950 ac_cv_func_mmap_fixed_mapped=no
2951else
b7026657
AC
2952 cat >conftest.$ac_ext <<_ACEOF
2953/* confdefs.h. */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h. */
2958$ac_includes_default
2959/* malloc might have been renamed as rpl_malloc. */
2960#undef malloc
c906108c
SS
2961
2962/* Thanks to Mike Haertel and Jim Avera for this test.
2963 Here is a matrix of mmap possibilities:
2964 mmap private not fixed
2965 mmap private fixed at somewhere currently unmapped
2966 mmap private fixed at somewhere already mapped
2967 mmap shared not fixed
2968 mmap shared fixed at somewhere currently unmapped
2969 mmap shared fixed at somewhere already mapped
2970 For private mappings, we should verify that changes cannot be read()
2971 back from the file, nor mmap's back from the file at a different
2972 address. (There have been systems where private was not correctly
2973 implemented like the infamous i386 svr4.0, and systems where the
b7026657 2974 VM page cache was not coherent with the file system buffer cache
c906108c
SS
2975 like early versions of FreeBSD and possibly contemporary NetBSD.)
2976 For shared mappings, we should conversely verify that changes get
b7026657 2977 propagated back to all the places they're supposed to be.
c906108c
SS
2978
2979 Grep wants private fixed already mapped.
2980 The main things grep needs to know about mmap are:
2981 * does it exist and is it safe to write into the mmap'd area
2982 * how to use it (BSD variants) */
b7026657 2983
c906108c
SS
2984#include <fcntl.h>
2985#include <sys/mman.h>
2986
b7026657
AC
2987#if !STDC_HEADERS && !HAVE_STDLIB_H
2988char *malloc ();
2989#endif
c906108c 2990
b7026657
AC
2991/* This mess was copied from the GNU getpagesize.h. */
2992#if !HAVE_GETPAGESIZE
c906108c 2993/* Assume that all systems that can run configure have sys/param.h. */
b7026657 2994# if !HAVE_SYS_PARAM_H
c906108c
SS
2995# define HAVE_SYS_PARAM_H 1
2996# endif
2997
2998# ifdef _SC_PAGESIZE
2999# define getpagesize() sysconf(_SC_PAGESIZE)
3000# else /* no _SC_PAGESIZE */
b7026657 3001# if HAVE_SYS_PARAM_H
c906108c
SS
3002# include <sys/param.h>
3003# ifdef EXEC_PAGESIZE
3004# define getpagesize() EXEC_PAGESIZE
3005# else /* no EXEC_PAGESIZE */
3006# ifdef NBPG
3007# define getpagesize() NBPG * CLSIZE
3008# ifndef CLSIZE
3009# define CLSIZE 1
3010# endif /* no CLSIZE */
3011# else /* no NBPG */
3012# ifdef NBPC
3013# define getpagesize() NBPC
3014# else /* no NBPC */
3015# ifdef PAGESIZE
3016# define getpagesize() PAGESIZE
3017# endif /* PAGESIZE */
3018# endif /* no NBPC */
3019# endif /* no NBPG */
3020# endif /* no EXEC_PAGESIZE */
3021# else /* no HAVE_SYS_PARAM_H */
3022# define getpagesize() 8192 /* punt totally */
3023# endif /* no HAVE_SYS_PARAM_H */
3024# endif /* no _SC_PAGESIZE */
3025
3026#endif /* no HAVE_GETPAGESIZE */
3027
c906108c 3028int
b7026657 3029main ()
c906108c 3030{
b7026657
AC
3031 char *data, *data2, *data3;
3032 int i, pagesize;
3033 int fd;
3034
3035 pagesize = getpagesize ();
3036
3037 /* First, make a file with some known garbage in it. */
3038 data = (char *) malloc (pagesize);
3039 if (!data)
3040 exit (1);
3041 for (i = 0; i < pagesize; ++i)
3042 *(data + i) = rand ();
3043 umask (0);
3044 fd = creat ("conftest.mmap", 0600);
3045 if (fd < 0)
3046 exit (1);
3047 if (write (fd, data, pagesize) != pagesize)
3048 exit (1);
3049 close (fd);
3050
3051 /* Next, try to mmap the file at a fixed address which already has
3052 something else allocated at it. If we can, also make sure that
3053 we see the same garbage. */
3054 fd = open ("conftest.mmap", O_RDWR);
3055 if (fd < 0)
3056 exit (1);
3057 data2 = (char *) malloc (2 * pagesize);
3058 if (!data2)
3059 exit (1);
3060 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3061 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3062 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3063 exit (1);
3064 for (i = 0; i < pagesize; ++i)
3065 if (*(data + i) != *(data2 + i))
3066 exit (1);
3067
3068 /* Finally, make sure that changes to the mapped area do not
3069 percolate back to the file as seen by read(). (This is a bug on
3070 some variants of i386 svr4.0.) */
3071 for (i = 0; i < pagesize; ++i)
3072 *(data2 + i) = *(data2 + i) + 1;
3073 data3 = (char *) malloc (pagesize);
3074 if (!data3)
3075 exit (1);
3076 if (read (fd, data3, pagesize) != pagesize)
3077 exit (1);
3078 for (i = 0; i < pagesize; ++i)
3079 if (*(data + i) != *(data3 + i))
3080 exit (1);
3081 close (fd);
3082 exit (0);
c906108c 3083}
b7026657
AC
3084_ACEOF
3085rm -f conftest$ac_exeext
3086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087 (eval $ac_link) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 (eval $ac_try) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
c906108c
SS
3096 ac_cv_func_mmap_fixed_mapped=yes
3097else
b7026657
AC
3098 echo "$as_me: program exited with status $ac_status" >&5
3099echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3101
b7026657
AC
3102( exit $ac_status )
3103ac_cv_func_mmap_fixed_mapped=no
c906108c 3104fi
b7026657 3105rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cd0fc7c3 3106fi
cd0fc7c3 3107fi
b7026657
AC
3108echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3109echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3110if test $ac_cv_func_mmap_fixed_mapped = yes; then
cd0fc7c3 3111
b7026657
AC
3112cat >>confdefs.h <<\_ACEOF
3113#define HAVE_MMAP 1
3114_ACEOF
cd0fc7c3 3115
cd0fc7c3 3116fi
b7026657 3117rm -f conftest.mmap
cd0fc7c3 3118
c906108c
SS
3119
3120# autoconf.info says this should be called right after AC_INIT.
b7026657 3121 ac_config_headers="$ac_config_headers config.h:config.in"
c906108c
SS
3122
3123
3124ac_aux_dir=
3125for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
3126 if test -f $ac_dir/install-sh; then
3127 ac_aux_dir=$ac_dir
3128 ac_install_sh="$ac_aux_dir/install-sh -c"
3129 break
3130 elif test -f $ac_dir/install.sh; then
3131 ac_aux_dir=$ac_dir
3132 ac_install_sh="$ac_aux_dir/install.sh -c"
3133 break
b7026657
AC
3134 elif test -f $ac_dir/shtool; then
3135 ac_aux_dir=$ac_dir
3136 ac_install_sh="$ac_aux_dir/shtool install -c"
3137 break
c906108c
SS
3138 fi
3139done
3140if test -z "$ac_aux_dir"; then
b7026657
AC
3141 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5
3142echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;}
3143 { (exit 1); exit 1; }; }
c906108c 3144fi
b7026657
AC
3145ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3146ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3147ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 3148
b7026657
AC
3149echo "$as_me:$LINENO: checking target system type" >&5
3150echo $ECHO_N "checking target system type... $ECHO_C" >&6
3151if test "${ac_cv_target+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154 ac_cv_target_alias=$target_alias
3155test "x$ac_cv_target_alias" = "x" &&
3156 ac_cv_target_alias=$ac_cv_host_alias
3157ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3158 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3159echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3160 { (exit 1); exit 1; }; }
c906108c 3161
c906108c 3162fi
b7026657
AC
3163echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3164echo "${ECHO_T}$ac_cv_target" >&6
3165target=$ac_cv_target
3166target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3167target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3168target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 3169
c906108c 3170
b7026657
AC
3171# The aliases save the names the user supplied, while $host etc.
3172# will get canonicalized.
3173test -n "$target_alias" &&
c906108c
SS
3174 test "$program_prefix$program_suffix$program_transform_name" = \
3175 NONENONEs,x,x, &&
3176 program_prefix=${target_alias}-
c906108c 3177test "$program_prefix" != NONE &&
b7026657 3178 program_transform_name="s,^,$program_prefix,;$program_transform_name"
c906108c
SS
3179# Use a double $ so make ignores it.
3180test "$program_suffix" != NONE &&
b7026657
AC
3181 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3182# Double any \ or $. echo might interpret backslashes.
3183# By default was `s,x,x', remove it if useless.
3184cat <<\_ACEOF >conftest.sed
3185s/[\\$]/&&/g;s/;s,x,x,$//
3186_ACEOF
3187program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3188rm conftest.sed
3189
3190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3197set dummy ${ac_tool_prefix}gcc; ac_word=$2
3198echo "$as_me:$LINENO: checking for $ac_word" >&5
3199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200if test "${ac_cv_prog_CC+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218done
c906108c 3219
b7026657
AC
3220fi
3221fi
3222CC=$ac_cv_prog_CC
3223if test -n "$CC"; then
3224 echo "$as_me:$LINENO: result: $CC" >&5
3225echo "${ECHO_T}$CC" >&6
3226else
3227 echo "$as_me:$LINENO: result: no" >&5
3228echo "${ECHO_T}no" >&6
3229fi
c906108c 3230
b7026657
AC
3231fi
3232if test -z "$ac_cv_prog_CC"; then
3233 ac_ct_CC=$CC
3234 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 3235set dummy gcc; ac_word=$2
b7026657
AC
3236echo "$as_me:$LINENO: checking for $ac_word" >&5
3237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241 if test -n "$ac_ct_CC"; then
3242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3243else
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_ac_ct_CC="gcc"
3252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 break 2
3254 fi
3255done
3256done
3257
3258fi
3259fi
3260ac_ct_CC=$ac_cv_prog_ac_ct_CC
3261if test -n "$ac_ct_CC"; then
3262 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3263echo "${ECHO_T}$ac_ct_CC" >&6
3264else
3265 echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267fi
3268
3269 CC=$ac_ct_CC
3270else
3271 CC="$ac_cv_prog_CC"
3272fi
3273
3274if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3277set dummy ${ac_tool_prefix}cc; ac_word=$2
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_prog_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3282else
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285else
b7026657
AC
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC="${ac_tool_prefix}cc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297done
3298done
3299
c906108c
SS
3300fi
3301fi
b7026657 3302CC=$ac_cv_prog_CC
c906108c 3303if test -n "$CC"; then
b7026657
AC
3304 echo "$as_me:$LINENO: result: $CC" >&5
3305echo "${ECHO_T}$CC" >&6
3306else
3307 echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
3309fi
3310
3311fi
3312if test -z "$ac_cv_prog_CC"; then
3313 ac_ct_CC=$CC
3314 # Extract the first word of "cc", so it can be a program name with args.
3315set dummy cc; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC="cc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
3337
3338fi
3339fi
3340ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341if test -n "$ac_ct_CC"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343echo "${ECHO_T}$ac_ct_CC" >&6
3344else
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
3348
3349 CC=$ac_ct_CC
c906108c 3350else
b7026657 3351 CC="$ac_cv_prog_CC"
c906108c
SS
3352fi
3353
b7026657 3354fi
c906108c
SS
3355if test -z "$CC"; then
3356 # Extract the first word of "cc", so it can be a program name with args.
3357set dummy cc; ac_word=$2
b7026657
AC
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_CC+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3362else
3363 if test -n "$CC"; then
b7026657
AC
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365else
3366 ac_prog_rejected=no
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3375 ac_prog_rejected=yes
3376 continue
3377 fi
3378 ac_cv_prog_CC="cc"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382done
3383done
3384
c906108c
SS
3385if test $ac_prog_rejected = yes; then
3386 # We found a bogon in the path, so make sure we never use it.
3387 set dummy $ac_cv_prog_CC
3388 shift
b7026657 3389 if test $# != 0; then
c906108c
SS
3390 # We chose a different compiler from the bogus one.
3391 # However, it has the same basename, so the bogon will be chosen
3392 # first if we set CC to just the basename; use the full file name.
3393 shift
b7026657 3394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
3395 fi
3396fi
3397fi
3398fi
b7026657 3399CC=$ac_cv_prog_CC
c906108c 3400if test -n "$CC"; then
b7026657
AC
3401 echo "$as_me:$LINENO: result: $CC" >&5
3402echo "${ECHO_T}$CC" >&6
c906108c 3403else
b7026657
AC
3404 echo "$as_me:$LINENO: result: no" >&5
3405echo "${ECHO_T}no" >&6
c906108c
SS
3406fi
3407
b7026657
AC
3408fi
3409if test -z "$CC"; then
3410 if test -n "$ac_tool_prefix"; then
3411 for ac_prog in cl
3412 do
3413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415echo "$as_me:$LINENO: checking for $ac_word" >&5
3416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417if test "${ac_cv_prog_CC+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3419else
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422else
b7026657
AC
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3433 fi
3434done
3435done
3436
c906108c
SS
3437fi
3438fi
b7026657 3439CC=$ac_cv_prog_CC
c906108c 3440if test -n "$CC"; then
b7026657
AC
3441 echo "$as_me:$LINENO: result: $CC" >&5
3442echo "${ECHO_T}$CC" >&6
c906108c 3443else
b7026657
AC
3444 echo "$as_me:$LINENO: result: no" >&5
3445echo "${ECHO_T}no" >&6
c906108c 3446fi
b7026657
AC
3447
3448 test -n "$CC" && break
3449 done
3450fi
3451if test -z "$CC"; then
3452 ac_ct_CC=$CC
3453 for ac_prog in cl
3454do
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456set dummy $ac_prog; ac_word=$2
3457echo "$as_me:$LINENO: checking for $ac_word" >&5
3458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_ac_ct_CC="$ac_prog"
3473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
c906108c 3475 fi
b7026657
AC
3476done
3477done
3478
3479fi
3480fi
3481ac_ct_CC=$ac_cv_prog_ac_ct_CC
3482if test -n "$ac_ct_CC"; then
3483 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3484echo "${ECHO_T}$ac_ct_CC" >&6
3485else
3486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
c906108c
SS
3488fi
3489
b7026657
AC
3490 test -n "$ac_ct_CC" && break
3491done
c906108c 3492
b7026657
AC
3493 CC=$ac_ct_CC
3494fi
3495
3496fi
3497
3498
3499test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3500See \`config.log' for more details." >&5
3501echo "$as_me: error: no acceptable C compiler found in \$PATH
3502See \`config.log' for more details." >&2;}
3503 { (exit 1); exit 1; }; }
3504
3505# Provide some information about the compiler.
3506echo "$as_me:$LINENO:" \
3507 "checking for C compiler version" >&5
3508ac_compiler=`set X $ac_compile; echo $2`
3509{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3510 (eval $ac_compiler --version </dev/null >&5) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }
3514{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3515 (eval $ac_compiler -v </dev/null >&5) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }
3519{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3520 (eval $ac_compiler -V </dev/null >&5) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }
3524
3525cat >conftest.$ac_ext <<_ACEOF
3526/* confdefs.h. */
3527_ACEOF
3528cat confdefs.h >>conftest.$ac_ext
3529cat >>conftest.$ac_ext <<_ACEOF
3530/* end confdefs.h. */
3531
3532int
3533main ()
3534{
3535
3536 ;
3537 return 0;
3538}
3539_ACEOF
3540ac_clean_files_save=$ac_clean_files
3541ac_clean_files="$ac_clean_files a.out a.exe b.out"
3542# Try to create an executable without -o first, disregard a.out.
3543# It will help us diagnose broken compilers, and finding out an intuition
3544# of exeext.
3545echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3546echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3547ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3548if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3549 (eval $ac_link_default) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; then
3553 # Find the output, starting from the most likely. This scheme is
3554# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3555# resort.
3556
3557# Be careful to initialize this variable, since it used to be cached.
3558# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3559ac_cv_exeext=
3560# b.out is created by i960 compilers.
3561for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3562do
3563 test -f "$ac_file" || continue
3564 case $ac_file in
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3566 ;;
3567 conftest.$ac_ext )
3568 # This is the source file.
3569 ;;
3570 [ab].out )
3571 # We found the default executable, but exeext='' is most
3572 # certainly right.
3573 break;;
3574 *.* )
3575 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3576 # FIXME: I believe we export ac_cv_exeext for Libtool,
3577 # but it would be cool to find out if it's true. Does anybody
3578 # maintain Libtool? --akim.
3579 export ac_cv_exeext
3580 break;;
3581 * )
3582 break;;
3583 esac
3584done
3585else
3586 echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3590See \`config.log' for more details." >&5
3591echo "$as_me: error: C compiler cannot create executables
3592See \`config.log' for more details." >&2;}
3593 { (exit 77); exit 77; }; }
3594fi
3595
3596ac_exeext=$ac_cv_exeext
3597echo "$as_me:$LINENO: result: $ac_file" >&5
3598echo "${ECHO_T}$ac_file" >&6
3599
3600# Check the compiler produces executables we can run. If not, either
3601# the compiler is broken, or we cross compile.
3602echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3603echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3604# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3605# If not cross compiling, check that we can run a simple program.
3606if test "$cross_compiling" != yes; then
3607 if { ac_try='./$ac_file'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 cross_compiling=no
c906108c 3614 else
b7026657
AC
3615 if test "$cross_compiling" = maybe; then
3616 cross_compiling=yes
3617 else
3618 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3619If you meant to cross compile, use \`--host'.
3620See \`config.log' for more details." >&5
3621echo "$as_me: error: cannot run C compiled programs.
3622If you meant to cross compile, use \`--host'.
3623See \`config.log' for more details." >&2;}
3624 { (exit 1); exit 1; }; }
3625 fi
c906108c 3626 fi
b7026657
AC
3627fi
3628echo "$as_me:$LINENO: result: yes" >&5
3629echo "${ECHO_T}yes" >&6
3630
3631rm -f a.out a.exe conftest$ac_cv_exeext b.out
3632ac_clean_files=$ac_clean_files_save
3633# Check the compiler produces executables we can run. If not, either
3634# the compiler is broken, or we cross compile.
3635echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3636echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3637echo "$as_me:$LINENO: result: $cross_compiling" >&5
3638echo "${ECHO_T}$cross_compiling" >&6
3639
3640echo "$as_me:$LINENO: checking for suffix of executables" >&5
3641echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643 (eval $ac_link) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; then
3647 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3648# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3649# work properly (i.e., refer to `conftest.exe'), while it won't with
3650# `rm'.
3651for ac_file in conftest.exe conftest conftest.*; do
3652 test -f "$ac_file" || continue
3653 case $ac_file in
3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656 export ac_cv_exeext
3657 break;;
3658 * ) break;;
3659 esac
3660done
c906108c 3661else
b7026657
AC
3662 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3663See \`config.log' for more details." >&5
3664echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3665See \`config.log' for more details." >&2;}
3666 { (exit 1); exit 1; }; }
c906108c 3667fi
c906108c 3668
b7026657
AC
3669rm -f conftest$ac_cv_exeext
3670echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3671echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 3672
b7026657
AC
3673rm -f conftest.$ac_ext
3674EXEEXT=$ac_cv_exeext
3675ac_exeext=$EXEEXT
3676echo "$as_me:$LINENO: checking for suffix of object files" >&5
3677echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3678if test "${ac_cv_objext+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681 cat >conftest.$ac_ext <<_ACEOF
3682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h. */
c906108c 3687
b7026657
AC
3688int
3689main ()
3690{
c906108c 3691
b7026657
AC
3692 ;
3693 return 0;
3694}
3695_ACEOF
3696rm -f conftest.o conftest.obj
3697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; then
3702 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706 break;;
3707 esac
3708done
c906108c 3709else
b7026657
AC
3710 echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3714See \`config.log' for more details." >&5
3715echo "$as_me: error: cannot compute suffix of object files: cannot compile
3716See \`config.log' for more details." >&2;}
3717 { (exit 1); exit 1; }; }
c906108c
SS
3718fi
3719
b7026657
AC
3720rm -f conftest.$ac_cv_objext conftest.$ac_ext
3721fi
3722echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3723echo "${ECHO_T}$ac_cv_objext" >&6
3724OBJEXT=$ac_cv_objext
3725ac_objext=$OBJEXT
3726echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3727echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3728if test "${ac_cv_c_compiler_gnu+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3730else
b7026657
AC
3731 cat >conftest.$ac_ext <<_ACEOF
3732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h. */
3737
3738int
3739main ()
3740{
3741#ifndef __GNUC__
3742 choke me
3743#endif
3744
3745 ;
3746 return 0;
3747}
3748_ACEOF
3749rm -f conftest.$ac_objext
3750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
3758 { ac_try='test -z "$ac_c_werror_flag"
3759 || test ! -s conftest.err'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; } &&
3765 { ac_try='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 ac_compiler_gnu=yes
3772else
3773 echo "$as_me: failed program was:" >&5
3774sed 's/^/| /' conftest.$ac_ext >&5
3775
3776ac_compiler_gnu=no
3777fi
3778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3779ac_cv_c_compiler_gnu=$ac_compiler_gnu
3780
3781fi
3782echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3783echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3784GCC=`test $ac_compiler_gnu = yes && echo yes`
3785ac_test_CFLAGS=${CFLAGS+set}
3786ac_save_CFLAGS=$CFLAGS
3787CFLAGS="-g"
3788echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3789echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3790if test "${ac_cv_prog_cc_g+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 cat >conftest.$ac_ext <<_ACEOF
3794/* confdefs.h. */
3795_ACEOF
3796cat confdefs.h >>conftest.$ac_ext
3797cat >>conftest.$ac_ext <<_ACEOF
3798/* end confdefs.h. */
3799
3800int
3801main ()
3802{
3803
3804 ;
3805 return 0;
3806}
3807_ACEOF
3808rm -f conftest.$ac_objext
3809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -z "$ac_c_werror_flag"
3818 || test ! -s conftest.err'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try='test -s conftest.$ac_objext'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then
c906108c
SS
3830 ac_cv_prog_cc_g=yes
3831else
b7026657
AC
3832 echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3834
b7026657 3835ac_cv_prog_cc_g=no
c906108c 3836fi
b7026657
AC
3837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3838fi
3839echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3840echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 3841if test "$ac_test_CFLAGS" = set; then
b7026657 3842 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3843elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3848 fi
3849else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3854 fi
3855fi
b7026657
AC
3856echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3857echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3858if test "${ac_cv_prog_cc_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861 ac_cv_prog_cc_stdc=no
3862ac_save_CC=$CC
3863cat >conftest.$ac_ext <<_ACEOF
3864/* confdefs.h. */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
3868/* end confdefs.h. */
3869#include <stdarg.h>
3870#include <stdio.h>
3871#include <sys/types.h>
3872#include <sys/stat.h>
3873/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3874struct buf { int x; };
3875FILE * (*rcsopen) (struct buf *, struct stat *, int);
3876static char *e (p, i)
3877 char **p;
3878 int i;
3879{
3880 return p[i];
3881}
3882static char *f (char * (*g) (char **, int), char **p, ...)
3883{
3884 char *s;
3885 va_list v;
3886 va_start (v,p);
3887 s = g (p, va_arg (v,int));
3888 va_end (v);
3889 return s;
3890}
3891
3892/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3893 function prototypes and stuff, but not '\xHH' hex character constants.
3894 These don't provoke an error unfortunately, instead are silently treated
3895 as 'x'. The following induces an error, until -std1 is added to get
3896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3897 array size at least. It's necessary to write '\x00'==0 to get something
3898 that's true only with -std1. */
3899int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3900
3901int test (int i, double x);
3902struct s1 {int (*f) (int a);};
3903struct s2 {int (*f) (double a);};
3904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905int argc;
3906char **argv;
3907int
3908main ()
3909{
3910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3911 ;
3912 return 0;
3913}
3914_ACEOF
3915# Don't try gcc -ansi; that turns off useful extensions and
3916# breaks some systems' header files.
3917# AIX -qlanglvl=ansi
3918# Ultrix and OSF/1 -std1
3919# HP-UX 10.20 and later -Ae
3920# HP-UX older versions -Aa -D_HPUX_SOURCE
3921# SVR4 -Xc -D__EXTENSIONS__
3922for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923do
3924 CC="$ac_save_CC $ac_arg"
3925 rm -f conftest.$ac_objext
3926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_prog_cc_stdc=$ac_arg
3948break
3949else
3950 echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
3952
3953fi
3954rm -f conftest.err conftest.$ac_objext
3955done
3956rm -f conftest.$ac_ext conftest.$ac_objext
3957CC=$ac_save_CC
3958
3959fi
3960
3961case "x$ac_cv_prog_cc_stdc" in
3962 x|xno)
3963 echo "$as_me:$LINENO: result: none needed" >&5
3964echo "${ECHO_T}none needed" >&6 ;;
3965 *)
3966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3967echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3968 CC="$CC $ac_cv_prog_cc_stdc" ;;
3969esac
3970
3971# Some people use a C++ compiler to compile C. Since we use `exit',
3972# in C++ we need to declare it. In case someone uses the same compiler
3973# for both compiling C and C++ we need to have the C++ compiler decide
3974# the declaration of exit, since it's the most demanding environment.
3975cat >conftest.$ac_ext <<_ACEOF
3976#ifndef __cplusplus
3977 choke me
3978#endif
3979_ACEOF
3980rm -f conftest.$ac_objext
3981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>conftest.er1
3983 ac_status=$?
3984 grep -v '^ *+' conftest.er1 >conftest.err
3985 rm -f conftest.er1
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try='test -z "$ac_c_werror_flag"
3990 || test ! -s conftest.err'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; } &&
3996 { ac_try='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 for ac_declaration in \
4003 '' \
4004 'extern "C" void std::exit (int) throw (); using std::exit;' \
4005 'extern "C" void std::exit (int); using std::exit;' \
4006 'extern "C" void exit (int) throw ();' \
4007 'extern "C" void exit (int);' \
4008 'void exit (int);'
4009do
4010 cat >conftest.$ac_ext <<_ACEOF
4011/* confdefs.h. */
4012_ACEOF
4013cat confdefs.h >>conftest.$ac_ext
4014cat >>conftest.$ac_ext <<_ACEOF
4015/* end confdefs.h. */
4016$ac_declaration
4017#include <stdlib.h>
4018int
4019main ()
4020{
4021exit (42);
4022 ;
4023 return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext
4027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 :
4049else
4050 echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053continue
4054fi
4055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4056 cat >conftest.$ac_ext <<_ACEOF
4057/* confdefs.h. */
4058_ACEOF
4059cat confdefs.h >>conftest.$ac_ext
4060cat >>conftest.$ac_ext <<_ACEOF
4061/* end confdefs.h. */
4062$ac_declaration
4063int
4064main ()
4065{
4066exit (42);
4067 ;
4068 return 0;
4069}
4070_ACEOF
4071rm -f conftest.$ac_objext
4072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 break
4094else
4095 echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098fi
4099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100done
4101rm -f conftest*
4102if test -n "$ac_declaration"; then
4103 echo '#ifdef __cplusplus' >>confdefs.h
4104 echo $ac_declaration >>confdefs.h
4105 echo '#endif' >>confdefs.h
4106fi
4107
4108else
4109 echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112fi
4113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114ac_ext=c
4115ac_cpp='$CPP $CPPFLAGS'
4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
4119
4120# Find a good install program. We prefer a C program (faster),
4121# so one script is as good as another. But avoid the broken or
4122# incompatible versions:
4123# SysV /etc/install, /usr/sbin/install
4124# SunOS /usr/etc/install
4125# IRIX /sbin/install
4126# AIX /bin/install
b7026657 4127# AmigaOS /C/install, which installs bootblocks on floppy discs
c906108c
SS
4128# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4129# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4130# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b7026657 4131# OS/2's system install, which has a completely different semantic
c906108c 4132# ./install, which can be erroneously created by make from ./install.sh.
b7026657
AC
4133echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4134echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
c906108c 4135if test -z "$INSTALL"; then
b7026657
AC
4136if test "${ac_cv_path_install+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4138else
b7026657
AC
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 # Account for people who put trailing slashes in PATH elements.
4145case $as_dir/ in
4146 ./ | .// | /cC/* | \
4147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4148 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4149 /usr/ucb/* ) ;;
4150 *)
4151 # OSF1 and SCO ODT 3.0 have their own names for install.
4152 # Don't use installbsd from OSF since it installs stuff as root
4153 # by default.
4154 for ac_prog in ginstall scoinst install; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
c906108c 4157 if test $ac_prog = install &&
b7026657 4158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
c906108c
SS
4159 # AIX install. It has an incompatible calling convention.
4160 :
b7026657
AC
4161 elif test $ac_prog = install &&
4162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4163 # program-specific install script used by HP pwplus--don't use.
4164 :
c906108c 4165 else
b7026657
AC
4166 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4167 break 3
c906108c
SS
4168 fi
4169 fi
4170 done
b7026657
AC
4171 done
4172 ;;
4173esac
4174done
4175
c906108c
SS
4176
4177fi
4178 if test "${ac_cv_path_install+set}" = set; then
b7026657 4179 INSTALL=$ac_cv_path_install
c906108c
SS
4180 else
4181 # As a last resort, use the slow shell script. We don't cache a
4182 # path for INSTALL within a source directory, because that will
4183 # break other packages using the cache if that directory is
4184 # removed, or if the path is relative.
b7026657 4185 INSTALL=$ac_install_sh
c906108c
SS
4186 fi
4187fi
b7026657
AC
4188echo "$as_me:$LINENO: result: $INSTALL" >&5
4189echo "${ECHO_T}$INSTALL" >&6
c906108c
SS
4190
4191# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4192# It thinks the first close brace ends the variable substitution.
4193test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4194
b7026657 4195test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cd0fc7c3 4196
c906108c
SS
4197test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4198
4199
4200# Put a plausible default for CC_FOR_BUILD in Makefile.
4201if test "x$cross_compiling" = "xno"; then
4202 CC_FOR_BUILD='$(CC)'
4203else
4204 CC_FOR_BUILD=gcc
4205fi
4206
4207
4208
4209
4210AR=${AR-ar}
4211
b7026657
AC
4212if test -n "$ac_tool_prefix"; then
4213 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4214set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4215echo "$as_me:$LINENO: checking for $ac_word" >&5
4216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217if test "${ac_cv_prog_RANLIB+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
4219else
4220 if test -n "$RANLIB"; then
4221 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4222else
b7026657
AC
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234done
4235done
4236
c906108c
SS
4237fi
4238fi
b7026657 4239RANLIB=$ac_cv_prog_RANLIB
c906108c 4240if test -n "$RANLIB"; then
b7026657
AC
4241 echo "$as_me:$LINENO: result: $RANLIB" >&5
4242echo "${ECHO_T}$RANLIB" >&6
c906108c 4243else
b7026657
AC
4244 echo "$as_me:$LINENO: result: no" >&5
4245echo "${ECHO_T}no" >&6
4246fi
4247
4248fi
4249if test -z "$ac_cv_prog_RANLIB"; then
4250 ac_ct_RANLIB=$RANLIB
4251 # Extract the first word of "ranlib", so it can be a program name with args.
4252set dummy ranlib; ac_word=$2
4253echo "$as_me:$LINENO: checking for $ac_word" >&5
4254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258 if test -n "$ac_ct_RANLIB"; then
4259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_ac_ct_RANLIB="ranlib"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272done
4273done
4274
4275 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4276fi
4277fi
4278ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4279if test -n "$ac_ct_RANLIB"; then
4280 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4281echo "${ECHO_T}$ac_ct_RANLIB" >&6
4282else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285fi
4286
4287 RANLIB=$ac_ct_RANLIB
4288else
4289 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
4290fi
4291
4292
4293ALL_LINGUAS=
b7026657
AC
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
c906108c
SS
4305unistd.h values.h sys/param.h
4306do
b7026657
AC
4307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4308if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309 echo "$as_me:$LINENO: checking for $ac_header" >&5
4310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4311if eval "test \"\${$as_ac_Header+set}\" = set"; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313fi
4314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316else
4317 # Is the header compilable?
4318echo "$as_me:$LINENO: checking $ac_header usability" >&5
4319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4320cat >conftest.$ac_ext <<_ACEOF
4321/* confdefs.h. */
4322_ACEOF
4323cat confdefs.h >>conftest.$ac_ext
4324cat >>conftest.$ac_ext <<_ACEOF
4325/* end confdefs.h. */
4326$ac_includes_default
4327#include <$ac_header>
4328_ACEOF
4329rm -f conftest.$ac_objext
4330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>conftest.er1
4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -z "$ac_c_werror_flag"
4339 || test ! -s conftest.err'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; } &&
4345 { ac_try='test -s conftest.$ac_objext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_header_compiler=yes
4352else
4353 echo "$as_me: failed program was:" >&5
4354sed 's/^/| /' conftest.$ac_ext >&5
4355
4356ac_header_compiler=no
4357fi
4358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4360echo "${ECHO_T}$ac_header_compiler" >&6
4361
4362# Is the header present?
4363echo "$as_me:$LINENO: checking $ac_header presence" >&5
4364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4365cat >conftest.$ac_ext <<_ACEOF
4366/* confdefs.h. */
4367_ACEOF
4368cat confdefs.h >>conftest.$ac_ext
4369cat >>conftest.$ac_ext <<_ACEOF
4370/* end confdefs.h. */
4371#include <$ac_header>
4372_ACEOF
4373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } >/dev/null; then
4381 if test -s conftest.err; then
4382 ac_cpp_err=$ac_c_preproc_warn_flag
4383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4384 else
4385 ac_cpp_err=
4386 fi
4387else
4388 ac_cpp_err=yes
c906108c 4389fi
b7026657
AC
4390if test -z "$ac_cpp_err"; then
4391 ac_header_preproc=yes
4392else
4393 echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396 ac_header_preproc=no
c906108c 4397fi
b7026657
AC
4398rm -f conftest.err conftest.$ac_ext
4399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4400echo "${ECHO_T}$ac_header_preproc" >&6
4401
4402# So? What about this header?
4403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4404 yes:no: )
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4409 ac_header_preproc=yes
4410 ;;
4411 no:yes:* )
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4424 (
4425 cat <<\_ASBOX
4426## ------------------------------------------ ##
4427## Report this to the AC_PACKAGE_NAME lists. ##
4428## ------------------------------------------ ##
4429_ASBOX
4430 ) |
4431 sed "s/^/$as_me: WARNING: /" >&2
4432 ;;
4433esac
4434echo "$as_me:$LINENO: checking for $ac_header" >&5
4435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4436if eval "test \"\${$as_ac_Header+set}\" = set"; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4438else
b7026657
AC
4439 eval "$as_ac_Header=\$ac_header_preproc"
4440fi
4441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4443
4444fi
4445if test `eval echo '${'$as_ac_Header'}'` = yes; then
4446 cat >>confdefs.h <<_ACEOF
4447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448_ACEOF
4449
c906108c 4450fi
b7026657 4451
c906108c
SS
4452done
4453
b7026657
AC
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
c906108c
SS
4465__argz_count __argz_stringify __argz_next
4466do
b7026657
AC
4467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4468echo "$as_me:$LINENO: checking for $ac_func" >&5
4469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4470if eval "test \"\${$as_ac_var+set}\" = set"; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473 cat >conftest.$ac_ext <<_ACEOF
4474/* confdefs.h. */
4475_ACEOF
4476cat confdefs.h >>conftest.$ac_ext
4477cat >>conftest.$ac_ext <<_ACEOF
4478/* end confdefs.h. */
4479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4481#define $ac_func innocuous_$ac_func
4482
c906108c 4483/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4484 which can conflict with char $ac_func (); below.
4485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4486 <limits.h> exists even on freestanding compilers. */
4487
4488#ifdef __STDC__
4489# include <limits.h>
4490#else
4491# include <assert.h>
4492#endif
c906108c 4493
b7026657 4494#undef $ac_func
c906108c 4495
b7026657
AC
4496/* Override any gcc2 internal prototype to avoid an error. */
4497#ifdef __cplusplus
4498extern "C"
4499{
4500#endif
4501/* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4503char $ac_func ();
c906108c
SS
4504/* The GNU C library defines this for functions which it implements
4505 to always fail with ENOSYS. Some functions are actually named
4506 something starting with __ and the normal name is an alias. */
4507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4508choke me
4509#else
b7026657
AC
4510char (*f) () = $ac_func;
4511#endif
4512#ifdef __cplusplus
4513}
c906108c
SS
4514#endif
4515
b7026657
AC
4516int
4517main ()
4518{
4519return f != $ac_func;
4520 ;
4521 return 0;
4522}
4523_ACEOF
4524rm -f conftest.$ac_objext conftest$ac_exeext
4525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4526 (eval $ac_link) 2>conftest.er1
4527 ac_status=$?
4528 grep -v '^ *+' conftest.er1 >conftest.err
4529 rm -f conftest.er1
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest$ac_exeext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 eval "$as_ac_var=yes"
4547else
4548 echo "$as_me: failed program was:" >&5
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
4551eval "$as_ac_var=no"
4552fi
4553rm -f conftest.err conftest.$ac_objext \
4554 conftest$ac_exeext conftest.$ac_ext
4555fi
4556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4558if test `eval echo '${'$as_ac_var'}'` = yes; then
4559 cat >>confdefs.h <<_ACEOF
4560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4561_ACEOF
c906108c 4562
c906108c
SS
4563fi
4564done
4565
4566
4567 if test "${ac_cv_func_stpcpy+set}" != "set"; then
b7026657
AC
4568
4569for ac_func in stpcpy
c906108c 4570do
b7026657
AC
4571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4572echo "$as_me:$LINENO: checking for $ac_func" >&5
4573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4574if eval "test \"\${$as_ac_var+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577 cat >conftest.$ac_ext <<_ACEOF
4578/* confdefs.h. */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h. */
4583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4585#define $ac_func innocuous_$ac_func
4586
c906108c 4587/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4588 which can conflict with char $ac_func (); below.
4589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4590 <limits.h> exists even on freestanding compilers. */
4591
4592#ifdef __STDC__
4593# include <limits.h>
4594#else
4595# include <assert.h>
4596#endif
c906108c 4597
b7026657 4598#undef $ac_func
c906108c 4599
b7026657
AC
4600/* Override any gcc2 internal prototype to avoid an error. */
4601#ifdef __cplusplus
4602extern "C"
4603{
4604#endif
4605/* We use char because int might match the return type of a gcc2
4606 builtin and then its argument prototype would still apply. */
4607char $ac_func ();
c906108c
SS
4608/* The GNU C library defines this for functions which it implements
4609 to always fail with ENOSYS. Some functions are actually named
4610 something starting with __ and the normal name is an alias. */
4611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4612choke me
4613#else
b7026657
AC
4614char (*f) () = $ac_func;
4615#endif
4616#ifdef __cplusplus
4617}
c906108c
SS
4618#endif
4619
b7026657
AC
4620int
4621main ()
4622{
4623return f != $ac_func;
4624 ;
4625 return 0;
4626}
4627_ACEOF
4628rm -f conftest.$ac_objext conftest$ac_exeext
4629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630 (eval $ac_link) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -z "$ac_c_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest$ac_exeext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 eval "$as_ac_var=yes"
4651else
4652 echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
4655eval "$as_ac_var=no"
4656fi
4657rm -f conftest.err conftest.$ac_objext \
4658 conftest$ac_exeext conftest.$ac_ext
4659fi
4660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4662if test `eval echo '${'$as_ac_var'}'` = yes; then
4663 cat >>confdefs.h <<_ACEOF
4664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4665_ACEOF
c906108c 4666
c906108c
SS
4667fi
4668done
4669
4670 fi
4671 if test "${ac_cv_func_stpcpy}" = "yes"; then
b7026657 4672 cat >>confdefs.h <<\_ACEOF
c906108c 4673#define HAVE_STPCPY 1
b7026657 4674_ACEOF
c906108c
SS
4675
4676 fi
4677
4678 if test $ac_cv_header_locale_h = yes; then
b7026657
AC
4679 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4680echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4681if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684 cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h. */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h. */
c906108c 4690#include <locale.h>
b7026657
AC
4691int
4692main ()
4693{
c906108c 4694return LC_MESSAGES
b7026657
AC
4695 ;
4696 return 0;
4697}
4698_ACEOF
4699rm -f conftest.$ac_objext conftest$ac_exeext
4700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
c906108c
SS
4721 am_cv_val_LC_MESSAGES=yes
4722else
b7026657
AC
4723 echo "$as_me: failed program was:" >&5
4724sed 's/^/| /' conftest.$ac_ext >&5
4725
4726am_cv_val_LC_MESSAGES=no
c906108c 4727fi
b7026657
AC
4728rm -f conftest.err conftest.$ac_objext \
4729 conftest$ac_exeext conftest.$ac_ext
c906108c 4730fi
b7026657
AC
4731echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4732echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c906108c 4733 if test $am_cv_val_LC_MESSAGES = yes; then
b7026657 4734 cat >>confdefs.h <<\_ACEOF
c906108c 4735#define HAVE_LC_MESSAGES 1
b7026657 4736_ACEOF
c906108c
SS
4737
4738 fi
4739 fi
b7026657
AC
4740 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4741echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
c906108c
SS
4742 # Check whether --enable-nls or --disable-nls was given.
4743if test "${enable_nls+set}" = set; then
4744 enableval="$enable_nls"
4745 USE_NLS=$enableval
4746else
4747 USE_NLS=yes
b7026657
AC
4748fi;
4749 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4750echo "${ECHO_T}$USE_NLS" >&6
c906108c 4751
c906108c
SS
4752
4753 USE_INCLUDED_LIBINTL=no
4754
4755 if test "$USE_NLS" = "yes"; then
b7026657 4756 cat >>confdefs.h <<\_ACEOF
c906108c 4757#define ENABLE_NLS 1
b7026657
AC
4758_ACEOF
4759
4760 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4761echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
c906108c 4762
b7026657 4763# Check whether --with-included-gettext or --without-included-gettext was given.
c906108c
SS
4764if test "${with_included_gettext+set}" = set; then
4765 withval="$with_included_gettext"
4766 nls_cv_force_use_gnu_gettext=$withval
4767else
4768 nls_cv_force_use_gnu_gettext=no
b7026657
AC
4769fi;
4770 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4771echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
c906108c
SS
4772
4773 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4774 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4775 nls_cv_header_intl=
4776 nls_cv_header_libgt=
4777 CATOBJEXT=NONE
4778
b7026657
AC
4779 if test "${ac_cv_header_libintl_h+set}" = set; then
4780 echo "$as_me:$LINENO: checking for libintl.h" >&5
4781echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4782if test "${ac_cv_header_libintl_h+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784fi
4785echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4786echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4787else
4788 # Is the header compilable?
4789echo "$as_me:$LINENO: checking libintl.h usability" >&5
4790echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4791cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h. */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h. */
4797$ac_includes_default
4798#include <libintl.h>
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_c_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_header_compiler=yes
4823else
4824 echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827ac_header_compiler=no
4828fi
4829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831echo "${ECHO_T}$ac_header_compiler" >&6
4832
4833# Is the header present?
4834echo "$as_me:$LINENO: checking libintl.h presence" >&5
4835echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4836cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h. */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h. */
c906108c 4842#include <libintl.h>
b7026657
AC
4843_ACEOF
4844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null; then
4852 if test -s conftest.err; then
4853 ac_cpp_err=$ac_c_preproc_warn_flag
4854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855 else
4856 ac_cpp_err=
4857 fi
4858else
4859 ac_cpp_err=yes
c906108c 4860fi
b7026657
AC
4861if test -z "$ac_cpp_err"; then
4862 ac_header_preproc=yes
4863else
4864 echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867 ac_header_preproc=no
4868fi
4869rm -f conftest.err conftest.$ac_ext
4870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871echo "${ECHO_T}$ac_header_preproc" >&6
4872
4873# So? What about this header?
4874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875 yes:no: )
4876 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4877echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4879echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4880 ac_header_preproc=yes
4881 ;;
4882 no:yes:* )
4883 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4884echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4886echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4888echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4890echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4892echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4894echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4895 (
4896 cat <<\_ASBOX
4897## ------------------------------------------ ##
4898## Report this to the AC_PACKAGE_NAME lists. ##
4899## ------------------------------------------ ##
4900_ASBOX
4901 ) |
4902 sed "s/^/$as_me: WARNING: /" >&2
4903 ;;
4904esac
4905echo "$as_me:$LINENO: checking for libintl.h" >&5
4906echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4907if test "${ac_cv_header_libintl_h+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910 ac_cv_header_libintl_h=$ac_header_preproc
c906108c 4911fi
b7026657
AC
4912echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4913echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4914
4915fi
4916if test $ac_cv_header_libintl_h = yes; then
4917 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4918echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4919if test "${gt_cv_func_gettext_libc+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4921else
b7026657
AC
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
c906108c 4928#include <libintl.h>
b7026657
AC
4929int
4930main ()
4931{
c906108c 4932return (int) gettext ("")
b7026657
AC
4933 ;
4934 return 0;
4935}
4936_ACEOF
4937rm -f conftest.$ac_objext conftest$ac_exeext
4938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4939 (eval $ac_link) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } &&
4946 { ac_try='test -z "$ac_c_werror_flag"
4947 || test ! -s conftest.err'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; } &&
4953 { ac_try='test -s conftest$ac_exeext'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
c906108c
SS
4959 gt_cv_func_gettext_libc=yes
4960else
b7026657
AC
4961 echo "$as_me: failed program was:" >&5
4962sed 's/^/| /' conftest.$ac_ext >&5
4963
4964gt_cv_func_gettext_libc=no
c906108c 4965fi
b7026657
AC
4966rm -f conftest.err conftest.$ac_objext \
4967 conftest$ac_exeext conftest.$ac_ext
c906108c 4968fi
b7026657
AC
4969echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4970echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
c906108c
SS
4971
4972 if test "$gt_cv_func_gettext_libc" != "yes"; then
b7026657
AC
4973 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4974echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4975if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4977else
b7026657 4978 ac_check_lib_save_LIBS=$LIBS
c906108c 4979LIBS="-lintl $LIBS"
b7026657
AC
4980cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
4986
c906108c 4987/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4988#ifdef __cplusplus
4989extern "C"
4990#endif
c906108c 4991/* We use char because int might match the return type of a gcc2
b7026657
AC
4992 builtin and then its argument prototype would still apply. */
4993char bindtextdomain ();
4994int
4995main ()
4996{
4997bindtextdomain ();
4998 ;
4999 return 0;
5000}
5001_ACEOF
5002rm -f conftest.$ac_objext conftest$ac_exeext
5003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_lib_intl_bindtextdomain=yes
5025else
5026 echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029ac_cv_lib_intl_bindtextdomain=no
5030fi
5031rm -f conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5033LIBS=$ac_check_lib_save_LIBS
5034fi
5035echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5036echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5037if test $ac_cv_lib_intl_bindtextdomain = yes; then
5038 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5039echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5040if test "${gt_cv_func_gettext_libintl+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042else
5043 cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
c906108c 5049
b7026657
AC
5050int
5051main ()
5052{
c906108c 5053return (int) gettext ("")
b7026657
AC
5054 ;
5055 return 0;
5056}
5057_ACEOF
5058rm -f conftest.$ac_objext conftest$ac_exeext
5059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060 (eval $ac_link) 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -z "$ac_c_werror_flag"
5068 || test ! -s conftest.err'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try='test -s conftest$ac_exeext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
c906108c
SS
5080 gt_cv_func_gettext_libintl=yes
5081else
b7026657
AC
5082 echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085gt_cv_func_gettext_libintl=no
c906108c 5086fi
b7026657
AC
5087rm -f conftest.err conftest.$ac_objext \
5088 conftest$ac_exeext conftest.$ac_ext
c906108c 5089fi
b7026657
AC
5090echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5091echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
c906108c
SS
5092fi
5093
5094 fi
5095
5096 if test "$gt_cv_func_gettext_libc" = "yes" \
5097 || test "$gt_cv_func_gettext_libintl" = "yes"; then
b7026657 5098 cat >>confdefs.h <<\_ACEOF
c906108c 5099#define HAVE_GETTEXT 1
b7026657 5100_ACEOF
c906108c
SS
5101
5102 # Extract the first word of "msgfmt", so it can be a program name with args.
5103set dummy msgfmt; ac_word=$2
b7026657
AC
5104echo "$as_me:$LINENO: checking for $ac_word" >&5
5105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106if test "${ac_cv_path_MSGFMT+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5108else
5109 case "$MSGFMT" in
5110 /*)
5111 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5112 ;;
5113 *)
5114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5115 for ac_dir in $PATH; do
5116 test -z "$ac_dir" && ac_dir=.
5117 if test -f $ac_dir/$ac_word; then
5118 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5119 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5120 break
5121 fi
5122 fi
5123 done
5124 IFS="$ac_save_ifs"
5125 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5126 ;;
5127esac
5128fi
5129MSGFMT="$ac_cv_path_MSGFMT"
5130if test -n "$MSGFMT"; then
b7026657
AC
5131 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5132echo "${ECHO_T}$MSGFMT" >&6
c906108c 5133else
b7026657
AC
5134 echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
c906108c
SS
5136fi
5137 if test "$MSGFMT" != "no"; then
b7026657
AC
5138
5139for ac_func in dcgettext
c906108c 5140do
b7026657
AC
5141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5142echo "$as_me:$LINENO: checking for $ac_func" >&5
5143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5144if eval "test \"\${$as_ac_var+set}\" = set"; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147 cat >conftest.$ac_ext <<_ACEOF
5148/* confdefs.h. */
5149_ACEOF
5150cat confdefs.h >>conftest.$ac_ext
5151cat >>conftest.$ac_ext <<_ACEOF
5152/* end confdefs.h. */
5153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5155#define $ac_func innocuous_$ac_func
5156
c906108c 5157/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
5158 which can conflict with char $ac_func (); below.
5159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160 <limits.h> exists even on freestanding compilers. */
5161
5162#ifdef __STDC__
5163# include <limits.h>
5164#else
5165# include <assert.h>
5166#endif
c906108c 5167
b7026657 5168#undef $ac_func
c906108c 5169
b7026657
AC
5170/* Override any gcc2 internal prototype to avoid an error. */
5171#ifdef __cplusplus
5172extern "C"
5173{
5174#endif
5175/* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */
5177char $ac_func ();
c906108c
SS
5178/* The GNU C library defines this for functions which it implements
5179 to always fail with ENOSYS. Some functions are actually named
5180 something starting with __ and the normal name is an alias. */
5181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5182choke me
5183#else
b7026657
AC
5184char (*f) () = $ac_func;
5185#endif
5186#ifdef __cplusplus
5187}
c906108c
SS
5188#endif
5189
b7026657
AC
5190int
5191main ()
5192{
5193return f != $ac_func;
5194 ;
5195 return 0;
5196}
5197_ACEOF
5198rm -f conftest.$ac_objext conftest$ac_exeext
5199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200 (eval $ac_link) 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag"
5208 || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 (eval $ac_try) 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try='test -s conftest$ac_exeext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 eval "$as_ac_var=yes"
5221else
5222 echo "$as_me: failed program was:" >&5
5223sed 's/^/| /' conftest.$ac_ext >&5
5224
5225eval "$as_ac_var=no"
5226fi
5227rm -f conftest.err conftest.$ac_objext \
5228 conftest$ac_exeext conftest.$ac_ext
5229fi
5230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5232if test `eval echo '${'$as_ac_var'}'` = yes; then
5233 cat >>confdefs.h <<_ACEOF
5234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5235_ACEOF
c906108c 5236
c906108c
SS
5237fi
5238done
5239
5240 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5241set dummy gmsgfmt; ac_word=$2
b7026657
AC
5242echo "$as_me:$LINENO: checking for $ac_word" >&5
5243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244if test "${ac_cv_path_GMSGFMT+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5246else
b7026657
AC
5247 case $GMSGFMT in
5248 [\\/]* | ?:[\\/]*)
c906108c
SS
5249 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5250 ;;
c906108c 5251 *)
b7026657
AC
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263done
5264done
5265
c906108c
SS
5266 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5267 ;;
5268esac
5269fi
b7026657
AC
5270GMSGFMT=$ac_cv_path_GMSGFMT
5271
c906108c 5272if test -n "$GMSGFMT"; then
b7026657
AC
5273 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5274echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5275else
b7026657
AC
5276 echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6
c906108c
SS
5278fi
5279
5280 # Extract the first word of "xgettext", so it can be a program name with args.
5281set dummy xgettext; ac_word=$2
b7026657
AC
5282echo "$as_me:$LINENO: checking for $ac_word" >&5
5283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5284if test "${ac_cv_path_XGETTEXT+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5286else
5287 case "$XGETTEXT" in
5288 /*)
5289 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5290 ;;
5291 *)
5292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5293 for ac_dir in $PATH; do
5294 test -z "$ac_dir" && ac_dir=.
5295 if test -f $ac_dir/$ac_word; then
5296 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5297 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5298 break
5299 fi
5300 fi
5301 done
5302 IFS="$ac_save_ifs"
5303 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5304 ;;
5305esac
5306fi
5307XGETTEXT="$ac_cv_path_XGETTEXT"
5308if test -n "$XGETTEXT"; then
b7026657
AC
5309 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5310echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5311else
b7026657
AC
5312 echo "$as_me:$LINENO: result: no" >&5
5313echo "${ECHO_T}no" >&6
c906108c
SS
5314fi
5315
b7026657
AC
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
c906108c 5322
b7026657
AC
5323int
5324main ()
5325{
c906108c
SS
5326extern int _nl_msg_cat_cntr;
5327 return _nl_msg_cat_cntr
b7026657
AC
5328 ;
5329 return 0;
5330}
5331_ACEOF
5332rm -f conftest.$ac_objext conftest$ac_exeext
5333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest$ac_exeext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
c906108c
SS
5354 CATOBJEXT=.gmo
5355 DATADIRNAME=share
5356else
b7026657
AC
5357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360CATOBJEXT=.mo
c906108c
SS
5361 DATADIRNAME=lib
5362fi
b7026657
AC
5363rm -f conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
c906108c
SS
5365 INSTOBJEXT=.mo
5366 fi
5367 fi
b7026657 5368
c906108c
SS
5369fi
5370
5371
b7026657
AC
5372
5373
c906108c
SS
5374 if test "$CATOBJEXT" = "NONE"; then
5375 nls_cv_use_gnu_gettext=yes
5376 fi
5377 fi
5378
5379 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5380 INTLOBJS="\$(GETTOBJS)"
5381 # Extract the first word of "msgfmt", so it can be a program name with args.
5382set dummy msgfmt; ac_word=$2
b7026657
AC
5383echo "$as_me:$LINENO: checking for $ac_word" >&5
5384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385if test "${ac_cv_path_MSGFMT+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5387else
5388 case "$MSGFMT" in
5389 /*)
5390 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5391 ;;
5392 *)
5393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5394 for ac_dir in $PATH; do
5395 test -z "$ac_dir" && ac_dir=.
5396 if test -f $ac_dir/$ac_word; then
5397 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5398 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5399 break
5400 fi
5401 fi
5402 done
5403 IFS="$ac_save_ifs"
5404 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5405 ;;
5406esac
5407fi
5408MSGFMT="$ac_cv_path_MSGFMT"
5409if test -n "$MSGFMT"; then
b7026657
AC
5410 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5411echo "${ECHO_T}$MSGFMT" >&6
c906108c 5412else
b7026657
AC
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
c906108c
SS
5415fi
5416
5417 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5418set dummy gmsgfmt; ac_word=$2
b7026657
AC
5419echo "$as_me:$LINENO: checking for $ac_word" >&5
5420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421if test "${ac_cv_path_GMSGFMT+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5423else
b7026657
AC
5424 case $GMSGFMT in
5425 [\\/]* | ?:[\\/]*)
c906108c
SS
5426 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5427 ;;
c906108c 5428 *)
b7026657
AC
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440done
5441done
5442
c906108c
SS
5443 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5444 ;;
5445esac
5446fi
b7026657
AC
5447GMSGFMT=$ac_cv_path_GMSGFMT
5448
c906108c 5449if test -n "$GMSGFMT"; then
b7026657
AC
5450 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5451echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5452else
b7026657
AC
5453 echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6
c906108c
SS
5455fi
5456
5457 # Extract the first word of "xgettext", so it can be a program name with args.
5458set dummy xgettext; ac_word=$2
b7026657
AC
5459echo "$as_me:$LINENO: checking for $ac_word" >&5
5460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461if test "${ac_cv_path_XGETTEXT+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5463else
5464 case "$XGETTEXT" in
5465 /*)
5466 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5467 ;;
5468 *)
5469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5470 for ac_dir in $PATH; do
5471 test -z "$ac_dir" && ac_dir=.
5472 if test -f $ac_dir/$ac_word; then
5473 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5474 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5475 break
5476 fi
5477 fi
5478 done
5479 IFS="$ac_save_ifs"
5480 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5481 ;;
5482esac
5483fi
5484XGETTEXT="$ac_cv_path_XGETTEXT"
5485if test -n "$XGETTEXT"; then
b7026657
AC
5486 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5487echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5488else
b7026657
AC
5489 echo "$as_me:$LINENO: result: no" >&5
5490echo "${ECHO_T}no" >&6
c906108c
SS
5491fi
5492
b7026657 5493
c906108c
SS
5494 USE_INCLUDED_LIBINTL=yes
5495 CATOBJEXT=.gmo
5496 INSTOBJEXT=.mo
5497 DATADIRNAME=share
5498 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5499 INTLLIBS=$INTLDEPS
5500 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5501 nls_cv_header_intl=libintl.h
5502 nls_cv_header_libgt=libgettext.h
5503 fi
5504
5505 if test "$XGETTEXT" != ":"; then
5506 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5507 : ;
5508 else
b7026657
AC
5509 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5510echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
c906108c
SS
5511 XGETTEXT=":"
5512 fi
5513 fi
5514
5515 # We need to process the po/ directory.
5516 POSUB=po
5517 else
5518 DATADIRNAME=share
5519 nls_cv_header_intl=libintl.h
5520 nls_cv_header_libgt=libgettext.h
5521 fi
5522
5523 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5524 # because some of the sources are only built for this goal.
5525 if test "$PACKAGE" = gettext; then
5526 USE_NLS=yes
5527 USE_INCLUDED_LIBINTL=yes
5528 fi
5529
5530 for lang in $ALL_LINGUAS; do
5531 GMOFILES="$GMOFILES $lang.gmo"
5532 POFILES="$POFILES $lang.po"
5533 done
5534
b7026657
AC
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
c906108c
SS
5547
5548 if test "x$CATOBJEXT" != "x"; then
5549 if test "x$ALL_LINGUAS" = "x"; then
5550 LINGUAS=
5551 else
b7026657
AC
5552 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5553echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
c906108c
SS
5554 NEW_LINGUAS=
5555 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5556 case "$ALL_LINGUAS" in
5557 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5558 esac
5559 done
5560 LINGUAS=$NEW_LINGUAS
b7026657
AC
5561 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5562echo "${ECHO_T}$LINGUAS" >&6
c906108c
SS
5563 fi
5564
5565 if test -n "$LINGUAS"; then
5566 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5567 fi
5568 fi
5569
5570 if test $ac_cv_header_locale_h = yes; then
5571 INCLUDE_LOCALE_H="#include <locale.h>"
5572 else
5573 INCLUDE_LOCALE_H="\
5574/* The system does not provide the header <locale.h>. Take care yourself. */"
5575 fi
b7026657 5576
c906108c
SS
5577
5578 if test -f $srcdir/po2tbl.sed.in; then
5579 if test "$CATOBJEXT" = ".cat"; then
b7026657
AC
5580 if test "${ac_cv_header_linux_version_h+set}" = set; then
5581 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5582echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5583if test "${ac_cv_header_linux_version_h+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585fi
5586echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5587echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5588else
5589 # Is the header compilable?
5590echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5591echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5592cat >conftest.$ac_ext <<_ACEOF
5593/* confdefs.h. */
5594_ACEOF
5595cat confdefs.h >>conftest.$ac_ext
5596cat >>conftest.$ac_ext <<_ACEOF
5597/* end confdefs.h. */
5598$ac_includes_default
5599#include <linux/version.h>
5600_ACEOF
5601rm -f conftest.$ac_objext
5602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>conftest.er1
5604 ac_status=$?
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -z "$ac_c_werror_flag"
5611 || test ! -s conftest.err'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 (eval $ac_try) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; } &&
5617 { ac_try='test -s conftest.$ac_objext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 (eval $ac_try) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_header_compiler=yes
5624else
5625 echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628ac_header_compiler=no
5629fi
5630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5631echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5632echo "${ECHO_T}$ac_header_compiler" >&6
5633
5634# Is the header present?
5635echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5636echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5637cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h. */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h. */
c906108c 5643#include <linux/version.h>
b7026657
AC
5644_ACEOF
5645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev/null; then
5653 if test -s conftest.err; then
5654 ac_cpp_err=$ac_c_preproc_warn_flag
5655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5656 else
5657 ac_cpp_err=
5658 fi
5659else
5660 ac_cpp_err=yes
c906108c 5661fi
b7026657
AC
5662if test -z "$ac_cpp_err"; then
5663 ac_header_preproc=yes
5664else
5665 echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668 ac_header_preproc=no
5669fi
5670rm -f conftest.err conftest.$ac_ext
5671echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5672echo "${ECHO_T}$ac_header_preproc" >&6
5673
5674# So? What about this header?
5675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5676 yes:no: )
5677 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5678echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5680echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5681 ac_header_preproc=yes
5682 ;;
5683 no:yes:* )
5684 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5685echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5686 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5687echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5689echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5691echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5693echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5695echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5696 (
5697 cat <<\_ASBOX
5698## ------------------------------------------ ##
5699## Report this to the AC_PACKAGE_NAME lists. ##
5700## ------------------------------------------ ##
5701_ASBOX
5702 ) |
5703 sed "s/^/$as_me: WARNING: /" >&2
5704 ;;
5705esac
5706echo "$as_me:$LINENO: checking for linux/version.h" >&5
5707echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5708if test "${ac_cv_header_linux_version_h+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 ac_cv_header_linux_version_h=$ac_header_preproc
c906108c 5712fi
b7026657
AC
5713echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5714echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5715
5716fi
5717if test $ac_cv_header_linux_version_h = yes; then
c906108c
SS
5718 msgformat=linux
5719else
b7026657 5720 msgformat=xopen
c906108c
SS
5721fi
5722
5723
b7026657 5724
c906108c
SS
5725 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5726 fi
5727 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5728 $srcdir/po2tbl.sed.in > po2tbl.sed
5729 fi
5730
5731 if test "$PACKAGE" = "gettext"; then
5732 GT_NO="#NO#"
5733 GT_YES=
5734 else
5735 GT_NO=
5736 GT_YES="#YES#"
5737 fi
b7026657
AC
5738
5739
c906108c
SS
5740
5741 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
b7026657 5742
c906108c
SS
5743
5744 l=
b7026657 5745
c906108c
SS
5746
5747 if test -d $srcdir/po; then
5748 test -d po || mkdir po
5749 if test "x$srcdir" != "x."; then
5750 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5751 posrcprefix="$srcdir/"
5752 else
5753 posrcprefix="../$srcdir/"
5754 fi
5755 else
5756 posrcprefix="../"
5757 fi
5758 rm -f po/POTFILES
5759 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5760 < $srcdir/po/POTFILES.in > po/POTFILES
5761 fi
b7026657 5762
c906108c
SS
5763
5764# Check for common headers.
5765# FIXME: Seems to me this can cause problems for i386-windows hosts.
5766# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
b7026657
AC
5767
5768
5769
5770
5771
5772for ac_header in stdlib.h string.h strings.h unistd.h time.h
c906108c 5773do
b7026657
AC
5774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5775if eval "test \"\${$as_ac_Header+set}\" = set"; then
5776 echo "$as_me:$LINENO: checking for $ac_header" >&5
5777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5778if eval "test \"\${$as_ac_Header+set}\" = set"; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780fi
5781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5783else
5784 # Is the header compilable?
5785echo "$as_me:$LINENO: checking $ac_header usability" >&5
5786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5787cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h. */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h. */
5793$ac_includes_default
5794#include <$ac_header>
5795_ACEOF
5796rm -f conftest.$ac_objext
5797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try='test -z "$ac_c_werror_flag"
5806 || test ! -s conftest.err'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; } &&
5812 { ac_try='test -s conftest.$ac_objext'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5818 ac_header_compiler=yes
5819else
5820 echo "$as_me: failed program was:" >&5
5821sed 's/^/| /' conftest.$ac_ext >&5
5822
5823ac_header_compiler=no
5824fi
5825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5826echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5827echo "${ECHO_T}$ac_header_compiler" >&6
5828
5829# Is the header present?
5830echo "$as_me:$LINENO: checking $ac_header presence" >&5
5831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5832cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838#include <$ac_header>
5839_ACEOF
5840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } >/dev/null; then
5848 if test -s conftest.err; then
5849 ac_cpp_err=$ac_c_preproc_warn_flag
5850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5851 else
5852 ac_cpp_err=
5853 fi
5854else
5855 ac_cpp_err=yes
c906108c 5856fi
b7026657
AC
5857if test -z "$ac_cpp_err"; then
5858 ac_header_preproc=yes
5859else
5860 echo "$as_me: failed program was:" >&5
5861sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 ac_header_preproc=no
c906108c 5864fi
b7026657
AC
5865rm -f conftest.err conftest.$ac_ext
5866echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5867echo "${ECHO_T}$ac_header_preproc" >&6
5868
5869# So? What about this header?
5870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5871 yes:no: )
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5876 ac_header_preproc=yes
5877 ;;
5878 no:yes:* )
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5891 (
5892 cat <<\_ASBOX
5893## ------------------------------------------ ##
5894## Report this to the AC_PACKAGE_NAME lists. ##
5895## ------------------------------------------ ##
5896_ASBOX
5897 ) |
5898 sed "s/^/$as_me: WARNING: /" >&2
5899 ;;
5900esac
5901echo "$as_me:$LINENO: checking for $ac_header" >&5
5902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5903if eval "test \"\${$as_ac_Header+set}\" = set"; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5905else
b7026657
AC
5906 eval "$as_ac_Header=\$ac_header_preproc"
5907fi
5908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5910
5911fi
5912if test `eval echo '${'$as_ac_Header'}'` = yes; then
5913 cat >>confdefs.h <<_ACEOF
5914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5915_ACEOF
5916
c906108c 5917fi
b7026657 5918
c906108c
SS
5919done
5920
b7026657
AC
5921
5922
5923for ac_header in sys/time.h sys/resource.h
c906108c 5924do
b7026657
AC
5925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5926if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927 echo "$as_me:$LINENO: checking for $ac_header" >&5
5928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5929if eval "test \"\${$as_ac_Header+set}\" = set"; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931fi
5932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5934else
5935 # Is the header compilable?
5936echo "$as_me:$LINENO: checking $ac_header usability" >&5
5937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5938cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h. */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h. */
5944$ac_includes_default
5945#include <$ac_header>
5946_ACEOF
5947rm -f conftest.$ac_objext
5948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_header_compiler=yes
5970else
5971 echo "$as_me: failed program was:" >&5
5972sed 's/^/| /' conftest.$ac_ext >&5
5973
5974ac_header_compiler=no
5975fi
5976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5978echo "${ECHO_T}$ac_header_compiler" >&6
5979
5980# Is the header present?
5981echo "$as_me:$LINENO: checking $ac_header presence" >&5
5982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5983cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */
5989#include <$ac_header>
5990_ACEOF
5991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } >/dev/null; then
5999 if test -s conftest.err; then
6000 ac_cpp_err=$ac_c_preproc_warn_flag
6001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6002 else
6003 ac_cpp_err=
6004 fi
6005else
6006 ac_cpp_err=yes
c906108c 6007fi
b7026657
AC
6008if test -z "$ac_cpp_err"; then
6009 ac_header_preproc=yes
6010else
6011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ac_header_preproc=no
c906108c 6015fi
b7026657
AC
6016rm -f conftest.err conftest.$ac_ext
6017echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6018echo "${ECHO_T}$ac_header_preproc" >&6
6019
6020# So? What about this header?
6021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6022 yes:no: )
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6027 ac_header_preproc=yes
6028 ;;
6029 no:yes:* )
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6042 (
6043 cat <<\_ASBOX
6044## ------------------------------------------ ##
6045## Report this to the AC_PACKAGE_NAME lists. ##
6046## ------------------------------------------ ##
6047_ASBOX
6048 ) |
6049 sed "s/^/$as_me: WARNING: /" >&2
6050 ;;
6051esac
6052echo "$as_me:$LINENO: checking for $ac_header" >&5
6053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6054if eval "test \"\${$as_ac_Header+set}\" = set"; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6056else
b7026657 6057 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 6058fi
b7026657
AC
6059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6061
6062fi
6063if test `eval echo '${'$as_ac_Header'}'` = yes; then
6064 cat >>confdefs.h <<_ACEOF
6065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6066_ACEOF
6067
6068fi
6069
c906108c
SS
6070done
6071
b7026657
AC
6072
6073
6074for ac_header in fcntl.h fpu_control.h
c906108c 6075do
b7026657
AC
6076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6077if eval "test \"\${$as_ac_Header+set}\" = set"; then
6078 echo "$as_me:$LINENO: checking for $ac_header" >&5
6079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6080if eval "test \"\${$as_ac_Header+set}\" = set"; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082fi
6083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6085else
6086 # Is the header compilable?
6087echo "$as_me:$LINENO: checking $ac_header usability" >&5
6088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6089cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h. */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h. */
6095$ac_includes_default
6096#include <$ac_header>
6097_ACEOF
6098rm -f conftest.$ac_objext
6099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100 (eval $ac_compile) 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag"
6108 || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_header_compiler=yes
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125ac_header_compiler=no
6126fi
6127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6129echo "${ECHO_T}$ac_header_compiler" >&6
6130
6131# Is the header present?
6132echo "$as_me:$LINENO: checking $ac_header presence" >&5
6133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6134cat >conftest.$ac_ext <<_ACEOF
6135/* confdefs.h. */
6136_ACEOF
6137cat confdefs.h >>conftest.$ac_ext
6138cat >>conftest.$ac_ext <<_ACEOF
6139/* end confdefs.h. */
6140#include <$ac_header>
6141_ACEOF
6142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } >/dev/null; then
6150 if test -s conftest.err; then
6151 ac_cpp_err=$ac_c_preproc_warn_flag
6152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6153 else
6154 ac_cpp_err=
6155 fi
6156else
6157 ac_cpp_err=yes
cd0fc7c3 6158fi
b7026657
AC
6159if test -z "$ac_cpp_err"; then
6160 ac_header_preproc=yes
6161else
6162 echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165 ac_header_preproc=no
cd0fc7c3 6166fi
b7026657
AC
6167rm -f conftest.err conftest.$ac_ext
6168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6169echo "${ECHO_T}$ac_header_preproc" >&6
6170
6171# So? What about this header?
6172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6173 yes:no: )
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6178 ac_header_preproc=yes
6179 ;;
6180 no:yes:* )
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6193 (
6194 cat <<\_ASBOX
6195## ------------------------------------------ ##
6196## Report this to the AC_PACKAGE_NAME lists. ##
6197## ------------------------------------------ ##
6198_ASBOX
6199 ) |
6200 sed "s/^/$as_me: WARNING: /" >&2
6201 ;;
6202esac
6203echo "$as_me:$LINENO: checking for $ac_header" >&5
6204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6205if eval "test \"\${$as_ac_Header+set}\" = set"; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
cd0fc7c3 6207else
b7026657
AC
6208 eval "$as_ac_Header=\$ac_header_preproc"
6209fi
6210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6212
6213fi
6214if test `eval echo '${'$as_ac_Header'}'` = yes; then
6215 cat >>confdefs.h <<_ACEOF
6216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217_ACEOF
6218
cd0fc7c3 6219fi
b7026657 6220
cd0fc7c3
SS
6221done
6222
b7026657
AC
6223
6224
6225
6226for ac_header in dlfcn.h errno.h sys/stat.h
cd0fc7c3 6227do
b7026657
AC
6228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6229if eval "test \"\${$as_ac_Header+set}\" = set"; then
6230 echo "$as_me:$LINENO: checking for $ac_header" >&5
6231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234fi
6235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6237else
6238 # Is the header compilable?
6239echo "$as_me:$LINENO: checking $ac_header usability" >&5
6240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6241cat >conftest.$ac_ext <<_ACEOF
6242/* confdefs.h. */
6243_ACEOF
6244cat confdefs.h >>conftest.$ac_ext
6245cat >>conftest.$ac_ext <<_ACEOF
6246/* end confdefs.h. */
6247$ac_includes_default
6248#include <$ac_header>
6249_ACEOF
6250rm -f conftest.$ac_objext
6251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest.$ac_objext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 ac_header_compiler=yes
6273else
6274 echo "$as_me: failed program was:" >&5
6275sed 's/^/| /' conftest.$ac_ext >&5
6276
6277ac_header_compiler=no
6278fi
6279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6280echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6281echo "${ECHO_T}$ac_header_compiler" >&6
6282
6283# Is the header present?
6284echo "$as_me:$LINENO: checking $ac_header presence" >&5
6285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6286cat >conftest.$ac_ext <<_ACEOF
6287/* confdefs.h. */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h. */
6292#include <$ac_header>
6293_ACEOF
6294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } >/dev/null; then
6302 if test -s conftest.err; then
6303 ac_cpp_err=$ac_c_preproc_warn_flag
6304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6305 else
6306 ac_cpp_err=
6307 fi
6308else
6309 ac_cpp_err=yes
c906108c 6310fi
b7026657
AC
6311if test -z "$ac_cpp_err"; then
6312 ac_header_preproc=yes
6313else
6314 echo "$as_me: failed program was:" >&5
6315sed 's/^/| /' conftest.$ac_ext >&5
6316
6317 ac_header_preproc=no
c906108c 6318fi
b7026657
AC
6319rm -f conftest.err conftest.$ac_ext
6320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6321echo "${ECHO_T}$ac_header_preproc" >&6
6322
6323# So? What about this header?
6324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6325 yes:no: )
6326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6330 ac_header_preproc=yes
6331 ;;
6332 no:yes:* )
6333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6345 (
6346 cat <<\_ASBOX
6347## ------------------------------------------ ##
6348## Report this to the AC_PACKAGE_NAME lists. ##
6349## ------------------------------------------ ##
6350_ASBOX
6351 ) |
6352 sed "s/^/$as_me: WARNING: /" >&2
6353 ;;
6354esac
6355echo "$as_me:$LINENO: checking for $ac_header" >&5
6356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6357if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6359else
b7026657
AC
6360 eval "$as_ac_Header=\$ac_header_preproc"
6361fi
6362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6364
6365fi
6366if test `eval echo '${'$as_ac_Header'}'` = yes; then
6367 cat >>confdefs.h <<_ACEOF
6368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6369_ACEOF
6370
c906108c 6371fi
b7026657 6372
c906108c
SS
6373done
6374
b7026657
AC
6375
6376
6377
6378
c906108c
SS
6379for ac_func in getrusage time sigaction __setfpucw
6380do
b7026657
AC
6381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6382echo "$as_me:$LINENO: checking for $ac_func" >&5
6383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6384if eval "test \"\${$as_ac_var+set}\" = set"; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386else
6387 cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6395#define $ac_func innocuous_$ac_func
6396
c906108c 6397/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
6398 which can conflict with char $ac_func (); below.
6399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 <limits.h> exists even on freestanding compilers. */
6401
6402#ifdef __STDC__
6403# include <limits.h>
6404#else
6405# include <assert.h>
6406#endif
c906108c 6407
b7026657 6408#undef $ac_func
c906108c 6409
b7026657
AC
6410/* Override any gcc2 internal prototype to avoid an error. */
6411#ifdef __cplusplus
6412extern "C"
6413{
6414#endif
6415/* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6417char $ac_func ();
c906108c
SS
6418/* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6422choke me
6423#else
b7026657
AC
6424char (*f) () = $ac_func;
6425#endif
6426#ifdef __cplusplus
6427}
c906108c
SS
6428#endif
6429
b7026657
AC
6430int
6431main ()
6432{
6433return f != $ac_func;
6434 ;
6435 return 0;
6436}
6437_ACEOF
6438rm -f conftest.$ac_objext conftest$ac_exeext
6439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 eval "$as_ac_var=yes"
6461else
6462 echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465eval "$as_ac_var=no"
6466fi
6467rm -f conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6469fi
6470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6472if test `eval echo '${'$as_ac_var'}'` = yes; then
6473 cat >>confdefs.h <<_ACEOF
6474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6475_ACEOF
c906108c 6476
c906108c
SS
6477fi
6478done
6479
6480
6481# Check for socket libraries
b7026657
AC
6482
6483echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6484echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6485if test "${ac_cv_lib_socket_bind+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6487else
b7026657 6488 ac_check_lib_save_LIBS=$LIBS
c906108c 6489LIBS="-lsocket $LIBS"
b7026657
AC
6490cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h. */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
6495/* end confdefs.h. */
c906108c 6496
b7026657
AC
6497/* Override any gcc2 internal prototype to avoid an error. */
6498#ifdef __cplusplus
6499extern "C"
6500#endif
6501/* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6503char bind ();
6504int
6505main ()
6506{
6507bind ();
6508 ;
6509 return 0;
6510}
6511_ACEOF
6512rm -f conftest.$ac_objext conftest$ac_exeext
6513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_c_werror_flag"
6522 || test ! -s conftest.err'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 (eval $ac_try) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; } &&
6528 { ac_try='test -s conftest$ac_exeext'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 ac_cv_lib_socket_bind=yes
6535else
6536 echo "$as_me: failed program was:" >&5
6537sed 's/^/| /' conftest.$ac_ext >&5
6538
6539ac_cv_lib_socket_bind=no
6540fi
6541rm -f conftest.err conftest.$ac_objext \
6542 conftest$ac_exeext conftest.$ac_ext
6543LIBS=$ac_check_lib_save_LIBS
6544fi
6545echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6546echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6547if test $ac_cv_lib_socket_bind = yes; then
6548 cat >>confdefs.h <<_ACEOF
6549#define HAVE_LIBSOCKET 1
6550_ACEOF
c906108c
SS
6551
6552 LIBS="-lsocket $LIBS"
6553
c906108c
SS
6554fi
6555
b7026657
AC
6556
6557echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6558echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6559if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6561else
b7026657 6562 ac_check_lib_save_LIBS=$LIBS
c906108c 6563LIBS="-lnsl $LIBS"
b7026657
AC
6564cat >conftest.$ac_ext <<_ACEOF
6565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h. */
6570
c906108c 6571/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6572#ifdef __cplusplus
6573extern "C"
6574#endif
c906108c 6575/* We use char because int might match the return type of a gcc2
b7026657
AC
6576 builtin and then its argument prototype would still apply. */
6577char gethostbyname ();
6578int
6579main ()
6580{
6581gethostbyname ();
6582 ;
6583 return 0;
6584}
6585_ACEOF
6586rm -f conftest.$ac_objext conftest$ac_exeext
6587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_lib_nsl_gethostbyname=yes
6609else
6610 echo "$as_me: failed program was:" >&5
6611sed 's/^/| /' conftest.$ac_ext >&5
6612
6613ac_cv_lib_nsl_gethostbyname=no
6614fi
6615rm -f conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617LIBS=$ac_check_lib_save_LIBS
6618fi
6619echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6620echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6621if test $ac_cv_lib_nsl_gethostbyname = yes; then
6622 cat >>confdefs.h <<_ACEOF
6623#define HAVE_LIBNSL 1
6624_ACEOF
c906108c
SS
6625
6626 LIBS="-lnsl $LIBS"
6627
c906108c
SS
6628fi
6629
6630
6631. ${srcdir}/../../bfd/configure.host
6632
6633
6634
6635USE_MAINTAINER_MODE=no
6636# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6637if test "${enable_maintainer_mode+set}" = set; then
6638 enableval="$enable_maintainer_mode"
6639 case "${enableval}" in
6640 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6641 no) MAINT="#" ;;
b7026657
AC
6642 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6643echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6644 { (exit 1); exit 1; }; }; MAINT="#" ;;
c906108c
SS
6645esac
6646if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6647 echo "Setting maintainer mode" 6>&1
6648fi
6649else
6650 MAINT="#"
b7026657 6651fi;
c906108c
SS
6652
6653
6654# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6655if test "${enable_sim_bswap+set}" = set; then
6656 enableval="$enable_sim_bswap"
6657 case "${enableval}" in
6658 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6659 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
6660 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6661echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6662 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
6663esac
6664if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6665 echo "Setting bswap flags = $sim_bswap" 6>&1
6666fi
6667else
6668 sim_bswap=""
b7026657 6669fi;
c906108c
SS
6670
6671
6672# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6673if test "${enable_sim_cflags+set}" = set; then
6674 enableval="$enable_sim_cflags"
6675 case "${enableval}" in
6676 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
6677 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6678echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6679 { (exit 1); exit 1; }; }; sim_cflags="";;
c906108c
SS
6680 no) sim_cflags="";;
6681 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6682esac
6683if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6684 echo "Setting sim cflags = $sim_cflags" 6>&1
6685fi
6686else
6687 sim_cflags=""
b7026657 6688fi;
c906108c
SS
6689
6690
6691# Check whether --enable-sim-debug or --disable-sim-debug was given.
6692if test "${enable_sim_debug+set}" = set; then
6693 enableval="$enable_sim_debug"
6694 case "${enableval}" in
6695 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6696 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6697 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6698esac
6699if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6700 echo "Setting sim debug = $sim_debug" 6>&1
6701fi
6702else
6703 sim_debug=""
b7026657 6704fi;
c906108c
SS
6705
6706
6707# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6708if test "${enable_sim_stdio+set}" = set; then
6709 enableval="$enable_sim_stdio"
6710 case "${enableval}" in
6711 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6712 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
6713 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6714echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6715 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
6716esac
6717if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6718 echo "Setting stdio flags = $sim_stdio" 6>&1
6719fi
6720else
6721 sim_stdio=""
b7026657 6722fi;
c906108c
SS
6723
6724
6725# Check whether --enable-sim-trace or --disable-sim-trace was given.
6726if test "${enable_sim_trace+set}" = set; then
6727 enableval="$enable_sim_trace"
6728 case "${enableval}" in
6729 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6730 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6731 [-0-9]*)
6732 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6733 [a-z]*)
6734 sim_trace=""
6735 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6736 if test x"$sim_trace" = x; then
6737 sim_trace="-DWITH_TRACE='(TRACE_$x"
6738 else
6739 sim_trace="${sim_trace}|TRACE_$x"
6740 fi
6741 done
6742 sim_trace="$sim_trace)'" ;;
6743esac
6744if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6745 echo "Setting sim trace = $sim_trace" 6>&1
6746fi
6747else
6748 sim_trace=""
b7026657 6749fi;
c906108c
SS
6750
6751
6752# Check whether --enable-sim-profile or --disable-sim-profile was given.
6753if test "${enable_sim_profile+set}" = set; then
6754 enableval="$enable_sim_profile"
6755 case "${enableval}" in
6756 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6757 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6758 [-0-9]*)
6759 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6760 [a-z]*)
6761 sim_profile=""
6762 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6763 if test x"$sim_profile" = x; then
6764 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6765 else
6766 sim_profile="${sim_profile}|PROFILE_$x"
6767 fi
6768 done
6769 sim_profile="$sim_profile)'" ;;
6770esac
6771if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6772 echo "Setting sim profile = $sim_profile" 6>&1
6773fi
6774else
eb2d80b4 6775 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 6776fi;
c906108c
SS
6777
6778
b7026657
AC
6779echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6780echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6781if test "${ac_cv_type_signal+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6783else
b7026657
AC
6784 cat >conftest.$ac_ext <<_ACEOF
6785/* confdefs.h. */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h. */
c906108c
SS
6790#include <sys/types.h>
6791#include <signal.h>
6792#ifdef signal
b7026657 6793# undef signal
c906108c
SS
6794#endif
6795#ifdef __cplusplus
6796extern "C" void (*signal (int, void (*)(int)))(int);
6797#else
6798void (*signal ()) ();
6799#endif
6800
b7026657
AC
6801int
6802main ()
6803{
c906108c 6804int i;
b7026657
AC
6805 ;
6806 return 0;
6807}
6808_ACEOF
6809rm -f conftest.$ac_objext
6810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811 (eval $ac_compile) 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest.$ac_objext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
c906108c
SS
6831 ac_cv_type_signal=void
6832else
b7026657
AC
6833 echo "$as_me: failed program was:" >&5
6834sed 's/^/| /' conftest.$ac_ext >&5
6835
6836ac_cv_type_signal=int
c906108c 6837fi
b7026657 6838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6839fi
b7026657
AC
6840echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6841echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 6842
b7026657 6843cat >>confdefs.h <<_ACEOF
c906108c 6844#define RETSIGTYPE $ac_cv_type_signal
b7026657 6845_ACEOF
c906108c
SS
6846
6847
cd0fc7c3
SS
6848
6849
c906108c
SS
6850
6851sim_link_files=
6852sim_link_links=
6853
6854sim_link_links=tconfig.h
6855if test -f ${srcdir}/tconfig.in
6856then
6857 sim_link_files=tconfig.in
6858else
6859 sim_link_files=../common/tconfig.in
6860fi
6861
6862# targ-vals.def points to the libc macro description file.
6863case "${target}" in
6864*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6865esac
6866sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6867sim_link_links="${sim_link_links} targ-vals.def"
6868
6869
6870
6871
6872wire_endian="LITTLE_ENDIAN"
6873default_endian=""
6874# Check whether --enable-sim-endian or --disable-sim-endian was given.
6875if test "${enable_sim_endian+set}" = set; then
6876 enableval="$enable_sim_endian"
6877 case "${enableval}" in
6878 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
6879 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
6880 yes) if test x"$wire_endian" != x; then
6881 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
6882 else
6883 if test x"$default_endian" != x; then
6884 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
6885 else
6886 echo "No hard-wired endian for target $target" 1>&6
6887 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
6888 fi
6889 fi;;
6890 no) if test x"$default_endian" != x; then
6891 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
6892 else
6893 if test x"$wire_endian" != x; then
6894 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
6895 else
6896 echo "No default endian for target $target" 1>&6
6897 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
6898 fi
6899 fi;;
b7026657
AC
6900 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
6901echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
6902 { (exit 1); exit 1; }; }; sim_endian="";;
c906108c
SS
6903esac
6904if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
6905 echo "Setting endian flags = $sim_endian" 6>&1
6906fi
6907else
6908 if test x"$default_endian" != x; then
6909 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
6910else
6911 if test x"$wire_endian" != x; then
6912 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
6913 else
6914 sim_endian=
6915 fi
6916fi
b7026657 6917fi;
c906108c
SS
6918wire_alignment="NONSTRICT_ALIGNMENT"
6919default_alignment=""
6920
6921# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6922if test "${enable_sim_alignment+set}" = set; then
6923 enableval="$enable_sim_alignment"
6924 case "${enableval}" in
6925 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6926 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6927 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6928 yes) if test x"$wire_alignment" != x; then
6929 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6930 else
6931 if test x"$default_alignment" != x; then
6932 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
6933 else
6934 echo "No hard-wired alignment for target $target" 1>&6
6935 sim_alignment="-DWITH_ALIGNMENT=0"
6936 fi
6937 fi;;
6938 no) if test x"$default_alignment" != x; then
6939 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6940 else
6941 if test x"$wire_alignment" != x; then
6942 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6943 else
6944 echo "No default alignment for target $target" 1>&6
6945 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
6946 fi
6947 fi;;
b7026657
AC
6948 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6949echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6950 { (exit 1); exit 1; }; }; sim_alignment="";;
c906108c
SS
6951esac
6952if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
6953 echo "Setting alignment flags = $sim_alignment" 6>&1
6954fi
6955else
6956 if test x"$default_alignment" != x; then
6957 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6958else
6959 if test x"$wire_alignment" != x; then
6960 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6961 else
6962 sim_alignment=
6963 fi
6964fi
b7026657 6965fi;
c906108c
SS
6966
6967# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6968if test "${enable_sim_hostendian+set}" = set; then
6969 enableval="$enable_sim_hostendian"
6970 case "${enableval}" in
6971 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6972 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6973 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
b7026657
AC
6974 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6975echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6976 { (exit 1); exit 1; }; }; sim_hostendian="";;
c906108c
SS
6977esac
6978if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6979 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6980fi
6981else
b7026657 6982
c906108c 6983if test "x$cross_compiling" = "xno"; then
b7026657
AC
6984 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6985echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6986if test "${ac_cv_c_bigendian+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 # See if sys/param.h defines the BYTE_ORDER macro.
6990cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
c906108c
SS
6996#include <sys/types.h>
6997#include <sys/param.h>
c906108c 6998
b7026657
AC
6999int
7000main ()
7001{
c906108c
SS
7002#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7003 bogus endian macros
7004#endif
b7026657
AC
7005
7006 ;
7007 return 0;
7008}
7009_ACEOF
7010rm -f conftest.$ac_objext
7011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>conftest.er1
7013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest.$ac_objext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
c906108c 7032 # It does; now see whether it defined to BIG_ENDIAN or not.
b7026657
AC
7033cat >conftest.$ac_ext <<_ACEOF
7034/* confdefs.h. */
7035_ACEOF
7036cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF
7038/* end confdefs.h. */
c906108c
SS
7039#include <sys/types.h>
7040#include <sys/param.h>
c906108c 7041
b7026657
AC
7042int
7043main ()
7044{
c906108c
SS
7045#if BYTE_ORDER != BIG_ENDIAN
7046 not big endian
7047#endif
b7026657
AC
7048
7049 ;
7050 return 0;
7051}
7052_ACEOF
7053rm -f conftest.$ac_objext
7054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7056 ac_status=$?
7057 grep -v '^ *+' conftest.er1 >conftest.err
7058 rm -f conftest.er1
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_c_werror_flag"
7063 || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
c906108c
SS
7075 ac_cv_c_bigendian=yes
7076else
b7026657
AC
7077 echo "$as_me: failed program was:" >&5
7078sed 's/^/| /' conftest.$ac_ext >&5
7079
7080ac_cv_c_bigendian=no
c906108c 7081fi
b7026657 7082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7083else
b7026657
AC
7084 echo "$as_me: failed program was:" >&5
7085sed 's/^/| /' conftest.$ac_ext >&5
7086
7087# It does not; compile a test program.
c906108c 7088if test "$cross_compiling" = yes; then
b7026657
AC
7089 # try to guess the endianness by grepping values into an object file
7090 ac_cv_c_bigendian=unknown
7091 cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h. */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h. */
7097short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7098short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7099void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7100short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7101short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7102void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7103int
7104main ()
7105{
7106 _ascii (); _ebcdic ();
7107 ;
7108 return 0;
7109}
7110_ACEOF
7111rm -f conftest.$ac_objext
7112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7113 (eval $ac_compile) 2>conftest.er1
7114 ac_status=$?
7115 grep -v '^ *+' conftest.er1 >conftest.err
7116 rm -f conftest.er1
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -z "$ac_c_werror_flag"
7121 || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7134 ac_cv_c_bigendian=yes
7135fi
7136if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7137 if test "$ac_cv_c_bigendian" = unknown; then
7138 ac_cv_c_bigendian=no
7139 else
7140 # finding both strings is unlikely to happen, but who knows?
7141 ac_cv_c_bigendian=unknown
7142 fi
7143fi
c906108c 7144else
b7026657
AC
7145 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
7148fi
7149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150else
7151 cat >conftest.$ac_ext <<_ACEOF
7152/* confdefs.h. */
7153_ACEOF
7154cat confdefs.h >>conftest.$ac_ext
7155cat >>conftest.$ac_ext <<_ACEOF
7156/* end confdefs.h. */
7157int
7158main ()
7159{
c906108c
SS
7160 /* Are we little or big endian? From Harbison&Steele. */
7161 union
7162 {
7163 long l;
7164 char c[sizeof (long)];
7165 } u;
7166 u.l = 1;
7167 exit (u.c[sizeof (long) - 1] == 1);
7168}
b7026657
AC
7169_ACEOF
7170rm -f conftest$ac_exeext
7171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 (eval $ac_try) 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; }; then
c906108c
SS
7181 ac_cv_c_bigendian=no
7182else
b7026657
AC
7183 echo "$as_me: program exited with status $ac_status" >&5
7184echo "$as_me: failed program was:" >&5
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187( exit $ac_status )
7188ac_cv_c_bigendian=yes
c906108c 7189fi
b7026657 7190rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7191fi
c906108c 7192fi
b7026657 7193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7194fi
b7026657
AC
7195echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7196echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7197case $ac_cv_c_bigendian in
7198 yes)
c906108c 7199
b7026657 7200cat >>confdefs.h <<\_ACEOF
c906108c 7201#define WORDS_BIGENDIAN 1
b7026657
AC
7202_ACEOF
7203 ;;
7204 no)
7205 ;;
7206 *)
7207 { { echo "$as_me:$LINENO: error: unknown endianness
7208presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7209echo "$as_me: error: unknown endianness
7210presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7211 { (exit 1); exit 1; }; } ;;
7212esac
c906108c
SS
7213
7214 if test $ac_cv_c_bigendian = yes; then
7215 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7216 else
7217 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7218 fi
7219else
7220 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7221fi
b7026657 7222fi;
c906108c 7223
c8cca39f
AC
7224# NOTE: Don't add -Wall or -Wunused, they both include
7225# -Wunused-parameter which reports bogus warnings.
7226# NOTE: If you add to this list, remember to update
7227# gdb/doc/gdbint.texinfo.
7228build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7229-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7230# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7231# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7232# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7233# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7234# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7235# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
7236# Check whether --enable-build-warnings or --disable-build-warnings was given.
7237if test "${enable_build_warnings+set}" = set; then
7238 enableval="$enable_build_warnings"
c8cca39f
AC
7239 case "${enableval}" in
7240 yes) ;;
7241 no) build_warnings="-w";;
7242 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7243 build_warnings="${build_warnings} ${t}";;
7244 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7245 build_warnings="${t} ${build_warnings}";;
7246 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7247esac
7248if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7249 echo "Setting compiler warning flags = $build_warnings" 6>&1
7250fi
b7026657 7251fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
c8cca39f
AC
7252if test "${enable_sim_build_warnings+set}" = set; then
7253 enableval="$enable_sim_build_warnings"
7254 case "${enableval}" in
c906108c
SS
7255 yes) ;;
7256 no) build_warnings="-w";;
7257 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 7258 build_warnings="${build_warnings} ${t}";;
c906108c 7259 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
7260 build_warnings="${t} ${build_warnings}";;
7261 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
7262esac
7263if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
7264 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7265fi
b7026657 7266fi; WARN_CFLAGS=""
d4f3574e
SS
7267WERROR_CFLAGS=""
7268if test "x${build_warnings}" != x -a "x$GCC" = xyes
7269then
b7026657
AC
7270 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7271echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
c8cca39f
AC
7272 # Separate out the -Werror flag as some files just cannot be
7273 # compiled with it enabled.
7274 for w in ${build_warnings}; do
7275 case $w in
7276 -Werr*) WERROR_CFLAGS=-Werror ;;
7277 *) # Check that GCC accepts it
7278 saved_CFLAGS="$CFLAGS"
7279 CFLAGS="$CFLAGS $w"
b7026657
AC
7280 cat >conftest.$ac_ext <<_ACEOF
7281/* confdefs.h. */
7282_ACEOF
7283cat confdefs.h >>conftest.$ac_ext
7284cat >>conftest.$ac_ext <<_ACEOF
7285/* end confdefs.h. */
c8cca39f 7286
b7026657
AC
7287int
7288main ()
7289{
c8cca39f 7290
b7026657
AC
7291 ;
7292 return 0;
7293}
7294_ACEOF
7295rm -f conftest.$ac_objext
7296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>conftest.er1
7298 ac_status=$?
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
c8cca39f 7317 WARN_CFLAGS="${WARN_CFLAGS} $w"
c906108c 7318else
b7026657
AC
7319 echo "$as_me: failed program was:" >&5
7320sed 's/^/| /' conftest.$ac_ext >&5
7321
c8cca39f 7322fi
b7026657 7323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
7324 CFLAGS="$saved_CFLAGS"
7325 esac
7326 done
b7026657
AC
7327 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7328echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
7329fi
7330
7331
7332default_sim_reserved_bits="1"
7333# Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7334if test "${enable_sim_reserved_bits+set}" = set; then
7335 enableval="$enable_sim_reserved_bits"
7336 case "${enableval}" in
7337 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
7338 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
b7026657
AC
7339 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7340echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7341 { (exit 1); exit 1; }; }; sim_reserved_bits="";;
c906108c
SS
7342esac
7343if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
7344 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7345fi
7346else
7347 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
b7026657 7348fi;
c906108c
SS
7349wire_word_bitsize="32"
7350wire_word_msb="31"
7351wire_address_bitsize=""
7352wire_cell_bitsize=""
7353# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7354if test "${enable_sim_bitsize+set}" = set; then
7355 enableval="$enable_sim_bitsize"
7356 sim_bitsize=
7357case "${enableval}" in
7358 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7359 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7360 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7361 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7362 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7363 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7364 else
7365 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7366 fi ;;
7367 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7368 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7369 else
7370 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7371 fi ;;
b7026657
AC
7372 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7373echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7374 { (exit 1); exit 1; }; } ;;
c906108c
SS
7375esac
7376# address bitsize
7377tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7378case x"${tmp}" in
7379 x ) ;;
7380 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7381 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
b7026657
AC
7382 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7383echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7384 { (exit 1); exit 1; }; } ;;
c906108c
SS
7385esac
7386# cell bitsize
7387tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7388case x"${tmp}" in
7389 x ) ;;
7390 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7391 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
b7026657
AC
7392 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7393echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7394 { (exit 1); exit 1; }; } ;;
c906108c
SS
7395esac
7396if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
7397 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7398fi
7399else
7400 sim_bitsize=""
7401if test x"$wire_word_bitsize" != x; then
7402 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7403fi
7404if test x"$wire_word_msb" != x; then
7405 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7406fi
7407if test x"$wire_address_bitsize" != x; then
7408 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7409fi
7410if test x"$wire_cell_bitsize" != x; then
7411 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7412fi
b7026657 7413fi;
c906108c
SS
7414
7415default_sim_inline=""
7416# Check whether --enable-sim-inline or --disable-sim-inline was given.
7417if test "${enable_sim_inline+set}" = set; then
7418 enableval="$enable_sim_inline"
7419 sim_inline=""
7420case "$enableval" in
7421 no) sim_inline="-DDEFAULT_INLINE=0";;
7422 0) sim_inline="-DDEFAULT_INLINE=0";;
7423 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
7424 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
7425 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
7426 new_flag=""
7427 case "$x" in
7428 *_INLINE=*) new_flag="-D$x";;
7429 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7430 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
7431 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
7432 esac
7433 if test x"$sim_inline" = x""; then
7434 sim_inline="$new_flag"
7435 else
7436 sim_inline="$sim_inline $new_flag"
7437 fi
7438 done;;
7439esac
7440if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
7441 echo "Setting inline flags = $sim_inline" 6>&1
7442fi
7443else
b7026657 7444
c906108c
SS
7445if test "x$cross_compiling" = "xno"; then
7446 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
7447 sim_inline="${default_sim_inline}"
7448 if test x"$silent" != x"yes"; then
7449 echo "Setting inline flags = $sim_inline" 6>&1
7450 fi
7451 else
7452 sim_inline=""
7453 fi
7454else
7455 sim_inline="-DDEFAULT_INLINE=0"
7456fi
b7026657 7457fi;
c906108c
SS
7458
7459if test x"yes" = x"yes"; then
7460 sim_hw_p=yes
7461else
7462 sim_hw_p=no
7463fi
7464if test ""; then
7465 hardware="core pal glue"
7466else
7467 hardware="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop"
7468fi
7469sim_hw_cflags="-DWITH_HW=1"
7470sim_hw="$hardware"
7471sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7472# Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7473if test "${enable_sim_hardware+set}" = set; then
7474 enableval="$enable_sim_hardware"
b7026657 7475
c906108c
SS
7476case "${enableval}" in
7477 yes) sim_hw_p=yes;;
7478 no) sim_hw_p=no;;
7479 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7480 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7481 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7482esac
7483if test "$sim_hw_p" != yes; then
7484 sim_hw_objs=
7485 sim_hw_cflags="-DWITH_HW=0"
7486 sim_hw=
7487else
7488 sim_hw_cflags="-DWITH_HW=1"
7489 # remove duplicates
7490 sim_hw=""
7491 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
7492 for i in x $hardware ; do
7493 case " $f " in
7494 x) ;;
7495 *" $i "*) ;;
7496 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
7497 esac
7498 done
7499fi
7500if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
7501 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7502fi
7503else
b7026657
AC
7504
7505if test "$sim_hw_p" != yes; then
7506 sim_hw_objs=
7507 sim_hw_cflags="-DWITH_HW=0"
7508 sim_hw=
7509fi
7510if test x"$silent" != x"yes"; then
7511 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7512fi
7513fi;
7514
7515
7516
7517
7518
7519
7520
7521
7522for ac_func in time chmod utime fork execve execv chown
7523do
7524as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7525echo "$as_me:$LINENO: checking for $ac_func" >&5
7526echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7527if eval "test \"\${$as_ac_var+set}\" = set"; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 cat >conftest.$ac_ext <<_ACEOF
7531/* confdefs.h. */
7532_ACEOF
7533cat confdefs.h >>conftest.$ac_ext
7534cat >>conftest.$ac_ext <<_ACEOF
7535/* end confdefs.h. */
7536/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7538#define $ac_func innocuous_$ac_func
7539
7540/* System header to define __stub macros and hopefully few prototypes,
7541 which can conflict with char $ac_func (); below.
7542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7543 <limits.h> exists even on freestanding compilers. */
7544
7545#ifdef __STDC__
7546# include <limits.h>
7547#else
7548# include <assert.h>
7549#endif
7550
7551#undef $ac_func
7552
7553/* Override any gcc2 internal prototype to avoid an error. */
7554#ifdef __cplusplus
7555extern "C"
7556{
7557#endif
7558/* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7560char $ac_func ();
7561/* The GNU C library defines this for functions which it implements
7562 to always fail with ENOSYS. Some functions are actually named
7563 something starting with __ and the normal name is an alias. */
7564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7565choke me
7566#else
7567char (*f) () = $ac_func;
7568#endif
7569#ifdef __cplusplus
7570}
7571#endif
7572
7573int
7574main ()
7575{
7576return f != $ac_func;
7577 ;
7578 return 0;
7579}
7580_ACEOF
7581rm -f conftest.$ac_objext conftest$ac_exeext
7582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -z "$ac_c_werror_flag"
7591 || test ! -s conftest.err'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; } &&
7597 { ac_try='test -s conftest$ac_exeext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 eval "$as_ac_var=yes"
7604else
7605 echo "$as_me: failed program was:" >&5
7606sed 's/^/| /' conftest.$ac_ext >&5
7607
7608eval "$as_ac_var=no"
7609fi
7610rm -f conftest.err conftest.$ac_objext \
7611 conftest$ac_exeext conftest.$ac_ext
7612fi
7613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7614echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7615if test `eval echo '${'$as_ac_var'}'` = yes; then
7616 cat >>confdefs.h <<_ACEOF
7617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7618_ACEOF
7619
7620fi
7621done
7622
7623
7624
7625
7626
7627
7628
7629for ac_header in unistd.h stdlib.h string.h strings.h utime.h time.h
7630do
7631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633 echo "$as_me:$LINENO: checking for $ac_header" >&5
7634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637fi
7638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7640else
7641 # Is the header compilable?
7642echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7644cat >conftest.$ac_ext <<_ACEOF
7645/* confdefs.h. */
7646_ACEOF
7647cat confdefs.h >>conftest.$ac_ext
7648cat >>conftest.$ac_ext <<_ACEOF
7649/* end confdefs.h. */
7650$ac_includes_default
7651#include <$ac_header>
7652_ACEOF
7653rm -f conftest.$ac_objext
7654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -z "$ac_c_werror_flag"
7663 || test ! -s conftest.err'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest.$ac_objext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_header_compiler=yes
7676else
7677 echo "$as_me: failed program was:" >&5
7678sed 's/^/| /' conftest.$ac_ext >&5
7679
7680ac_header_compiler=no
7681fi
7682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684echo "${ECHO_T}$ac_header_compiler" >&6
7685
7686# Is the header present?
7687echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7689cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h. */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h. */
7695#include <$ac_header>
7696_ACEOF
7697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } >/dev/null; then
7705 if test -s conftest.err; then
7706 ac_cpp_err=$ac_c_preproc_warn_flag
7707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7708 else
7709 ac_cpp_err=
7710 fi
7711else
7712 ac_cpp_err=yes
7713fi
7714if test -z "$ac_cpp_err"; then
7715 ac_header_preproc=yes
7716else
7717 echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 ac_header_preproc=no
7721fi
7722rm -f conftest.err conftest.$ac_ext
7723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724echo "${ECHO_T}$ac_header_preproc" >&6
7725
7726# So? What about this header?
7727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728 yes:no: )
7729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7733 ac_header_preproc=yes
7734 ;;
7735 no:yes:* )
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7748 (
7749 cat <<\_ASBOX
7750## ------------------------------------------ ##
7751## Report this to the AC_PACKAGE_NAME lists. ##
7752## ------------------------------------------ ##
7753_ASBOX
7754 ) |
7755 sed "s/^/$as_me: WARNING: /" >&2
7756 ;;
7757esac
7758echo "$as_me:$LINENO: checking for $ac_header" >&5
7759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763 eval "$as_ac_Header=\$ac_header_preproc"
7764fi
7765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7767
7768fi
7769if test `eval echo '${'$as_ac_Header'}'` = yes; then
7770 cat >>confdefs.h <<_ACEOF
7771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772_ACEOF
7773
7774fi
7775
7776done
7777
7778
7779
7780ac_sources="$sim_link_files"
7781ac_dests="$sim_link_links"
7782while test -n "$ac_sources"; do
7783 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7784 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7785 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7786done
7787 ac_config_links="$ac_config_links $ac_config_links_1"
7788
7789cgen_breaks=""
7790if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7791cgen_breaks="break cgen_rtx_error";
7792fi
7793
7794 ac_config_files="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"
7795 ac_config_commands="$ac_config_commands default"
7796cat >confcache <<\_ACEOF
7797# This file is a shell script that caches the results of configure
7798# tests run on this system so they can be shared between configure
7799# scripts and configure runs, see configure's option --config-cache.
7800# It is not useful on other systems. If it contains results you don't
7801# want to keep, you may remove or edit it.
7802#
7803# config.status only pays attention to the cache file if you give it
7804# the --recheck option to rerun configure.
7805#
7806# `ac_cv_env_foo' variables (set or unset) will be overridden when
7807# loading this file, other *unset* `ac_cv_foo' will be assigned the
7808# following values.
7809
7810_ACEOF
7811
7812# The following way of writing the cache mishandles newlines in values,
7813# but we know of no workaround that is simple, portable, and efficient.
7814# So, don't put newlines in cache variables' values.
7815# Ultrix sh set writes to stderr and can't be redirected directly,
7816# and sets the high bit in the cache file unless we assign to the vars.
7817{
7818 (set) 2>&1 |
7819 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7820 *ac_space=\ *)
7821 # `set' does not quote correctly, so add quotes (double-quote
7822 # substitution turns \\\\ into \\, and sed turns \\ into \).
7823 sed -n \
7824 "s/'/'\\\\''/g;
7825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7826 ;;
7827 *)
7828 # `set' quotes correctly as required by POSIX, so do not add quotes.
7829 sed -n \
7830 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7831 ;;
7832 esac;
7833} |
7834 sed '
7835 t clear
7836 : clear
7837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7838 t end
7839 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7840 : end' >>confcache
7841if diff $cache_file confcache >/dev/null 2>&1; then :; else
7842 if test -w $cache_file; then
7843 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7844 cat confcache >$cache_file
7845 else
7846 echo "not updating unwritable cache $cache_file"
7847 fi
7848fi
7849rm -f confcache
7850
7851test "x$prefix" = xNONE && prefix=$ac_default_prefix
7852# Let make expand exec_prefix.
7853test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7854
7855# VPATH may cause trouble with some makes, so we remove $(srcdir),
7856# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7857# trailing colons and then remove the whole line if VPATH becomes empty
7858# (actually we leave an empty line to preserve line numbers).
7859if test "x$srcdir" = x.; then
7860 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7861s/:*\$(srcdir):*/:/;
7862s/:*\${srcdir}:*/:/;
7863s/:*@srcdir@:*/:/;
7864s/^\([^=]*=[ ]*\):*/\1/;
7865s/:*$//;
7866s/^[^=]*=[ ]*$//;
7867}'
7868fi
7869
7870DEFS=-DHAVE_CONFIG_H
7871
7872ac_libobjs=
7873ac_ltlibobjs=
7874for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7875 # 1. Remove the extension, and $U if already installed.
7876 ac_i=`echo "$ac_i" |
7877 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7878 # 2. Add them.
7879 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7880 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7881done
7882LIBOBJS=$ac_libobjs
7883
7884LTLIBOBJS=$ac_ltlibobjs
7885
7886
7887
7888: ${CONFIG_STATUS=./config.status}
7889ac_clean_files_save=$ac_clean_files
7890ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7891{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7892echo "$as_me: creating $CONFIG_STATUS" >&6;}
7893cat >$CONFIG_STATUS <<_ACEOF
7894#! $SHELL
7895# Generated by $as_me.
7896# Run this file to recreate the current configuration.
7897# Compiler output produced by configure, useful for debugging
7898# configure, is in config.log if it exists.
7899
7900debug=false
7901ac_cs_recheck=false
7902ac_cs_silent=false
7903SHELL=\${CONFIG_SHELL-$SHELL}
7904_ACEOF
7905
7906cat >>$CONFIG_STATUS <<\_ACEOF
7907## --------------------- ##
7908## M4sh Initialization. ##
7909## --------------------- ##
7910
7911# Be Bourne compatible
7912if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7913 emulate sh
7914 NULLCMD=:
7915 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7916 # is contrary to our usage. Disable this feature.
7917 alias -g '${1+"$@"}'='"$@"'
7918elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7919 set -o posix
7920fi
7921DUALCASE=1; export DUALCASE # for MKS sh
7922
7923# Support unset when possible.
7924if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7925 as_unset=unset
7926else
7927 as_unset=false
c906108c 7928fi
b7026657
AC
7929
7930
7931# Work around bugs in pre-3.0 UWIN ksh.
7932$as_unset ENV MAIL MAILPATH
7933PS1='$ '
7934PS2='> '
7935PS4='+ '
7936
7937# NLS nuisances.
7938for as_var in \
7939 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7940 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7941 LC_TELEPHONE LC_TIME
7942do
7943 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7944 eval $as_var=C; export $as_var
7945 else
7946 $as_unset $as_var
7947 fi
7948done
7949
7950# Required to use basename.
7951if expr a : '\(a\)' >/dev/null 2>&1; then
7952 as_expr=expr
7953else
7954 as_expr=false
c906108c 7955fi
b7026657
AC
7956
7957if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7958 as_basename=basename
7959else
7960 as_basename=false
c906108c
SS
7961fi
7962
7963
b7026657
AC
7964# Name of the executable.
7965as_me=`$as_basename "$0" ||
7966$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7967 X"$0" : 'X\(//\)$' \| \
7968 X"$0" : 'X\(/\)$' \| \
7969 . : '\(.\)' 2>/dev/null ||
7970echo X/"$0" |
7971 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7972 /^X\/\(\/\/\)$/{ s//\1/; q; }
7973 /^X\/\(\/\).*/{ s//\1/; q; }
7974 s/.*/./; q'`
7975
7976
7977# PATH needs CR, and LINENO needs CR and PATH.
7978# Avoid depending upon Character Ranges.
7979as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7980as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7981as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7982as_cr_digits='0123456789'
7983as_cr_alnum=$as_cr_Letters$as_cr_digits
7984
7985# The user is always right.
7986if test "${PATH_SEPARATOR+set}" != set; then
7987 echo "#! /bin/sh" >conf$$.sh
7988 echo "exit 0" >>conf$$.sh
7989 chmod +x conf$$.sh
7990 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7991 PATH_SEPARATOR=';'
7992 else
7993 PATH_SEPARATOR=:
7994 fi
7995 rm -f conf$$.sh
7996fi
7997
7998
7999 as_lineno_1=$LINENO
8000 as_lineno_2=$LINENO
8001 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8002 test "x$as_lineno_1" != "x$as_lineno_2" &&
8003 test "x$as_lineno_3" = "x$as_lineno_2" || {
8004 # Find who we are. Look in the path if we contain no path at all
8005 # relative or not.
8006 case $0 in
8007 *[\\/]* ) as_myself=$0 ;;
8008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
c906108c 8010do
b7026657
AC
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8014done
c906108c 8015
b7026657
AC
8016 ;;
8017 esac
8018 # We did not find ourselves, most probably we were run as `sh COMMAND'
8019 # in which case we are not to be found in the path.
8020 if test "x$as_myself" = x; then
8021 as_myself=$0
8022 fi
8023 if test ! -f "$as_myself"; then
8024 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8025echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8026 { (exit 1); exit 1; }; }
8027 fi
8028 case $CONFIG_SHELL in
8029 '')
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8032do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for as_base in sh bash ksh sh5; do
8036 case $as_dir in
8037 /*)
8038 if ("$as_dir/$as_base" -c '
8039 as_lineno_1=$LINENO
8040 as_lineno_2=$LINENO
8041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8042 test "x$as_lineno_1" != "x$as_lineno_2" &&
8043 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8044 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8045 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8046 CONFIG_SHELL=$as_dir/$as_base
8047 export CONFIG_SHELL
8048 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8049 fi;;
8050 esac
8051 done
8052done
8053;;
8054 esac
8055
8056 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8057 # uniformly replaced by the line number. The first 'sed' inserts a
8058 # line-number line before each line; the second 'sed' does the real
8059 # work. The second script uses 'N' to pair each line-number line
8060 # with the numbered line, and appends trailing '-' during
8061 # substitution so that $LINENO is not a special case at line end.
8062 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8063 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8064 sed '=' <$as_myself |
8065 sed '
8066 N
8067 s,$,-,
8068 : loop
8069 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8070 t loop
8071 s,-$,,
8072 s,^['$as_cr_digits']*\n,,
8073 ' >$as_me.lineno &&
8074 chmod +x $as_me.lineno ||
8075 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8076echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8077 { (exit 1); exit 1; }; }
8078
8079 # Don't try to exec as it changes $[0], causing all sort of problems
8080 # (the dirname of $[0] is not the place where we might find the
8081 # original and so on. Autoconf is especially sensible to this).
8082 . ./$as_me.lineno
8083 # Exit status is that of the last command.
8084 exit
8085}
c906108c 8086
c906108c 8087
b7026657
AC
8088case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8089 *c*,-n*) ECHO_N= ECHO_C='
8090' ECHO_T=' ' ;;
8091 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8092 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8093esac
8094
8095if expr a : '\(a\)' >/dev/null 2>&1; then
8096 as_expr=expr
c906108c 8097else
b7026657 8098 as_expr=false
c906108c 8099fi
b7026657
AC
8100
8101rm -f conf$$ conf$$.exe conf$$.file
8102echo >conf$$.file
8103if ln -s conf$$.file conf$$ 2>/dev/null; then
8104 # We could just check for DJGPP; but this test a) works b) is more generic
8105 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8106 if test -f conf$$.exe; then
8107 # Don't use ln at all; we don't have any links
8108 as_ln_s='cp -p'
8109 else
8110 as_ln_s='ln -s'
8111 fi
8112elif ln conf$$.file conf$$ 2>/dev/null; then
8113 as_ln_s=ln
8114else
8115 as_ln_s='cp -p'
c906108c 8116fi
b7026657 8117rm -f conf$$ conf$$.exe conf$$.file
c906108c 8118
b7026657
AC
8119if mkdir -p . 2>/dev/null; then
8120 as_mkdir_p=:
c906108c 8121else
b7026657
AC
8122 test -d ./-p && rmdir ./-p
8123 as_mkdir_p=false
c906108c 8124fi
c906108c 8125
b7026657
AC
8126as_executable_p="test -f"
8127
8128# Sed expression to map a string onto a valid CPP name.
8129as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8130
8131# Sed expression to map a string onto a valid variable name.
8132as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8133
8134
8135# IFS
8136# We need space, tab and new line, in precisely that order.
8137as_nl='
8138'
8139IFS=" $as_nl"
8140
8141# CDPATH.
8142$as_unset CDPATH
8143
8144exec 6>&1
8145
8146# Open the log real soon, to keep \$[0] and so on meaningful, and to
8147# report actual input values of CONFIG_FILES etc. instead of their
8148# values after options handling. Logging --version etc. is OK.
8149exec 5>>config.log
8150{
8151 echo
8152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8153## Running $as_me. ##
8154_ASBOX
8155} >&5
8156cat >&5 <<_CSEOF
8157
8158This file was extended by $as_me, which was
8159generated by GNU Autoconf 2.59. Invocation command line was
8160
8161 CONFIG_FILES = $CONFIG_FILES
8162 CONFIG_HEADERS = $CONFIG_HEADERS
8163 CONFIG_LINKS = $CONFIG_LINKS
8164 CONFIG_COMMANDS = $CONFIG_COMMANDS
8165 $ $0 $@
8166
8167_CSEOF
8168echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8169echo >&5
8170_ACEOF
8171
8172# Files that config.status was made for.
8173if test -n "$ac_config_files"; then
8174 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
c906108c 8175fi
b7026657
AC
8176
8177if test -n "$ac_config_headers"; then
8178 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
c906108c 8179fi
b7026657
AC
8180
8181if test -n "$ac_config_links"; then
8182 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
c906108c 8183fi
c906108c 8184
b7026657
AC
8185if test -n "$ac_config_commands"; then
8186 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8187fi
c906108c 8188
b7026657 8189cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 8190
b7026657
AC
8191ac_cs_usage="\
8192\`$as_me' instantiates files from templates according to the
8193current configuration.
c906108c 8194
b7026657 8195Usage: $0 [OPTIONS] [FILE]...
c906108c 8196
b7026657
AC
8197 -h, --help print this help, then exit
8198 -V, --version print version number, then exit
8199 -q, --quiet do not print progress messages
8200 -d, --debug don't remove temporary files
8201 --recheck update $as_me by reconfiguring in the same conditions
8202 --file=FILE[:TEMPLATE]
8203 instantiate the configuration file FILE
8204 --header=FILE[:TEMPLATE]
8205 instantiate the configuration header FILE
8206
8207Configuration files:
8208$config_files
8209
8210Configuration headers:
8211$config_headers
8212
8213Configuration links:
8214$config_links
8215
8216Configuration commands:
8217$config_commands
8218
8219Report bugs to <bug-autoconf@gnu.org>."
8220_ACEOF
8221
8222cat >>$CONFIG_STATUS <<_ACEOF
8223ac_cs_version="\\
8224config.status
8225configured by $0, generated by GNU Autoconf 2.59,
8226 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8227
8228Copyright (C) 2003 Free Software Foundation, Inc.
8229This config.status script is free software; the Free Software Foundation
8230gives unlimited permission to copy, distribute and modify it."
8231srcdir=$srcdir
8232INSTALL="$INSTALL"
8233_ACEOF
8234
8235cat >>$CONFIG_STATUS <<\_ACEOF
8236# If no file are specified by the user, then we need to provide default
8237# value. By we need to know if files were specified by the user.
8238ac_need_defaults=:
8239while test $# != 0
8240do
8241 case $1 in
8242 --*=*)
8243 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8244 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8245 ac_shift=:
c906108c 8246 ;;
b7026657
AC
8247 -*)
8248 ac_option=$1
8249 ac_optarg=$2
8250 ac_shift=shift
c906108c 8251 ;;
b7026657
AC
8252 *) # This is not an option, so the user has probably given explicit
8253 # arguments.
8254 ac_option=$1
8255 ac_need_defaults=false;;
8256 esac
c906108c 8257
b7026657
AC
8258 case $ac_option in
8259 # Handling of the options.
8260_ACEOF
8261cat >>$CONFIG_STATUS <<\_ACEOF
8262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8263 ac_cs_recheck=: ;;
8264 --version | --vers* | -V )
8265 echo "$ac_cs_version"; exit 0 ;;
8266 --he | --h)
8267 # Conflict between --help and --header
8268 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8269Try \`$0 --help' for more information." >&5
8270echo "$as_me: error: ambiguous option: $1
8271Try \`$0 --help' for more information." >&2;}
8272 { (exit 1); exit 1; }; };;
8273 --help | --hel | -h )
8274 echo "$ac_cs_usage"; exit 0 ;;
8275 --debug | --d* | -d )
8276 debug=: ;;
8277 --file | --fil | --fi | --f )
8278 $ac_shift
8279 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8280 ac_need_defaults=false;;
8281 --header | --heade | --head | --hea )
8282 $ac_shift
8283 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8284 ac_need_defaults=false;;
8285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8286 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8287 ac_cs_silent=: ;;
c906108c 8288
b7026657
AC
8289 # This is an error.
8290 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8291Try \`$0 --help' for more information." >&5
8292echo "$as_me: error: unrecognized option: $1
8293Try \`$0 --help' for more information." >&2;}
8294 { (exit 1); exit 1; }; } ;;
c906108c 8295
b7026657
AC
8296 *) ac_config_targets="$ac_config_targets $1" ;;
8297
8298 esac
8299 shift
8300done
8301
8302ac_configure_extra_args=
8303
8304if $ac_cs_silent; then
8305 exec 6>/dev/null
8306 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
8307fi
8308
b7026657
AC
8309_ACEOF
8310cat >>$CONFIG_STATUS <<_ACEOF
8311if \$ac_cs_recheck; then
8312 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8313 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8314fi
c906108c 8315
b7026657 8316_ACEOF
c906108c 8317
c906108c 8318
c906108c 8319
b7026657
AC
8320
8321
8322cat >>$CONFIG_STATUS <<\_ACEOF
8323for ac_config_target in $ac_config_targets
c906108c 8324do
b7026657
AC
8325 case "$ac_config_target" in
8326 # Handling of arguments.
8327 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8328 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8329 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8330 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
8331 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8332 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8333 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8334echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8335 { (exit 1); exit 1; }; };;
c906108c
SS
8336 esac
8337done
8338
b7026657
AC
8339# If the user did not use the arguments to specify the items to instantiate,
8340# then the envvar interface is used. Set only those that are not.
8341# We use the long form for the default assignment because of an extremely
8342# bizarre bug on SunOS 4.1.3.
8343if $ac_need_defaults; then
8344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8346 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8347 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8348fi
8349
8350# Have a temporary directory for convenience. Make it in the build tree
8351# simply because there is no reason to put it here, and in addition,
8352# creating and moving files from /tmp can sometimes cause problems.
8353# Create a temporary directory, and hook for its removal unless debugging.
8354$debug ||
8355{
8356 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8357 trap '{ (exit 1); exit 1; }' 1 2 13 15
8358}
c906108c 8359
b7026657 8360# Create a (secure) tmp directory for tmp files.
c906108c 8361
b7026657
AC
8362{
8363 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8364 test -n "$tmp" && test -d "$tmp"
8365} ||
8366{
8367 tmp=./confstat$$-$RANDOM
8368 (umask 077 && mkdir $tmp)
8369} ||
8370{
8371 echo "$me: cannot create a temporary directory in ." >&2
8372 { (exit 1); exit 1; }
8373}
8374
8375_ACEOF
8376
8377cat >>$CONFIG_STATUS <<_ACEOF
8378
8379#
8380# CONFIG_FILES section.
8381#
c906108c 8382
b7026657
AC
8383# No need to generate the scripts if there are no CONFIG_FILES.
8384# This happens for instance when ./config.status config.h
8385if test -n "\$CONFIG_FILES"; then
8386 # Protect against being on the right side of a sed subst in config.status.
8387 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8388 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8389s,@sim_environment@,$sim_environment,;t t
8390s,@sim_alignment@,$sim_alignment,;t t
8391s,@sim_assert@,$sim_assert,;t t
8392s,@sim_bitsize@,$sim_bitsize,;t t
8393s,@sim_endian@,$sim_endian,;t t
8394s,@sim_hostendian@,$sim_hostendian,;t t
8395s,@sim_float@,$sim_float,;t t
8396s,@sim_scache@,$sim_scache,;t t
8397s,@sim_default_model@,$sim_default_model,;t t
8398s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8399s,@sim_hw_objs@,$sim_hw_objs,;t t
8400s,@sim_hw@,$sim_hw,;t t
8401s,@sim_inline@,$sim_inline,;t t
8402s,@sim_packages@,$sim_packages,;t t
8403s,@sim_regparm@,$sim_regparm,;t t
8404s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8405s,@sim_smp@,$sim_smp,;t t
8406s,@sim_stdcall@,$sim_stdcall,;t t
8407s,@sim_xor_endian@,$sim_xor_endian,;t t
8408s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8409s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8410s,@SHELL@,$SHELL,;t t
8411s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8412s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8413s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8414s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8415s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8416s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8417s,@exec_prefix@,$exec_prefix,;t t
8418s,@prefix@,$prefix,;t t
8419s,@program_transform_name@,$program_transform_name,;t t
8420s,@bindir@,$bindir,;t t
8421s,@sbindir@,$sbindir,;t t
8422s,@libexecdir@,$libexecdir,;t t
8423s,@datadir@,$datadir,;t t
8424s,@sysconfdir@,$sysconfdir,;t t
8425s,@sharedstatedir@,$sharedstatedir,;t t
8426s,@localstatedir@,$localstatedir,;t t
8427s,@libdir@,$libdir,;t t
8428s,@includedir@,$includedir,;t t
8429s,@oldincludedir@,$oldincludedir,;t t
8430s,@infodir@,$infodir,;t t
8431s,@mandir@,$mandir,;t t
8432s,@build_alias@,$build_alias,;t t
8433s,@host_alias@,$host_alias,;t t
8434s,@target_alias@,$target_alias,;t t
8435s,@DEFS@,$DEFS,;t t
8436s,@ECHO_C@,$ECHO_C,;t t
8437s,@ECHO_N@,$ECHO_N,;t t
8438s,@ECHO_T@,$ECHO_T,;t t
8439s,@LIBS@,$LIBS,;t t
8440s,@build@,$build,;t t
8441s,@build_cpu@,$build_cpu,;t t
8442s,@build_vendor@,$build_vendor,;t t
8443s,@build_os@,$build_os,;t t
8444s,@host@,$host,;t t
8445s,@host_cpu@,$host_cpu,;t t
8446s,@host_vendor@,$host_vendor,;t t
8447s,@host_os@,$host_os,;t t
8448s,@target@,$target,;t t
8449s,@target_cpu@,$target_cpu,;t t
8450s,@target_vendor@,$target_vendor,;t t
8451s,@target_os@,$target_os,;t t
8452s,@CC@,$CC,;t t
8453s,@CFLAGS@,$CFLAGS,;t t
8454s,@LDFLAGS@,$LDFLAGS,;t t
8455s,@CPPFLAGS@,$CPPFLAGS,;t t
8456s,@ac_ct_CC@,$ac_ct_CC,;t t
8457s,@EXEEXT@,$EXEEXT,;t t
8458s,@OBJEXT@,$OBJEXT,;t t
8459s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8460s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8461s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8462s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8463s,@HDEFINES@,$HDEFINES,;t t
8464s,@AR@,$AR,;t t
8465s,@RANLIB@,$RANLIB,;t t
8466s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8467s,@SET_MAKE@,$SET_MAKE,;t t
8468s,@CPP@,$CPP,;t t
8469s,@EGREP@,$EGREP,;t t
8470s,@ALLOCA@,$ALLOCA,;t t
8471s,@USE_NLS@,$USE_NLS,;t t
8472s,@MSGFMT@,$MSGFMT,;t t
8473s,@GMSGFMT@,$GMSGFMT,;t t
8474s,@XGETTEXT@,$XGETTEXT,;t t
8475s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8476s,@CATALOGS@,$CATALOGS,;t t
8477s,@CATOBJEXT@,$CATOBJEXT,;t t
8478s,@DATADIRNAME@,$DATADIRNAME,;t t
8479s,@GMOFILES@,$GMOFILES,;t t
8480s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8481s,@INTLDEPS@,$INTLDEPS,;t t
8482s,@INTLLIBS@,$INTLLIBS,;t t
8483s,@INTLOBJS@,$INTLOBJS,;t t
8484s,@POFILES@,$POFILES,;t t
8485s,@POSUB@,$POSUB,;t t
8486s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8487s,@GT_NO@,$GT_NO,;t t
8488s,@GT_YES@,$GT_YES,;t t
8489s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8490s,@l@,$l,;t t
8491s,@MAINT@,$MAINT,;t t
8492s,@sim_bswap@,$sim_bswap,;t t
8493s,@sim_cflags@,$sim_cflags,;t t
8494s,@sim_debug@,$sim_debug,;t t
8495s,@sim_stdio@,$sim_stdio,;t t
8496s,@sim_trace@,$sim_trace,;t t
8497s,@sim_profile@,$sim_profile,;t t
8498s,@cgen_breaks@,$cgen_breaks,;t t
8499s,@LIBOBJS@,$LIBOBJS,;t t
8500s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 8501CEOF
b7026657
AC
8502
8503_ACEOF
8504
8505 cat >>$CONFIG_STATUS <<\_ACEOF
8506 # Split the substitutions into bite-sized pieces for seds with
8507 # small command number limits, like on Digital OSF/1 and HP-UX.
8508 ac_max_sed_lines=48
8509 ac_sed_frag=1 # Number of current file.
8510 ac_beg=1 # First line for current file.
8511 ac_end=$ac_max_sed_lines # Line after last line for current file.
8512 ac_more_lines=:
8513 ac_sed_cmds=
8514 while $ac_more_lines; do
8515 if test $ac_beg -gt 1; then
8516 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
c906108c 8517 else
b7026657
AC
8518 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8519 fi
8520 if test ! -s $tmp/subs.frag; then
8521 ac_more_lines=false
8522 else
8523 # The purpose of the label and of the branching condition is to
8524 # speed up the sed processing (if there are no `@' at all, there
8525 # is no need to browse any of the substitutions).
8526 # These are the two extra sed commands mentioned above.
8527 (echo ':t
8528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8529 if test -z "$ac_sed_cmds"; then
8530 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8531 else
8532 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8533 fi
8534 ac_sed_frag=`expr $ac_sed_frag + 1`
8535 ac_beg=$ac_end
8536 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 8537 fi
b7026657
AC
8538 done
8539 if test -z "$ac_sed_cmds"; then
8540 ac_sed_cmds=cat
c906108c 8541 fi
b7026657 8542fi # test -n "$CONFIG_FILES"
c906108c 8543
b7026657
AC
8544_ACEOF
8545cat >>$CONFIG_STATUS <<\_ACEOF
8546for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 8547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
8548 case $ac_file in
8549 - | *:- | *:-:* ) # input from stdin
8550 cat >$tmp/stdin
8551 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8552 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8553 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8554 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8555 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
8556 esac
8557
b7026657
AC
8558 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8559 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8560$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8561 X"$ac_file" : 'X\(//\)[^/]' \| \
8562 X"$ac_file" : 'X\(//\)$' \| \
8563 X"$ac_file" : 'X\(/\)' \| \
8564 . : '\(.\)' 2>/dev/null ||
8565echo X"$ac_file" |
8566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8568 /^X\(\/\/\)$/{ s//\1/; q; }
8569 /^X\(\/\).*/{ s//\1/; q; }
8570 s/.*/./; q'`
8571 { if $as_mkdir_p; then
8572 mkdir -p "$ac_dir"
c906108c 8573 else
b7026657
AC
8574 as_dir="$ac_dir"
8575 as_dirs=
8576 while test ! -d "$as_dir"; do
8577 as_dirs="$as_dir $as_dirs"
8578 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8580 X"$as_dir" : 'X\(//\)[^/]' \| \
8581 X"$as_dir" : 'X\(//\)$' \| \
8582 X"$as_dir" : 'X\(/\)' \| \
8583 . : '\(.\)' 2>/dev/null ||
8584echo X"$as_dir" |
8585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8587 /^X\(\/\/\)$/{ s//\1/; q; }
8588 /^X\(\/\).*/{ s//\1/; q; }
8589 s/.*/./; q'`
8590 done
8591 test ! -n "$as_dirs" || mkdir $as_dirs
8592 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8593echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8594 { (exit 1); exit 1; }; }; }
8595
8596 ac_builddir=.
c906108c 8597
b7026657
AC
8598if test "$ac_dir" != .; then
8599 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8600 # A "../" for each directory in $ac_dir_suffix.
8601 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8602else
8603 ac_dir_suffix= ac_top_builddir=
8604fi
8605
8606case $srcdir in
8607 .) # No --srcdir option. We are building in place.
8608 ac_srcdir=.
8609 if test -z "$ac_top_builddir"; then
8610 ac_top_srcdir=.
8611 else
8612 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8613 fi ;;
8614 [\\/]* | ?:[\\/]* ) # Absolute path.
8615 ac_srcdir=$srcdir$ac_dir_suffix;
8616 ac_top_srcdir=$srcdir ;;
c906108c 8617 *) # Relative path.
b7026657
AC
8618 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8619 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8620esac
c906108c 8621
b7026657
AC
8622# Do not use `cd foo && pwd` to compute absolute paths, because
8623# the directories may not exist.
8624case `pwd` in
8625.) ac_abs_builddir="$ac_dir";;
8626*)
8627 case "$ac_dir" in
8628 .) ac_abs_builddir=`pwd`;;
8629 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8630 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8631 esac;;
8632esac
8633case $ac_abs_builddir in
8634.) ac_abs_top_builddir=${ac_top_builddir}.;;
8635*)
8636 case ${ac_top_builddir}. in
8637 .) ac_abs_top_builddir=$ac_abs_builddir;;
8638 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8639 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8640 esac;;
8641esac
8642case $ac_abs_builddir in
8643.) ac_abs_srcdir=$ac_srcdir;;
8644*)
8645 case $ac_srcdir in
8646 .) ac_abs_srcdir=$ac_abs_builddir;;
8647 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8648 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8649 esac;;
8650esac
8651case $ac_abs_builddir in
8652.) ac_abs_top_srcdir=$ac_top_srcdir;;
8653*)
8654 case $ac_top_srcdir in
8655 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8656 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8657 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8658 esac;;
8659esac
c906108c 8660
b7026657
AC
8661
8662 case $INSTALL in
8663 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8664 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
8665 esac
8666
b7026657
AC
8667 if test x"$ac_file" != x-; then
8668 { echo "$as_me:$LINENO: creating $ac_file" >&5
8669echo "$as_me: creating $ac_file" >&6;}
8670 rm -f "$ac_file"
8671 fi
8672 # Let's still pretend it is `configure' which instantiates (i.e., don't
8673 # use $as_me), people would be surprised to read:
8674 # /* config.h. Generated by config.status. */
8675 if test x"$ac_file" = x-; then
8676 configure_input=
8677 else
8678 configure_input="$ac_file. "
8679 fi
8680 configure_input=$configure_input"Generated from `echo $ac_file_in |
8681 sed 's,.*/,,'` by configure."
8682
8683 # First look for the input files in the build tree, otherwise in the
8684 # src tree.
8685 ac_file_inputs=`IFS=:
8686 for f in $ac_file_in; do
8687 case $f in
8688 -) echo $tmp/stdin ;;
8689 [\\/$]*)
8690 # Absolute (can't be DOS-style, as IFS=:)
8691 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8692echo "$as_me: error: cannot find input file: $f" >&2;}
8693 { (exit 1); exit 1; }; }
8694 echo "$f";;
8695 *) # Relative
8696 if test -f "$f"; then
8697 # Build tree
8698 echo "$f"
8699 elif test -f "$srcdir/$f"; then
8700 # Source tree
8701 echo "$srcdir/$f"
8702 else
8703 # /dev/null tree
8704 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8705echo "$as_me: error: cannot find input file: $f" >&2;}
8706 { (exit 1); exit 1; }; }
8707 fi;;
8708 esac
8709 done` || { (exit 1); exit 1; }
8710_ACEOF
8711cat >>$CONFIG_STATUS <<_ACEOF
8712 sed "$ac_vpsub
8713$extrasub
8714_ACEOF
8715cat >>$CONFIG_STATUS <<\_ACEOF
8716:t
8717/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8718s,@configure_input@,$configure_input,;t t
8719s,@srcdir@,$ac_srcdir,;t t
8720s,@abs_srcdir@,$ac_abs_srcdir,;t t
8721s,@top_srcdir@,$ac_top_srcdir,;t t
8722s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8723s,@builddir@,$ac_builddir,;t t
8724s,@abs_builddir@,$ac_abs_builddir,;t t
8725s,@top_builddir@,$ac_top_builddir,;t t
8726s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8727s,@INSTALL@,$ac_INSTALL,;t t
8728" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8729 rm -f $tmp/stdin
8730 if test x"$ac_file" != x-; then
8731 mv $tmp/out $ac_file
8732 else
8733 cat $tmp/out
8734 rm -f $tmp/out
8735 fi
8736
8737done
8738_ACEOF
8739cat >>$CONFIG_STATUS <<\_ACEOF
8740
8741#
8742# CONFIG_HEADER section.
8743#
c906108c
SS
8744
8745# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8746# NAME is the cpp macro being defined and VALUE is the value it is being given.
8747#
8748# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
8749ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8750ac_dB='[ ].*$,\1#\2'
8751ac_dC=' '
8752ac_dD=',;t'
8753# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8754ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8755ac_uB='$,\1#\2define\3'
c906108c 8756ac_uC=' '
b7026657
AC
8757ac_uD=',;t'
8758
8759for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 8760 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
8761 case $ac_file in
8762 - | *:- | *:-:* ) # input from stdin
8763 cat >$tmp/stdin
8764 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8765 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8766 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8767 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8768 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
8769 esac
8770
b7026657
AC
8771 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8772echo "$as_me: creating $ac_file" >&6;}
8773
8774 # First look for the input files in the build tree, otherwise in the
8775 # src tree.
8776 ac_file_inputs=`IFS=:
8777 for f in $ac_file_in; do
8778 case $f in
8779 -) echo $tmp/stdin ;;
8780 [\\/$]*)
8781 # Absolute (can't be DOS-style, as IFS=:)
8782 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8783echo "$as_me: error: cannot find input file: $f" >&2;}
8784 { (exit 1); exit 1; }; }
8785 # Do quote $f, to prevent DOS paths from being IFS'd.
8786 echo "$f";;
8787 *) # Relative
8788 if test -f "$f"; then
8789 # Build tree
8790 echo "$f"
8791 elif test -f "$srcdir/$f"; then
8792 # Source tree
8793 echo "$srcdir/$f"
8794 else
8795 # /dev/null tree
8796 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8797echo "$as_me: error: cannot find input file: $f" >&2;}
8798 { (exit 1); exit 1; }; }
8799 fi;;
8800 esac
8801 done` || { (exit 1); exit 1; }
8802 # Remove the trailing spaces.
8803 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8804
8805_ACEOF
8806
8807# Transform confdefs.h into two sed scripts, `conftest.defines' and
8808# `conftest.undefs', that substitutes the proper values into
8809# config.h.in to produce config.h. The first handles `#define'
8810# templates, and the second `#undef' templates.
8811# And first: Protect against being on the right side of a sed subst in
8812# config.status. Protect against being in an unquoted here document
8813# in config.status.
8814rm -f conftest.defines conftest.undefs
8815# Using a here document instead of a string reduces the quoting nightmare.
8816# Putting comments in sed scripts is not portable.
8817#
8818# `end' is used to avoid that the second main sed command (meant for
8819# 0-ary CPP macros) applies to n-ary macro definitions.
8820# See the Autoconf documentation for `clear'.
8821cat >confdef2sed.sed <<\_ACEOF
8822s/[\\&,]/\\&/g
8823s,[\\$`],\\&,g
8824t clear
8825: clear
8826s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8827t end
8828s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8829: end
8830_ACEOF
8831# If some macros were called several times there might be several times
8832# the same #defines, which is useless. Nevertheless, we may not want to
8833# sort them, since we want the *last* AC-DEFINE to be honored.
8834uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8835sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8836rm -f confdef2sed.sed
c906108c
SS
8837
8838# This sed command replaces #undef with comments. This is necessary, for
8839# example, in the case of _POSIX_SOURCE, which is predefined and required
8840# on some systems where configure will not decide to define it.
b7026657
AC
8841cat >>conftest.undefs <<\_ACEOF
8842s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8843_ACEOF
8844
8845# Break up conftest.defines because some shells have a limit on the size
8846# of here documents, and old seds have small limits too (100 cmds).
8847echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8848echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8849echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8850echo ' :' >>$CONFIG_STATUS
8851rm -f conftest.tail
8852while grep . conftest.defines >/dev/null
8853do
8854 # Write a limited-size here document to $tmp/defines.sed.
8855 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8856 # Speed up: don't consider the non `#define' lines.
8857 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8858 # Work around the forget-to-reset-the-flag bug.
8859 echo 't clr' >>$CONFIG_STATUS
8860 echo ': clr' >>$CONFIG_STATUS
8861 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8862 echo 'CEOF
8863 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8864 rm -f $tmp/in
8865 mv $tmp/out $tmp/in
8866' >>$CONFIG_STATUS
8867 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8868 rm -f conftest.defines
8869 mv conftest.tail conftest.defines
8870done
8871rm -f conftest.defines
8872echo ' fi # grep' >>$CONFIG_STATUS
8873echo >>$CONFIG_STATUS
c906108c 8874
b7026657
AC
8875# Break up conftest.undefs because some shells have a limit on the size
8876# of here documents, and old seds have small limits too (100 cmds).
8877echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 8878rm -f conftest.tail
b7026657 8879while grep . conftest.undefs >/dev/null
c906108c 8880do
b7026657
AC
8881 # Write a limited-size here document to $tmp/undefs.sed.
8882 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8883 # Speed up: don't consider the non `#undef'
8884 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8885 # Work around the forget-to-reset-the-flag bug.
8886 echo 't clr' >>$CONFIG_STATUS
8887 echo ': clr' >>$CONFIG_STATUS
8888 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 8889 echo 'CEOF
b7026657
AC
8890 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8891 rm -f $tmp/in
8892 mv $tmp/out $tmp/in
8893' >>$CONFIG_STATUS
8894 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8895 rm -f conftest.undefs
8896 mv conftest.tail conftest.undefs
c906108c 8897done
b7026657
AC
8898rm -f conftest.undefs
8899
8900cat >>$CONFIG_STATUS <<\_ACEOF
8901 # Let's still pretend it is `configure' which instantiates (i.e., don't
8902 # use $as_me), people would be surprised to read:
8903 # /* config.h. Generated by config.status. */
8904 if test x"$ac_file" = x-; then
8905 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 8906 else
b7026657 8907 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 8908 fi
b7026657
AC
8909 cat $tmp/in >>$tmp/config.h
8910 rm -f $tmp/in
8911 if test x"$ac_file" != x-; then
8912 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8913 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8914echo "$as_me: $ac_file is unchanged" >&6;}
8915 else
8916 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8917$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8918 X"$ac_file" : 'X\(//\)[^/]' \| \
8919 X"$ac_file" : 'X\(//\)$' \| \
8920 X"$ac_file" : 'X\(/\)' \| \
8921 . : '\(.\)' 2>/dev/null ||
8922echo X"$ac_file" |
8923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8925 /^X\(\/\/\)$/{ s//\1/; q; }
8926 /^X\(\/\).*/{ s//\1/; q; }
8927 s/.*/./; q'`
8928 { if $as_mkdir_p; then
8929 mkdir -p "$ac_dir"
8930 else
8931 as_dir="$ac_dir"
8932 as_dirs=
8933 while test ! -d "$as_dir"; do
8934 as_dirs="$as_dir $as_dirs"
8935 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8936$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8937 X"$as_dir" : 'X\(//\)[^/]' \| \
8938 X"$as_dir" : 'X\(//\)$' \| \
8939 X"$as_dir" : 'X\(/\)' \| \
8940 . : '\(.\)' 2>/dev/null ||
8941echo X"$as_dir" |
8942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8944 /^X\(\/\/\)$/{ s//\1/; q; }
8945 /^X\(\/\).*/{ s//\1/; q; }
8946 s/.*/./; q'`
8947 done
8948 test ! -n "$as_dirs" || mkdir $as_dirs
8949 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8950echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8951 { (exit 1); exit 1; }; }; }
c906108c 8952
b7026657
AC
8953 rm -f $ac_file
8954 mv $tmp/config.h $ac_file
8955 fi
8956 else
8957 cat $tmp/config.h
8958 rm -f $tmp/config.h
8959 fi
8960done
8961_ACEOF
8962cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 8963
b7026657
AC
8964#
8965# CONFIG_LINKS section.
8966#
c906108c 8967
b7026657
AC
8968for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8969 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8970 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 8971
b7026657
AC
8972 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8973echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
8974
8975 if test ! -r $srcdir/$ac_source; then
b7026657
AC
8976 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8977echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8978 { (exit 1); exit 1; }; }
c906108c
SS
8979 fi
8980 rm -f $ac_dest
8981
8982 # Make relative symlinks.
b7026657
AC
8983 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8984$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8985 X"$ac_dest" : 'X\(//\)[^/]' \| \
8986 X"$ac_dest" : 'X\(//\)$' \| \
8987 X"$ac_dest" : 'X\(/\)' \| \
8988 . : '\(.\)' 2>/dev/null ||
8989echo X"$ac_dest" |
8990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8992 /^X\(\/\/\)$/{ s//\1/; q; }
8993 /^X\(\/\).*/{ s//\1/; q; }
8994 s/.*/./; q'`
8995 { if $as_mkdir_p; then
8996 mkdir -p "$ac_dest_dir"
c906108c 8997 else
b7026657
AC
8998 as_dir="$ac_dest_dir"
8999 as_dirs=
9000 while test ! -d "$as_dir"; do
9001 as_dirs="$as_dir $as_dirs"
9002 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9003$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9004 X"$as_dir" : 'X\(//\)[^/]' \| \
9005 X"$as_dir" : 'X\(//\)$' \| \
9006 X"$as_dir" : 'X\(/\)' \| \
9007 . : '\(.\)' 2>/dev/null ||
9008echo X"$as_dir" |
9009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9011 /^X\(\/\/\)$/{ s//\1/; q; }
9012 /^X\(\/\).*/{ s//\1/; q; }
9013 s/.*/./; q'`
9014 done
9015 test ! -n "$as_dirs" || mkdir $as_dirs
9016 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9017echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9018 { (exit 1); exit 1; }; }; }
9019
9020 ac_builddir=.
9021
9022if test "$ac_dest_dir" != .; then
9023 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9024 # A "../" for each directory in $ac_dir_suffix.
9025 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9026else
9027 ac_dir_suffix= ac_top_builddir=
9028fi
9029
9030case $srcdir in
9031 .) # No --srcdir option. We are building in place.
9032 ac_srcdir=.
9033 if test -z "$ac_top_builddir"; then
9034 ac_top_srcdir=.
9035 else
9036 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9037 fi ;;
9038 [\\/]* | ?:[\\/]* ) # Absolute path.
9039 ac_srcdir=$srcdir$ac_dir_suffix;
9040 ac_top_srcdir=$srcdir ;;
9041 *) # Relative path.
9042 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9043 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9044esac
9045
9046# Do not use `cd foo && pwd` to compute absolute paths, because
9047# the directories may not exist.
9048case `pwd` in
9049.) ac_abs_builddir="$ac_dest_dir";;
9050*)
9051 case "$ac_dest_dir" in
9052 .) ac_abs_builddir=`pwd`;;
9053 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9054 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9055 esac;;
9056esac
9057case $ac_abs_builddir in
9058.) ac_abs_top_builddir=${ac_top_builddir}.;;
9059*)
9060 case ${ac_top_builddir}. in
9061 .) ac_abs_top_builddir=$ac_abs_builddir;;
9062 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9063 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9064 esac;;
9065esac
9066case $ac_abs_builddir in
9067.) ac_abs_srcdir=$ac_srcdir;;
9068*)
9069 case $ac_srcdir in
9070 .) ac_abs_srcdir=$ac_abs_builddir;;
9071 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9072 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9073 esac;;
9074esac
9075case $ac_abs_builddir in
9076.) ac_abs_top_srcdir=$ac_top_srcdir;;
9077*)
9078 case $ac_top_srcdir in
9079 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9080 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9081 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9082 esac;;
9083esac
c906108c 9084
b7026657
AC
9085
9086 case $srcdir in
9087 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9088 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
9089 esac
9090
b7026657
AC
9091 # Try a symlink, then a hard link, then a copy.
9092 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9093 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9094 cp -p $srcdir/$ac_source $ac_dest ||
9095 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9096echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9097 { (exit 1); exit 1; }; }
c906108c 9098done
b7026657
AC
9099_ACEOF
9100cat >>$CONFIG_STATUS <<\_ACEOF
9101
9102#
9103# CONFIG_COMMANDS section.
9104#
9105for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9106 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9107 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9108 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9109$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9110 X"$ac_dest" : 'X\(//\)[^/]' \| \
9111 X"$ac_dest" : 'X\(//\)$' \| \
9112 X"$ac_dest" : 'X\(/\)' \| \
9113 . : '\(.\)' 2>/dev/null ||
9114echo X"$ac_dest" |
9115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9117 /^X\(\/\/\)$/{ s//\1/; q; }
9118 /^X\(\/\).*/{ s//\1/; q; }
9119 s/.*/./; q'`
9120 { if $as_mkdir_p; then
9121 mkdir -p "$ac_dir"
9122 else
9123 as_dir="$ac_dir"
9124 as_dirs=
9125 while test ! -d "$as_dir"; do
9126 as_dirs="$as_dir $as_dirs"
9127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9128$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9129 X"$as_dir" : 'X\(//\)[^/]' \| \
9130 X"$as_dir" : 'X\(//\)$' \| \
9131 X"$as_dir" : 'X\(/\)' \| \
9132 . : '\(.\)' 2>/dev/null ||
9133echo X"$as_dir" |
9134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9136 /^X\(\/\/\)$/{ s//\1/; q; }
9137 /^X\(\/\).*/{ s//\1/; q; }
9138 s/.*/./; q'`
9139 done
9140 test ! -n "$as_dirs" || mkdir $as_dirs
9141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9142echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9143 { (exit 1); exit 1; }; }; }
9144
9145 ac_builddir=.
9146
9147if test "$ac_dir" != .; then
9148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9149 # A "../" for each directory in $ac_dir_suffix.
9150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9151else
9152 ac_dir_suffix= ac_top_builddir=
9153fi
c906108c 9154
b7026657
AC
9155case $srcdir in
9156 .) # No --srcdir option. We are building in place.
9157 ac_srcdir=.
9158 if test -z "$ac_top_builddir"; then
9159 ac_top_srcdir=.
9160 else
9161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9162 fi ;;
9163 [\\/]* | ?:[\\/]* ) # Absolute path.
9164 ac_srcdir=$srcdir$ac_dir_suffix;
9165 ac_top_srcdir=$srcdir ;;
9166 *) # Relative path.
9167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9169esac
9170
9171# Do not use `cd foo && pwd` to compute absolute paths, because
9172# the directories may not exist.
9173case `pwd` in
9174.) ac_abs_builddir="$ac_dir";;
9175*)
9176 case "$ac_dir" in
9177 .) ac_abs_builddir=`pwd`;;
9178 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9179 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9180 esac;;
9181esac
9182case $ac_abs_builddir in
9183.) ac_abs_top_builddir=${ac_top_builddir}.;;
9184*)
9185 case ${ac_top_builddir}. in
9186 .) ac_abs_top_builddir=$ac_abs_builddir;;
9187 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9188 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9189 esac;;
9190esac
9191case $ac_abs_builddir in
9192.) ac_abs_srcdir=$ac_srcdir;;
9193*)
9194 case $ac_srcdir in
9195 .) ac_abs_srcdir=$ac_abs_builddir;;
9196 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9197 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9198 esac;;
9199esac
9200case $ac_abs_builddir in
9201.) ac_abs_top_srcdir=$ac_top_srcdir;;
9202*)
9203 case $ac_top_srcdir in
9204 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9205 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9206 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9207 esac;;
9208esac
9209
9210
9211 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9212echo "$as_me: executing $ac_dest commands" >&6;}
9213 case $ac_dest in
9214 default ) case "x$CONFIG_FILES" in
c906108c
SS
9215 xMakefile*)
9216 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9217 rm -f Makesim1.tmp Makesim2.tmp Makefile
9218 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
9219 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
9220 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9221 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9222 <Makefile.sim >Makefile
9223 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9224 ;;
9225 esac
9226 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
b7026657
AC
9227 ;;
9228 esac
9229done
9230_ACEOF
c906108c 9231
b7026657
AC
9232cat >>$CONFIG_STATUS <<\_ACEOF
9233
9234{ (exit 0); exit 0; }
9235_ACEOF
c906108c 9236chmod +x $CONFIG_STATUS
b7026657
AC
9237ac_clean_files=$ac_clean_files_save
9238
9239
9240# configure is writing to config.log, and then calls config.status.
9241# config.status does its own redirection, appending to config.log.
9242# Unfortunately, on DOS this fails, as config.log is still kept open
9243# by configure, so config.status won't be able to write to it; its
9244# output is simply discarded. So we exec the FD to /dev/null,
9245# effectively closing config.log, so it can be properly (re)opened and
9246# appended to by config.status. When coming back to configure, we
9247# need to make the FD available again.
9248if test "$no_create" != yes; then
9249 ac_cs_success=:
9250 ac_config_status_args=
9251 test "$silent" = yes &&
9252 ac_config_status_args="$ac_config_status_args --quiet"
9253 exec 5>/dev/null
9254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9255 exec 5>>config.log
9256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9257 # would make configure fail if this is the last instruction.
9258 $ac_cs_success || { (exit 1); exit 1; }
9259fi
c906108c
SS
9260
9261
This page took 0.78853 seconds and 4 git commands to generate.