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