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