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