Index: arm/ChangeLog
[deliverable/binutils-gdb.git] / sim / ppc / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657
AC
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
c906108c 11
b7026657
AC
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
c906108c 23
b7026657
AC
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
c906108c
SS
30
31
b7026657
AC
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
c906108c 37
b7026657
AC
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
c906108c 50
b7026657
AC
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
c906108c 57
b7026657
AC
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
c906108c
SS
63
64
b7026657
AC
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
c906108c
SS
76
77
b7026657
AC
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 85
b7026657
AC
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
c906108c
SS
98
99
b7026657
AC
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
c906108c 116
b7026657
AC
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
c906108c 155
b7026657
AC
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
c906108c
SS
185
186
b7026657
AC
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
c906108c 193
b7026657
AC
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
c906108c 199
b7026657
AC
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
c906108c 217
b7026657
AC
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
c906108c 224
b7026657 225as_executable_p="test -f"
c906108c 226
b7026657
AC
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 229
b7026657
AC
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
232
233
b7026657
AC
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
c906108c 239
b7026657
AC
240# CDPATH.
241$as_unset CDPATH
c906108c
SS
242
243
b7026657
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 248
b7026657 249exec 6>&1
c906108c 250
c906108c 251#
b7026657 252# Initializations.
c906108c 253#
b7026657
AC
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
c906108c 261
b7026657
AC
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="Makefile.in"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
c906108c 311
b7026657
AC
312ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE RANLIB ac_ct_RANLIB 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LIBOBJS CC_FOR_BUILD HDEFINES AR sim_cflags sim_warnings sim_line_nr sim_config sim_opcode sim_switch sim_dup sim_decode_mechanism sim_jump sim_filter sim_icache sim_hw_src sim_hw_obj sim_pk_src sim_pk_obj sim_bswap sim_igen_smp sim_hostbitsize sim_env sim_timebase sim_trace sim_reserved sim_monitor sim_model sim_model_issue sim_stdio sim_termio sim_devzero sim_callback sim_targ_vals sim_fpu_cflags sim_fpu LTLIBOBJS'
313ac_subst_files=''
c906108c
SS
314
315# Initialize some variables set by options.
b7026657
AC
316ac_init_help=
317ac_init_version=false
c906108c
SS
318# The variables have the same names as the options, with
319# dashes changed to underlines.
b7026657 320cache_file=/dev/null
c906108c 321exec_prefix=NONE
c906108c 322no_create=
c906108c
SS
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
c906108c
SS
331verbose=
332x_includes=NONE
333x_libraries=NONE
b7026657
AC
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
c906108c
SS
353ac_prev=
354for ac_option
355do
c906108c
SS
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
b7026657 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
b7026657 367 case $ac_option in
c906108c
SS
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 372 bindir=$ac_optarg ;;
c906108c
SS
373
374 -build | --build | --buil | --bui | --bu)
b7026657 375 ac_prev=build_alias ;;
c906108c 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 377 build_alias=$ac_optarg ;;
c906108c
SS
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
c906108c
SS
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
b7026657 393 datadir=$ac_optarg ;;
c906108c
SS
394
395 -disable-* | --disable-*)
b7026657 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 397 # Reject names that are not valid shell variable names.
b7026657
AC
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
c906108c
SS
403
404 -enable-* | --enable-*)
b7026657 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 406 # Reject names that are not valid shell variable names.
b7026657
AC
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
413 *) ac_optarg=yes ;;
414 esac
b7026657 415 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
b7026657 424 exec_prefix=$ac_optarg ;;
c906108c
SS
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
b7026657
AC
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
c906108c
SS
436
437 -host | --host | --hos | --ho)
b7026657 438 ac_prev=host_alias ;;
c906108c 439 -host=* | --host=* | --hos=* | --ho=*)
b7026657 440 host_alias=$ac_optarg ;;
c906108c
SS
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 447 includedir=$ac_optarg ;;
c906108c
SS
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 452 infodir=$ac_optarg ;;
c906108c
SS
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 457 libdir=$ac_optarg ;;
c906108c
SS
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
b7026657 464 libexecdir=$ac_optarg ;;
c906108c
SS
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b7026657 473 localstatedir=$ac_optarg ;;
c906108c
SS
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 478 mandir=$ac_optarg ;;
c906108c
SS
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 485 | --no-cr | --no-c | -n)
c906108c
SS
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 499 oldincludedir=$ac_optarg ;;
c906108c
SS
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 504 prefix=$ac_optarg ;;
c906108c
SS
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 511 program_prefix=$ac_optarg ;;
c906108c
SS
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 518 program_suffix=$ac_optarg ;;
c906108c
SS
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 535 program_transform_name=$ac_optarg ;;
c906108c
SS
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
b7026657 545 sbindir=$ac_optarg ;;
c906108c
SS
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
b7026657 556 sharedstatedir=$ac_optarg ;;
c906108c
SS
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
b7026657 561 site=$ac_optarg ;;
eb2d80b4 562
c906108c
SS
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 566 srcdir=$ac_optarg ;;
c906108c
SS
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 573 sysconfdir=$ac_optarg ;;
c906108c
SS
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 576 ac_prev=target_alias ;;
c906108c 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 578 target_alias=$ac_optarg ;;
c906108c
SS
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
b7026657
AC
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
c906108c
SS
585
586 -with-* | --with-*)
b7026657 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 588 # Reject names that are not valid shell variable names.
b7026657
AC
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
c906108c 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
b7026657
AC
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
595 *) ac_optarg=yes ;;
596 esac
b7026657 597 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
598
599 -without-* | --without-*)
b7026657 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 601 # Reject names that are not valid shell variable names.
b7026657
AC
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
c906108c
SS
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 617 x_includes=$ac_optarg ;;
c906108c
SS
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 624 x_libraries=$ac_optarg ;;
c906108c 625
b7026657
AC
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
c906108c
SS
629 ;;
630
b7026657
AC
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
c906108c 641 *)
b7026657
AC
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
b7026657
AC
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
c906108c 656fi
c906108c 657
b7026657
AC
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
c906108c 668
b7026657
AC
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 672do
b7026657
AC
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
c906108c
SS
678 esac
679done
680
b7026657
AC
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
c906108c 698
b7026657
AC
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
c906108c 703
c906108c
SS
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
b7026657
AC
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
c906108c
SS
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
b7026657
AC
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
c906108c 732 else
b7026657
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
c906108c
SS
735 fi
736fi
b7026657
AC
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
c906108c 773
b7026657
AC
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
c906108c 782
b7026657 783Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 784
b7026657
AC
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 787
b7026657 788Defaults for the options are specified in brackets.
c906108c 789
b7026657
AC
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
c906108c 809
b7026657
AC
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
c906108c 814
b7026657 815For better control, use the options below.
c906108c 816
b7026657
AC
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
c906108c 845
b7026657 846if test -n "$ac_init_help"; then
c906108c 847
b7026657 848 cat <<\_ACEOF
cd0fc7c3 849
b7026657
AC
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-nls do not use Native Language Support
854 --enable-sim-alignment=align Specify strict or nonstrict alignment.
855 --enable-sim-assert Specify whether to perform random assertions.
856 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
857 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.
858 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
859 --enable-sim-config=file Override default config file
860 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
861 --enable-sim-default-model=which Specify default PowerPC to model.
862 --enable-sim-duplicate Expand (duplicate) semantic functions.
863 --enable-sim-endian=endian Specify target byte endian orientation.
864 --enable-sim-env=env Specify target environment (operating, virtual, user).
865 --enable-sim-filter=rule Specify filter rules.
866 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
867 --enable-sim-hardware=list Specify the hardware to be included in the build.
868 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
869 --enable-sim-hostendian=end Specify host byte endian orientation.
870 --enable-sim-icache=size Specify instruction-decode cache size and type.
871 --enable-sim-inline=inlines Specify which functions should be inlined.
872 --enable-sim-jump Jump between semantic code (instead of call/return).
873 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
874 --enable-sim-model=which Specify PowerPC to model.
875 --enable-sim-model-issue Specify whether to simulate model specific actions
876 --enable-sim-monitor=mon Specify whether to enable monitoring events.
877 --enable-sim-opcode=which Override default opcode lookup.
878 --enable-sim-packages=list Specify the packages to be included in the build.
879 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.
880 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
881 --enable-sim-smp=n Specify number of processors to configure for.
882 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.
883 --enable-sim-stdio Specify whether to use stdio for console input/output.
884 --enable-sim-switch Use a switch instead of a table for instruction call.
885 --enable-sim-timebase Specify whether the PPC timebase is supported.
886 --enable-sim-trace Specify whether tracing is supported.
887 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
888 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
889
890Optional Packages:
891 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
892 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
893 --with-included-gettext use the GNU gettext library included here
c906108c 894
b7026657
AC
895Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
902 CPP C preprocessor
903
904Use these variables to override the choices made by `configure' or to help
905it to find libraries and programs with nonstandard names/locations.
906
907_ACEOF
908fi
909
910if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
916
917if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921else
922 ac_dir_suffix= ac_top_builddir=
923fi
924
925case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939esac
940
941# Do not use `cd foo && pwd` to compute absolute paths, because
942# the directories may not exist.
943case `pwd` in
944.) ac_abs_builddir="$ac_dir";;
945*)
946 case "$ac_dir" in
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_builddir=${ac_top_builddir}.;;
954*)
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_srcdir=$ac_srcdir;;
963*)
964 case $ac_srcdir in
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_top_srcdir=$ac_top_srcdir;;
972*)
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 esac;;
978esac
979
980 cd $ac_dir
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
983 echo
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
986 echo
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
990 echo
991 $ac_configure --help
992 else
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 fi
995 cd $ac_popdir
996 done
997fi
998
999test -n "$ac_init_help" && exit 0
1000if $ac_init_version; then
1001 cat <<\_ACEOF
1002
1003Copyright (C) 2003 Free Software Foundation, Inc.
1004This configure script is free software; the Free Software Foundation
1005gives unlimited permission to copy, distribute and modify it.
1006_ACEOF
1007 exit 0
1008fi
1009exec 5>config.log
1010cat >&5 <<_ACEOF
1011This file contains any messages produced by compilers while
1012running configure, to aid debugging if configure makes a mistake.
1013
1014It was created by $as_me, which was
1015generated by GNU Autoconf 2.59. Invocation command line was
1016
1017 $ $0 $@
1018
1019_ACEOF
1020{
1021cat <<_ASUNAME
1022## --------- ##
1023## Platform. ##
1024## --------- ##
1025
1026hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034
1035/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042
1043_ASUNAME
1044
1045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046for as_dir in $PATH
1047do
1048 IFS=$as_save_IFS
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1051done
1052
1053} >&5
1054
1055cat >&5 <<_ACEOF
1056
1057
1058## ----------- ##
1059## Core tests. ##
1060## ----------- ##
1061
1062_ACEOF
1063
1064
1065# Keep a trace of the command line.
1066# Strip out --no-create and --no-recursion so they do not pile up.
1067# Strip out --silent because we don't want to record it for future runs.
1068# Also quote any args containing shell meta-characters.
1069# Make two passes to allow for proper duplicate-argument suppression.
1070ac_configure_args=
1071ac_configure_args0=
1072ac_configure_args1=
1073ac_sep=
1074ac_must_keep_next=false
1075for ac_pass in 1 2
1076do
1077 for ac_arg
1078 do
1079 case $ac_arg in
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 continue ;;
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 esac
1087 case $ac_pass in
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 2)
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1093 else
1094 case $ac_arg in
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 esac
1102 ;;
1103 -* ) ac_must_keep_next=true ;;
1104 esac
1105 fi
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1108 ac_sep=" "
1109 ;;
1110 esac
1111 done
1112done
1113$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116# When interrupted or exit'd, cleanup temporary files, and complete
1117# config.log. We remove comments because anyway the quotes in there
1118# would cause problems or look ugly.
1119# WARNING: Be sure not to use single quotes in there, as some shells,
1120# such as our DU 5.0 friend, will then `close' the trap.
1121trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1123 {
1124 echo
1125
1126 cat <<\_ASBOX
1127## ---------------- ##
1128## Cache variables. ##
1129## ---------------- ##
1130_ASBOX
1131 echo
1132 # The following way of writing the cache mishandles newlines in values,
1133{
1134 (set) 2>&1 |
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 *ac_space=\ *)
1137 sed -n \
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140 ;;
1141 *)
1142 sed -n \
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ;;
1145 esac;
1146}
1147 echo
1148
1149 cat <<\_ASBOX
1150## ----------------- ##
1151## Output variables. ##
1152## ----------------- ##
1153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_vars
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161
1162 if test -n "$ac_subst_files"; then
1163 cat <<\_ASBOX
1164## ------------- ##
1165## Output files. ##
1166## ------------- ##
1167_ASBOX
1168 echo
1169 for ac_var in $ac_subst_files
1170 do
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1175 fi
1176
1177 if test -s confdefs.h; then
1178 cat <<\_ASBOX
1179## ----------- ##
1180## confdefs.h. ##
1181## ----------- ##
1182_ASBOX
1183 echo
1184 sed "/^$/d" confdefs.h | sort
1185 echo
1186 fi
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1190 } >&5
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 exit $exit_status
1194 ' 0
1195for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197done
1198ac_signal=0
1199
1200# confdefs.h avoids OS command line length limits that DEFS can exceed.
1201rm -rf conftest* confdefs.h
1202# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203echo >confdefs.h
1204
1205# Predefined preprocessor variables.
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_NAME "$PACKAGE_NAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_VERSION "$PACKAGE_VERSION"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_STRING "$PACKAGE_STRING"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229_ACEOF
1230
1231
1232# Let the site file select an alternate cache file if it wants to.
1233# Prefer explicitly selected file to automatically selected ones.
1234if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 else
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239 fi
1240fi
1241for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
1246 . "$ac_site_file"
1247 fi
1248done
1249
1250if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255echo "$as_me: loading cache $cache_file" >&6;}
1256 case $cache_file in
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1259 esac
1260 fi
1261else
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263echo "$as_me: creating cache $cache_file" >&6;}
1264 >$cache_file
1265fi
1266
1267# Check that the precious variables saved in the cache have kept the same
1268# value.
1269ac_cache_corrupted=false
1270for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1277 set,)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,set)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,);;
1286 *)
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1295 fi;;
1296 esac
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1299 case $ac_new_val in
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1303 esac
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307 esac
1308 fi
1309done
1310if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1316fi
1317
1318ac_ext=c
1319ac_cpp='$CPP $CPPFLAGS'
1320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343ac_aux_dir=
1344for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1345 if test -f $ac_dir/install-sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install-sh -c"
1348 break
1349 elif test -f $ac_dir/install.sh; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/install.sh -c"
1352 break
1353 elif test -f $ac_dir/shtool; then
1354 ac_aux_dir=$ac_dir
1355 ac_install_sh="$ac_aux_dir/shtool install -c"
1356 break
1357 fi
1358done
1359if test -z "$ac_aux_dir"; then
1360 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1361echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1362 { (exit 1); exit 1; }; }
1363fi
1364ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1367
1368# Find a good install program. We prefer a C program (faster),
1369# so one script is as good as another. But avoid the broken or
1370# incompatible versions:
1371# SysV /etc/install, /usr/sbin/install
1372# SunOS /usr/etc/install
1373# IRIX /sbin/install
1374# AIX /bin/install
1375# AmigaOS /C/install, which installs bootblocks on floppy discs
1376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1377# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1379# OS/2's system install, which has a completely different semantic
1380# ./install, which can be erroneously created by make from ./install.sh.
1381echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1382echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1383if test -z "$INSTALL"; then
1384if test "${ac_cv_path_install+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386else
1387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388for as_dir in $PATH
1389do
1390 IFS=$as_save_IFS
1391 test -z "$as_dir" && as_dir=.
1392 # Account for people who put trailing slashes in PATH elements.
1393case $as_dir/ in
1394 ./ | .// | /cC/* | \
1395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1397 /usr/ucb/* ) ;;
1398 *)
1399 # OSF1 and SCO ODT 3.0 have their own names for install.
1400 # Don't use installbsd from OSF since it installs stuff as root
1401 # by default.
1402 for ac_prog in ginstall scoinst install; do
1403 for ac_exec_ext in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1405 if test $ac_prog = install &&
1406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1407 # AIX install. It has an incompatible calling convention.
1408 :
1409 elif test $ac_prog = install &&
1410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1411 # program-specific install script used by HP pwplus--don't use.
1412 :
1413 else
1414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1415 break 3
1416 fi
1417 fi
1418 done
1419 done
1420 ;;
1421esac
1422done
1423
1424
1425fi
1426 if test "${ac_cv_path_install+set}" = set; then
1427 INSTALL=$ac_cv_path_install
1428 else
1429 # As a last resort, use the slow shell script. We don't cache a
1430 # path for INSTALL within a source directory, because that will
1431 # break other packages using the cache if that directory is
1432 # removed, or if the path is relative.
1433 INSTALL=$ac_install_sh
1434 fi
1435fi
1436echo "$as_me:$LINENO: result: $INSTALL" >&5
1437echo "${ECHO_T}$INSTALL" >&6
1438
1439# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1440# It thinks the first close brace ends the variable substitution.
1441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1442
1443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1444
1445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1446
1447ac_ext=c
1448ac_cpp='$CPP $CPPFLAGS'
1449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452if test -n "$ac_tool_prefix"; then
1453 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1454set dummy ${ac_tool_prefix}gcc; ac_word=$2
1455echo "$as_me:$LINENO: checking for $ac_word" >&5
1456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457if test "${ac_cv_prog_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1459else
1460 if test -n "$CC"; then
1461 ac_cv_prog_CC="$CC" # Let the user override the test.
1462else
b7026657
AC
1463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464for as_dir in $PATH
1465do
1466 IFS=$as_save_IFS
1467 test -z "$as_dir" && as_dir=.
1468 for ac_exec_ext in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 break 2
1473 fi
1474done
1475done
1476
c906108c
SS
1477fi
1478fi
b7026657 1479CC=$ac_cv_prog_CC
c906108c 1480if test -n "$CC"; then
b7026657
AC
1481 echo "$as_me:$LINENO: result: $CC" >&5
1482echo "${ECHO_T}$CC" >&6
1483else
1484 echo "$as_me:$LINENO: result: no" >&5
1485echo "${ECHO_T}no" >&6
1486fi
1487
1488fi
1489if test -z "$ac_cv_prog_CC"; then
1490 ac_ct_CC=$CC
1491 # Extract the first word of "gcc", so it can be a program name with args.
1492set dummy gcc; ac_word=$2
1493echo "$as_me:$LINENO: checking for $ac_word" >&5
1494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1497else
1498 if test -n "$ac_ct_CC"; then
1499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500else
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH
1503do
1504 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=.
1506 for ac_exec_ext in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_prog_ac_ct_CC="gcc"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 break 2
1511 fi
1512done
1513done
1514
1515fi
1516fi
1517ac_ct_CC=$ac_cv_prog_ac_ct_CC
1518if test -n "$ac_ct_CC"; then
1519 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1520echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1521else
b7026657
AC
1522 echo "$as_me:$LINENO: result: no" >&5
1523echo "${ECHO_T}no" >&6
1524fi
1525
1526 CC=$ac_ct_CC
1527else
1528 CC="$ac_cv_prog_CC"
c906108c
SS
1529fi
1530
1531if test -z "$CC"; then
b7026657
AC
1532 if test -n "$ac_tool_prefix"; then
1533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1534set dummy ${ac_tool_prefix}cc; ac_word=$2
1535echo "$as_me:$LINENO: checking for $ac_word" >&5
1536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537if test "${ac_cv_prog_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539else
1540 if test -n "$CC"; then
1541 ac_cv_prog_CC="$CC" # Let the user override the test.
1542else
1543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544for as_dir in $PATH
1545do
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_CC="${ac_tool_prefix}cc"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 break 2
1553 fi
1554done
1555done
1556
1557fi
1558fi
1559CC=$ac_cv_prog_CC
1560if test -n "$CC"; then
1561 echo "$as_me:$LINENO: result: $CC" >&5
1562echo "${ECHO_T}$CC" >&6
1563else
1564 echo "$as_me:$LINENO: result: no" >&5
1565echo "${ECHO_T}no" >&6
1566fi
1567
1568fi
1569if test -z "$ac_cv_prog_CC"; then
1570 ac_ct_CC=$CC
c906108c
SS
1571 # Extract the first word of "cc", so it can be a program name with args.
1572set dummy cc; ac_word=$2
b7026657
AC
1573echo "$as_me:$LINENO: checking for $ac_word" >&5
1574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 if test -n "$ac_ct_CC"; then
1579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1580else
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_ac_ct_CC="cc"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 break 2
1591 fi
1592done
1593done
1594
1595fi
1596fi
1597ac_ct_CC=$ac_cv_prog_ac_ct_CC
1598if test -n "$ac_ct_CC"; then
1599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1600echo "${ECHO_T}$ac_ct_CC" >&6
1601else
1602 echo "$as_me:$LINENO: result: no" >&5
1603echo "${ECHO_T}no" >&6
1604fi
1605
1606 CC=$ac_ct_CC
1607else
1608 CC="$ac_cv_prog_CC"
1609fi
1610
1611fi
1612if test -z "$CC"; then
1613 # Extract the first word of "cc", so it can be a program name with args.
1614set dummy cc; ac_word=$2
1615echo "$as_me:$LINENO: checking for $ac_word" >&5
1616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617if test "${ac_cv_prog_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1619else
1620 if test -n "$CC"; then
1621 ac_cv_prog_CC="$CC" # Let the user override the test.
1622else
c906108c 1623 ac_prog_rejected=no
b7026657
AC
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1632 ac_prog_rejected=yes
1633 continue
1634 fi
1635 ac_cv_prog_CC="cc"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637 break 2
1638 fi
1639done
1640done
1641
c906108c
SS
1642if test $ac_prog_rejected = yes; then
1643 # We found a bogon in the path, so make sure we never use it.
1644 set dummy $ac_cv_prog_CC
1645 shift
b7026657 1646 if test $# != 0; then
c906108c
SS
1647 # We chose a different compiler from the bogus one.
1648 # However, it has the same basename, so the bogon will be chosen
1649 # first if we set CC to just the basename; use the full file name.
1650 shift
b7026657 1651 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1652 fi
1653fi
1654fi
1655fi
b7026657 1656CC=$ac_cv_prog_CC
c906108c 1657if test -n "$CC"; then
b7026657
AC
1658 echo "$as_me:$LINENO: result: $CC" >&5
1659echo "${ECHO_T}$CC" >&6
c906108c 1660else
b7026657
AC
1661 echo "$as_me:$LINENO: result: no" >&5
1662echo "${ECHO_T}no" >&6
c906108c
SS
1663fi
1664
b7026657
AC
1665fi
1666if test -z "$CC"; then
1667 if test -n "$ac_tool_prefix"; then
1668 for ac_prog in cl
1669 do
1670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1671set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1672echo "$as_me:$LINENO: checking for $ac_word" >&5
1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1676else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679else
b7026657
AC
1680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681for as_dir in $PATH
1682do
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 break 2
1690 fi
1691done
1692done
1693
1694fi
1695fi
1696CC=$ac_cv_prog_CC
1697if test -n "$CC"; then
1698 echo "$as_me:$LINENO: result: $CC" >&5
1699echo "${ECHO_T}$CC" >&6
1700else
1701 echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705 test -n "$CC" && break
1706 done
1707fi
1708if test -z "$CC"; then
1709 ac_ct_CC=$CC
1710 for ac_prog in cl
1711do
1712 # Extract the first word of "$ac_prog", so it can be a program name with args.
1713set dummy $ac_prog; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719 if test -n "$ac_ct_CC"; then
1720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1721else
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725 IFS=$as_save_IFS
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_ac_ct_CC="$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 break 2
1732 fi
1733done
1734done
1735
1736fi
1737fi
1738ac_ct_CC=$ac_cv_prog_ac_ct_CC
1739if test -n "$ac_ct_CC"; then
1740 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1741echo "${ECHO_T}$ac_ct_CC" >&6
1742else
1743 echo "$as_me:$LINENO: result: no" >&5
1744echo "${ECHO_T}no" >&6
1745fi
1746
1747 test -n "$ac_ct_CC" && break
1748done
1749
1750 CC=$ac_ct_CC
1751fi
1752
1753fi
1754
1755
1756test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1757See \`config.log' for more details." >&5
1758echo "$as_me: error: no acceptable C compiler found in \$PATH
1759See \`config.log' for more details." >&2;}
1760 { (exit 1); exit 1; }; }
1761
1762# Provide some information about the compiler.
1763echo "$as_me:$LINENO:" \
1764 "checking for C compiler version" >&5
1765ac_compiler=`set X $ac_compile; echo $2`
1766{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1767 (eval $ac_compiler --version </dev/null >&5) 2>&5
1768 ac_status=$?
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); }
1771{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1772 (eval $ac_compiler -v </dev/null >&5) 2>&5
1773 ac_status=$?
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }
1776{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1777 (eval $ac_compiler -V </dev/null >&5) 2>&5
1778 ac_status=$?
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }
1781
1782cat >conftest.$ac_ext <<_ACEOF
1783/* confdefs.h. */
1784_ACEOF
1785cat confdefs.h >>conftest.$ac_ext
1786cat >>conftest.$ac_ext <<_ACEOF
1787/* end confdefs.h. */
1788
1789int
1790main ()
1791{
1792
1793 ;
1794 return 0;
1795}
1796_ACEOF
1797ac_clean_files_save=$ac_clean_files
1798ac_clean_files="$ac_clean_files a.out a.exe b.out"
1799# Try to create an executable without -o first, disregard a.out.
1800# It will help us diagnose broken compilers, and finding out an intuition
1801# of exeext.
1802echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1803echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1804ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1805if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1806 (eval $ac_link_default) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }; then
1810 # Find the output, starting from the most likely. This scheme is
1811# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1812# resort.
1813
1814# Be careful to initialize this variable, since it used to be cached.
1815# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1816ac_cv_exeext=
1817# b.out is created by i960 compilers.
1818for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1819do
1820 test -f "$ac_file" || continue
1821 case $ac_file in
1822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1823 ;;
1824 conftest.$ac_ext )
1825 # This is the source file.
1826 ;;
1827 [ab].out )
1828 # We found the default executable, but exeext='' is most
1829 # certainly right.
1830 break;;
1831 *.* )
1832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 # FIXME: I believe we export ac_cv_exeext for Libtool,
1834 # but it would be cool to find out if it's true. Does anybody
1835 # maintain Libtool? --akim.
1836 export ac_cv_exeext
1837 break;;
1838 * )
1839 break;;
1840 esac
1841done
1842else
1843 echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1847See \`config.log' for more details." >&5
1848echo "$as_me: error: C compiler cannot create executables
1849See \`config.log' for more details." >&2;}
1850 { (exit 77); exit 77; }; }
1851fi
1852
1853ac_exeext=$ac_cv_exeext
1854echo "$as_me:$LINENO: result: $ac_file" >&5
1855echo "${ECHO_T}$ac_file" >&6
1856
1857# Check the compiler produces executables we can run. If not, either
1858# the compiler is broken, or we cross compile.
1859echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1860echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1861# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1862# If not cross compiling, check that we can run a simple program.
1863if test "$cross_compiling" != yes; then
1864 if { ac_try='./$ac_file'
1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1866 (eval $ac_try) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; }; then
1870 cross_compiling=no
1871 else
1872 if test "$cross_compiling" = maybe; then
1873 cross_compiling=yes
1874 else
1875 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1876If you meant to cross compile, use \`--host'.
1877See \`config.log' for more details." >&5
1878echo "$as_me: error: cannot run C compiled programs.
1879If you meant to cross compile, use \`--host'.
1880See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }
c906108c 1882 fi
b7026657 1883 fi
c906108c 1884fi
b7026657
AC
1885echo "$as_me:$LINENO: result: yes" >&5
1886echo "${ECHO_T}yes" >&6
1887
1888rm -f a.out a.exe conftest$ac_cv_exeext b.out
1889ac_clean_files=$ac_clean_files_save
1890# Check the compiler produces executables we can run. If not, either
1891# the compiler is broken, or we cross compile.
1892echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1893echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1894echo "$as_me:$LINENO: result: $cross_compiling" >&5
1895echo "${ECHO_T}$cross_compiling" >&6
1896
1897echo "$as_me:$LINENO: checking for suffix of executables" >&5
1898echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1900 (eval $ac_link) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1905# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1906# work properly (i.e., refer to `conftest.exe'), while it won't with
1907# `rm'.
1908for ac_file in conftest.exe conftest conftest.*; do
1909 test -f "$ac_file" || continue
1910 case $ac_file in
1911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1913 export ac_cv_exeext
1914 break;;
1915 * ) break;;
1916 esac
1917done
c906108c 1918else
b7026657
AC
1919 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1920See \`config.log' for more details." >&5
1921echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1922See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
c906108c
SS
1924fi
1925
b7026657
AC
1926rm -f conftest$ac_cv_exeext
1927echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1928echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1929
b7026657
AC
1930rm -f conftest.$ac_ext
1931EXEEXT=$ac_cv_exeext
1932ac_exeext=$EXEEXT
1933echo "$as_me:$LINENO: checking for suffix of object files" >&5
1934echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1935if test "${ac_cv_objext+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937else
1938 cat >conftest.$ac_ext <<_ACEOF
1939/* confdefs.h. */
1940_ACEOF
1941cat confdefs.h >>conftest.$ac_ext
1942cat >>conftest.$ac_ext <<_ACEOF
1943/* end confdefs.h. */
1944
1945int
1946main ()
1947{
1948
1949 ;
1950 return 0;
1951}
1952_ACEOF
1953rm -f conftest.o conftest.obj
1954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955 (eval $ac_compile) 2>&5
1956 ac_status=$?
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; then
1959 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1960 case $ac_file in
1961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1963 break;;
1964 esac
1965done
c906108c 1966else
b7026657
AC
1967 echo "$as_me: failed program was:" >&5
1968sed 's/^/| /' conftest.$ac_ext >&5
c906108c 1969
b7026657
AC
1970{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1971See \`config.log' for more details." >&5
1972echo "$as_me: error: cannot compute suffix of object files: cannot compile
1973See \`config.log' for more details." >&2;}
1974 { (exit 1); exit 1; }; }
c906108c 1975fi
c906108c 1976
b7026657
AC
1977rm -f conftest.$ac_cv_objext conftest.$ac_ext
1978fi
1979echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1980echo "${ECHO_T}$ac_cv_objext" >&6
1981OBJEXT=$ac_cv_objext
1982ac_objext=$OBJEXT
1983echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1984echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1985if test "${ac_cv_c_compiler_gnu+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1987else
b7026657
AC
1988 cat >conftest.$ac_ext <<_ACEOF
1989/* confdefs.h. */
1990_ACEOF
1991cat confdefs.h >>conftest.$ac_ext
1992cat >>conftest.$ac_ext <<_ACEOF
1993/* end confdefs.h. */
1994
1995int
1996main ()
1997{
1998#ifndef __GNUC__
1999 choke me
c906108c 2000#endif
c906108c 2001
b7026657
AC
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006rm -f conftest.$ac_objext
2007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>conftest.er1
2009 ac_status=$?
2010 grep -v '^ *+' conftest.er1 >conftest.err
2011 rm -f conftest.er1
2012 cat conftest.err >&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -z "$ac_c_werror_flag"
2016 || test ! -s conftest.err'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 (eval $ac_try) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; } &&
2022 { ac_try='test -s conftest.$ac_objext'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 (eval $ac_try) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2028 ac_compiler_gnu=yes
2029else
2030 echo "$as_me: failed program was:" >&5
2031sed 's/^/| /' conftest.$ac_ext >&5
2032
2033ac_compiler_gnu=no
2034fi
2035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2036ac_cv_c_compiler_gnu=$ac_compiler_gnu
2037
2038fi
2039echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2040echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2041GCC=`test $ac_compiler_gnu = yes && echo yes`
2042ac_test_CFLAGS=${CFLAGS+set}
2043ac_save_CFLAGS=$CFLAGS
2044CFLAGS="-g"
2045echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2046echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2047if test "${ac_cv_prog_cc_g+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050 cat >conftest.$ac_ext <<_ACEOF
2051/* confdefs.h. */
2052_ACEOF
2053cat confdefs.h >>conftest.$ac_ext
2054cat >>conftest.$ac_ext <<_ACEOF
2055/* end confdefs.h. */
c906108c 2056
b7026657
AC
2057int
2058main ()
2059{
c906108c 2060
b7026657
AC
2061 ;
2062 return 0;
2063}
2064_ACEOF
2065rm -f conftest.$ac_objext
2066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>conftest.er1
2068 ac_status=$?
2069 grep -v '^ *+' conftest.er1 >conftest.err
2070 rm -f conftest.er1
2071 cat conftest.err >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try='test -z "$ac_c_werror_flag"
2075 || test ! -s conftest.err'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077 (eval $ac_try) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; } &&
2081 { ac_try='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 (eval $ac_try) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
c906108c
SS
2087 ac_cv_prog_cc_g=yes
2088else
b7026657
AC
2089 echo "$as_me: failed program was:" >&5
2090sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2091
b7026657 2092ac_cv_prog_cc_g=no
c906108c 2093fi
b7026657
AC
2094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2095fi
2096echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2097echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2098if test "$ac_test_CFLAGS" = set; then
b7026657 2099 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2100elif test $ac_cv_prog_cc_g = yes; then
2101 if test "$GCC" = yes; then
2102 CFLAGS="-g -O2"
2103 else
2104 CFLAGS="-g"
2105 fi
2106else
2107 if test "$GCC" = yes; then
2108 CFLAGS="-O2"
2109 else
2110 CFLAGS=
2111 fi
2112fi
b7026657
AC
2113echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2114echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2115if test "${ac_cv_prog_cc_stdc+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117else
2118 ac_cv_prog_cc_stdc=no
2119ac_save_CC=$CC
2120cat >conftest.$ac_ext <<_ACEOF
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h. */
2126#include <stdarg.h>
2127#include <stdio.h>
2128#include <sys/types.h>
2129#include <sys/stat.h>
2130/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2131struct buf { int x; };
2132FILE * (*rcsopen) (struct buf *, struct stat *, int);
2133static char *e (p, i)
2134 char **p;
2135 int i;
2136{
2137 return p[i];
2138}
2139static char *f (char * (*g) (char **, int), char **p, ...)
2140{
2141 char *s;
2142 va_list v;
2143 va_start (v,p);
2144 s = g (p, va_arg (v,int));
2145 va_end (v);
2146 return s;
2147}
c906108c 2148
b7026657
AC
2149/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2150 function prototypes and stuff, but not '\xHH' hex character constants.
2151 These don't provoke an error unfortunately, instead are silently treated
2152 as 'x'. The following induces an error, until -std1 is added to get
2153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2154 array size at least. It's necessary to write '\x00'==0 to get something
2155 that's true only with -std1. */
2156int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2157
2158int test (int i, double x);
2159struct s1 {int (*f) (int a);};
2160struct s2 {int (*f) (double a);};
2161int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162int argc;
2163char **argv;
2164int
2165main ()
2166{
2167return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2168 ;
2169 return 0;
2170}
2171_ACEOF
2172# Don't try gcc -ansi; that turns off useful extensions and
2173# breaks some systems' header files.
2174# AIX -qlanglvl=ansi
2175# Ultrix and OSF/1 -std1
2176# HP-UX 10.20 and later -Ae
2177# HP-UX older versions -Aa -D_HPUX_SOURCE
2178# SVR4 -Xc -D__EXTENSIONS__
2179for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180do
2181 CC="$ac_save_CC $ac_arg"
2182 rm -f conftest.$ac_objext
2183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2185 ac_status=$?
2186 grep -v '^ *+' conftest.er1 >conftest.err
2187 rm -f conftest.er1
2188 cat conftest.err >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try='test -z "$ac_c_werror_flag"
2192 || test ! -s conftest.err'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_cv_prog_cc_stdc=$ac_arg
2205break
2206else
2207 echo "$as_me: failed program was:" >&5
2208sed 's/^/| /' conftest.$ac_ext >&5
2209
2210fi
2211rm -f conftest.err conftest.$ac_objext
2212done
2213rm -f conftest.$ac_ext conftest.$ac_objext
2214CC=$ac_save_CC
c906108c 2215
c906108c
SS
2216fi
2217
b7026657
AC
2218case "x$ac_cv_prog_cc_stdc" in
2219 x|xno)
2220 echo "$as_me:$LINENO: result: none needed" >&5
2221echo "${ECHO_T}none needed" >&6 ;;
2222 *)
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225 CC="$CC $ac_cv_prog_cc_stdc" ;;
2226esac
2227
2228# Some people use a C++ compiler to compile C. Since we use `exit',
2229# in C++ we need to declare it. In case someone uses the same compiler
2230# for both compiling C and C++ we need to have the C++ compiler decide
2231# the declaration of exit, since it's the most demanding environment.
2232cat >conftest.$ac_ext <<_ACEOF
2233#ifndef __cplusplus
2234 choke me
2235#endif
2236_ACEOF
2237rm -f conftest.$ac_objext
2238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 for ac_declaration in \
2260 '' \
2261 'extern "C" void std::exit (int) throw (); using std::exit;' \
2262 'extern "C" void std::exit (int); using std::exit;' \
2263 'extern "C" void exit (int) throw ();' \
2264 'extern "C" void exit (int);' \
2265 'void exit (int);'
2266do
2267 cat >conftest.$ac_ext <<_ACEOF
2268/* confdefs.h. */
2269_ACEOF
2270cat confdefs.h >>conftest.$ac_ext
2271cat >>conftest.$ac_ext <<_ACEOF
2272/* end confdefs.h. */
2273$ac_declaration
2274#include <stdlib.h>
2275int
2276main ()
2277{
2278exit (42);
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2286 ac_status=$?
2287 grep -v '^ *+' conftest.er1 >conftest.err
2288 rm -f conftest.er1
2289 cat conftest.err >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
c906108c
SS
2305 :
2306else
b7026657
AC
2307 echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5
2309
2310continue
c906108c 2311fi
b7026657
AC
2312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 cat >conftest.$ac_ext <<_ACEOF
2314/* confdefs.h. */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h. */
2319$ac_declaration
2320int
2321main ()
2322{
2323exit (42);
2324 ;
2325 return 0;
2326}
2327_ACEOF
2328rm -f conftest.$ac_objext
2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2331 ac_status=$?
2332 grep -v '^ *+' conftest.er1 >conftest.err
2333 rm -f conftest.er1
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try='test -z "$ac_c_werror_flag"
2338 || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 break
2351else
2352 echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
c906108c 2355fi
b7026657
AC
2356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357done
c906108c 2358rm -f conftest*
b7026657
AC
2359if test -n "$ac_declaration"; then
2360 echo '#ifdef __cplusplus' >>confdefs.h
2361 echo $ac_declaration >>confdefs.h
2362 echo '#endif' >>confdefs.h
c906108c 2363fi
b7026657
AC
2364
2365else
2366 echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
c906108c 2369fi
b7026657
AC
2370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371ac_ext=c
2372ac_cpp='$CPP $CPPFLAGS'
2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378# Put a plausible default for CC_FOR_BUILD in Makefile.
2379if test "x$cross_compiling" = "xno"; then
2380 CC_FOR_BUILD='$(CC)'
c906108c 2381else
b7026657 2382 CC_FOR_BUILD=gcc
c906108c 2383fi
c906108c 2384
b7026657
AC
2385ALL_LINGUAS=
2386echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2387echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2388set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2389if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2391else
b7026657 2392 cat >conftest.make <<\_ACEOF
c906108c 2393all:
b7026657
AC
2394 @echo 'ac_maketemp="$(MAKE)"'
2395_ACEOF
c906108c 2396# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
b7026657 2397eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
c906108c
SS
2398if test -n "$ac_maketemp"; then
2399 eval ac_cv_prog_make_${ac_make}_set=yes
2400else
2401 eval ac_cv_prog_make_${ac_make}_set=no
2402fi
b7026657 2403rm -f conftest.make
c906108c
SS
2404fi
2405if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
b7026657
AC
2406 echo "$as_me:$LINENO: result: yes" >&5
2407echo "${ECHO_T}yes" >&6
c906108c
SS
2408 SET_MAKE=
2409else
b7026657
AC
2410 echo "$as_me:$LINENO: result: no" >&5
2411echo "${ECHO_T}no" >&6
c906108c
SS
2412 SET_MAKE="MAKE=${MAKE-make}"
2413fi
2414
b7026657
AC
2415if test -n "$ac_tool_prefix"; then
2416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2417set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2418echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2420if test "${ac_cv_prog_RANLIB+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2422else
2423 if test -n "$RANLIB"; then
2424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2425else
b7026657
AC
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437done
2438done
2439
c906108c
SS
2440fi
2441fi
b7026657 2442RANLIB=$ac_cv_prog_RANLIB
c906108c 2443if test -n "$RANLIB"; then
b7026657
AC
2444 echo "$as_me:$LINENO: result: $RANLIB" >&5
2445echo "${ECHO_T}$RANLIB" >&6
c906108c 2446else
b7026657
AC
2447 echo "$as_me:$LINENO: result: no" >&5
2448echo "${ECHO_T}no" >&6
2449fi
2450
c906108c 2451fi
b7026657
AC
2452if test -z "$ac_cv_prog_RANLIB"; then
2453 ac_ct_RANLIB=$RANLIB
2454 # Extract the first word of "ranlib", so it can be a program name with args.
2455set dummy ranlib; ac_word=$2
2456echo "$as_me:$LINENO: checking for $ac_word" >&5
2457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2458if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
2461 if test -n "$ac_ct_RANLIB"; then
2462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2471 ac_cv_prog_ac_ct_RANLIB="ranlib"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475done
2476done
c906108c 2477
b7026657
AC
2478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2479fi
2480fi
2481ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2482if test -n "$ac_ct_RANLIB"; then
2483 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2484echo "${ECHO_T}$ac_ct_RANLIB" >&6
2485else
2486 echo "$as_me:$LINENO: result: no" >&5
2487echo "${ECHO_T}no" >&6
2488fi
c906108c 2489
b7026657
AC
2490 RANLIB=$ac_ct_RANLIB
2491else
2492 RANLIB="$ac_cv_prog_RANLIB"
2493fi
2494
2495
2496echo "$as_me:$LINENO: checking for library containing strerror" >&5
2497echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2498if test "${ac_cv_search_strerror+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501 ac_func_search_save_LIBS=$LIBS
2502ac_cv_search_strerror=no
2503cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h. */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h. */
2509
2510/* Override any gcc2 internal prototype to avoid an error. */
2511#ifdef __cplusplus
2512extern "C"
2513#endif
2514/* We use char because int might match the return type of a gcc2
2515 builtin and then its argument prototype would still apply. */
2516char strerror ();
2517int
2518main ()
2519{
2520strerror ();
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525rm -f conftest.$ac_objext conftest$ac_exeext
2526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2527 (eval $ac_link) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest$ac_exeext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 ac_cv_search_strerror="none required"
2548else
2549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552fi
2553rm -f conftest.err conftest.$ac_objext \
2554 conftest$ac_exeext conftest.$ac_ext
2555if test "$ac_cv_search_strerror" = no; then
2556 for ac_lib in cposix; do
2557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2558 cat >conftest.$ac_ext <<_ACEOF
2559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
2564
2565/* Override any gcc2 internal prototype to avoid an error. */
2566#ifdef __cplusplus
2567extern "C"
2568#endif
2569/* We use char because int might match the return type of a gcc2
2570 builtin and then its argument prototype would still apply. */
2571char strerror ();
2572int
2573main ()
2574{
2575strerror ();
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580rm -f conftest.$ac_objext conftest$ac_exeext
2581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2582 (eval $ac_link) 2>conftest.er1
2583 ac_status=$?
2584 grep -v '^ *+' conftest.er1 >conftest.err
2585 rm -f conftest.er1
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -z "$ac_c_werror_flag"
2590 || test ! -s conftest.err'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest$ac_exeext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 ac_cv_search_strerror="-l$ac_lib"
2603break
2604else
2605 echo "$as_me: failed program was:" >&5
2606sed 's/^/| /' conftest.$ac_ext >&5
2607
2608fi
2609rm -f conftest.err conftest.$ac_objext \
2610 conftest$ac_exeext conftest.$ac_ext
2611 done
2612fi
2613LIBS=$ac_func_search_save_LIBS
2614fi
2615echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2616echo "${ECHO_T}$ac_cv_search_strerror" >&6
2617if test "$ac_cv_search_strerror" != no; then
2618 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2619
2620fi
2621
2622ac_ext=c
2623ac_cpp='$CPP $CPPFLAGS'
2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2628echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2629# On Suns, sometimes $CPP names a directory.
2630if test -n "$CPP" && test -d "$CPP"; then
2631 CPP=
2632fi
2633if test -z "$CPP"; then
2634 if test "${ac_cv_prog_CPP+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 # Double quotes because CPP needs to be expanded
2638 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2639 do
2640 ac_preproc_ok=false
2641for ac_c_preproc_warn_flag in '' yes
2642do
2643 # Use a header file that comes with gcc, so configuring glibc
2644 # with a fresh cross-compiler works.
2645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2646 # <limits.h> exists even on freestanding compilers.
2647 # On the NeXT, cc -E runs the code through the compiler's parser,
2648 # not just through cpp. "Syntax error" is here to catch this case.
2649 cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h. */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h. */
2655#ifdef __STDC__
2656# include <limits.h>
2657#else
2658# include <assert.h>
2659#endif
2660 Syntax error
2661_ACEOF
2662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2664 ac_status=$?
2665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } >/dev/null; then
2670 if test -s conftest.err; then
2671 ac_cpp_err=$ac_c_preproc_warn_flag
2672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2673 else
2674 ac_cpp_err=
2675 fi
2676else
2677 ac_cpp_err=yes
2678fi
2679if test -z "$ac_cpp_err"; then
2680 :
2681else
2682 echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 # Broken: fails on valid input.
2686continue
2687fi
2688rm -f conftest.err conftest.$ac_ext
2689
2690 # OK, works on sane cases. Now check whether non-existent headers
2691 # can be detected and how.
2692 cat >conftest.$ac_ext <<_ACEOF
2693/* confdefs.h. */
2694_ACEOF
2695cat confdefs.h >>conftest.$ac_ext
2696cat >>conftest.$ac_ext <<_ACEOF
2697/* end confdefs.h. */
2698#include <ac_nonexistent.h>
2699_ACEOF
2700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } >/dev/null; then
2708 if test -s conftest.err; then
2709 ac_cpp_err=$ac_c_preproc_warn_flag
2710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2711 else
2712 ac_cpp_err=
2713 fi
2714else
2715 ac_cpp_err=yes
2716fi
2717if test -z "$ac_cpp_err"; then
2718 # Broken: success on invalid input.
2719continue
2720else
2721 echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 # Passes both tests.
2725ac_preproc_ok=:
2726break
2727fi
2728rm -f conftest.err conftest.$ac_ext
2729
2730done
2731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2732rm -f conftest.err conftest.$ac_ext
2733if $ac_preproc_ok; then
2734 break
2735fi
2736
2737 done
2738 ac_cv_prog_CPP=$CPP
2739
2740fi
2741 CPP=$ac_cv_prog_CPP
2742else
2743 ac_cv_prog_CPP=$CPP
2744fi
2745echo "$as_me:$LINENO: result: $CPP" >&5
2746echo "${ECHO_T}$CPP" >&6
2747ac_preproc_ok=false
2748for ac_c_preproc_warn_flag in '' yes
2749do
2750 # Use a header file that comes with gcc, so configuring glibc
2751 # with a fresh cross-compiler works.
2752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2753 # <limits.h> exists even on freestanding compilers.
2754 # On the NeXT, cc -E runs the code through the compiler's parser,
2755 # not just through cpp. "Syntax error" is here to catch this case.
2756 cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h. */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h. */
2762#ifdef __STDC__
2763# include <limits.h>
2764#else
2765# include <assert.h>
2766#endif
2767 Syntax error
2768_ACEOF
2769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } >/dev/null; then
2777 if test -s conftest.err; then
2778 ac_cpp_err=$ac_c_preproc_warn_flag
2779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2780 else
2781 ac_cpp_err=
2782 fi
2783else
2784 ac_cpp_err=yes
2785fi
2786if test -z "$ac_cpp_err"; then
2787 :
2788else
2789 echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 # Broken: fails on valid input.
2793continue
2794fi
2795rm -f conftest.err conftest.$ac_ext
2796
2797 # OK, works on sane cases. Now check whether non-existent headers
2798 # can be detected and how.
2799 cat >conftest.$ac_ext <<_ACEOF
2800/* confdefs.h. */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
2804/* end confdefs.h. */
2805#include <ac_nonexistent.h>
2806_ACEOF
2807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2809 ac_status=$?
2810 grep -v '^ *+' conftest.er1 >conftest.err
2811 rm -f conftest.er1
2812 cat conftest.err >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } >/dev/null; then
2815 if test -s conftest.err; then
2816 ac_cpp_err=$ac_c_preproc_warn_flag
2817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
c906108c 2818 else
b7026657 2819 ac_cpp_err=
c906108c
SS
2820 fi
2821else
b7026657
AC
2822 ac_cpp_err=yes
2823fi
2824if test -z "$ac_cpp_err"; then
2825 # Broken: success on invalid input.
2826continue
2827else
2828 echo "$as_me: failed program was:" >&5
2829sed 's/^/| /' conftest.$ac_ext >&5
2830
2831 # Passes both tests.
2832ac_preproc_ok=:
2833break
2834fi
2835rm -f conftest.err conftest.$ac_ext
2836
2837done
2838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2839rm -f conftest.err conftest.$ac_ext
2840if $ac_preproc_ok; then
2841 :
2842else
2843 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2844See \`config.log' for more details." >&5
2845echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2846See \`config.log' for more details." >&2;}
2847 { (exit 1); exit 1; }; }
2848fi
2849
2850ac_ext=c
2851ac_cpp='$CPP $CPPFLAGS'
2852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855
2856
2857echo "$as_me:$LINENO: checking for egrep" >&5
2858echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2859if test "${ac_cv_prog_egrep+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861else
2862 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2863 then ac_cv_prog_egrep='grep -E'
2864 else ac_cv_prog_egrep='egrep'
2865 fi
c906108c 2866fi
b7026657
AC
2867echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2868echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2869 EGREP=$ac_cv_prog_egrep
c906108c 2870
b7026657
AC
2871
2872echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2873echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2874if test "${ac_cv_header_stdc+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2876else
b7026657
AC
2877 cat >conftest.$ac_ext <<_ACEOF
2878/* confdefs.h. */
2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
2882/* end confdefs.h. */
c906108c
SS
2883#include <stdlib.h>
2884#include <stdarg.h>
2885#include <string.h>
2886#include <float.h>
b7026657
AC
2887
2888int
2889main ()
2890{
2891
2892 ;
2893 return 0;
2894}
2895_ACEOF
2896rm -f conftest.$ac_objext
2897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
c906108c
SS
2918 ac_cv_header_stdc=yes
2919else
b7026657
AC
2920 echo "$as_me: failed program was:" >&5
2921sed 's/^/| /' conftest.$ac_ext >&5
2922
2923ac_cv_header_stdc=no
c906108c 2924fi
b7026657 2925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
2926
2927if test $ac_cv_header_stdc = yes; then
2928 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b7026657
AC
2929 cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h. */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h. */
c906108c 2935#include <string.h>
b7026657
AC
2936
2937_ACEOF
c906108c 2938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 2939 $EGREP "memchr" >/dev/null 2>&1; then
c906108c
SS
2940 :
2941else
c906108c
SS
2942 ac_cv_header_stdc=no
2943fi
2944rm -f conftest*
2945
2946fi
2947
2948if test $ac_cv_header_stdc = yes; then
2949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b7026657
AC
2950 cat >conftest.$ac_ext <<_ACEOF
2951/* confdefs.h. */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h. */
c906108c 2956#include <stdlib.h>
b7026657
AC
2957
2958_ACEOF
c906108c 2959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 2960 $EGREP "free" >/dev/null 2>&1; then
c906108c
SS
2961 :
2962else
c906108c
SS
2963 ac_cv_header_stdc=no
2964fi
2965rm -f conftest*
2966
2967fi
2968
2969if test $ac_cv_header_stdc = yes; then
2970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b7026657 2971 if test "$cross_compiling" = yes; then
c906108c
SS
2972 :
2973else
b7026657
AC
2974 cat >conftest.$ac_ext <<_ACEOF
2975/* confdefs.h. */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h. */
c906108c 2980#include <ctype.h>
b7026657
AC
2981#if ((' ' & 0x0FF) == 0x020)
2982# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2983# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2984#else
2985# define ISLOWER(c) \
2986 (('a' <= (c) && (c) <= 'i') \
2987 || ('j' <= (c) && (c) <= 'r') \
2988 || ('s' <= (c) && (c) <= 'z'))
2989# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2990#endif
c906108c 2991
b7026657
AC
2992#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2993int
2994main ()
2995{
2996 int i;
2997 for (i = 0; i < 256; i++)
2998 if (XOR (islower (i), ISLOWER (i))
2999 || toupper (i) != TOUPPER (i))
3000 exit(2);
3001 exit (0);
3002}
3003_ACEOF
3004rm -f conftest$ac_exeext
3005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3006 (eval $ac_link) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 (eval $ac_try) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
c906108c
SS
3015 :
3016else
b7026657
AC
3017 echo "$as_me: program exited with status $ac_status" >&5
3018echo "$as_me: failed program was:" >&5
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021( exit $ac_status )
3022ac_cv_header_stdc=no
c906108c 3023fi
b7026657 3024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3025fi
c906108c
SS
3026fi
3027fi
b7026657
AC
3028echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3029echo "${ECHO_T}$ac_cv_header_stdc" >&6
c906108c 3030if test $ac_cv_header_stdc = yes; then
b7026657
AC
3031
3032cat >>confdefs.h <<\_ACEOF
c906108c 3033#define STDC_HEADERS 1
b7026657
AC
3034_ACEOF
3035
3036fi
3037
3038echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3039echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3040if test "${ac_cv_c_const+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042else
3043 cat >conftest.$ac_ext <<_ACEOF
3044/* confdefs.h. */
3045_ACEOF
3046cat confdefs.h >>conftest.$ac_ext
3047cat >>conftest.$ac_ext <<_ACEOF
3048/* end confdefs.h. */
c906108c 3049
b7026657
AC
3050int
3051main ()
3052{
3053/* FIXME: Include the comments suggested by Paul. */
3054#ifndef __cplusplus
3055 /* Ultrix mips cc rejects this. */
3056 typedef int charset[2];
3057 const charset x;
3058 /* SunOS 4.1.1 cc rejects this. */
3059 char const *const *ccp;
3060 char **p;
3061 /* NEC SVR4.0.2 mips cc rejects this. */
3062 struct point {int x, y;};
3063 static struct point const zero = {0,0};
3064 /* AIX XL C 1.02.0.0 rejects this.
3065 It does not let you subtract one const X* pointer from another in
3066 an arm of an if-expression whose if-part is not a constant
3067 expression */
3068 const char *g = "string";
3069 ccp = &g + (g ? g-g : 0);
3070 /* HPUX 7.0 cc rejects these. */
3071 ++ccp;
3072 p = (char**) ccp;
3073 ccp = (char const *const *) p;
3074 { /* SCO 3.2v4 cc rejects this. */
3075 char *t;
3076 char const *s = 0 ? (char *) 0 : (char const *) 0;
3077
3078 *t++ = 0;
3079 }
3080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3081 int x[] = {25, 17};
3082 const int *foo = &x[0];
3083 ++foo;
3084 }
3085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3086 typedef const int *iptr;
3087 iptr p = 0;
3088 ++p;
3089 }
3090 { /* AIX XL C 1.02.0.0 rejects this saying
3091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3092 struct s { int j; const int *ap[3]; };
3093 struct s *b; b->j = 5;
3094 }
3095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3096 const int foo = 10;
3097 }
3098#endif
3099
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106 (eval $ac_compile) 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag"
3114 || test ! -s conftest.err'
3115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 (eval $ac_try) 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; } &&
3120 { ac_try='test -s conftest.$ac_objext'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 (eval $ac_try) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
c906108c
SS
3126 ac_cv_c_const=yes
3127else
b7026657
AC
3128 echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131ac_cv_c_const=no
c906108c 3132fi
b7026657 3133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3134fi
b7026657
AC
3135echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3136echo "${ECHO_T}$ac_cv_c_const" >&6
c906108c 3137if test $ac_cv_c_const = no; then
b7026657
AC
3138
3139cat >>confdefs.h <<\_ACEOF
3140#define const
3141_ACEOF
c906108c
SS
3142
3143fi
3144
b7026657
AC
3145echo "$as_me:$LINENO: checking for inline" >&5
3146echo $ECHO_N "checking for inline... $ECHO_C" >&6
3147if test "${ac_cv_c_inline+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3149else
3150 ac_cv_c_inline=no
3151for ac_kw in inline __inline__ __inline; do
b7026657
AC
3152 cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h. */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h. */
3158#ifndef __cplusplus
3159typedef int foo_t;
3160static $ac_kw foo_t static_foo () {return 0; }
3161$ac_kw foo_t foo () {return 0; }
3162#endif
3163
3164_ACEOF
3165rm -f conftest.$ac_objext
3166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167 (eval $ac_compile) 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_c_werror_flag"
3175 || test ! -s conftest.err'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
c906108c
SS
3187 ac_cv_c_inline=$ac_kw; break
3188else
b7026657
AC
3189 echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
c906108c 3192fi
b7026657 3193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3194done
3195
3196fi
b7026657
AC
3197echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3198echo "${ECHO_T}$ac_cv_c_inline" >&6
3199
c906108c 3200
b7026657 3201case $ac_cv_c_inline in
c906108c 3202 inline | yes) ;;
b7026657
AC
3203 *)
3204 case $ac_cv_c_inline in
3205 no) ac_val=;;
3206 *) ac_val=$ac_cv_c_inline;;
3207 esac
3208 cat >>confdefs.h <<_ACEOF
3209#ifndef __cplusplus
3210#define inline $ac_val
3211#endif
3212_ACEOF
3213 ;;
c906108c
SS
3214esac
3215
b7026657
AC
3216# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3227 inttypes.h stdint.h unistd.h
3228do
3229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3230echo "$as_me:$LINENO: checking for $ac_header" >&5
3231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3232if eval "test \"\${$as_ac_Header+set}\" = set"; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235 cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241$ac_includes_default
3242
3243#include <$ac_header>
3244_ACEOF
3245rm -f conftest.$ac_objext
3246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247 (eval $ac_compile) 2>conftest.er1
3248 ac_status=$?
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -z "$ac_c_werror_flag"
3255 || test ! -s conftest.err'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 (eval $ac_try) 2>&5
3258 ac_status=$?
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; } &&
3261 { ac_try='test -s conftest.$ac_objext'
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
3267 eval "$as_ac_Header=yes"
3268else
3269 echo "$as_me: failed program was:" >&5
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
3272eval "$as_ac_Header=no"
3273fi
3274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3275fi
3276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3278if test `eval echo '${'$as_ac_Header'}'` = yes; then
3279 cat >>confdefs.h <<_ACEOF
3280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3281_ACEOF
3282
3283fi
3284
3285done
3286
3287
3288echo "$as_me:$LINENO: checking for off_t" >&5
3289echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3290if test "${ac_cv_type_off_t+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3292else
b7026657
AC
3293 cat >conftest.$ac_ext <<_ACEOF
3294/* confdefs.h. */
3295_ACEOF
3296cat confdefs.h >>conftest.$ac_ext
3297cat >>conftest.$ac_ext <<_ACEOF
3298/* end confdefs.h. */
3299$ac_includes_default
3300int
3301main ()
3302{
3303if ((off_t *) 0)
3304 return 0;
3305if (sizeof (off_t))
3306 return 0;
3307 ;
3308 return 0;
3309}
3310_ACEOF
3311rm -f conftest.$ac_objext
3312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag"
3321 || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
c906108c
SS
3333 ac_cv_type_off_t=yes
3334else
b7026657
AC
3335 echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3337
b7026657 3338ac_cv_type_off_t=no
c906108c 3339fi
b7026657
AC
3340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3341fi
3342echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3343echo "${ECHO_T}$ac_cv_type_off_t" >&6
3344if test $ac_cv_type_off_t = yes; then
3345 :
3346else
3347
3348cat >>confdefs.h <<_ACEOF
c906108c 3349#define off_t long
b7026657 3350_ACEOF
c906108c
SS
3351
3352fi
3353
b7026657
AC
3354echo "$as_me:$LINENO: checking for size_t" >&5
3355echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3356if test "${ac_cv_type_size_t+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3358else
b7026657
AC
3359 cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h. */
3365$ac_includes_default
3366int
3367main ()
3368{
3369if ((size_t *) 0)
3370 return 0;
3371if (sizeof (size_t))
3372 return 0;
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -z "$ac_c_werror_flag"
3387 || test ! -s conftest.err'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; } &&
3393 { ac_try='test -s conftest.$ac_objext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
c906108c
SS
3399 ac_cv_type_size_t=yes
3400else
b7026657
AC
3401 echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3403
b7026657 3404ac_cv_type_size_t=no
c906108c 3405fi
b7026657
AC
3406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407fi
3408echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3409echo "${ECHO_T}$ac_cv_type_size_t" >&6
3410if test $ac_cv_type_size_t = yes; then
3411 :
3412else
3413
3414cat >>confdefs.h <<_ACEOF
c906108c 3415#define size_t unsigned
b7026657 3416_ACEOF
c906108c
SS
3417
3418fi
3419
3420# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3421# for constant arguments. Useless!
b7026657
AC
3422echo "$as_me:$LINENO: checking for working alloca.h" >&5
3423echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3424if test "${ac_cv_working_alloca_h+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
c906108c 3433#include <alloca.h>
b7026657
AC
3434int
3435main ()
3436{
3437char *p = (char *) alloca (2 * sizeof (int));
3438 ;
3439 return 0;
3440}
3441_ACEOF
3442rm -f conftest.$ac_objext conftest$ac_exeext
3443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3444 (eval $ac_link) 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest$ac_exeext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_working_alloca_h=yes
3465else
3466 echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469ac_cv_working_alloca_h=no
3470fi
3471rm -f conftest.err conftest.$ac_objext \
3472 conftest$ac_exeext conftest.$ac_ext
3473fi
3474echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3475echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3476if test $ac_cv_working_alloca_h = yes; then
3477
3478cat >>confdefs.h <<\_ACEOF
c906108c 3479#define HAVE_ALLOCA_H 1
b7026657 3480_ACEOF
c906108c
SS
3481
3482fi
3483
b7026657
AC
3484echo "$as_me:$LINENO: checking for alloca" >&5
3485echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3486if test "${ac_cv_func_alloca_works+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3488else
b7026657
AC
3489 cat >conftest.$ac_ext <<_ACEOF
3490/* confdefs.h. */
3491_ACEOF
3492cat confdefs.h >>conftest.$ac_ext
3493cat >>conftest.$ac_ext <<_ACEOF
3494/* end confdefs.h. */
c906108c
SS
3495#ifdef __GNUC__
3496# define alloca __builtin_alloca
3497#else
3498# ifdef _MSC_VER
3499# include <malloc.h>
3500# define alloca _alloca
3501# else
3502# if HAVE_ALLOCA_H
3503# include <alloca.h>
3504# else
3505# ifdef _AIX
3506 #pragma alloca
3507# else
3508# ifndef alloca /* predefined by HP cc +Olibcalls */
3509char *alloca ();
3510# endif
3511# endif
3512# endif
3513# endif
3514#endif
3515
b7026657
AC
3516int
3517main ()
3518{
3519char *p = (char *) alloca (1);
3520 ;
3521 return 0;
3522}
3523_ACEOF
3524rm -f conftest.$ac_objext conftest$ac_exeext
3525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526 (eval $ac_link) 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try='test -z "$ac_c_werror_flag"
3534 || test ! -s conftest.err'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; } &&
3540 { ac_try='test -s conftest$ac_exeext'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
c906108c
SS
3546 ac_cv_func_alloca_works=yes
3547else
b7026657
AC
3548 echo "$as_me: failed program was:" >&5
3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551ac_cv_func_alloca_works=no
c906108c 3552fi
b7026657
AC
3553rm -f conftest.err conftest.$ac_objext \
3554 conftest$ac_exeext conftest.$ac_ext
c906108c 3555fi
b7026657
AC
3556echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3557echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
c906108c 3558
c906108c 3559if test $ac_cv_func_alloca_works = yes; then
c906108c 3560
b7026657
AC
3561cat >>confdefs.h <<\_ACEOF
3562#define HAVE_ALLOCA 1
3563_ACEOF
c906108c 3564
b7026657 3565else
c906108c 3566 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
b7026657
AC
3567# that cause trouble. Some versions do not even contain alloca or
3568# contain a buggy version. If you still want to use their alloca,
3569# use ar to extract alloca.o from them instead of compiling alloca.c.
3570
3571ALLOCA=alloca.$ac_objext
3572
3573cat >>confdefs.h <<\_ACEOF
c906108c 3574#define C_ALLOCA 1
b7026657 3575_ACEOF
c906108c
SS
3576
3577
b7026657
AC
3578echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3579echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3580if test "${ac_cv_os_cray+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3582else
b7026657
AC
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
c906108c
SS
3589#if defined(CRAY) && ! defined(CRAY2)
3590webecray
3591#else
3592wenotbecray
3593#endif
3594
b7026657 3595_ACEOF
c906108c 3596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 3597 $EGREP "webecray" >/dev/null 2>&1; then
c906108c
SS
3598 ac_cv_os_cray=yes
3599else
c906108c
SS
3600 ac_cv_os_cray=no
3601fi
3602rm -f conftest*
3603
3604fi
b7026657
AC
3605echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3606echo "${ECHO_T}$ac_cv_os_cray" >&6
c906108c 3607if test $ac_cv_os_cray = yes; then
b7026657
AC
3608 for ac_func in _getb67 GETB67 getb67; do
3609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3610echo "$as_me:$LINENO: checking for $ac_func" >&5
3611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3612if eval "test \"\${$as_ac_var+set}\" = set"; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 cat >conftest.$ac_ext <<_ACEOF
3616/* confdefs.h. */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
3620/* end confdefs.h. */
3621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3623#define $ac_func innocuous_$ac_func
3624
c906108c 3625/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
3626 which can conflict with char $ac_func (); below.
3627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3628 <limits.h> exists even on freestanding compilers. */
3629
3630#ifdef __STDC__
3631# include <limits.h>
3632#else
3633# include <assert.h>
3634#endif
c906108c 3635
b7026657 3636#undef $ac_func
c906108c 3637
b7026657
AC
3638/* Override any gcc2 internal prototype to avoid an error. */
3639#ifdef __cplusplus
3640extern "C"
3641{
3642#endif
3643/* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3645char $ac_func ();
c906108c
SS
3646/* The GNU C library defines this for functions which it implements
3647 to always fail with ENOSYS. Some functions are actually named
3648 something starting with __ and the normal name is an alias. */
3649#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3650choke me
3651#else
b7026657
AC
3652char (*f) () = $ac_func;
3653#endif
3654#ifdef __cplusplus
3655}
c906108c
SS
3656#endif
3657
b7026657
AC
3658int
3659main ()
3660{
3661return f != $ac_func;
3662 ;
3663 return 0;
3664}
3665_ACEOF
3666rm -f conftest.$ac_objext conftest$ac_exeext
3667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3668 (eval $ac_link) 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag"
3676 || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest$ac_exeext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 eval "$as_ac_var=yes"
3689else
3690 echo "$as_me: failed program was:" >&5
3691sed 's/^/| /' conftest.$ac_ext >&5
3692
3693eval "$as_ac_var=no"
3694fi
3695rm -f conftest.err conftest.$ac_objext \
3696 conftest$ac_exeext conftest.$ac_ext
3697fi
3698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3699echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3700if test `eval echo '${'$as_ac_var'}'` = yes; then
3701
3702cat >>confdefs.h <<_ACEOF
c906108c 3703#define CRAY_STACKSEG_END $ac_func
b7026657 3704_ACEOF
c906108c 3705
b7026657 3706 break
c906108c
SS
3707fi
3708
b7026657 3709 done
c906108c
SS
3710fi
3711
b7026657
AC
3712echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3713echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3714if test "${ac_cv_c_stack_direction+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3716else
3717 if test "$cross_compiling" = yes; then
3718 ac_cv_c_stack_direction=0
3719else
b7026657
AC
3720 cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h. */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h. */
3726int
c906108c
SS
3727find_stack_direction ()
3728{
3729 static char *addr = 0;
3730 auto char dummy;
3731 if (addr == 0)
3732 {
3733 addr = &dummy;
3734 return find_stack_direction ();
3735 }
3736 else
3737 return (&dummy > addr) ? 1 : -1;
3738}
b7026657
AC
3739
3740int
c906108c
SS
3741main ()
3742{
b7026657 3743 exit (find_stack_direction () < 0);
c906108c 3744}
b7026657
AC
3745_ACEOF
3746rm -f conftest$ac_exeext
3747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748 (eval $ac_link) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
c906108c
SS
3757 ac_cv_c_stack_direction=1
3758else
b7026657
AC
3759 echo "$as_me: program exited with status $ac_status" >&5
3760echo "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5
3762
3763( exit $ac_status )
3764ac_cv_c_stack_direction=-1
c906108c 3765fi
b7026657 3766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3767fi
c906108c 3768fi
b7026657
AC
3769echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3770echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
c906108c 3771
b7026657 3772cat >>confdefs.h <<_ACEOF
c906108c 3773#define STACK_DIRECTION $ac_cv_c_stack_direction
b7026657
AC
3774_ACEOF
3775
c906108c
SS
3776
3777fi
3778
b7026657
AC
3779
3780
3781for ac_header in stdlib.h unistd.h
c906108c 3782do
b7026657
AC
3783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3784if eval "test \"\${$as_ac_Header+set}\" = set"; then
3785 echo "$as_me:$LINENO: checking for $ac_header" >&5
3786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3787if eval "test \"\${$as_ac_Header+set}\" = set"; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789fi
3790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3792else
3793 # Is the header compilable?
3794echo "$as_me:$LINENO: checking $ac_header usability" >&5
3795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3796cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h. */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h. */
3802$ac_includes_default
3803#include <$ac_header>
3804_ACEOF
3805rm -f conftest.$ac_objext
3806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>conftest.er1
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -z "$ac_c_werror_flag"
3815 || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest.$ac_objext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_header_compiler=yes
3828else
3829 echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832ac_header_compiler=no
3833fi
3834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3836echo "${ECHO_T}$ac_header_compiler" >&6
3837
3838# Is the header present?
3839echo "$as_me:$LINENO: checking $ac_header presence" >&5
3840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3841cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h. */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
3846/* end confdefs.h. */
3847#include <$ac_header>
3848_ACEOF
3849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null; then
3857 if test -s conftest.err; then
3858 ac_cpp_err=$ac_c_preproc_warn_flag
3859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3860 else
3861 ac_cpp_err=
3862 fi
3863else
3864 ac_cpp_err=yes
c906108c 3865fi
b7026657
AC
3866if test -z "$ac_cpp_err"; then
3867 ac_header_preproc=yes
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_header_preproc=no
c906108c 3873fi
b7026657
AC
3874rm -f conftest.err conftest.$ac_ext
3875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3876echo "${ECHO_T}$ac_header_preproc" >&6
3877
3878# So? What about this header?
3879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3880 yes:no: )
3881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3885 ac_header_preproc=yes
3886 ;;
3887 no:yes:* )
3888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3900 (
3901 cat <<\_ASBOX
3902## ------------------------------------------ ##
3903## Report this to the AC_PACKAGE_NAME lists. ##
3904## ------------------------------------------ ##
3905_ASBOX
3906 ) |
3907 sed "s/^/$as_me: WARNING: /" >&2
3908 ;;
3909esac
3910echo "$as_me:$LINENO: checking for $ac_header" >&5
3911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3912if eval "test \"\${$as_ac_Header+set}\" = set"; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3914else
b7026657
AC
3915 eval "$as_ac_Header=\$ac_header_preproc"
3916fi
3917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3919
c906108c 3920fi
b7026657
AC
3921if test `eval echo '${'$as_ac_Header'}'` = yes; then
3922 cat >>confdefs.h <<_ACEOF
3923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3924_ACEOF
3925
3926fi
3927
c906108c
SS
3928done
3929
b7026657 3930
c906108c
SS
3931for ac_func in getpagesize
3932do
b7026657
AC
3933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3934echo "$as_me:$LINENO: checking for $ac_func" >&5
3935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3936if eval "test \"\${$as_ac_var+set}\" = set"; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939 cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
3945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3947#define $ac_func innocuous_$ac_func
3948
c906108c 3949/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
3950 which can conflict with char $ac_func (); below.
3951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3952 <limits.h> exists even on freestanding compilers. */
3953
3954#ifdef __STDC__
3955# include <limits.h>
3956#else
3957# include <assert.h>
3958#endif
c906108c 3959
b7026657 3960#undef $ac_func
c906108c 3961
b7026657
AC
3962/* Override any gcc2 internal prototype to avoid an error. */
3963#ifdef __cplusplus
3964extern "C"
3965{
3966#endif
3967/* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969char $ac_func ();
c906108c
SS
3970/* The GNU C library defines this for functions which it implements
3971 to always fail with ENOSYS. Some functions are actually named
3972 something starting with __ and the normal name is an alias. */
3973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3974choke me
3975#else
b7026657
AC
3976char (*f) () = $ac_func;
3977#endif
3978#ifdef __cplusplus
3979}
c906108c
SS
3980#endif
3981
b7026657
AC
3982int
3983main ()
3984{
3985return f != $ac_func;
3986 ;
3987 return 0;
3988}
3989_ACEOF
3990rm -f conftest.$ac_objext conftest$ac_exeext
3991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3992 (eval $ac_link) 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } &&
3999 { ac_try='test -z "$ac_c_werror_flag"
4000 || test ! -s conftest.err'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; } &&
4006 { ac_try='test -s conftest$ac_exeext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 eval "$as_ac_var=yes"
4013else
4014 echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017eval "$as_ac_var=no"
4018fi
4019rm -f conftest.err conftest.$ac_objext \
4020 conftest$ac_exeext conftest.$ac_ext
4021fi
4022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4024if test `eval echo '${'$as_ac_var'}'` = yes; then
4025 cat >>confdefs.h <<_ACEOF
4026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4027_ACEOF
c906108c 4028
c906108c
SS
4029fi
4030done
4031
b7026657
AC
4032echo "$as_me:$LINENO: checking for working mmap" >&5
4033echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4034if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
4036else
4037 if test "$cross_compiling" = yes; then
4038 ac_cv_func_mmap_fixed_mapped=no
4039else
b7026657
AC
4040 cat >conftest.$ac_ext <<_ACEOF
4041/* confdefs.h. */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h. */
4046$ac_includes_default
4047/* malloc might have been renamed as rpl_malloc. */
4048#undef malloc
c906108c
SS
4049
4050/* Thanks to Mike Haertel and Jim Avera for this test.
4051 Here is a matrix of mmap possibilities:
4052 mmap private not fixed
4053 mmap private fixed at somewhere currently unmapped
4054 mmap private fixed at somewhere already mapped
4055 mmap shared not fixed
4056 mmap shared fixed at somewhere currently unmapped
4057 mmap shared fixed at somewhere already mapped
4058 For private mappings, we should verify that changes cannot be read()
4059 back from the file, nor mmap's back from the file at a different
4060 address. (There have been systems where private was not correctly
4061 implemented like the infamous i386 svr4.0, and systems where the
b7026657 4062 VM page cache was not coherent with the file system buffer cache
c906108c
SS
4063 like early versions of FreeBSD and possibly contemporary NetBSD.)
4064 For shared mappings, we should conversely verify that changes get
b7026657 4065 propagated back to all the places they're supposed to be.
c906108c
SS
4066
4067 Grep wants private fixed already mapped.
4068 The main things grep needs to know about mmap are:
4069 * does it exist and is it safe to write into the mmap'd area
4070 * how to use it (BSD variants) */
b7026657 4071
c906108c
SS
4072#include <fcntl.h>
4073#include <sys/mman.h>
4074
b7026657
AC
4075#if !STDC_HEADERS && !HAVE_STDLIB_H
4076char *malloc ();
4077#endif
c906108c 4078
b7026657
AC
4079/* This mess was copied from the GNU getpagesize.h. */
4080#if !HAVE_GETPAGESIZE
c906108c 4081/* Assume that all systems that can run configure have sys/param.h. */
b7026657 4082# if !HAVE_SYS_PARAM_H
c906108c
SS
4083# define HAVE_SYS_PARAM_H 1
4084# endif
4085
4086# ifdef _SC_PAGESIZE
4087# define getpagesize() sysconf(_SC_PAGESIZE)
4088# else /* no _SC_PAGESIZE */
b7026657 4089# if HAVE_SYS_PARAM_H
c906108c
SS
4090# include <sys/param.h>
4091# ifdef EXEC_PAGESIZE
4092# define getpagesize() EXEC_PAGESIZE
4093# else /* no EXEC_PAGESIZE */
4094# ifdef NBPG
4095# define getpagesize() NBPG * CLSIZE
4096# ifndef CLSIZE
4097# define CLSIZE 1
4098# endif /* no CLSIZE */
4099# else /* no NBPG */
4100# ifdef NBPC
4101# define getpagesize() NBPC
4102# else /* no NBPC */
4103# ifdef PAGESIZE
4104# define getpagesize() PAGESIZE
4105# endif /* PAGESIZE */
4106# endif /* no NBPC */
4107# endif /* no NBPG */
4108# endif /* no EXEC_PAGESIZE */
4109# else /* no HAVE_SYS_PARAM_H */
4110# define getpagesize() 8192 /* punt totally */
4111# endif /* no HAVE_SYS_PARAM_H */
4112# endif /* no _SC_PAGESIZE */
4113
4114#endif /* no HAVE_GETPAGESIZE */
4115
c906108c 4116int
b7026657 4117main ()
c906108c 4118{
b7026657
AC
4119 char *data, *data2, *data3;
4120 int i, pagesize;
4121 int fd;
4122
4123 pagesize = getpagesize ();
4124
4125 /* First, make a file with some known garbage in it. */
4126 data = (char *) malloc (pagesize);
4127 if (!data)
4128 exit (1);
4129 for (i = 0; i < pagesize; ++i)
4130 *(data + i) = rand ();
4131 umask (0);
4132 fd = creat ("conftest.mmap", 0600);
4133 if (fd < 0)
4134 exit (1);
4135 if (write (fd, data, pagesize) != pagesize)
4136 exit (1);
4137 close (fd);
4138
4139 /* Next, try to mmap the file at a fixed address which already has
4140 something else allocated at it. If we can, also make sure that
4141 we see the same garbage. */
4142 fd = open ("conftest.mmap", O_RDWR);
4143 if (fd < 0)
4144 exit (1);
4145 data2 = (char *) malloc (2 * pagesize);
4146 if (!data2)
4147 exit (1);
4148 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4149 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4150 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4151 exit (1);
4152 for (i = 0; i < pagesize; ++i)
4153 if (*(data + i) != *(data2 + i))
4154 exit (1);
4155
4156 /* Finally, make sure that changes to the mapped area do not
4157 percolate back to the file as seen by read(). (This is a bug on
4158 some variants of i386 svr4.0.) */
4159 for (i = 0; i < pagesize; ++i)
4160 *(data2 + i) = *(data2 + i) + 1;
4161 data3 = (char *) malloc (pagesize);
4162 if (!data3)
4163 exit (1);
4164 if (read (fd, data3, pagesize) != pagesize)
4165 exit (1);
4166 for (i = 0; i < pagesize; ++i)
4167 if (*(data + i) != *(data3 + i))
4168 exit (1);
4169 close (fd);
4170 exit (0);
c906108c 4171}
b7026657
AC
4172_ACEOF
4173rm -f conftest$ac_exeext
4174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
c906108c
SS
4184 ac_cv_func_mmap_fixed_mapped=yes
4185else
b7026657
AC
4186 echo "$as_me: program exited with status $ac_status" >&5
4187echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
4189
4190( exit $ac_status )
4191ac_cv_func_mmap_fixed_mapped=no
c906108c 4192fi
b7026657 4193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 4194fi
c906108c 4195fi
b7026657
AC
4196echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4197echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
c906108c 4198if test $ac_cv_func_mmap_fixed_mapped = yes; then
b7026657
AC
4199
4200cat >>confdefs.h <<\_ACEOF
c906108c 4201#define HAVE_MMAP 1
b7026657 4202_ACEOF
c906108c
SS
4203
4204fi
b7026657
AC
4205rm -f conftest.mmap
4206
4207
4208
4209
4210
c906108c 4211
b7026657
AC
4212
4213
4214
4215
4216
4217for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
c906108c
SS
4218unistd.h values.h sys/param.h
4219do
b7026657
AC
4220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4221if eval "test \"\${$as_ac_Header+set}\" = set"; then
4222 echo "$as_me:$LINENO: checking for $ac_header" >&5
4223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4224if eval "test \"\${$as_ac_Header+set}\" = set"; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226fi
4227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4229else
4230 # Is the header compilable?
4231echo "$as_me:$LINENO: checking $ac_header usability" >&5
4232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4233cat >conftest.$ac_ext <<_ACEOF
4234/* confdefs.h. */
4235_ACEOF
4236cat confdefs.h >>conftest.$ac_ext
4237cat >>conftest.$ac_ext <<_ACEOF
4238/* end confdefs.h. */
4239$ac_includes_default
4240#include <$ac_header>
4241_ACEOF
4242rm -f conftest.$ac_objext
4243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 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_objext'
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 ac_header_compiler=yes
4265else
4266 echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269ac_header_compiler=no
4270fi
4271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4273echo "${ECHO_T}$ac_header_compiler" >&6
4274
4275# Is the header present?
4276echo "$as_me:$LINENO: checking $ac_header presence" >&5
4277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4278cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h. */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h. */
4284#include <$ac_header>
4285_ACEOF
4286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } >/dev/null; then
4294 if test -s conftest.err; then
4295 ac_cpp_err=$ac_c_preproc_warn_flag
4296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4297 else
4298 ac_cpp_err=
4299 fi
4300else
4301 ac_cpp_err=yes
c906108c 4302fi
b7026657
AC
4303if test -z "$ac_cpp_err"; then
4304 ac_header_preproc=yes
4305else
4306 echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 ac_header_preproc=no
c906108c 4310fi
b7026657
AC
4311rm -f conftest.err conftest.$ac_ext
4312echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4313echo "${ECHO_T}$ac_header_preproc" >&6
4314
4315# So? What about this header?
4316case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4317 yes:no: )
4318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4319echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4321echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4322 ac_header_preproc=yes
4323 ;;
4324 no:yes:* )
4325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4326echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4328echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4330echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4332echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4336echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4337 (
4338 cat <<\_ASBOX
4339## ------------------------------------------ ##
4340## Report this to the AC_PACKAGE_NAME lists. ##
4341## ------------------------------------------ ##
4342_ASBOX
4343 ) |
4344 sed "s/^/$as_me: WARNING: /" >&2
4345 ;;
4346esac
4347echo "$as_me:$LINENO: checking for $ac_header" >&5
4348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4349if eval "test \"\${$as_ac_Header+set}\" = set"; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4351else
b7026657 4352 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 4353fi
b7026657
AC
4354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4356
4357fi
4358if test `eval echo '${'$as_ac_Header'}'` = yes; then
4359 cat >>confdefs.h <<_ACEOF
4360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4361_ACEOF
4362
4363fi
4364
c906108c
SS
4365done
4366
b7026657
AC
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
c906108c
SS
4378__argz_count __argz_stringify __argz_next
4379do
b7026657
AC
4380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4381echo "$as_me:$LINENO: checking for $ac_func" >&5
4382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4383if eval "test \"\${$as_ac_var+set}\" = set"; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386 cat >conftest.$ac_ext <<_ACEOF
4387/* confdefs.h. */
4388_ACEOF
4389cat confdefs.h >>conftest.$ac_ext
4390cat >>conftest.$ac_ext <<_ACEOF
4391/* end confdefs.h. */
4392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4394#define $ac_func innocuous_$ac_func
4395
c906108c 4396/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4397 which can conflict with char $ac_func (); below.
4398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4399 <limits.h> exists even on freestanding compilers. */
4400
4401#ifdef __STDC__
4402# include <limits.h>
4403#else
4404# include <assert.h>
4405#endif
4406
4407#undef $ac_func
4408
c906108c 4409/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4410#ifdef __cplusplus
4411extern "C"
4412{
4413#endif
c906108c 4414/* We use char because int might match the return type of a gcc2
b7026657
AC
4415 builtin and then its argument prototype would still apply. */
4416char $ac_func ();
c906108c
SS
4417/* The GNU C library defines this for functions which it implements
4418 to always fail with ENOSYS. Some functions are actually named
4419 something starting with __ and the normal name is an alias. */
4420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4421choke me
4422#else
b7026657
AC
4423char (*f) () = $ac_func;
4424#endif
4425#ifdef __cplusplus
4426}
c906108c
SS
4427#endif
4428
b7026657
AC
4429int
4430main ()
4431{
4432return f != $ac_func;
4433 ;
4434 return 0;
4435}
4436_ACEOF
4437rm -f conftest.$ac_objext conftest$ac_exeext
4438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4439 (eval $ac_link) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest$ac_exeext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 eval "$as_ac_var=yes"
4460else
4461 echo "$as_me: failed program was:" >&5
4462sed 's/^/| /' conftest.$ac_ext >&5
4463
4464eval "$as_ac_var=no"
4465fi
4466rm -f conftest.err conftest.$ac_objext \
4467 conftest$ac_exeext conftest.$ac_ext
4468fi
4469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4471if test `eval echo '${'$as_ac_var'}'` = yes; then
4472 cat >>confdefs.h <<_ACEOF
4473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4474_ACEOF
c906108c 4475
c906108c
SS
4476fi
4477done
4478
4479
4480 if test "${ac_cv_func_stpcpy+set}" != "set"; then
b7026657
AC
4481
4482for ac_func in stpcpy
c906108c 4483do
b7026657
AC
4484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4485echo "$as_me:$LINENO: checking for $ac_func" >&5
4486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4487if eval "test \"\${$as_ac_var+set}\" = set"; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489else
4490 cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h. */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h. */
4496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4498#define $ac_func innocuous_$ac_func
4499
c906108c 4500/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4501 which can conflict with char $ac_func (); below.
4502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4503 <limits.h> exists even on freestanding compilers. */
4504
4505#ifdef __STDC__
4506# include <limits.h>
4507#else
4508# include <assert.h>
4509#endif
c906108c 4510
b7026657 4511#undef $ac_func
c906108c 4512
b7026657
AC
4513/* Override any gcc2 internal prototype to avoid an error. */
4514#ifdef __cplusplus
4515extern "C"
4516{
4517#endif
4518/* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4520char $ac_func ();
c906108c
SS
4521/* The GNU C library defines this for functions which it implements
4522 to always fail with ENOSYS. Some functions are actually named
4523 something starting with __ and the normal name is an alias. */
4524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4525choke me
4526#else
b7026657
AC
4527char (*f) () = $ac_func;
4528#endif
4529#ifdef __cplusplus
4530}
c906108c
SS
4531#endif
4532
b7026657
AC
4533int
4534main ()
4535{
4536return f != $ac_func;
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541rm -f conftest.$ac_objext conftest$ac_exeext
4542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543 (eval $ac_link) 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } &&
4550 { ac_try='test -z "$ac_c_werror_flag"
4551 || test ! -s conftest.err'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest$ac_exeext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 eval "$as_ac_var=yes"
4564else
4565 echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568eval "$as_ac_var=no"
4569fi
4570rm -f conftest.err conftest.$ac_objext \
4571 conftest$ac_exeext conftest.$ac_ext
4572fi
4573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4575if test `eval echo '${'$as_ac_var'}'` = yes; then
4576 cat >>confdefs.h <<_ACEOF
4577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4578_ACEOF
c906108c 4579
c906108c
SS
4580fi
4581done
4582
4583 fi
4584 if test "${ac_cv_func_stpcpy}" = "yes"; then
b7026657 4585 cat >>confdefs.h <<\_ACEOF
c906108c 4586#define HAVE_STPCPY 1
b7026657 4587_ACEOF
c906108c
SS
4588
4589 fi
4590
4591 if test $ac_cv_header_locale_h = yes; then
b7026657
AC
4592 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4593echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4594if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597 cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h. */
c906108c 4603#include <locale.h>
b7026657
AC
4604int
4605main ()
4606{
c906108c 4607return LC_MESSAGES
b7026657
AC
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614 (eval $ac_link) 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest$ac_exeext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
c906108c
SS
4634 am_cv_val_LC_MESSAGES=yes
4635else
b7026657
AC
4636 echo "$as_me: failed program was:" >&5
4637sed 's/^/| /' conftest.$ac_ext >&5
4638
4639am_cv_val_LC_MESSAGES=no
c906108c 4640fi
b7026657
AC
4641rm -f conftest.err conftest.$ac_objext \
4642 conftest$ac_exeext conftest.$ac_ext
c906108c 4643fi
b7026657
AC
4644echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4645echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c906108c 4646 if test $am_cv_val_LC_MESSAGES = yes; then
b7026657 4647 cat >>confdefs.h <<\_ACEOF
c906108c 4648#define HAVE_LC_MESSAGES 1
b7026657 4649_ACEOF
c906108c
SS
4650
4651 fi
4652 fi
b7026657
AC
4653 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4654echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
c906108c
SS
4655 # Check whether --enable-nls or --disable-nls was given.
4656if test "${enable_nls+set}" = set; then
4657 enableval="$enable_nls"
4658 USE_NLS=$enableval
4659else
4660 USE_NLS=yes
b7026657
AC
4661fi;
4662 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4663echo "${ECHO_T}$USE_NLS" >&6
c906108c 4664
c906108c
SS
4665
4666 USE_INCLUDED_LIBINTL=no
4667
4668 if test "$USE_NLS" = "yes"; then
b7026657 4669 cat >>confdefs.h <<\_ACEOF
c906108c 4670#define ENABLE_NLS 1
b7026657
AC
4671_ACEOF
4672
4673 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4674echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
c906108c 4675
b7026657 4676# Check whether --with-included-gettext or --without-included-gettext was given.
c906108c
SS
4677if test "${with_included_gettext+set}" = set; then
4678 withval="$with_included_gettext"
4679 nls_cv_force_use_gnu_gettext=$withval
4680else
4681 nls_cv_force_use_gnu_gettext=no
b7026657
AC
4682fi;
4683 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4684echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
c906108c
SS
4685
4686 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4687 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4688 nls_cv_header_intl=
4689 nls_cv_header_libgt=
4690 CATOBJEXT=NONE
4691
b7026657
AC
4692 if test "${ac_cv_header_libintl_h+set}" = set; then
4693 echo "$as_me:$LINENO: checking for libintl.h" >&5
4694echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4695if test "${ac_cv_header_libintl_h+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697fi
4698echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4699echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4700else
4701 # Is the header compilable?
4702echo "$as_me:$LINENO: checking libintl.h usability" >&5
4703echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4704cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
4710$ac_includes_default
4711#include <libintl.h>
4712_ACEOF
4713rm -f conftest.$ac_objext
4714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715 (eval $ac_compile) 2>conftest.er1
4716 ac_status=$?
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } &&
4722 { ac_try='test -z "$ac_c_werror_flag"
4723 || test ! -s conftest.err'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 ac_header_compiler=yes
4736else
4737 echo "$as_me: failed program was:" >&5
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
4740ac_header_compiler=no
4741fi
4742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4744echo "${ECHO_T}$ac_header_compiler" >&6
4745
4746# Is the header present?
4747echo "$as_me:$LINENO: checking libintl.h presence" >&5
4748echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4749cat >conftest.$ac_ext <<_ACEOF
4750/* confdefs.h. */
4751_ACEOF
4752cat confdefs.h >>conftest.$ac_ext
4753cat >>conftest.$ac_ext <<_ACEOF
4754/* end confdefs.h. */
c906108c 4755#include <libintl.h>
b7026657
AC
4756_ACEOF
4757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } >/dev/null; then
4765 if test -s conftest.err; then
4766 ac_cpp_err=$ac_c_preproc_warn_flag
4767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4768 else
4769 ac_cpp_err=
4770 fi
4771else
4772 ac_cpp_err=yes
c906108c 4773fi
b7026657
AC
4774if test -z "$ac_cpp_err"; then
4775 ac_header_preproc=yes
4776else
4777 echo "$as_me: failed program was:" >&5
4778sed 's/^/| /' conftest.$ac_ext >&5
4779
4780 ac_header_preproc=no
4781fi
4782rm -f conftest.err conftest.$ac_ext
4783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4784echo "${ECHO_T}$ac_header_preproc" >&6
4785
4786# So? What about this header?
4787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4788 yes:no: )
4789 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4790echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4791 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4792echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4793 ac_header_preproc=yes
4794 ;;
4795 no:yes:* )
4796 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4797echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4798 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4799echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4800 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4801echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4803echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4805echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4807echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4808 (
4809 cat <<\_ASBOX
4810## ------------------------------------------ ##
4811## Report this to the AC_PACKAGE_NAME lists. ##
4812## ------------------------------------------ ##
4813_ASBOX
4814 ) |
4815 sed "s/^/$as_me: WARNING: /" >&2
4816 ;;
4817esac
4818echo "$as_me:$LINENO: checking for libintl.h" >&5
4819echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4820if test "${ac_cv_header_libintl_h+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823 ac_cv_header_libintl_h=$ac_header_preproc
4824fi
4825echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4826echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4827
c906108c 4828fi
b7026657
AC
4829if test $ac_cv_header_libintl_h = yes; then
4830 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4831echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4832if test "${gt_cv_func_gettext_libc+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4834else
b7026657
AC
4835 cat >conftest.$ac_ext <<_ACEOF
4836/* confdefs.h. */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h. */
c906108c 4841#include <libintl.h>
b7026657
AC
4842int
4843main ()
4844{
c906108c 4845return (int) gettext ("")
b7026657
AC
4846 ;
4847 return 0;
4848}
4849_ACEOF
4850rm -f conftest.$ac_objext conftest$ac_exeext
4851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4852 (eval $ac_link) 2>conftest.er1
4853 ac_status=$?
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -z "$ac_c_werror_flag"
4860 || test ! -s conftest.err'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
c906108c
SS
4872 gt_cv_func_gettext_libc=yes
4873else
b7026657
AC
4874 echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877gt_cv_func_gettext_libc=no
c906108c 4878fi
b7026657
AC
4879rm -f conftest.err conftest.$ac_objext \
4880 conftest$ac_exeext conftest.$ac_ext
c906108c 4881fi
b7026657
AC
4882echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4883echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
c906108c
SS
4884
4885 if test "$gt_cv_func_gettext_libc" != "yes"; then
b7026657
AC
4886 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4887echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4888if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4890else
b7026657 4891 ac_check_lib_save_LIBS=$LIBS
c906108c 4892LIBS="-lintl $LIBS"
b7026657
AC
4893cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h. */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h. */
4899
c906108c 4900/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4901#ifdef __cplusplus
4902extern "C"
4903#endif
c906108c 4904/* We use char because int might match the return type of a gcc2
b7026657
AC
4905 builtin and then its argument prototype would still apply. */
4906char bindtextdomain ();
4907int
4908main ()
4909{
4910bindtextdomain ();
4911 ;
4912 return 0;
4913}
4914_ACEOF
4915rm -f conftest.$ac_objext conftest$ac_exeext
4916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4917 (eval $ac_link) 2>conftest.er1
4918 ac_status=$?
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try='test -s conftest$ac_exeext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 ac_cv_lib_intl_bindtextdomain=yes
4938else
4939 echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942ac_cv_lib_intl_bindtextdomain=no
4943fi
4944rm -f conftest.err conftest.$ac_objext \
4945 conftest$ac_exeext conftest.$ac_ext
4946LIBS=$ac_check_lib_save_LIBS
4947fi
4948echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
4949echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
4950if test $ac_cv_lib_intl_bindtextdomain = yes; then
4951 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
4952echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
4953if test "${gt_cv_func_gettext_libintl+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956 cat >conftest.$ac_ext <<_ACEOF
4957/* confdefs.h. */
4958_ACEOF
4959cat confdefs.h >>conftest.$ac_ext
4960cat >>conftest.$ac_ext <<_ACEOF
4961/* end confdefs.h. */
c906108c 4962
b7026657
AC
4963int
4964main ()
4965{
c906108c 4966return (int) gettext ("")
b7026657
AC
4967 ;
4968 return 0;
4969}
4970_ACEOF
4971rm -f conftest.$ac_objext conftest$ac_exeext
4972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973 (eval $ac_link) 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -z "$ac_c_werror_flag"
4981 || test ! -s conftest.err'
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); }; } &&
4987 { ac_try='test -s conftest$ac_exeext'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
c906108c
SS
4993 gt_cv_func_gettext_libintl=yes
4994else
b7026657
AC
4995 echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
4998gt_cv_func_gettext_libintl=no
c906108c 4999fi
b7026657
AC
5000rm -f conftest.err conftest.$ac_objext \
5001 conftest$ac_exeext conftest.$ac_ext
c906108c 5002fi
b7026657
AC
5003echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5004echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
c906108c
SS
5005fi
5006
5007 fi
5008
5009 if test "$gt_cv_func_gettext_libc" = "yes" \
5010 || test "$gt_cv_func_gettext_libintl" = "yes"; then
b7026657 5011 cat >>confdefs.h <<\_ACEOF
c906108c 5012#define HAVE_GETTEXT 1
b7026657 5013_ACEOF
c906108c
SS
5014
5015 # Extract the first word of "msgfmt", so it can be a program name with args.
5016set dummy msgfmt; ac_word=$2
b7026657
AC
5017echo "$as_me:$LINENO: checking for $ac_word" >&5
5018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5019if test "${ac_cv_path_MSGFMT+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5021else
5022 case "$MSGFMT" in
5023 /*)
5024 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5025 ;;
5026 *)
5027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5028 for ac_dir in $PATH; do
5029 test -z "$ac_dir" && ac_dir=.
5030 if test -f $ac_dir/$ac_word; then
5031 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5032 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5033 break
5034 fi
5035 fi
5036 done
5037 IFS="$ac_save_ifs"
5038 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5039 ;;
5040esac
5041fi
5042MSGFMT="$ac_cv_path_MSGFMT"
5043if test -n "$MSGFMT"; then
b7026657
AC
5044 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5045echo "${ECHO_T}$MSGFMT" >&6
c906108c 5046else
b7026657
AC
5047 echo "$as_me:$LINENO: result: no" >&5
5048echo "${ECHO_T}no" >&6
c906108c
SS
5049fi
5050 if test "$MSGFMT" != "no"; then
b7026657
AC
5051
5052for ac_func in dcgettext
c906108c 5053do
b7026657
AC
5054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5055echo "$as_me:$LINENO: checking for $ac_func" >&5
5056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5057if eval "test \"\${$as_ac_var+set}\" = set"; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5059else
5060 cat >conftest.$ac_ext <<_ACEOF
5061/* confdefs.h. */
5062_ACEOF
5063cat confdefs.h >>conftest.$ac_ext
5064cat >>conftest.$ac_ext <<_ACEOF
5065/* end confdefs.h. */
5066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5068#define $ac_func innocuous_$ac_func
5069
c906108c 5070/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
5071 which can conflict with char $ac_func (); below.
5072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5073 <limits.h> exists even on freestanding compilers. */
5074
5075#ifdef __STDC__
5076# include <limits.h>
5077#else
5078# include <assert.h>
5079#endif
c906108c 5080
b7026657 5081#undef $ac_func
c906108c 5082
b7026657
AC
5083/* Override any gcc2 internal prototype to avoid an error. */
5084#ifdef __cplusplus
5085extern "C"
5086{
5087#endif
5088/* We use char because int might match the return type of a gcc2
5089 builtin and then its argument prototype would still apply. */
5090char $ac_func ();
c906108c
SS
5091/* The GNU C library defines this for functions which it implements
5092 to always fail with ENOSYS. Some functions are actually named
5093 something starting with __ and the normal name is an alias. */
5094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5095choke me
5096#else
b7026657
AC
5097char (*f) () = $ac_func;
5098#endif
5099#ifdef __cplusplus
5100}
c906108c
SS
5101#endif
5102
b7026657
AC
5103int
5104main ()
5105{
5106return f != $ac_func;
5107 ;
5108 return 0;
5109}
5110_ACEOF
5111rm -f conftest.$ac_objext conftest$ac_exeext
5112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113 (eval $ac_link) 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try='test -z "$ac_c_werror_flag"
5121 || test ! -s conftest.err'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 (eval $ac_try) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; } &&
5127 { ac_try='test -s conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 eval "$as_ac_var=yes"
5134else
5135 echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138eval "$as_ac_var=no"
5139fi
5140rm -f conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5142fi
5143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5145if test `eval echo '${'$as_ac_var'}'` = yes; then
5146 cat >>confdefs.h <<_ACEOF
5147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5148_ACEOF
c906108c 5149
c906108c
SS
5150fi
5151done
5152
5153 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5154set dummy gmsgfmt; ac_word=$2
b7026657
AC
5155echo "$as_me:$LINENO: checking for $ac_word" >&5
5156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157if test "${ac_cv_path_GMSGFMT+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5159else
b7026657
AC
5160 case $GMSGFMT in
5161 [\\/]* | ?:[\\/]*)
c906108c
SS
5162 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5163 ;;
c906108c 5164 *)
b7026657
AC
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176done
5177done
5178
c906108c
SS
5179 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5180 ;;
5181esac
5182fi
b7026657
AC
5183GMSGFMT=$ac_cv_path_GMSGFMT
5184
c906108c 5185if test -n "$GMSGFMT"; then
b7026657
AC
5186 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5187echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5188else
b7026657
AC
5189 echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
c906108c
SS
5191fi
5192
5193 # Extract the first word of "xgettext", so it can be a program name with args.
5194set dummy xgettext; ac_word=$2
b7026657
AC
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_path_XGETTEXT+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5199else
5200 case "$XGETTEXT" in
5201 /*)
5202 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5203 ;;
5204 *)
5205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5206 for ac_dir in $PATH; do
5207 test -z "$ac_dir" && ac_dir=.
5208 if test -f $ac_dir/$ac_word; then
5209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5210 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5211 break
5212 fi
5213 fi
5214 done
5215 IFS="$ac_save_ifs"
5216 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5217 ;;
5218esac
5219fi
5220XGETTEXT="$ac_cv_path_XGETTEXT"
5221if test -n "$XGETTEXT"; then
b7026657
AC
5222 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5223echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5224else
b7026657
AC
5225 echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
c906108c
SS
5227fi
5228
b7026657
AC
5229 cat >conftest.$ac_ext <<_ACEOF
5230/* confdefs.h. */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h. */
c906108c 5235
b7026657
AC
5236int
5237main ()
5238{
c906108c
SS
5239extern int _nl_msg_cat_cntr;
5240 return _nl_msg_cat_cntr
b7026657
AC
5241 ;
5242 return 0;
5243}
5244_ACEOF
5245rm -f conftest.$ac_objext conftest$ac_exeext
5246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -z "$ac_c_werror_flag"
5255 || test ! -s conftest.err'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; } &&
5261 { ac_try='test -s conftest$ac_exeext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
c906108c
SS
5267 CATOBJEXT=.gmo
5268 DATADIRNAME=share
5269else
b7026657
AC
5270 echo "$as_me: failed program was:" >&5
5271sed 's/^/| /' conftest.$ac_ext >&5
5272
5273CATOBJEXT=.mo
c906108c
SS
5274 DATADIRNAME=lib
5275fi
b7026657
AC
5276rm -f conftest.err conftest.$ac_objext \
5277 conftest$ac_exeext conftest.$ac_ext
c906108c
SS
5278 INSTOBJEXT=.mo
5279 fi
5280 fi
b7026657 5281
c906108c
SS
5282fi
5283
5284
b7026657
AC
5285
5286
c906108c
SS
5287 if test "$CATOBJEXT" = "NONE"; then
5288 nls_cv_use_gnu_gettext=yes
5289 fi
5290 fi
5291
5292 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5293 INTLOBJS="\$(GETTOBJS)"
5294 # Extract the first word of "msgfmt", so it can be a program name with args.
5295set dummy msgfmt; ac_word=$2
b7026657
AC
5296echo "$as_me:$LINENO: checking for $ac_word" >&5
5297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298if test "${ac_cv_path_MSGFMT+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5300else
5301 case "$MSGFMT" in
5302 /*)
5303 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5304 ;;
5305 *)
5306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5307 for ac_dir in $PATH; do
5308 test -z "$ac_dir" && ac_dir=.
5309 if test -f $ac_dir/$ac_word; then
5310 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5311 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5312 break
5313 fi
5314 fi
5315 done
5316 IFS="$ac_save_ifs"
5317 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5318 ;;
5319esac
5320fi
5321MSGFMT="$ac_cv_path_MSGFMT"
5322if test -n "$MSGFMT"; then
b7026657
AC
5323 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5324echo "${ECHO_T}$MSGFMT" >&6
c906108c 5325else
b7026657
AC
5326 echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
c906108c
SS
5328fi
5329
5330 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5331set dummy gmsgfmt; ac_word=$2
b7026657
AC
5332echo "$as_me:$LINENO: checking for $ac_word" >&5
5333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5334if test "${ac_cv_path_GMSGFMT+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5336else
b7026657
AC
5337 case $GMSGFMT in
5338 [\\/]* | ?:[\\/]*)
c906108c
SS
5339 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5340 ;;
c906108c 5341 *)
b7026657
AC
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5352 fi
5353done
5354done
5355
c906108c
SS
5356 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5357 ;;
5358esac
5359fi
b7026657
AC
5360GMSGFMT=$ac_cv_path_GMSGFMT
5361
c906108c 5362if test -n "$GMSGFMT"; then
b7026657
AC
5363 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5364echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5365else
b7026657
AC
5366 echo "$as_me:$LINENO: result: no" >&5
5367echo "${ECHO_T}no" >&6
c906108c
SS
5368fi
5369
5370 # Extract the first word of "xgettext", so it can be a program name with args.
5371set dummy xgettext; ac_word=$2
b7026657
AC
5372echo "$as_me:$LINENO: checking for $ac_word" >&5
5373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5374if test "${ac_cv_path_XGETTEXT+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5376else
5377 case "$XGETTEXT" in
5378 /*)
5379 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5380 ;;
5381 *)
5382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5383 for ac_dir in $PATH; do
5384 test -z "$ac_dir" && ac_dir=.
5385 if test -f $ac_dir/$ac_word; then
5386 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5387 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5388 break
5389 fi
5390 fi
5391 done
5392 IFS="$ac_save_ifs"
5393 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5394 ;;
5395esac
5396fi
5397XGETTEXT="$ac_cv_path_XGETTEXT"
5398if test -n "$XGETTEXT"; then
b7026657
AC
5399 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5400echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5401else
b7026657
AC
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
c906108c
SS
5404fi
5405
b7026657 5406
c906108c
SS
5407 USE_INCLUDED_LIBINTL=yes
5408 CATOBJEXT=.gmo
5409 INSTOBJEXT=.mo
5410 DATADIRNAME=share
5411 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5412 INTLLIBS=$INTLDEPS
5413 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5414 nls_cv_header_intl=libintl.h
5415 nls_cv_header_libgt=libgettext.h
5416 fi
5417
5418 if test "$XGETTEXT" != ":"; then
5419 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5420 : ;
5421 else
b7026657
AC
5422 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5423echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
c906108c
SS
5424 XGETTEXT=":"
5425 fi
5426 fi
5427
5428 # We need to process the po/ directory.
5429 POSUB=po
5430 else
5431 DATADIRNAME=share
5432 nls_cv_header_intl=libintl.h
5433 nls_cv_header_libgt=libgettext.h
5434 fi
5435
5436 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5437 # because some of the sources are only built for this goal.
5438 if test "$PACKAGE" = gettext; then
5439 USE_NLS=yes
5440 USE_INCLUDED_LIBINTL=yes
5441 fi
5442
5443 for lang in $ALL_LINGUAS; do
5444 GMOFILES="$GMOFILES $lang.gmo"
5445 POFILES="$POFILES $lang.po"
5446 done
5447
b7026657
AC
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
c906108c
SS
5460
5461 if test "x$CATOBJEXT" != "x"; then
5462 if test "x$ALL_LINGUAS" = "x"; then
5463 LINGUAS=
5464 else
b7026657
AC
5465 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5466echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
c906108c
SS
5467 NEW_LINGUAS=
5468 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5469 case "$ALL_LINGUAS" in
5470 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5471 esac
5472 done
5473 LINGUAS=$NEW_LINGUAS
b7026657
AC
5474 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5475echo "${ECHO_T}$LINGUAS" >&6
c906108c
SS
5476 fi
5477
5478 if test -n "$LINGUAS"; then
5479 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5480 fi
5481 fi
5482
5483 if test $ac_cv_header_locale_h = yes; then
5484 INCLUDE_LOCALE_H="#include <locale.h>"
5485 else
5486 INCLUDE_LOCALE_H="\
5487/* The system does not provide the header <locale.h>. Take care yourself. */"
5488 fi
b7026657 5489
c906108c
SS
5490
5491 if test -f $srcdir/po2tbl.sed.in; then
5492 if test "$CATOBJEXT" = ".cat"; then
b7026657
AC
5493 if test "${ac_cv_header_linux_version_h+set}" = set; then
5494 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5495echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5496if test "${ac_cv_header_linux_version_h+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498fi
5499echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5500echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5501else
5502 # Is the header compilable?
5503echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5504echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5505cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h. */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h. */
5511$ac_includes_default
c906108c 5512#include <linux/version.h>
b7026657
AC
5513_ACEOF
5514rm -f conftest.$ac_objext
5515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5516 (eval $ac_compile) 2>conftest.er1
5517 ac_status=$?
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } &&
5523 { ac_try='test -z "$ac_c_werror_flag"
5524 || test ! -s conftest.err'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try='test -s conftest.$ac_objext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_header_compiler=yes
5537else
5538 echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541ac_header_compiler=no
5542fi
5543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5545echo "${ECHO_T}$ac_header_compiler" >&6
5546
5547# Is the header present?
5548echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5549echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5550cat >conftest.$ac_ext <<_ACEOF
5551/* confdefs.h. */
5552_ACEOF
5553cat confdefs.h >>conftest.$ac_ext
5554cat >>conftest.$ac_ext <<_ACEOF
5555/* end confdefs.h. */
5556#include <linux/version.h>
5557_ACEOF
5558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } >/dev/null; then
5566 if test -s conftest.err; then
5567 ac_cpp_err=$ac_c_preproc_warn_flag
5568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5569 else
5570 ac_cpp_err=
5571 fi
5572else
5573 ac_cpp_err=yes
c906108c 5574fi
b7026657
AC
5575if test -z "$ac_cpp_err"; then
5576 ac_header_preproc=yes
5577else
5578 echo "$as_me: failed program was:" >&5
5579sed 's/^/| /' conftest.$ac_ext >&5
5580
5581 ac_header_preproc=no
5582fi
5583rm -f conftest.err conftest.$ac_ext
5584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5585echo "${ECHO_T}$ac_header_preproc" >&6
5586
5587# So? What about this header?
5588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5589 yes:no: )
5590 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5591echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5593echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5594 ac_header_preproc=yes
5595 ;;
5596 no:yes:* )
5597 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5598echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5599 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5600echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5601 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5602echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5603 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5604echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5605 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5606echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5607 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5608echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5609 (
5610 cat <<\_ASBOX
5611## ------------------------------------------ ##
5612## Report this to the AC_PACKAGE_NAME lists. ##
5613## ------------------------------------------ ##
5614_ASBOX
5615 ) |
5616 sed "s/^/$as_me: WARNING: /" >&2
5617 ;;
5618esac
5619echo "$as_me:$LINENO: checking for linux/version.h" >&5
5620echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5621if test "${ac_cv_header_linux_version_h+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 ac_cv_header_linux_version_h=$ac_header_preproc
5625fi
5626echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5627echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5628
c906108c 5629fi
b7026657 5630if test $ac_cv_header_linux_version_h = yes; then
c906108c
SS
5631 msgformat=linux
5632else
b7026657 5633 msgformat=xopen
c906108c
SS
5634fi
5635
5636
b7026657 5637
c906108c
SS
5638 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5639 fi
5640 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5641 $srcdir/po2tbl.sed.in > po2tbl.sed
5642 fi
5643
5644 if test "$PACKAGE" = "gettext"; then
5645 GT_NO="#NO#"
5646 GT_YES=
5647 else
5648 GT_NO=
5649 GT_YES="#YES#"
5650 fi
b7026657
AC
5651
5652
c906108c
SS
5653
5654 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
b7026657 5655
c906108c
SS
5656
5657 l=
b7026657 5658
c906108c
SS
5659
5660 if test -d $srcdir/po; then
5661 test -d po || mkdir po
5662 if test "x$srcdir" != "x."; then
5663 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5664 posrcprefix="$srcdir/"
5665 else
5666 posrcprefix="../$srcdir/"
5667 fi
5668 else
5669 posrcprefix="../"
5670 fi
5671 rm -f po/POTFILES
5672 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5673 < $srcdir/po/POTFILES.in > po/POTFILES
5674 fi
b7026657 5675
c906108c
SS
5676
5677
5678# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
5679if test "${enable_sim_alignment+set}" = set; then
5680 enableval="$enable_sim_alignment"
5681 case "${enableval}" in
5682 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5683 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5684 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
b7026657
AC
5685 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
5686echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
5687 { (exit 1); exit 1; }; }; sim_alignment="";;
c906108c
SS
5688esac
5689if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5690 echo "Setting alignment flags = $sim_alignment" 6>&1
5691fi
5692else
5693 sim_alignment=""
b7026657 5694fi;
c906108c
SS
5695
5696# Check whether --enable-sim-assert or --disable-sim-assert was given.
5697if test "${enable_sim_assert+set}" = set; then
5698 enableval="$enable_sim_assert"
5699 case "${enableval}" in
5700 yes) sim_assert="-DWITH_ASSERT=1";;
5701 no) sim_assert="-DWITH_ASSERT=0";;
b7026657
AC
5702 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
5703echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
5704 { (exit 1); exit 1; }; }; sim_assert="";;
c906108c
SS
5705esac
5706if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
5707 echo "Setting assert flags = $sim_assert" 6>&1
5708fi
5709else
5710 sim_assert=""
b7026657 5711fi;
c906108c
SS
5712
5713# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
5714if test "${enable_sim_bitsize+set}" = set; then
5715 enableval="$enable_sim_bitsize"
5716 case "${enableval}" in
5717 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
b7026657
AC
5718 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
5719echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
5720 { (exit 1); exit 1; }; }; sim_bitsize="";;
c906108c
SS
5721esac
5722if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5723 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5724fi
5725else
5726 sim_bitsize=""
b7026657 5727fi;
c906108c
SS
5728
5729# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
5730if test "${enable_sim_bswap+set}" = set; then
5731 enableval="$enable_sim_bswap"
5732 case "${enableval}" in
5733 yes) sim_bswap="-DWITH_BSWAP=1";;
5734 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
5735 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
5736echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
5737 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
5738esac
5739if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
5740 echo "Setting bswap flags = $sim_bswap" 6>&1
5741fi
5742else
5743 sim_bswap=""
b7026657 5744fi;
c906108c
SS
5745
5746# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
5747if test "${enable_sim_cflags+set}" = set; then
5748 enableval="$enable_sim_cflags"
5749 case "${enableval}" in
5750 yes) sim_cflags="-O2 -fomit-frame-pointer";;
5751 no) sim_cflags="";;
5752 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5753esac
5754if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
5755 echo "Setting sim cflags = $sim_cflags" 6>&1
5756fi
5757else
5758 sim_cflags=""
b7026657 5759fi;
c906108c
SS
5760
5761# Check whether --enable-sim-config or --disable-sim-config was given.
5762if test "${enable_sim_config+set}" = set; then
5763 enableval="$enable_sim_config"
5764 case "${enableval}" in
b7026657
AC
5765 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
5766echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
5767 { (exit 1); exit 1; }; };;
c906108c
SS
5768 *) if test -f "${srcdir}/${enableval}"; then
5769 sim_config="${enableval}";
5770 elif test -f "${srcdir}/${enableval}-config.h"; then
5771 sim_config="${enableval}-config.h"
5772 else
b7026657
AC
5773 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
5774echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
5775 { (exit 1); exit 1; }; };
c906108c
SS
5776 sim_config=std-config.h
5777 fi;;
5778esac
5779if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5780 echo "Setting config flags = $sim_config" 6>&1
5781fi
5782else
5783 sim_config="std-config.h"
5784if test x"$silent" != x"yes"; then
5785 echo "Setting config flags = $sim_config" 6>&1
5786fi
b7026657 5787fi;
c906108c
SS
5788
5789# Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
5790if test "${enable_sim_decode_mechanism+set}" = set; then
5791 enableval="$enable_sim_decode_mechanism"
5792 case "${enableval}" in
b7026657
AC
5793 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
5794echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
5795 { (exit 1); exit 1; }; };;
c906108c 5796 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
b7026657
AC
5797 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
5798echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
5799 { (exit 1); exit 1; }; };
c906108c
SS
5800 sim_decode_mechanism="switch";;
5801esac
5802if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5803 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5804fi
5805else
5806 sim_decode_mechanism=""
5807if test x"$silent" != x"yes"; then
5808 echo "Setting decode mechanism flags = $sim_decode_mechanism"
5809fi
b7026657 5810fi;
c906108c
SS
5811
5812# Check whether --enable-sim-default-model or --disable-sim-default-model was given.
5813if test "${enable_sim_default_model+set}" = set; then
5814 enableval="$enable_sim_default_model"
5815 case "${enableval}" in
b7026657
AC
5816 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
5817echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
5818 { (exit 1); exit 1; }; };;
c906108c
SS
5819 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5820esac
5821if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5822 echo "Setting default-model flags = $sim_default_model" 6>&1
5823fi
5824else
5825 sim_default_model=""
b7026657 5826fi;
c906108c
SS
5827
5828# Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
5829if test "${enable_sim_duplicate+set}" = set; then
5830 enableval="$enable_sim_duplicate"
5831 case "${enableval}" in
5832 yes) sim_dup="-E";;
5833 no) sim_dup="";;
b7026657
AC
5834 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
5835echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
5836 { (exit 1); exit 1; }; }; sim_dup="";;
c906108c
SS
5837esac
5838if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5839 echo "Setting duplicate flags = $sim_dup" 6>&1
5840fi
5841else
5842 sim_dup="-E"
5843if test x"$silent" != x"yes"; then
5844 echo "Setting duplicate flags = $sim_dup" 6>&1
5845fi
b7026657 5846fi;
c906108c
SS
5847
5848# Check whether --enable-sim-endian or --disable-sim-endian was given.
5849if test "${enable_sim_endian+set}" = set; then
5850 enableval="$enable_sim_endian"
5851 case "${enableval}" in
5852 yes) case "$target" in
5853 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5854 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5855 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5856 esac;;
5857 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5858 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5859 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
b7026657
AC
5860 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
5861echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
5862 { (exit 1); exit 1; }; }; sim_endian="";;
c906108c
SS
5863esac
5864if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5865 echo "Setting endian flags = $sim_endian" 6>&1
5866fi
5867else
5868 sim_endian=""
b7026657 5869fi;
c906108c
SS
5870
5871# Check whether --enable-sim-env or --disable-sim-env was given.
5872if test "${enable_sim_env+set}" = set; then
5873 enableval="$enable_sim_env"
5874 case "${enableval}" in
5875 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5876 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5877 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5878 no) sim_env="-DWITH_ENVIRONMENT=0";;
b7026657
AC
5879 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
5880echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
5881 { (exit 1); exit 1; }; }; sim_env="";;
c906108c
SS
5882esac
5883if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
5884 echo "Setting env flags = $sim_env" 6>&1
5885fi
5886else
5887 sim_env=""
b7026657 5888fi;
c906108c
SS
5889
5890# Check whether --enable-sim-filter or --disable-sim-filter was given.
5891if test "${enable_sim_filter+set}" = set; then
5892 enableval="$enable_sim_filter"
5893 case "${enableval}" in
b7026657
AC
5894 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
5895echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
5896 { (exit 1); exit 1; }; }; sim_filter="";;
c906108c
SS
5897 no) sim_filter="";;
5898 *) sim_filter="-F $enableval";;
5899esac
5900if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5901 echo "Setting filter flags = $sim_filter" 6>&1
5902fi
5903else
5904 sim_filter="-F 32,f,o"
5905if test x"$silent" != x"yes"; then
5906 echo "Setting filter flags = $sim_filter" 6>&1
5907fi
b7026657 5908fi;
c906108c
SS
5909
5910# Check whether --enable-sim-float or --disable-sim-float was given.
5911if test "${enable_sim_float+set}" = set; then
5912 enableval="$enable_sim_float"
5913 case "${enableval}" in
5914 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5915 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
345d88d9
AC
5916 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5917 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
b7026657
AC
5918 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
5919echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
5920 { (exit 1); exit 1; }; }; sim_float="";;
c906108c
SS
5921esac
5922if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5923 echo "Setting float flags = $sim_float" 6>&1
5924fi
5925else
b7026657 5926
345d88d9
AC
5927case "${target}" in
5928 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5929 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5930 *) sim_float=""
5931esac
5932
b7026657 5933fi;
c906108c
SS
5934
5935# Check whether --enable-sim-hardware or --disable-sim-hardware was given.
5936if test "${enable_sim_hardware+set}" = set; then
5937 enableval="$enable_sim_hardware"
5938 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
5939case "${enableval}" in
5940 yes) ;;
b7026657
AC
5941 no) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
5942echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
5943 { (exit 1); exit 1; }; }; hardware="";;
c906108c
SS
5944 ,*) hardware="${hardware}${enableval}";;
5945 *,) hardware="${enableval}${hardware}";;
5946 *) hardware="${enableval}"'';;
5947esac
5948sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5949sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5950if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5951 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5952fi
5953else
5954 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
5955sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5956sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5957if test x"$silent" != x"yes"; then
5958 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5959fi
b7026657 5960fi;
c906108c
SS
5961
5962# Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
5963if test "${enable_sim_hostbitsize+set}" = set; then
5964 enableval="$enable_sim_hostbitsize"
5965 case "${enableval}" in
5966 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
b7026657
AC
5967 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
5968echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
5969 { (exit 1); exit 1; }; }; sim_hostbitsize="";;
c906108c
SS
5970esac
5971if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5972 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5973fi
5974else
5975 sim_hostbitsize=""
b7026657 5976fi;
c906108c
SS
5977
5978# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
5979if test "${enable_sim_hostendian+set}" = set; then
5980 enableval="$enable_sim_hostendian"
5981 case "${enableval}" in
5982 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
5983 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
5984 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
b7026657
AC
5985 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
5986echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
5987 { (exit 1); exit 1; }; }; sim_hostendian="";;
c906108c
SS
5988esac
5989if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
5990 echo "Setting hostendian flags = $sim_hostendian" 6>&1
5991fi
5992else
b7026657 5993
c906108c 5994if test "x$cross_compiling" = "xno"; then
b7026657
AC
5995 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5996echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5997if test "${ac_cv_c_bigendian+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 # See if sys/param.h defines the BYTE_ORDER macro.
6001cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h. */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h. */
c906108c
SS
6007#include <sys/types.h>
6008#include <sys/param.h>
c906108c 6009
b7026657
AC
6010int
6011main ()
6012{
c906108c
SS
6013#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6014 bogus endian macros
6015#endif
b7026657
AC
6016
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021rm -f conftest.$ac_objext
6022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag"
6031 || test ! -s conftest.err'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; } &&
6037 { ac_try='test -s conftest.$ac_objext'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
c906108c 6043 # It does; now see whether it defined to BIG_ENDIAN or not.
b7026657
AC
6044cat >conftest.$ac_ext <<_ACEOF
6045/* confdefs.h. */
6046_ACEOF
6047cat confdefs.h >>conftest.$ac_ext
6048cat >>conftest.$ac_ext <<_ACEOF
6049/* end confdefs.h. */
c906108c
SS
6050#include <sys/types.h>
6051#include <sys/param.h>
c906108c 6052
b7026657
AC
6053int
6054main ()
6055{
c906108c
SS
6056#if BYTE_ORDER != BIG_ENDIAN
6057 not big endian
6058#endif
b7026657
AC
6059
6060 ;
6061 return 0;
6062}
6063_ACEOF
6064rm -f conftest.$ac_objext
6065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066 (eval $ac_compile) 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } &&
6073 { ac_try='test -z "$ac_c_werror_flag"
6074 || test ! -s conftest.err'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 (eval $ac_try) 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; } &&
6080 { ac_try='test -s conftest.$ac_objext'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 (eval $ac_try) 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
c906108c
SS
6086 ac_cv_c_bigendian=yes
6087else
b7026657
AC
6088 echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091ac_cv_c_bigendian=no
6092fi
6093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6094else
6095 echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098# It does not; compile a test program.
6099if test "$cross_compiling" = yes; then
6100 # try to guess the endianness by grepping values into an object file
6101 ac_cv_c_bigendian=unknown
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6109short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6110void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6111short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6112short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6113void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6114int
6115main ()
6116{
6117 _ascii (); _ebcdic ();
6118 ;
6119 return 0;
6120}
6121_ACEOF
6122rm -f conftest.$ac_objext
6123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag"
6132 || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try='test -s conftest.$ac_objext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6145 ac_cv_c_bigendian=yes
6146fi
6147if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6148 if test "$ac_cv_c_bigendian" = unknown; then
6149 ac_cv_c_bigendian=no
6150 else
6151 # finding both strings is unlikely to happen, but who knows?
6152 ac_cv_c_bigendian=unknown
6153 fi
c906108c 6154fi
c906108c 6155else
b7026657
AC
6156 echo "$as_me: failed program was:" >&5
6157sed 's/^/| /' conftest.$ac_ext >&5
6158
c906108c 6159fi
b7026657 6160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6161else
b7026657
AC
6162 cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h. */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
6167/* end confdefs.h. */
6168int
6169main ()
6170{
c906108c
SS
6171 /* Are we little or big endian? From Harbison&Steele. */
6172 union
6173 {
6174 long l;
6175 char c[sizeof (long)];
6176 } u;
6177 u.l = 1;
6178 exit (u.c[sizeof (long) - 1] == 1);
6179}
b7026657
AC
6180_ACEOF
6181rm -f conftest$ac_exeext
6182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6183 (eval $ac_link) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
c906108c
SS
6192 ac_cv_c_bigendian=no
6193else
b7026657
AC
6194 echo "$as_me: program exited with status $ac_status" >&5
6195echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198( exit $ac_status )
6199ac_cv_c_bigendian=yes
c906108c 6200fi
b7026657 6201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 6202fi
c906108c 6203fi
b7026657 6204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6205fi
b7026657
AC
6206echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6207echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6208case $ac_cv_c_bigendian in
6209 yes)
c906108c 6210
b7026657 6211cat >>confdefs.h <<\_ACEOF
c906108c 6212#define WORDS_BIGENDIAN 1
b7026657
AC
6213_ACEOF
6214 ;;
6215 no)
6216 ;;
6217 *)
6218 { { echo "$as_me:$LINENO: error: unknown endianness
6219presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6220echo "$as_me: error: unknown endianness
6221presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6222 { (exit 1); exit 1; }; } ;;
6223esac
c906108c
SS
6224
6225 if test $ac_cv_c_bigendian = yes; then
6226 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6227 else
6228 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6229 fi
6230else
6231 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
6232fi
b7026657 6233fi;
c906108c
SS
6234
6235# Check whether --enable-sim-icache or --disable-sim-icache was given.
6236if test "${enable_sim_icache+set}" = set; then
6237 enableval="$enable_sim_icache"
6238 icache="-R"
6239 case "${enableval}" in
6240 yes) icache="1024"; sim_icache="-I $icache";;
6241 no) sim_icache="-R";;
6242 *) icache=1024
6243 sim_icache="-"
6244 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6245 case "$x" in
6246 define) sim_icache="${sim_icache}R";;
6247 semantic) sim_icache="${sim_icache}C";;
6248 insn) sim_icache="${sim_icache}S";;
6249 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
b7026657
AC
6250 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
6251echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
6252 { (exit 1); exit 1; }; }; sim_icache="";;
c906108c
SS
6253 esac
6254 done
6255 sim_icache="${sim_icache}I $icache";;
6256esac
6257if test x"$silent" != x"yes" && test x"$icache" != x""; then
6258 echo "Setting instruction cache size to $icache ($sim_icache)"
6259fi
6260else
6261 sim_icache="-CSRI 1024"
6262if test x"$silent" != x"yes"; then
6263 echo "Setting instruction cache size to 1024 ($sim_icache)"
6264fi
b7026657 6265fi;
c906108c
SS
6266
6267# Check whether --enable-sim-inline or --disable-sim-inline was given.
6268if test "${enable_sim_inline+set}" = set; then
6269 enableval="$enable_sim_inline"
6270 sim_inline=""
6271case "$enableval" in
6272 no) sim_inline="-DDEFAULT_INLINE=0";;
6273 0) sim_inline="-DDEFAULT_INLINE=0";;
6274 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
d29d5195 6275 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
c906108c
SS
6276 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6277 new_flag=""
6278 case "$x" in
6279 *_INLINE=*) new_flag="-D$x";;
6280 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6281 *_INLINE) new_flag="-D$x=ALL_INLINE";;
6282 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
6283 esac
6284 if test x"$sim_inline" = x""; then
6285 sim_inline="$new_flag"
6286 else
6287 sim_inline="$sim_inline $new_flag"
6288 fi
6289 done;;
6290esac
6291if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6292 echo "Setting inline flags = $sim_inline" 6>&1
6293fi
6294else
6295 if test x"$GCC" != ""; then
d29d5195 6296 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
c906108c
SS
6297 if test x"$silent" != x"yes"; then
6298 echo "Setting inline flags = $sim_inline" 6>&1
6299 fi
6300else
6301 sim_inline=""
6302fi
b7026657 6303fi;
c906108c
SS
6304
6305# Check whether --enable-sim-jump or --disable-sim-jump was given.
6306if test "${enable_sim_jump+set}" = set; then
6307 enableval="$enable_sim_jump"
6308 case "${enableval}" in
6309 yes) sim_jump="-J";;
6310 no) sim_jump="";;
b7026657
AC
6311 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
6312echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
6313 { (exit 1); exit 1; }; }; sim_jump="";;
c906108c
SS
6314esac
6315if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
6316 echo "Setting jump flag = $sim_jump" 6>&1
6317fi
6318else
6319 sim_jump=""
6320if test x"$silent" != x"yes"; then
6321 echo "Setting jump flag = $sim_jump" 6>&1
6322fi
b7026657 6323fi;
c906108c
SS
6324
6325# Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
6326if test "${enable_sim_line_nr+set}" = set; then
6327 enableval="$enable_sim_line_nr"
6328 case "${enableval}" in
6329 yes) sim_line_nr="";;
6330 no) sim_line_nr="-L";;
b7026657
AC
6331 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
6332echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
6333 { (exit 1); exit 1; }; }; sim_line_nr="";;
c906108c
SS
6334esac
6335if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
6336 echo "Setting warning flags = $sim_line_nr" 6>&1
6337fi
6338else
6339 sim_line_nr=""
b7026657 6340fi;
c906108c
SS
6341
6342# Check whether --enable-sim-model or --disable-sim-model was given.
6343if test "${enable_sim_model+set}" = set; then
6344 enableval="$enable_sim_model"
6345 case "${enableval}" in
b7026657
AC
6346 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
6347echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
6348 { (exit 1); exit 1; }; };;
c906108c
SS
6349 *) sim_model="-DWITH_MODEL=${enableval}";;
6350esac
6351if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
6352 echo "Setting model flags = $sim_model" 6>&1
6353fi
6354else
6355 sim_model=""
b7026657 6356fi;
c906108c
SS
6357
6358# Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
6359if test "${enable_sim_model_issue+set}" = set; then
6360 enableval="$enable_sim_model_issue"
6361 case "${enableval}" in
6362 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6363 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
b7026657
AC
6364 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
6365echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
6366 { (exit 1); exit 1; }; }; sim_model_issue="";;
c906108c
SS
6367esac
6368if test x"$silent" != x"yes"; then
6369 echo "Setting model-issue flags = $sim_model_issue" 6>&1
6370fi
6371else
6372 sim_model_issue=""
b7026657 6373fi;
c906108c
SS
6374
6375# Check whether --enable-sim-monitor or --disable-sim-monitor was given.
6376if test "${enable_sim_monitor+set}" = set; then
6377 enableval="$enable_sim_monitor"
6378 case "${enableval}" in
6379 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6380 no) sim_monitor="-DWITH_MON=0";;
6381 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6382 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
b7026657
AC
6383 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
6384echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
6385 { (exit 1); exit 1; }; }; sim_env="";;
c906108c
SS
6386esac
6387if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
6388 echo "Setting monitor flags = $sim_monitor" 6>&1
6389fi
6390else
6391 sim_monitor=""
b7026657 6392fi;
c906108c
SS
6393
6394# Check whether --enable-sim-opcode or --disable-sim-opcode was given.
6395if test "${enable_sim_opcode+set}" = set; then
6396 enableval="$enable_sim_opcode"
6397 case "${enableval}" in
b7026657
AC
6398 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
6399echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
6400 { (exit 1); exit 1; }; };;
c906108c
SS
6401 *) if test -f "${srcdir}/${enableval}"; then
6402 sim_opcode="${enableval}"
6403 elif test -f "${srcdir}/dc-${enableval}"; then
6404 sim_opcode="dc-${enableval}"
6405 else
b7026657
AC
6406 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
6407echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
6408 { (exit 1); exit 1; }; };
c906108c
SS
6409 sim_opcode="dc-complex"
6410 fi;;
6411esac
6412if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
6413 echo "Setting opcode flags = $sim_opcode" 6>&1
6414fi
6415else
6416 sim_opcode="dc-complex"
6417if test x"$silent" != x"yes"; then
6418 echo "Setting opcode flags = $sim_opcode"
6419fi
b7026657 6420fi;
c906108c
SS
6421
6422# Check whether --enable-sim-packages or --disable-sim-packages was given.
6423if test "${enable_sim_packages+set}" = set; then
6424 enableval="$enable_sim_packages"
6425 packages=disklabel
6426case "${enableval}" in
6427 yes) ;;
b7026657
AC
6428 no) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
6429echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
6430 { (exit 1); exit 1; }; }; packages="";;
c906108c
SS
6431 ,*) packages="${packages}${enableval}";;
6432 *,) packages="${enableval}${packages}";;
6433 *) packages="${enableval}"'';;
6434esac
6435sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6436sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6437if test x"$silent" != x"yes" && test x"$packages" != x""; then
6438 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6439fi
6440else
6441 packages=disklabel
6442sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6443sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6444if test x"$silent" != x"yes"; then
6445 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6446fi
b7026657 6447fi;
c906108c
SS
6448
6449# Check whether --enable-sim-regparm or --disable-sim-regparm was given.
6450if test "${enable_sim_regparm+set}" = set; then
6451 enableval="$enable_sim_regparm"
6452 case "${enableval}" in
6453 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
6454 no) sim_regparm="" ;;
6455 yes) sim_regparm="-DWITH_REGPARM=3";;
b7026657
AC
6456 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
6457echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
6458 { (exit 1); exit 1; }; }; sim_regparm="";;
c906108c
SS
6459esac
6460if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
6461 echo "Setting regparm flags = $sim_regparm" 6>&1
6462fi
6463else
6464 sim_regparm=""
b7026657 6465fi;
c906108c
SS
6466
6467# Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
6468if test "${enable_sim_reserved_bits+set}" = set; then
6469 enableval="$enable_sim_reserved_bits"
6470 case "${enableval}" in
6471 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
6472 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
b7026657
AC
6473 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
6474echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
6475 { (exit 1); exit 1; }; }; sim_reserved="";;
c906108c
SS
6476esac
6477if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
6478 echo "Setting reserved flags = $sim_reserved" 6>&1
6479fi
6480else
6481 sim_reserved=""
b7026657 6482fi;
c906108c
SS
6483
6484# Check whether --enable-sim-smp or --disable-sim-smp was given.
6485if test "${enable_sim_smp+set}" = set; then
6486 enableval="$enable_sim_smp"
6487 case "${enableval}" in
6488 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
6489 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
6490 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
6491esac
6492if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
6493 echo "Setting smp flags = $sim_smp" 6>&1
6494fi
6495else
6496 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
6497if test x"$silent" != x"yes"; then
6498 echo "Setting smp flags = $sim_smp" 6>&1
6499fi
b7026657 6500fi;
c906108c
SS
6501
6502# Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
6503if test "${enable_sim_stdcall+set}" = set; then
6504 enableval="$enable_sim_stdcall"
6505 case "${enableval}" in
6506 no) sim_stdcall="" ;;
6507 std*) sim_stdcall="-DWITH_STDCALL=1";;
6508 yes) sim_stdcall="-DWITH_STDCALL=1";;
b7026657
AC
6509 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
6510echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
6511 { (exit 1); exit 1; }; }; sim_stdcall="";;
c906108c
SS
6512esac
6513if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
6514 echo "Setting function call flags = $sim_stdcall" 6>&1
6515fi
6516else
6517 sim_stdcall=""
b7026657 6518fi;
c906108c
SS
6519
6520# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6521if test "${enable_sim_stdio+set}" = set; then
6522 enableval="$enable_sim_stdio"
6523 case "${enableval}" in
6524 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6525 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
6526 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6527echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6528 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
6529esac
6530if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6531 echo "Setting stdio flags = $sim_stdio" 6>&1
6532fi
6533else
6534 sim_stdio=""
b7026657 6535fi;
c906108c
SS
6536
6537# Check whether --enable-sim-switch or --disable-sim-switch was given.
6538if test "${enable_sim_switch+set}" = set; then
6539 enableval="$enable_sim_switch"
6540 case "${enableval}" in
6541 yes) sim_switch="-s";;
6542 no) sim_switch="";;
b7026657
AC
6543 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
6544echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
6545 { (exit 1); exit 1; }; }; sim_switch="";;
c906108c
SS
6546esac
6547if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
6548 echo "Setting switch flags = $sim_switch" 6>&1
6549fi
6550else
6551 sim_switch="";
6552if test x"$silent" != x"yes"; then
6553 echo "Setting switch flags = $sim_switch" 6>&1
6554fi
b7026657 6555fi;
c906108c
SS
6556
6557# Check whether --enable-sim-timebase or --disable-sim-timebase was given.
6558if test "${enable_sim_timebase+set}" = set; then
6559 enableval="$enable_sim_timebase"
6560 case "${enableval}" in
6561 yes) sim_timebase="-DWITH_TIME_BASE=1";;
6562 no) sim_timebase="-DWITH_TIME_BASE=0";;
b7026657
AC
6563 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
6564echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
6565 { (exit 1); exit 1; }; }; sim_timebase="";;
c906108c
SS
6566esac
6567if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
6568 echo "Setting timebase flags = $sim_timebase" 6>&1
6569fi
6570else
6571 sim_timebase=""
b7026657 6572fi;
c906108c
SS
6573
6574# Check whether --enable-sim-trace or --disable-sim-trace was given.
6575if test "${enable_sim_trace+set}" = set; then
6576 enableval="$enable_sim_trace"
6577 case "${enableval}" in
6578 yes) sim_trace="-DWITH_TRACE=1";;
6579 no) sim_trace="-DWITH_TRACE=0";;
b7026657
AC
6580 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
6581echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
6582 { (exit 1); exit 1; }; }; sim_trace="";;
c906108c
SS
6583esac
6584if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6585 echo "Setting trace flags = $sim_trace" 6>&1
6586fi
6587else
6588 sim_trace=""
b7026657 6589fi;
c906108c
SS
6590
6591# Check whether --enable-sim-warnings or --disable-sim-warnings was given.
6592if test "${enable_sim_warnings+set}" = set; then
6593 enableval="$enable_sim_warnings"
6594 case "${enableval}" in
6595 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6596 no) sim_warnings="-w";;
6597 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6598esac
6599if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
6600 echo "Setting warning flags = $sim_warnings" 6>&1
6601fi
6602else
6603 sim_warnings=""
b7026657 6604fi;
c906108c
SS
6605
6606# Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
6607if test "${enable_sim_xor_endian+set}" = set; then
6608 enableval="$enable_sim_xor_endian"
6609 case "${enableval}" in
6610 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
6611 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
6612 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
6613esac
6614if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
6615 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6616fi
6617else
6618 sim_xor_endian=""
b7026657 6619fi;
c906108c
SS
6620
6621ac_aux_dir=
6622for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
6623 if test -f $ac_dir/install-sh; then
6624 ac_aux_dir=$ac_dir
6625 ac_install_sh="$ac_aux_dir/install-sh -c"
6626 break
6627 elif test -f $ac_dir/install.sh; then
6628 ac_aux_dir=$ac_dir
6629 ac_install_sh="$ac_aux_dir/install.sh -c"
6630 break
b7026657
AC
6631 elif test -f $ac_dir/shtool; then
6632 ac_aux_dir=$ac_dir
6633 ac_install_sh="$ac_aux_dir/shtool install -c"
6634 break
c906108c
SS
6635 fi
6636done
6637if test -z "$ac_aux_dir"; then
b7026657
AC
6638 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5
6639echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;}
6640 { (exit 1); exit 1; }; }
c906108c 6641fi
b7026657
AC
6642ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6643ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6644ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 6645
b7026657
AC
6646# Make sure we can run config.sub.
6647$ac_config_sub sun4 >/dev/null 2>&1 ||
6648 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6649echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6650 { (exit 1); exit 1; }; }
6651
6652echo "$as_me:$LINENO: checking build system type" >&5
6653echo $ECHO_N "checking build system type... $ECHO_C" >&6
6654if test "${ac_cv_build+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657 ac_cv_build_alias=$build_alias
6658test -z "$ac_cv_build_alias" &&
6659 ac_cv_build_alias=`$ac_config_guess`
6660test -z "$ac_cv_build_alias" &&
6661 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6662echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6663 { (exit 1); exit 1; }; }
6664ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6665 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6666echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6667 { (exit 1); exit 1; }; }
6668
6669fi
6670echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6671echo "${ECHO_T}$ac_cv_build" >&6
6672build=$ac_cv_build
6673build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6674build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6675build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6676
6677
6678echo "$as_me:$LINENO: checking host system type" >&5
6679echo $ECHO_N "checking host system type... $ECHO_C" >&6
6680if test "${ac_cv_host+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683 ac_cv_host_alias=$host_alias
6684test -z "$ac_cv_host_alias" &&
6685 ac_cv_host_alias=$ac_cv_build_alias
6686ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6687 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6688echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6689 { (exit 1); exit 1; }; }
6690
6691fi
6692echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6693echo "${ECHO_T}$ac_cv_host" >&6
6694host=$ac_cv_host
6695host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6696host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6697host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6698
6699
6700echo "$as_me:$LINENO: checking target system type" >&5
6701echo $ECHO_N "checking target system type... $ECHO_C" >&6
6702if test "${ac_cv_target+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705 ac_cv_target_alias=$target_alias
6706test "x$ac_cv_target_alias" = "x" &&
6707 ac_cv_target_alias=$ac_cv_host_alias
6708ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
6709 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
6710echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
6711 { (exit 1); exit 1; }; }
6712
6713fi
6714echo "$as_me:$LINENO: result: $ac_cv_target" >&5
6715echo "${ECHO_T}$ac_cv_target" >&6
6716target=$ac_cv_target
6717target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6718target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6719target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 6720
c906108c
SS
6721
6722# The aliases save the names the user supplied, while $host etc.
6723# will get canonicalized.
b7026657 6724test -n "$target_alias" &&
c906108c
SS
6725 test "$program_prefix$program_suffix$program_transform_name" = \
6726 NONENONEs,x,x, &&
6727 program_prefix=${target_alias}-
c906108c 6728test "$program_prefix" != NONE &&
b7026657 6729 program_transform_name="s,^,$program_prefix,;$program_transform_name"
c906108c
SS
6730# Use a double $ so make ignores it.
6731test "$program_suffix" != NONE &&
b7026657
AC
6732 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6733# Double any \ or $. echo might interpret backslashes.
6734# By default was `s,x,x', remove it if useless.
6735cat <<\_ACEOF >conftest.sed
6736s/[\\$]/&&/g;s/;s,x,x,$//
6737_ACEOF
6738program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6739rm conftest.sed
c906108c
SS
6740
6741
6742. ${srcdir}/../../bfd/configure.host
6743
b7026657 6744 ac_config_headers="$ac_config_headers config.h:config.in"
c906108c
SS
6745
6746
c906108c 6747
b7026657
AC
6748echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6749echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6750if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753 cat >conftest.$ac_ext <<_ACEOF
6754/* confdefs.h. */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h. */
6759$ac_includes_default
6760int
6761main ()
6762{
6763static struct stat ac_aggr;
6764if (ac_aggr.st_blksize)
6765return 0;
6766 ;
6767 return 0;
6768}
6769_ACEOF
6770rm -f conftest.$ac_objext
6771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6772 (eval $ac_compile) 2>conftest.er1
6773 ac_status=$?
6774 grep -v '^ *+' conftest.er1 >conftest.err
6775 rm -f conftest.er1
6776 cat conftest.err >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } &&
6779 { ac_try='test -z "$ac_c_werror_flag"
6780 || test ! -s conftest.err'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 (eval $ac_try) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; } &&
6786 { ac_try='test -s conftest.$ac_objext'
6787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 (eval $ac_try) 2>&5
6789 ac_status=$?
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); }; }; then
6792 ac_cv_member_struct_stat_st_blksize=yes
6793else
6794 echo "$as_me: failed program was:" >&5
6795sed 's/^/| /' conftest.$ac_ext >&5
6796
6797cat >conftest.$ac_ext <<_ACEOF
6798/* confdefs.h. */
6799_ACEOF
6800cat confdefs.h >>conftest.$ac_ext
6801cat >>conftest.$ac_ext <<_ACEOF
6802/* end confdefs.h. */
6803$ac_includes_default
6804int
6805main ()
6806{
6807static struct stat ac_aggr;
6808if (sizeof ac_aggr.st_blksize)
6809return 0;
6810 ;
6811 return 0;
6812}
6813_ACEOF
6814rm -f conftest.$ac_objext
6815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816 (eval $ac_compile) 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -z "$ac_c_werror_flag"
6824 || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 ac_cv_member_struct_stat_st_blksize=yes
6837else
6838 echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841ac_cv_member_struct_stat_st_blksize=no
6842fi
6843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6846fi
6847echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6848echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6849if test $ac_cv_member_struct_stat_st_blksize = yes; then
6850
6851cat >>confdefs.h <<_ACEOF
6852#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6853_ACEOF
6854
6855
6856cat >>confdefs.h <<\_ACEOF
c906108c 6857#define HAVE_ST_BLKSIZE 1
b7026657 6858_ACEOF
c906108c
SS
6859
6860fi
6861
c906108c 6862
b7026657
AC
6863echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6864echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6865if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868 cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
6874$ac_includes_default
6875int
6876main ()
6877{
6878static struct stat ac_aggr;
6879if (ac_aggr.st_blocks)
6880return 0;
6881 ;
6882 return 0;
6883}
6884_ACEOF
6885rm -f conftest.$ac_objext
6886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>conftest.er1
6888 ac_status=$?
6889 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1
6891 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } &&
6894 { ac_try='test -z "$ac_c_werror_flag"
6895 || test ! -s conftest.err'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; } &&
6901 { ac_try='test -s conftest.$ac_objext'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; }; then
6907 ac_cv_member_struct_stat_st_blocks=yes
6908else
6909 echo "$as_me: failed program was:" >&5
6910sed 's/^/| /' conftest.$ac_ext >&5
6911
6912cat >conftest.$ac_ext <<_ACEOF
6913/* confdefs.h. */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h. */
6918$ac_includes_default
6919int
6920main ()
6921{
6922static struct stat ac_aggr;
6923if (sizeof ac_aggr.st_blocks)
6924return 0;
6925 ;
6926 return 0;
6927}
6928_ACEOF
6929rm -f conftest.$ac_objext
6930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_cv_member_struct_stat_st_blocks=yes
6952else
6953 echo "$as_me: failed program was:" >&5
6954sed 's/^/| /' conftest.$ac_ext >&5
6955
6956ac_cv_member_struct_stat_st_blocks=no
6957fi
6958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6959fi
6960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6961fi
6962echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6963echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6964if test $ac_cv_member_struct_stat_st_blocks = yes; then
6965
6966cat >>confdefs.h <<_ACEOF
6967#define HAVE_STRUCT_STAT_ST_BLOCKS 1
6968_ACEOF
6969
6970
6971cat >>confdefs.h <<\_ACEOF
c906108c 6972#define HAVE_ST_BLOCKS 1
b7026657 6973_ACEOF
c906108c
SS
6974
6975else
b7026657
AC
6976 case $LIBOBJS in
6977 "fileblocks.$ac_objext" | \
6978 *" fileblocks.$ac_objext" | \
6979 "fileblocks.$ac_objext "* | \
6980 *" fileblocks.$ac_objext "* ) ;;
6981 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
6982esac
c906108c 6983
c906108c
SS
6984fi
6985
b7026657
AC
6986
6987
6988echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6989echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6990if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 cat >conftest.$ac_ext <<_ACEOF
6994/* confdefs.h. */
6995_ACEOF
6996cat confdefs.h >>conftest.$ac_ext
6997cat >>conftest.$ac_ext <<_ACEOF
6998/* end confdefs.h. */
6999$ac_includes_default
7000int
7001main ()
7002{
7003static struct stat ac_aggr;
7004if (ac_aggr.st_rdev)
7005return 0;
7006 ;
7007 return 0;
7008}
7009_ACEOF
7010rm -f conftest.$ac_objext
7011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>conftest.er1
7013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest.$ac_objext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_member_struct_stat_st_rdev=yes
7033else
7034 echo "$as_me: failed program was:" >&5
7035sed 's/^/| /' conftest.$ac_ext >&5
7036
7037cat >conftest.$ac_ext <<_ACEOF
7038/* confdefs.h. */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */
7043$ac_includes_default
7044int
7045main ()
7046{
7047static struct stat ac_aggr;
7048if (sizeof ac_aggr.st_rdev)
7049return 0;
7050 ;
7051 return 0;
7052}
7053_ACEOF
7054rm -f conftest.$ac_objext
7055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest.$ac_objext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_member_struct_stat_st_rdev=yes
7077else
7078 echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5
7080
7081ac_cv_member_struct_stat_st_rdev=no
7082fi
7083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7084fi
7085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7086fi
7087echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7088echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7089if test $ac_cv_member_struct_stat_st_rdev = yes; then
7090
7091cat >>confdefs.h <<_ACEOF
7092#define HAVE_STRUCT_STAT_ST_RDEV 1
7093_ACEOF
7094
7095
7096cat >>confdefs.h <<\_ACEOF
c906108c 7097#define HAVE_ST_RDEV 1
b7026657 7098_ACEOF
c906108c
SS
7099
7100fi
7101
b7026657
AC
7102
7103echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7104echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7105if test "${ac_cv_struct_tm+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7107else
b7026657
AC
7108 cat >conftest.$ac_ext <<_ACEOF
7109/* confdefs.h. */
7110_ACEOF
7111cat confdefs.h >>conftest.$ac_ext
7112cat >>conftest.$ac_ext <<_ACEOF
7113/* end confdefs.h. */
c906108c
SS
7114#include <sys/types.h>
7115#include <time.h>
b7026657
AC
7116
7117int
7118main ()
7119{
c906108c 7120struct tm *tp; tp->tm_sec;
b7026657
AC
7121 ;
7122 return 0;
7123}
7124_ACEOF
7125rm -f conftest.$ac_objext
7126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest.$ac_objext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
c906108c
SS
7147 ac_cv_struct_tm=time.h
7148else
b7026657
AC
7149 echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152ac_cv_struct_tm=sys/time.h
c906108c 7153fi
b7026657 7154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7155fi
b7026657
AC
7156echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7157echo "${ECHO_T}$ac_cv_struct_tm" >&6
c906108c 7158if test $ac_cv_struct_tm = sys/time.h; then
b7026657
AC
7159
7160cat >>confdefs.h <<\_ACEOF
c906108c 7161#define TM_IN_SYS_TIME 1
b7026657 7162_ACEOF
c906108c
SS
7163
7164fi
7165
b7026657
AC
7166echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7167echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7168if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7170else
b7026657
AC
7171 cat >conftest.$ac_ext <<_ACEOF
7172/* confdefs.h. */
7173_ACEOF
7174cat confdefs.h >>conftest.$ac_ext
7175cat >>conftest.$ac_ext <<_ACEOF
7176/* end confdefs.h. */
c906108c
SS
7177#include <sys/types.h>
7178#include <$ac_cv_struct_tm>
c906108c 7179
b7026657
AC
7180
7181int
7182main ()
7183{
7184static struct tm ac_aggr;
7185if (ac_aggr.tm_zone)
7186return 0;
7187 ;
7188 return 0;
7189}
7190_ACEOF
7191rm -f conftest.$ac_objext
7192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -z "$ac_c_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 ac_cv_member_struct_tm_tm_zone=yes
7214else
7215 echo "$as_me: failed program was:" >&5
7216sed 's/^/| /' conftest.$ac_ext >&5
7217
7218cat >conftest.$ac_ext <<_ACEOF
7219/* confdefs.h. */
7220_ACEOF
7221cat confdefs.h >>conftest.$ac_ext
7222cat >>conftest.$ac_ext <<_ACEOF
7223/* end confdefs.h. */
7224#include <sys/types.h>
7225#include <$ac_cv_struct_tm>
7226
7227
7228int
7229main ()
7230{
7231static struct tm ac_aggr;
7232if (sizeof ac_aggr.tm_zone)
7233return 0;
7234 ;
7235 return 0;
7236}
7237_ACEOF
7238rm -f conftest.$ac_objext
7239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7240 (eval $ac_compile) 2>conftest.er1
7241 ac_status=$?
7242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -z "$ac_c_werror_flag"
7248 || test ! -s conftest.err'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; } &&
7254 { ac_try='test -s conftest.$ac_objext'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 (eval $ac_try) 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7260 ac_cv_member_struct_tm_tm_zone=yes
7261else
7262 echo "$as_me: failed program was:" >&5
7263sed 's/^/| /' conftest.$ac_ext >&5
7264
7265ac_cv_member_struct_tm_tm_zone=no
7266fi
7267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7268fi
7269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7270fi
7271echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7272echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7273if test $ac_cv_member_struct_tm_tm_zone = yes; then
7274
7275cat >>confdefs.h <<_ACEOF
7276#define HAVE_STRUCT_TM_TM_ZONE 1
7277_ACEOF
7278
7279
7280fi
7281
7282if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7283
7284cat >>confdefs.h <<\_ACEOF
c906108c 7285#define HAVE_TM_ZONE 1
b7026657 7286_ACEOF
c906108c
SS
7287
7288else
b7026657
AC
7289 echo "$as_me:$LINENO: checking for tzname" >&5
7290echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7291if test "${ac_cv_var_tzname+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7293else
b7026657
AC
7294 cat >conftest.$ac_ext <<_ACEOF
7295/* confdefs.h. */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h. */
c906108c
SS
7300#include <time.h>
7301#ifndef tzname /* For SGI. */
7302extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7303#endif
b7026657
AC
7304
7305int
7306main ()
7307{
c906108c 7308atoi(*tzname);
b7026657
AC
7309 ;
7310 return 0;
7311}
7312_ACEOF
7313rm -f conftest.$ac_objext conftest$ac_exeext
7314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7315 (eval $ac_link) 2>conftest.er1
7316 ac_status=$?
7317 grep -v '^ *+' conftest.er1 >conftest.err
7318 rm -f conftest.er1
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -z "$ac_c_werror_flag"
7323 || test ! -s conftest.err'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest$ac_exeext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
c906108c
SS
7335 ac_cv_var_tzname=yes
7336else
b7026657
AC
7337 echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340ac_cv_var_tzname=no
c906108c 7341fi
b7026657
AC
7342rm -f conftest.err conftest.$ac_objext \
7343 conftest$ac_exeext conftest.$ac_ext
c906108c 7344fi
b7026657
AC
7345echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7346echo "${ECHO_T}$ac_cv_var_tzname" >&6
c906108c 7347 if test $ac_cv_var_tzname = yes; then
b7026657
AC
7348
7349cat >>confdefs.h <<\_ACEOF
c906108c 7350#define HAVE_TZNAME 1
b7026657 7351_ACEOF
c906108c
SS
7352
7353 fi
7354fi
7355
7356
b7026657
AC
7357echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7358echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7359if test "${ac_cv_type_uid_t+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7361else
b7026657
AC
7362 cat >conftest.$ac_ext <<_ACEOF
7363/* confdefs.h. */
7364_ACEOF
7365cat confdefs.h >>conftest.$ac_ext
7366cat >>conftest.$ac_ext <<_ACEOF
7367/* end confdefs.h. */
c906108c 7368#include <sys/types.h>
b7026657
AC
7369
7370_ACEOF
c906108c 7371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 7372 $EGREP "uid_t" >/dev/null 2>&1; then
c906108c
SS
7373 ac_cv_type_uid_t=yes
7374else
c906108c
SS
7375 ac_cv_type_uid_t=no
7376fi
7377rm -f conftest*
7378
7379fi
b7026657
AC
7380echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7381echo "${ECHO_T}$ac_cv_type_uid_t" >&6
c906108c 7382if test $ac_cv_type_uid_t = no; then
b7026657
AC
7383
7384cat >>confdefs.h <<\_ACEOF
c906108c 7385#define uid_t int
b7026657 7386_ACEOF
c906108c 7387
b7026657
AC
7388
7389cat >>confdefs.h <<\_ACEOF
c906108c 7390#define gid_t int
b7026657 7391_ACEOF
c906108c
SS
7392
7393fi
7394
b7026657
AC
7395echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7396echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7397if test "${ac_cv_type_getgroups+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
7399else
7400 if test "$cross_compiling" = yes; then
7401 ac_cv_type_getgroups=cross
7402else
b7026657
AC
7403 cat >conftest.$ac_ext <<_ACEOF
7404/* confdefs.h. */
7405_ACEOF
7406cat confdefs.h >>conftest.$ac_ext
7407cat >>conftest.$ac_ext <<_ACEOF
7408/* end confdefs.h. */
c906108c
SS
7409/* Thanks to Mike Rendell for this test. */
7410#include <sys/types.h>
7411#define NGID 256
7412#undef MAX
7413#define MAX(x, y) ((x) > (y) ? (x) : (y))
b7026657
AC
7414
7415int
7416main ()
c906108c
SS
7417{
7418 gid_t gidset[NGID];
7419 int i, n;
7420 union { gid_t gval; long lval; } val;
7421
7422 val.lval = -1;
7423 for (i = 0; i < NGID; i++)
7424 gidset[i] = val.gval;
7425 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
b7026657 7426 gidset);
c906108c
SS
7427 /* Exit non-zero if getgroups seems to require an array of ints. This
7428 happens when gid_t is short but getgroups modifies an array of ints. */
7429 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7430}
b7026657
AC
7431_ACEOF
7432rm -f conftest$ac_exeext
7433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7434 (eval $ac_link) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 (eval $ac_try) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; }; then
7443 ac_cv_type_getgroups=gid_t
c906108c 7444else
b7026657
AC
7445 echo "$as_me: program exited with status $ac_status" >&5
7446echo "$as_me: failed program was:" >&5
7447sed 's/^/| /' conftest.$ac_ext >&5
7448
7449( exit $ac_status )
7450ac_cv_type_getgroups=int
c906108c 7451fi
b7026657 7452rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7453fi
c906108c 7454if test $ac_cv_type_getgroups = cross; then
b7026657
AC
7455 cat >conftest.$ac_ext <<_ACEOF
7456/* confdefs.h. */
7457_ACEOF
7458cat confdefs.h >>conftest.$ac_ext
7459cat >>conftest.$ac_ext <<_ACEOF
7460/* end confdefs.h. */
c906108c 7461#include <unistd.h>
b7026657
AC
7462
7463_ACEOF
c906108c 7464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 7465 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
c906108c
SS
7466 ac_cv_type_getgroups=gid_t
7467else
c906108c
SS
7468 ac_cv_type_getgroups=int
7469fi
7470rm -f conftest*
7471
7472fi
7473fi
b7026657
AC
7474echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7475echo "${ECHO_T}$ac_cv_type_getgroups" >&6
c906108c 7476
b7026657 7477cat >>confdefs.h <<_ACEOF
c906108c 7478#define GETGROUPS_T $ac_cv_type_getgroups
b7026657 7479_ACEOF
c906108c
SS
7480
7481
b7026657
AC
7482echo "$as_me:$LINENO: checking for mode_t" >&5
7483echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7484if test "${ac_cv_type_mode_t+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7486else
b7026657
AC
7487 cat >conftest.$ac_ext <<_ACEOF
7488/* confdefs.h. */
7489_ACEOF
7490cat confdefs.h >>conftest.$ac_ext
7491cat >>conftest.$ac_ext <<_ACEOF
7492/* end confdefs.h. */
7493$ac_includes_default
7494int
7495main ()
7496{
7497if ((mode_t *) 0)
7498 return 0;
7499if (sizeof (mode_t))
7500 return 0;
7501 ;
7502 return 0;
7503}
7504_ACEOF
7505rm -f conftest.$ac_objext
7506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -z "$ac_c_werror_flag"
7515 || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest.$ac_objext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
c906108c
SS
7527 ac_cv_type_mode_t=yes
7528else
b7026657
AC
7529 echo "$as_me: failed program was:" >&5
7530sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7531
b7026657
AC
7532ac_cv_type_mode_t=no
7533fi
7534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7535fi
b7026657
AC
7536echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7537echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7538if test $ac_cv_type_mode_t = yes; then
7539 :
7540else
7541
7542cat >>confdefs.h <<_ACEOF
c906108c 7543#define mode_t int
b7026657 7544_ACEOF
c906108c
SS
7545
7546fi
7547
b7026657
AC
7548echo "$as_me:$LINENO: checking for off_t" >&5
7549echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7550if test "${ac_cv_type_off_t+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7552else
b7026657
AC
7553 cat >conftest.$ac_ext <<_ACEOF
7554/* confdefs.h. */
7555_ACEOF
7556cat confdefs.h >>conftest.$ac_ext
7557cat >>conftest.$ac_ext <<_ACEOF
7558/* end confdefs.h. */
7559$ac_includes_default
7560int
7561main ()
7562{
7563if ((off_t *) 0)
7564 return 0;
7565if (sizeof (off_t))
7566 return 0;
7567 ;
7568 return 0;
7569}
7570_ACEOF
7571rm -f conftest.$ac_objext
7572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573 (eval $ac_compile) 2>conftest.er1
7574 ac_status=$?
7575 grep -v '^ *+' conftest.er1 >conftest.err
7576 rm -f conftest.er1
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -z "$ac_c_werror_flag"
7581 || test ! -s conftest.err'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 (eval $ac_try) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; } &&
7587 { ac_try='test -s conftest.$ac_objext'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 (eval $ac_try) 2>&5
7590 ac_status=$?
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; }; then
c906108c
SS
7593 ac_cv_type_off_t=yes
7594else
b7026657
AC
7595 echo "$as_me: failed program was:" >&5
7596sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7597
b7026657
AC
7598ac_cv_type_off_t=no
7599fi
7600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7601fi
b7026657
AC
7602echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7603echo "${ECHO_T}$ac_cv_type_off_t" >&6
7604if test $ac_cv_type_off_t = yes; then
7605 :
7606else
7607
7608cat >>confdefs.h <<_ACEOF
c906108c 7609#define off_t long
b7026657 7610_ACEOF
c906108c
SS
7611
7612fi
7613
b7026657
AC
7614echo "$as_me:$LINENO: checking for pid_t" >&5
7615echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7616if test "${ac_cv_type_pid_t+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7618else
b7026657
AC
7619 cat >conftest.$ac_ext <<_ACEOF
7620/* confdefs.h. */
7621_ACEOF
7622cat confdefs.h >>conftest.$ac_ext
7623cat >>conftest.$ac_ext <<_ACEOF
7624/* end confdefs.h. */
7625$ac_includes_default
7626int
7627main ()
7628{
7629if ((pid_t *) 0)
7630 return 0;
7631if (sizeof (pid_t))
7632 return 0;
7633 ;
7634 return 0;
7635}
7636_ACEOF
7637rm -f conftest.$ac_objext
7638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
c906108c
SS
7659 ac_cv_type_pid_t=yes
7660else
b7026657
AC
7661 echo "$as_me: failed program was:" >&5
7662sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7663
b7026657
AC
7664ac_cv_type_pid_t=no
7665fi
7666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7667fi
b7026657
AC
7668echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7669echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7670if test $ac_cv_type_pid_t = yes; then
7671 :
7672else
7673
7674cat >>confdefs.h <<_ACEOF
c906108c 7675#define pid_t int
b7026657 7676_ACEOF
c906108c
SS
7677
7678fi
7679
b7026657
AC
7680echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7681echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7682if test "${ac_cv_type_signal+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7684else
b7026657
AC
7685 cat >conftest.$ac_ext <<_ACEOF
7686/* confdefs.h. */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
7690/* end confdefs.h. */
c906108c
SS
7691#include <sys/types.h>
7692#include <signal.h>
7693#ifdef signal
b7026657 7694# undef signal
c906108c
SS
7695#endif
7696#ifdef __cplusplus
7697extern "C" void (*signal (int, void (*)(int)))(int);
7698#else
7699void (*signal ()) ();
7700#endif
7701
b7026657
AC
7702int
7703main ()
7704{
c906108c 7705int i;
b7026657
AC
7706 ;
7707 return 0;
7708}
7709_ACEOF
7710rm -f conftest.$ac_objext
7711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7712 (eval $ac_compile) 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -z "$ac_c_werror_flag"
7720 || test ! -s conftest.err'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; } &&
7726 { ac_try='test -s conftest.$ac_objext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
c906108c
SS
7732 ac_cv_type_signal=void
7733else
b7026657
AC
7734 echo "$as_me: failed program was:" >&5
7735sed 's/^/| /' conftest.$ac_ext >&5
7736
7737ac_cv_type_signal=int
c906108c 7738fi
b7026657 7739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7740fi
b7026657
AC
7741echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7742echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 7743
b7026657 7744cat >>confdefs.h <<_ACEOF
c906108c 7745#define RETSIGTYPE $ac_cv_type_signal
b7026657 7746_ACEOF
c906108c
SS
7747
7748
b7026657
AC
7749echo "$as_me:$LINENO: checking for size_t" >&5
7750echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7751if test "${ac_cv_type_size_t+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7753else
b7026657
AC
7754 cat >conftest.$ac_ext <<_ACEOF
7755/* confdefs.h. */
7756_ACEOF
7757cat confdefs.h >>conftest.$ac_ext
7758cat >>conftest.$ac_ext <<_ACEOF
7759/* end confdefs.h. */
7760$ac_includes_default
7761int
7762main ()
7763{
7764if ((size_t *) 0)
7765 return 0;
7766if (sizeof (size_t))
7767 return 0;
7768 ;
7769 return 0;
7770}
7771_ACEOF
7772rm -f conftest.$ac_objext
7773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7774 (eval $ac_compile) 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -z "$ac_c_werror_flag"
7782 || test ! -s conftest.err'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; } &&
7788 { ac_try='test -s conftest.$ac_objext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
c906108c
SS
7794 ac_cv_type_size_t=yes
7795else
b7026657
AC
7796 echo "$as_me: failed program was:" >&5
7797sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7798
b7026657 7799ac_cv_type_size_t=no
c906108c 7800fi
b7026657
AC
7801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7802fi
7803echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7804echo "${ECHO_T}$ac_cv_type_size_t" >&6
7805if test $ac_cv_type_size_t = yes; then
7806 :
7807else
7808
7809cat >>confdefs.h <<_ACEOF
c906108c 7810#define size_t unsigned
b7026657 7811_ACEOF
c906108c
SS
7812
7813fi
7814
b7026657
AC
7815echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7816echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7817if test "${ac_cv_type_uid_t+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7819else
b7026657
AC
7820 cat >conftest.$ac_ext <<_ACEOF
7821/* confdefs.h. */
7822_ACEOF
7823cat confdefs.h >>conftest.$ac_ext
7824cat >>conftest.$ac_ext <<_ACEOF
7825/* end confdefs.h. */
c906108c 7826#include <sys/types.h>
b7026657
AC
7827
7828_ACEOF
c906108c 7829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 7830 $EGREP "uid_t" >/dev/null 2>&1; then
c906108c
SS
7831 ac_cv_type_uid_t=yes
7832else
c906108c
SS
7833 ac_cv_type_uid_t=no
7834fi
7835rm -f conftest*
7836
7837fi
b7026657
AC
7838echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7839echo "${ECHO_T}$ac_cv_type_uid_t" >&6
c906108c 7840if test $ac_cv_type_uid_t = no; then
b7026657
AC
7841
7842cat >>confdefs.h <<\_ACEOF
c906108c 7843#define uid_t int
b7026657
AC
7844_ACEOF
7845
c906108c 7846
b7026657 7847cat >>confdefs.h <<\_ACEOF
c906108c 7848#define gid_t int
b7026657 7849_ACEOF
c906108c
SS
7850
7851fi
7852
7853
b7026657
AC
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
c906108c
SS
7904for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
7905do
b7026657
AC
7906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7907echo "$as_me:$LINENO: checking for $ac_func" >&5
7908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7909if eval "test \"\${$as_ac_var+set}\" = set"; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 cat >conftest.$ac_ext <<_ACEOF
7913/* confdefs.h. */
7914_ACEOF
7915cat confdefs.h >>conftest.$ac_ext
7916cat >>conftest.$ac_ext <<_ACEOF
7917/* end confdefs.h. */
7918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7920#define $ac_func innocuous_$ac_func
7921
c906108c 7922/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
7923 which can conflict with char $ac_func (); below.
7924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7925 <limits.h> exists even on freestanding compilers. */
7926
7927#ifdef __STDC__
7928# include <limits.h>
7929#else
7930# include <assert.h>
7931#endif
c906108c 7932
b7026657 7933#undef $ac_func
c906108c 7934
b7026657
AC
7935/* Override any gcc2 internal prototype to avoid an error. */
7936#ifdef __cplusplus
7937extern "C"
7938{
7939#endif
7940/* We use char because int might match the return type of a gcc2
7941 builtin and then its argument prototype would still apply. */
7942char $ac_func ();
c906108c
SS
7943/* The GNU C library defines this for functions which it implements
7944 to always fail with ENOSYS. Some functions are actually named
7945 something starting with __ and the normal name is an alias. */
7946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7947choke me
7948#else
b7026657
AC
7949char (*f) () = $ac_func;
7950#endif
7951#ifdef __cplusplus
7952}
c906108c
SS
7953#endif
7954
b7026657
AC
7955int
7956main ()
7957{
7958return f != $ac_func;
7959 ;
7960 return 0;
7961}
7962_ACEOF
7963rm -f conftest.$ac_objext conftest$ac_exeext
7964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965 (eval $ac_link) 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -z "$ac_c_werror_flag"
7973 || test ! -s conftest.err'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 eval "$as_ac_var=yes"
7986else
7987 echo "$as_me: failed program was:" >&5
7988sed 's/^/| /' conftest.$ac_ext >&5
7989
7990eval "$as_ac_var=no"
7991fi
7992rm -f conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994fi
7995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7996echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7997if test `eval echo '${'$as_ac_var'}'` = yes; then
7998 cat >>confdefs.h <<_ACEOF
7999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8000_ACEOF
c906108c 8001
c906108c
SS
8002fi
8003done
8004
8005
b7026657
AC
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
c906108c 8025do
b7026657
AC
8026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8027if eval "test \"\${$as_ac_Header+set}\" = set"; then
8028 echo "$as_me:$LINENO: checking for $ac_header" >&5
8029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8030if eval "test \"\${$as_ac_Header+set}\" = set"; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032fi
8033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8035else
8036 # Is the header compilable?
8037echo "$as_me:$LINENO: checking $ac_header usability" >&5
8038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8039cat >conftest.$ac_ext <<_ACEOF
8040/* confdefs.h. */
8041_ACEOF
8042cat confdefs.h >>conftest.$ac_ext
8043cat >>conftest.$ac_ext <<_ACEOF
8044/* end confdefs.h. */
8045$ac_includes_default
8046#include <$ac_header>
8047_ACEOF
8048rm -f conftest.$ac_objext
8049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_header_compiler=yes
8071else
8072 echo "$as_me: failed program was:" >&5
8073sed 's/^/| /' conftest.$ac_ext >&5
8074
8075ac_header_compiler=no
8076fi
8077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8078echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8079echo "${ECHO_T}$ac_header_compiler" >&6
8080
8081# Is the header present?
8082echo "$as_me:$LINENO: checking $ac_header presence" >&5
8083echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8084cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h. */
8090#include <$ac_header>
8091_ACEOF
8092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } >/dev/null; then
8100 if test -s conftest.err; then
8101 ac_cpp_err=$ac_c_preproc_warn_flag
8102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8103 else
8104 ac_cpp_err=
8105 fi
8106else
8107 ac_cpp_err=yes
c906108c 8108fi
b7026657
AC
8109if test -z "$ac_cpp_err"; then
8110 ac_header_preproc=yes
8111else
8112 echo "$as_me: failed program was:" >&5
8113sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 ac_header_preproc=no
c906108c 8116fi
b7026657
AC
8117rm -f conftest.err conftest.$ac_ext
8118echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8119echo "${ECHO_T}$ac_header_preproc" >&6
8120
8121# So? What about this header?
8122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8123 yes:no: )
8124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8125echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8127echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8128 ac_header_preproc=yes
8129 ;;
8130 no:yes:* )
8131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8132echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8134echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8136echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8138echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8142echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8143 (
8144 cat <<\_ASBOX
8145## ------------------------------------------ ##
8146## Report this to the AC_PACKAGE_NAME lists. ##
8147## ------------------------------------------ ##
8148_ASBOX
8149 ) |
8150 sed "s/^/$as_me: WARNING: /" >&2
8151 ;;
8152esac
8153echo "$as_me:$LINENO: checking for $ac_header" >&5
8154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8155if eval "test \"\${$as_ac_Header+set}\" = set"; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8157else
b7026657
AC
8158 eval "$as_ac_Header=\$ac_header_preproc"
8159fi
8160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8162
8163fi
8164if test `eval echo '${'$as_ac_Header'}'` = yes; then
8165 cat >>confdefs.h <<_ACEOF
8166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8167_ACEOF
8168
c906108c 8169fi
b7026657 8170
c906108c
SS
8171done
8172
b7026657
AC
8173
8174
8175
8176
8177
c906108c 8178ac_header_dirent=no
b7026657
AC
8179for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8180 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8181echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8182echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8183if eval "test \"\${$as_ac_Header+set}\" = set"; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185else
8186 cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h. */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h. */
c906108c
SS
8192#include <sys/types.h>
8193#include <$ac_hdr>
b7026657
AC
8194
8195int
8196main ()
8197{
8198if ((DIR *) 0)
8199return 0;
8200 ;
8201 return 0;
8202}
8203_ACEOF
8204rm -f conftest.$ac_objext
8205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8206 (eval $ac_compile) 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag"
8214 || test ! -s conftest.err'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest.$ac_objext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 eval "$as_ac_Header=yes"
8227else
8228 echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
8231eval "$as_ac_Header=no"
8232fi
8233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8234fi
8235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8237if test `eval echo '${'$as_ac_Header'}'` = yes; then
8238 cat >>confdefs.h <<_ACEOF
8239#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8240_ACEOF
8241
8242ac_header_dirent=$ac_hdr; break
c906108c 8243fi
b7026657 8244
c906108c
SS
8245done
8246# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8247if test $ac_header_dirent = dirent.h; then
b7026657
AC
8248 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8249echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8250if test "${ac_cv_search_opendir+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252else
8253 ac_func_search_save_LIBS=$LIBS
8254ac_cv_search_opendir=no
8255cat >conftest.$ac_ext <<_ACEOF
8256/* confdefs.h. */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h. */
8261
c906108c 8262/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
8263#ifdef __cplusplus
8264extern "C"
8265#endif
c906108c 8266/* We use char because int might match the return type of a gcc2
b7026657
AC
8267 builtin and then its argument prototype would still apply. */
8268char opendir ();
8269int
8270main ()
8271{
8272opendir ();
8273 ;
8274 return 0;
8275}
8276_ACEOF
8277rm -f conftest.$ac_objext conftest$ac_exeext
8278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279 (eval $ac_link) 2>conftest.er1
8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -z "$ac_c_werror_flag"
8287 || test ! -s conftest.err'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest$ac_exeext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_cv_search_opendir="none required"
8300else
8301 echo "$as_me: failed program was:" >&5
8302sed 's/^/| /' conftest.$ac_ext >&5
8303
8304fi
8305rm -f conftest.err conftest.$ac_objext \
8306 conftest$ac_exeext conftest.$ac_ext
8307if test "$ac_cv_search_opendir" = no; then
8308 for ac_lib in dir; do
8309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8310 cat >conftest.$ac_ext <<_ACEOF
8311/* confdefs.h. */
8312_ACEOF
8313cat confdefs.h >>conftest.$ac_ext
8314cat >>conftest.$ac_ext <<_ACEOF
8315/* end confdefs.h. */
c906108c 8316
b7026657
AC
8317/* Override any gcc2 internal prototype to avoid an error. */
8318#ifdef __cplusplus
8319extern "C"
8320#endif
8321/* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8323char opendir ();
8324int
8325main ()
8326{
8327opendir ();
8328 ;
8329 return 0;
8330}
8331_ACEOF
8332rm -f conftest.$ac_objext conftest$ac_exeext
8333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag"
8342 || test ! -s conftest.err'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; } &&
8348 { ac_try='test -s conftest$ac_exeext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 ac_cv_search_opendir="-l$ac_lib"
8355break
8356else
8357 echo "$as_me: failed program was:" >&5
8358sed 's/^/| /' conftest.$ac_ext >&5
8359
8360fi
8361rm -f conftest.err conftest.$ac_objext \
8362 conftest$ac_exeext conftest.$ac_ext
8363 done
c906108c 8364fi
b7026657
AC
8365LIBS=$ac_func_search_save_LIBS
8366fi
8367echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8368echo "${ECHO_T}$ac_cv_search_opendir" >&6
8369if test "$ac_cv_search_opendir" != no; then
8370 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8371
c906108c
SS
8372fi
8373
8374else
b7026657
AC
8375 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8376echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8377if test "${ac_cv_search_opendir+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8379else
b7026657
AC
8380 ac_func_search_save_LIBS=$LIBS
8381ac_cv_search_opendir=no
8382cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h. */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h. */
8388
c906108c 8389/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
8390#ifdef __cplusplus
8391extern "C"
8392#endif
c906108c 8393/* We use char because int might match the return type of a gcc2
b7026657
AC
8394 builtin and then its argument prototype would still apply. */
8395char opendir ();
8396int
8397main ()
8398{
8399opendir ();
8400 ;
8401 return 0;
8402}
8403_ACEOF
8404rm -f conftest.$ac_objext conftest$ac_exeext
8405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406 (eval $ac_link) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest$ac_exeext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_search_opendir="none required"
8427else
8428 echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5
8430
8431fi
8432rm -f conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext conftest.$ac_ext
8434if test "$ac_cv_search_opendir" = no; then
8435 for ac_lib in x; do
8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8437 cat >conftest.$ac_ext <<_ACEOF
8438/* confdefs.h. */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h. */
c906108c 8443
b7026657
AC
8444/* Override any gcc2 internal prototype to avoid an error. */
8445#ifdef __cplusplus
8446extern "C"
8447#endif
8448/* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8450char opendir ();
8451int
8452main ()
8453{
8454opendir ();
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459rm -f conftest.$ac_objext conftest$ac_exeext
8460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag"
8469 || test ! -s conftest.err'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try='test -s conftest$ac_exeext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 (eval $ac_try) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 ac_cv_search_opendir="-l$ac_lib"
8482break
8483else
8484 echo "$as_me: failed program was:" >&5
8485sed 's/^/| /' conftest.$ac_ext >&5
8486
8487fi
8488rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8490 done
c906108c 8491fi
b7026657
AC
8492LIBS=$ac_func_search_save_LIBS
8493fi
8494echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8495echo "${ECHO_T}$ac_cv_search_opendir" >&6
8496if test "$ac_cv_search_opendir" != no; then
8497 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8498
c906108c
SS
8499fi
8500
8501fi
8502
8503
8504sim_termio=""
b7026657
AC
8505echo "$as_me:$LINENO: checking for struct termios" >&5
8506echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
8507if test "${ac_cv_termios_struct+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510 cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
c906108c
SS
8516#include <sys/types.h>
8517#include <sys/termios.h>
b7026657
AC
8518int
8519main ()
8520{
c906108c
SS
8521static struct termios x;
8522 x.c_iflag = 0;
8523 x.c_oflag = 0;
8524 x.c_cflag = 0;
8525 x.c_lflag = 0;
8526 x.c_cc[NCCS] = 0;
b7026657
AC
8527 ;
8528 return 0;
8529}
8530_ACEOF
8531rm -f conftest.$ac_objext
8532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8533 (eval $ac_compile) 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag"
8541 || test ! -s conftest.err'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; } &&
8547 { ac_try='test -s conftest.$ac_objext'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
c906108c
SS
8553 ac_cv_termios_struct=yes
8554else
b7026657
AC
8555 echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
8558ac_cv_termios_struct=no
c906108c 8559fi
b7026657 8560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
8561fi
8562
b7026657
AC
8563echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
8564echo "${ECHO_T}$ac_cv_termios_struct" >&6
c906108c
SS
8565if test $ac_cv_termios_struct = yes; then
8566 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
8567fi
8568
8569if test "$ac_cv_termios_struct" = "yes"; then
b7026657
AC
8570 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
8571echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
8572 if test "${ac_cv_termios_cline+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574else
8575 cat >conftest.$ac_ext <<_ACEOF
8576/* confdefs.h. */
8577_ACEOF
8578cat confdefs.h >>conftest.$ac_ext
8579cat >>conftest.$ac_ext <<_ACEOF
8580/* end confdefs.h. */
c906108c
SS
8581#include <sys/types.h>
8582#include <sys/termios.h>
b7026657
AC
8583int
8584main ()
8585{
c906108c 8586static struct termios x; x.c_line = 0;
b7026657
AC
8587 ;
8588 return 0;
8589}
8590_ACEOF
8591rm -f conftest.$ac_objext
8592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
c906108c
SS
8613 ac_cv_termios_cline=yes
8614else
b7026657
AC
8615 echo "$as_me: failed program was:" >&5
8616sed 's/^/| /' conftest.$ac_ext >&5
8617
8618ac_cv_termios_cline=no
c906108c 8619fi
b7026657 8620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
8621fi
8622
8623
b7026657
AC
8624 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
8625echo "${ECHO_T}$ac_cv_termios_cline" >&6
c906108c
SS
8626 if test $ac_cv_termios_cline = yes; then
8627 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
8628 fi
8629else
8630 ac_cv_termios_cline=no
8631fi
8632
8633if test "$ac_cv_termios_struct" != "yes"; then
b7026657
AC
8634 echo "$as_me:$LINENO: checking for struct termio" >&5
8635echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
8636 if test "${ac_cv_termio_struct+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
8639 cat >conftest.$ac_ext <<_ACEOF
8640/* confdefs.h. */
8641_ACEOF
8642cat confdefs.h >>conftest.$ac_ext
8643cat >>conftest.$ac_ext <<_ACEOF
8644/* end confdefs.h. */
c906108c
SS
8645#include <sys/types.h>
8646#include <sys/termio.h>
b7026657
AC
8647int
8648main ()
8649{
c906108c
SS
8650static struct termio x;
8651 x.c_iflag = 0;
8652 x.c_oflag = 0;
8653 x.c_cflag = 0;
8654 x.c_lflag = 0;
8655 x.c_cc[NCC] = 0;
b7026657
AC
8656 ;
8657 return 0;
8658}
8659_ACEOF
8660rm -f conftest.$ac_objext
8661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662 (eval $ac_compile) 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -z "$ac_c_werror_flag"
8670 || test ! -s conftest.err'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest.$ac_objext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
c906108c
SS
8682 ac_cv_termio_struct=yes
8683else
b7026657
AC
8684 echo "$as_me: failed program was:" >&5
8685sed 's/^/| /' conftest.$ac_ext >&5
8686
8687ac_cv_termio_struct=no
c906108c 8688fi
b7026657 8689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
8690fi
8691
b7026657
AC
8692 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
8693echo "${ECHO_T}$ac_cv_termio_struct" >&6
c906108c
SS
8694 if test $ac_cv_termio_struct = yes; then
8695 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
8696 fi
8697else
8698 ac_cv_termio_struct=no
8699fi
8700
8701if test "$ac_cv_termio_struct" = "yes"; then
b7026657
AC
8702 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
8703echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
8704 if test "${ac_cv_termio_cline+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706else
8707 cat >conftest.$ac_ext <<_ACEOF
8708/* confdefs.h. */
8709_ACEOF
8710cat confdefs.h >>conftest.$ac_ext
8711cat >>conftest.$ac_ext <<_ACEOF
8712/* end confdefs.h. */
c906108c
SS
8713#include <sys/types.h>
8714#include <sys/termio.h>
b7026657
AC
8715int
8716main ()
8717{
c906108c 8718static struct termio x; x.c_line = 0;
b7026657
AC
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723rm -f conftest.$ac_objext
8724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725 (eval $ac_compile) 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -z "$ac_c_werror_flag"
8733 || test ! -s conftest.err'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 (eval $ac_try) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest.$ac_objext'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 (eval $ac_try) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
c906108c
SS
8745 ac_cv_termio_cline=yes
8746else
b7026657
AC
8747 echo "$as_me: failed program was:" >&5
8748sed 's/^/| /' conftest.$ac_ext >&5
8749
8750ac_cv_termio_cline=no
c906108c 8751fi
b7026657 8752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
8753fi
8754
8755
b7026657
AC
8756 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
8757echo "${ECHO_T}$ac_cv_termio_cline" >&6
c906108c
SS
8758 if test $ac_cv_termio_cline = yes; then
8759 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
8760 fi
8761else
8762 ac_cv_termio_cline=no
8763fi
8764
b7026657
AC
8765echo "$as_me:$LINENO: checking for struct statfs" >&5
8766echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
8767if test "${ac_cv_struct_statfs+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
1f362c96 8769else
b7026657
AC
8770 cat >conftest.$ac_ext <<_ACEOF
8771/* confdefs.h. */
8772_ACEOF
8773cat confdefs.h >>conftest.$ac_ext
8774cat >>conftest.$ac_ext <<_ACEOF
8775/* end confdefs.h. */
1f362c96
AC
8776#include <sys/types.h>
8777#ifdef HAVE_SYS_PARAM_H
8778#include <sys/param.h>
8779#endif
8780#ifdef HAVE_SYS_MOUNT_H
8781#include <sys/mount.h>
8782#endif
8783#ifdef HAVE_SYS_VFS_H
8784#include <sys/vfs.h>
8785#endif
8786#ifdef HAVE_SYS_STATFS_H
8787#include <sys/statfs.h>
8788#endif
b7026657
AC
8789int
8790main ()
8791{
1f362c96 8792static struct statfs s;
b7026657
AC
8793 ;
8794 return 0;
8795}
8796_ACEOF
8797rm -f conftest.$ac_objext
8798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8799 (eval $ac_compile) 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -z "$ac_c_werror_flag"
8807 || test ! -s conftest.err'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try='test -s conftest.$ac_objext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
1f362c96
AC
8819 ac_cv_struct_statfs=yes
8820else
b7026657
AC
8821 echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
8824ac_cv_struct_statfs=no
1f362c96 8825fi
b7026657 8826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1f362c96
AC
8827fi
8828
b7026657
AC
8829echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
8830echo "${ECHO_T}$ac_cv_struct_statfs" >&6
1f362c96 8831if test $ac_cv_struct_statfs = yes; then
b7026657
AC
8832
8833cat >>confdefs.h <<\_ACEOF
1f362c96 8834#define HAVE_STRUCT_STATFS 1
b7026657 8835_ACEOF
1f362c96
AC
8836
8837fi
8838
c906108c 8839sim_devzero=""
b7026657
AC
8840echo "$as_me:$LINENO: checking for /dev/zero" >&5
8841echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
8842if test "${ac_cv_devzero+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
8844else
8845 if test "$cross_compiling" = yes; then
8846 ac_cv_devzero=no
8847else
b7026657
AC
8848 cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h. */
c906108c
SS
8854#include <fcntl.h>
8855main () {
8856 char buf[2048];
8857 int i;
8858 int fd = open ("/dev/zero", O_RDONLY);
8859 if (fd < 0)
8860 return 1;
8861 for (i = 0; i < sizeof (buf); i++)
8862 buf[i] = 1;
8863 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
8864 return 1;
8865 for (i = 0; i < sizeof (buf); i++)
8866 if (buf[i])
8867 return 1;
8868 return 0;
8869}
b7026657
AC
8870_ACEOF
8871rm -f conftest$ac_exeext
8872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8873 (eval $ac_link) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
c906108c
SS
8882 ac_cv_devzero=yes
8883else
b7026657
AC
8884 echo "$as_me: program exited with status $ac_status" >&5
8885echo "$as_me: failed program was:" >&5
8886sed 's/^/| /' conftest.$ac_ext >&5
8887
8888( exit $ac_status )
8889ac_cv_devzero=no
c906108c 8890fi
b7026657 8891rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8892fi
c906108c
SS
8893fi
8894
b7026657
AC
8895echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
8896echo "${ECHO_T}$ac_cv_devzero" >&6
c906108c
SS
8897if test $ac_cv_devzero = yes; then
8898 sim_devzero="-DHAVE_DEVZERO"
8899else
8900 sim_devzero=""
8901fi
8902
b7026657
AC
8903echo "$as_me:$LINENO: checking for common simulator directory" >&5
8904echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
c906108c 8905if test -f "${srcdir}/../common/callback.c"; then
b7026657
AC
8906 echo "$as_me:$LINENO: result: yes" >&5
8907echo "${ECHO_T}yes" >&6
c906108c
SS
8908 sim_callback="callback.o targ-map.o"
8909 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
8910else
b7026657
AC
8911 echo "$as_me:$LINENO: result: no" >&5
8912echo "${ECHO_T}no" >&6
c906108c
SS
8913 sim_callback=""
8914 sim_targ_vals=""
8915fi
8916
b7026657
AC
8917echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
8918echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
d29d5195 8919if test -f "${srcdir}/../common/sim-fpu.c"; then
b7026657
AC
8920 echo "$as_me:$LINENO: result: yes" >&5
8921echo "${ECHO_T}yes" >&6
3e5e53f9 8922 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
3a11ea24 8923 sim_fpu="sim-fpu.o"
d29d5195 8924else
b7026657
AC
8925 echo "$as_me:$LINENO: result: no" >&5
8926echo "${ECHO_T}no" >&6
d29d5195 8927 sim_fpu_cflags=
b7026657 8928 sim_fpu=
c906108c 8929fi
cd0fc7c3 8930
c906108c
SS
8931
8932
8933
8934
8935
8936AR=${AR-ar}
8937
b7026657
AC
8938if test -n "$ac_tool_prefix"; then
8939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8940set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8941echo "$as_me:$LINENO: checking for $ac_word" >&5
8942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8943if test "${ac_cv_prog_RANLIB+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
8945else
8946 if test -n "$RANLIB"; then
8947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8948else
b7026657
AC
8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $PATH
8951do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8959 fi
8960done
8961done
8962
c906108c
SS
8963fi
8964fi
b7026657 8965RANLIB=$ac_cv_prog_RANLIB
c906108c 8966if test -n "$RANLIB"; then
b7026657
AC
8967 echo "$as_me:$LINENO: result: $RANLIB" >&5
8968echo "${ECHO_T}$RANLIB" >&6
8969else
8970 echo "$as_me:$LINENO: result: no" >&5
8971echo "${ECHO_T}no" >&6
8972fi
8973
8974fi
8975if test -z "$ac_cv_prog_RANLIB"; then
8976 ac_ct_RANLIB=$RANLIB
8977 # Extract the first word of "ranlib", so it can be a program name with args.
8978set dummy ranlib; ac_word=$2
8979echo "$as_me:$LINENO: checking for $ac_word" >&5
8980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8981if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983else
8984 if test -n "$ac_ct_RANLIB"; then
8985 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994 ac_cv_prog_ac_ct_RANLIB="ranlib"
8995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 break 2
8997 fi
8998done
8999done
9000
9001 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9002fi
9003fi
9004ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9005if test -n "$ac_ct_RANLIB"; then
9006 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9007echo "${ECHO_T}$ac_ct_RANLIB" >&6
9008else
9009 echo "$as_me:$LINENO: result: no" >&5
9010echo "${ECHO_T}no" >&6
9011fi
9012
9013 RANLIB=$ac_ct_RANLIB
c906108c 9014else
b7026657 9015 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
9016fi
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
d29d5195
MG
9058
9059
c906108c
SS
9060
9061
9062
b7026657
AC
9063 ac_config_files="$ac_config_files Makefile"
9064 ac_config_commands="$ac_config_commands default"
9065cat >confcache <<\_ACEOF
c906108c
SS
9066# This file is a shell script that caches the results of configure
9067# tests run on this system so they can be shared between configure
b7026657
AC
9068# scripts and configure runs, see configure's option --config-cache.
9069# It is not useful on other systems. If it contains results you don't
9070# want to keep, you may remove or edit it.
c906108c 9071#
b7026657
AC
9072# config.status only pays attention to the cache file if you give it
9073# the --recheck option to rerun configure.
c906108c 9074#
b7026657
AC
9075# `ac_cv_env_foo' variables (set or unset) will be overridden when
9076# loading this file, other *unset* `ac_cv_foo' will be assigned the
9077# following values.
9078
9079_ACEOF
9080
c906108c
SS
9081# The following way of writing the cache mishandles newlines in values,
9082# but we know of no workaround that is simple, portable, and efficient.
9083# So, don't put newlines in cache variables' values.
9084# Ultrix sh set writes to stderr and can't be redirected directly,
9085# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
9086{
9087 (set) 2>&1 |
9088 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9089 *ac_space=\ *)
9090 # `set' does not quote correctly, so add quotes (double-quote
9091 # substitution turns \\\\ into \\, and sed turns \\ into \).
9092 sed -n \
9093 "s/'/'\\\\''/g;
9094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9095 ;;
9096 *)
9097 # `set' quotes correctly as required by POSIX, so do not add quotes.
9098 sed -n \
9099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9100 ;;
9101 esac;
9102} |
9103 sed '
9104 t clear
9105 : clear
9106 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9107 t end
9108 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9109 : end' >>confcache
9110if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 9111 if test -w $cache_file; then
b7026657
AC
9112 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9113 cat confcache >$cache_file
c906108c
SS
9114 else
9115 echo "not updating unwritable cache $cache_file"
9116 fi
9117fi
9118rm -f confcache
9119
c906108c
SS
9120test "x$prefix" = xNONE && prefix=$ac_default_prefix
9121# Let make expand exec_prefix.
9122test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9123
b7026657
AC
9124# VPATH may cause trouble with some makes, so we remove $(srcdir),
9125# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9126# trailing colons and then remove the whole line if VPATH becomes empty
9127# (actually we leave an empty line to preserve line numbers).
c906108c 9128if test "x$srcdir" = x.; then
b7026657
AC
9129 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9130s/:*\$(srcdir):*/:/;
9131s/:*\${srcdir}:*/:/;
9132s/:*@srcdir@:*/:/;
9133s/^\([^=]*=[ ]*\):*/\1/;
9134s/:*$//;
9135s/^[^=]*=[ ]*$//;
9136}'
c906108c
SS
9137fi
9138
c906108c
SS
9139DEFS=-DHAVE_CONFIG_H
9140
b7026657
AC
9141ac_libobjs=
9142ac_ltlibobjs=
9143for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9144 # 1. Remove the extension, and $U if already installed.
9145 ac_i=`echo "$ac_i" |
9146 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9147 # 2. Add them.
9148 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9149 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9150done
9151LIBOBJS=$ac_libobjs
c906108c 9152
b7026657
AC
9153LTLIBOBJS=$ac_ltlibobjs
9154
9155
9156
9157: ${CONFIG_STATUS=./config.status}
9158ac_clean_files_save=$ac_clean_files
9159ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9160{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9161echo "$as_me: creating $CONFIG_STATUS" >&6;}
9162cat >$CONFIG_STATUS <<_ACEOF
9163#! $SHELL
9164# Generated by $as_me.
c906108c 9165# Run this file to recreate the current configuration.
c906108c 9166# Compiler output produced by configure, useful for debugging
b7026657 9167# configure, is in config.log if it exists.
c906108c 9168
b7026657
AC
9169debug=false
9170ac_cs_recheck=false
9171ac_cs_silent=false
9172SHELL=\${CONFIG_SHELL-$SHELL}
9173_ACEOF
9174
9175cat >>$CONFIG_STATUS <<\_ACEOF
9176## --------------------- ##
9177## M4sh Initialization. ##
9178## --------------------- ##
9179
9180# Be Bourne compatible
9181if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9182 emulate sh
9183 NULLCMD=:
9184 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9185 # is contrary to our usage. Disable this feature.
9186 alias -g '${1+"$@"}'='"$@"'
9187elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9188 set -o posix
9189fi
9190DUALCASE=1; export DUALCASE # for MKS sh
9191
9192# Support unset when possible.
9193if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9194 as_unset=unset
9195else
9196 as_unset=false
9197fi
9198
9199
9200# Work around bugs in pre-3.0 UWIN ksh.
9201$as_unset ENV MAIL MAILPATH
9202PS1='$ '
9203PS2='> '
9204PS4='+ '
9205
9206# NLS nuisances.
9207for as_var in \
9208 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9209 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9210 LC_TELEPHONE LC_TIME
c906108c 9211do
b7026657
AC
9212 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9213 eval $as_var=C; export $as_var
9214 else
9215 $as_unset $as_var
9216 fi
c906108c
SS
9217done
9218
b7026657
AC
9219# Required to use basename.
9220if expr a : '\(a\)' >/dev/null 2>&1; then
9221 as_expr=expr
9222else
9223 as_expr=false
9224fi
c906108c 9225
b7026657
AC
9226if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9227 as_basename=basename
9228else
9229 as_basename=false
9230fi
c906108c 9231
c906108c 9232
b7026657
AC
9233# Name of the executable.
9234as_me=`$as_basename "$0" ||
9235$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9236 X"$0" : 'X\(//\)$' \| \
9237 X"$0" : 'X\(/\)$' \| \
9238 . : '\(.\)' 2>/dev/null ||
9239echo X/"$0" |
9240 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9241 /^X\/\(\/\/\)$/{ s//\1/; q; }
9242 /^X\/\(\/\).*/{ s//\1/; q; }
9243 s/.*/./; q'`
9244
9245
9246# PATH needs CR, and LINENO needs CR and PATH.
9247# Avoid depending upon Character Ranges.
9248as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9249as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9250as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9251as_cr_digits='0123456789'
9252as_cr_alnum=$as_cr_Letters$as_cr_digits
9253
9254# The user is always right.
9255if test "${PATH_SEPARATOR+set}" != set; then
9256 echo "#! /bin/sh" >conf$$.sh
9257 echo "exit 0" >>conf$$.sh
9258 chmod +x conf$$.sh
9259 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9260 PATH_SEPARATOR=';'
c906108c 9261 else
b7026657
AC
9262 PATH_SEPARATOR=:
9263 fi
9264 rm -f conf$$.sh
9265fi
9266
9267
9268 as_lineno_1=$LINENO
9269 as_lineno_2=$LINENO
9270 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9271 test "x$as_lineno_1" != "x$as_lineno_2" &&
9272 test "x$as_lineno_3" = "x$as_lineno_2" || {
9273 # Find who we are. Look in the path if we contain no path at all
9274 # relative or not.
9275 case $0 in
9276 *[\\/]* ) as_myself=$0 ;;
9277 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278for as_dir in $PATH
9279do
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
9282 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9283done
9284
9285 ;;
9286 esac
9287 # We did not find ourselves, most probably we were run as `sh COMMAND'
9288 # in which case we are not to be found in the path.
9289 if test "x$as_myself" = x; then
9290 as_myself=$0
c906108c 9291 fi
b7026657
AC
9292 if test ! -f "$as_myself"; then
9293 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9294echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9295 { (exit 1); exit 1; }; }
9296 fi
9297 case $CONFIG_SHELL in
9298 '')
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9301do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for as_base in sh bash ksh sh5; do
9305 case $as_dir in
9306 /*)
9307 if ("$as_dir/$as_base" -c '
9308 as_lineno_1=$LINENO
9309 as_lineno_2=$LINENO
9310 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9311 test "x$as_lineno_1" != "x$as_lineno_2" &&
9312 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9313 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9314 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9315 CONFIG_SHELL=$as_dir/$as_base
9316 export CONFIG_SHELL
9317 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9318 fi;;
9319 esac
9320 done
9321done
9322;;
9323 esac
9324
9325 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9326 # uniformly replaced by the line number. The first 'sed' inserts a
9327 # line-number line before each line; the second 'sed' does the real
9328 # work. The second script uses 'N' to pair each line-number line
9329 # with the numbered line, and appends trailing '-' during
9330 # substitution so that $LINENO is not a special case at line end.
9331 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9332 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9333 sed '=' <$as_myself |
9334 sed '
9335 N
9336 s,$,-,
9337 : loop
9338 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9339 t loop
9340 s,-$,,
9341 s,^['$as_cr_digits']*\n,,
9342 ' >$as_me.lineno &&
9343 chmod +x $as_me.lineno ||
9344 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9345echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9346 { (exit 1); exit 1; }; }
9347
9348 # Don't try to exec as it changes $[0], causing all sort of problems
9349 # (the dirname of $[0] is not the place where we might find the
9350 # original and so on. Autoconf is especially sensible to this).
9351 . ./$as_me.lineno
9352 # Exit status is that of the last command.
9353 exit
9354}
9355
9356
9357case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9358 *c*,-n*) ECHO_N= ECHO_C='
9359' ECHO_T=' ' ;;
9360 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9361 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9362esac
9363
9364if expr a : '\(a\)' >/dev/null 2>&1; then
9365 as_expr=expr
9366else
9367 as_expr=false
9368fi
9369
9370rm -f conf$$ conf$$.exe conf$$.file
9371echo >conf$$.file
9372if ln -s conf$$.file conf$$ 2>/dev/null; then
9373 # We could just check for DJGPP; but this test a) works b) is more generic
9374 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9375 if test -f conf$$.exe; then
9376 # Don't use ln at all; we don't have any links
9377 as_ln_s='cp -p'
c906108c 9378 else
b7026657 9379 as_ln_s='ln -s'
c906108c 9380 fi
b7026657
AC
9381elif ln conf$$.file conf$$ 2>/dev/null; then
9382 as_ln_s=ln
9383else
9384 as_ln_s='cp -p'
9385fi
9386rm -f conf$$ conf$$.exe conf$$.file
9387
9388if mkdir -p . 2>/dev/null; then
9389 as_mkdir_p=:
9390else
9391 test -d ./-p && rmdir ./-p
9392 as_mkdir_p=false
9393fi
9394
9395as_executable_p="test -f"
9396
9397# Sed expression to map a string onto a valid CPP name.
9398as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9399
9400# Sed expression to map a string onto a valid variable name.
9401as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9402
9403
9404# IFS
9405# We need space, tab and new line, in precisely that order.
9406as_nl='
9407'
9408IFS=" $as_nl"
9409
9410# CDPATH.
9411$as_unset CDPATH
9412
9413exec 6>&1
9414
9415# Open the log real soon, to keep \$[0] and so on meaningful, and to
9416# report actual input values of CONFIG_FILES etc. instead of their
9417# values after options handling. Logging --version etc. is OK.
9418exec 5>>config.log
9419{
9420 echo
9421 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9422## Running $as_me. ##
9423_ASBOX
9424} >&5
9425cat >&5 <<_CSEOF
9426
9427This file was extended by $as_me, which was
9428generated by GNU Autoconf 2.59. Invocation command line was
9429
9430 CONFIG_FILES = $CONFIG_FILES
9431 CONFIG_HEADERS = $CONFIG_HEADERS
9432 CONFIG_LINKS = $CONFIG_LINKS
9433 CONFIG_COMMANDS = $CONFIG_COMMANDS
9434 $ $0 $@
9435
9436_CSEOF
9437echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9438echo >&5
9439_ACEOF
9440
9441# Files that config.status was made for.
9442if test -n "$ac_config_files"; then
9443 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9444fi
9445
9446if test -n "$ac_config_headers"; then
9447 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9448fi
9449
9450if test -n "$ac_config_links"; then
9451 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9452fi
9453
9454if test -n "$ac_config_commands"; then
9455 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9456fi
9457
9458cat >>$CONFIG_STATUS <<\_ACEOF
9459
9460ac_cs_usage="\
9461\`$as_me' instantiates files from templates according to the
9462current configuration.
9463
9464Usage: $0 [OPTIONS] [FILE]...
9465
9466 -h, --help print this help, then exit
9467 -V, --version print version number, then exit
9468 -q, --quiet do not print progress messages
9469 -d, --debug don't remove temporary files
9470 --recheck update $as_me by reconfiguring in the same conditions
9471 --file=FILE[:TEMPLATE]
9472 instantiate the configuration file FILE
9473 --header=FILE[:TEMPLATE]
9474 instantiate the configuration header FILE
9475
9476Configuration files:
9477$config_files
9478
9479Configuration headers:
9480$config_headers
9481
9482Configuration commands:
9483$config_commands
9484
9485Report bugs to <bug-autoconf@gnu.org>."
9486_ACEOF
9487
9488cat >>$CONFIG_STATUS <<_ACEOF
9489ac_cs_version="\\
9490config.status
9491configured by $0, generated by GNU Autoconf 2.59,
9492 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9493
9494Copyright (C) 2003 Free Software Foundation, Inc.
9495This config.status script is free software; the Free Software Foundation
9496gives unlimited permission to copy, distribute and modify it."
9497srcdir=$srcdir
9498INSTALL="$INSTALL"
9499_ACEOF
9500
9501cat >>$CONFIG_STATUS <<\_ACEOF
9502# If no file are specified by the user, then we need to provide default
9503# value. By we need to know if files were specified by the user.
9504ac_need_defaults=:
9505while test $# != 0
9506do
9507 case $1 in
9508 --*=*)
9509 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9510 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9511 ac_shift=:
9512 ;;
9513 -*)
9514 ac_option=$1
9515 ac_optarg=$2
9516 ac_shift=shift
9517 ;;
9518 *) # This is not an option, so the user has probably given explicit
9519 # arguments.
9520 ac_option=$1
9521 ac_need_defaults=false;;
9522 esac
9523
9524 case $ac_option in
9525 # Handling of the options.
9526_ACEOF
9527cat >>$CONFIG_STATUS <<\_ACEOF
9528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9529 ac_cs_recheck=: ;;
9530 --version | --vers* | -V )
9531 echo "$ac_cs_version"; exit 0 ;;
9532 --he | --h)
9533 # Conflict between --help and --header
9534 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9535Try \`$0 --help' for more information." >&5
9536echo "$as_me: error: ambiguous option: $1
9537Try \`$0 --help' for more information." >&2;}
9538 { (exit 1); exit 1; }; };;
9539 --help | --hel | -h )
9540 echo "$ac_cs_usage"; exit 0 ;;
9541 --debug | --d* | -d )
9542 debug=: ;;
9543 --file | --fil | --fi | --f )
9544 $ac_shift
9545 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9546 ac_need_defaults=false;;
9547 --header | --heade | --head | --hea )
9548 $ac_shift
9549 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9550 ac_need_defaults=false;;
9551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9552 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9553 ac_cs_silent=: ;;
9554
9555 # This is an error.
9556 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9557Try \`$0 --help' for more information." >&5
9558echo "$as_me: error: unrecognized option: $1
9559Try \`$0 --help' for more information." >&2;}
9560 { (exit 1); exit 1; }; } ;;
9561
9562 *) ac_config_targets="$ac_config_targets $1" ;;
9563
9564 esac
9565 shift
c906108c 9566done
b7026657
AC
9567
9568ac_configure_extra_args=
9569
9570if $ac_cs_silent; then
9571 exec 6>/dev/null
9572 ac_configure_extra_args="$ac_configure_extra_args --silent"
9573fi
9574
9575_ACEOF
9576cat >>$CONFIG_STATUS <<_ACEOF
9577if \$ac_cs_recheck; then
9578 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9579 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
c906108c 9580fi
c906108c 9581
b7026657 9582_ACEOF
c906108c 9583
b7026657
AC
9584
9585
9586
9587
9588cat >>$CONFIG_STATUS <<\_ACEOF
9589for ac_config_target in $ac_config_targets
9590do
9591 case "$ac_config_target" in
9592 # Handling of arguments.
9593 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9594 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9595 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9597echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9598 { (exit 1); exit 1; }; };;
c906108c 9599 esac
b7026657 9600done
c906108c 9601
b7026657
AC
9602# If the user did not use the arguments to specify the items to instantiate,
9603# then the envvar interface is used. Set only those that are not.
9604# We use the long form for the default assignment because of an extremely
9605# bizarre bug on SunOS 4.1.3.
9606if $ac_need_defaults; then
9607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9608 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9609 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9610fi
9611
9612# Have a temporary directory for convenience. Make it in the build tree
9613# simply because there is no reason to put it here, and in addition,
9614# creating and moving files from /tmp can sometimes cause problems.
9615# Create a temporary directory, and hook for its removal unless debugging.
9616$debug ||
9617{
9618 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9619 trap '{ (exit 1); exit 1; }' 1 2 13 15
9620}
c906108c 9621
b7026657
AC
9622# Create a (secure) tmp directory for tmp files.
9623
9624{
9625 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9626 test -n "$tmp" && test -d "$tmp"
9627} ||
9628{
9629 tmp=./confstat$$-$RANDOM
9630 (umask 077 && mkdir $tmp)
9631} ||
9632{
9633 echo "$me: cannot create a temporary directory in ." >&2
9634 { (exit 1); exit 1; }
9635}
9636
9637_ACEOF
9638
9639cat >>$CONFIG_STATUS <<_ACEOF
9640
9641#
9642# CONFIG_FILES section.
9643#
9644
9645# No need to generate the scripts if there are no CONFIG_FILES.
9646# This happens for instance when ./config.status config.h
9647if test -n "\$CONFIG_FILES"; then
9648 # Protect against being on the right side of a sed subst in config.status.
9649 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9650 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9651s,@sim_environment@,$sim_environment,;t t
9652s,@sim_alignment@,$sim_alignment,;t t
9653s,@sim_assert@,$sim_assert,;t t
9654s,@sim_bitsize@,$sim_bitsize,;t t
9655s,@sim_endian@,$sim_endian,;t t
9656s,@sim_hostendian@,$sim_hostendian,;t t
9657s,@sim_float@,$sim_float,;t t
9658s,@sim_scache@,$sim_scache,;t t
9659s,@sim_default_model@,$sim_default_model,;t t
9660s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9661s,@sim_hw_objs@,$sim_hw_objs,;t t
9662s,@sim_hw@,$sim_hw,;t t
9663s,@sim_inline@,$sim_inline,;t t
9664s,@sim_packages@,$sim_packages,;t t
9665s,@sim_regparm@,$sim_regparm,;t t
9666s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9667s,@sim_smp@,$sim_smp,;t t
9668s,@sim_stdcall@,$sim_stdcall,;t t
9669s,@sim_xor_endian@,$sim_xor_endian,;t t
9670s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9671s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9672s,@SHELL@,$SHELL,;t t
9673s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9674s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9675s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9676s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9677s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9678s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9679s,@exec_prefix@,$exec_prefix,;t t
9680s,@prefix@,$prefix,;t t
9681s,@program_transform_name@,$program_transform_name,;t t
9682s,@bindir@,$bindir,;t t
9683s,@sbindir@,$sbindir,;t t
9684s,@libexecdir@,$libexecdir,;t t
9685s,@datadir@,$datadir,;t t
9686s,@sysconfdir@,$sysconfdir,;t t
9687s,@sharedstatedir@,$sharedstatedir,;t t
9688s,@localstatedir@,$localstatedir,;t t
9689s,@libdir@,$libdir,;t t
9690s,@includedir@,$includedir,;t t
9691s,@oldincludedir@,$oldincludedir,;t t
9692s,@infodir@,$infodir,;t t
9693s,@mandir@,$mandir,;t t
9694s,@build_alias@,$build_alias,;t t
9695s,@host_alias@,$host_alias,;t t
9696s,@target_alias@,$target_alias,;t t
9697s,@DEFS@,$DEFS,;t t
9698s,@ECHO_C@,$ECHO_C,;t t
9699s,@ECHO_N@,$ECHO_N,;t t
9700s,@ECHO_T@,$ECHO_T,;t t
9701s,@LIBS@,$LIBS,;t t
9702s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9703s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9704s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9705s,@CC@,$CC,;t t
9706s,@CFLAGS@,$CFLAGS,;t t
9707s,@LDFLAGS@,$LDFLAGS,;t t
9708s,@CPPFLAGS@,$CPPFLAGS,;t t
9709s,@ac_ct_CC@,$ac_ct_CC,;t t
9710s,@EXEEXT@,$EXEEXT,;t t
9711s,@OBJEXT@,$OBJEXT,;t t
9712s,@SET_MAKE@,$SET_MAKE,;t t
9713s,@RANLIB@,$RANLIB,;t t
9714s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9715s,@CPP@,$CPP,;t t
9716s,@EGREP@,$EGREP,;t t
9717s,@ALLOCA@,$ALLOCA,;t t
9718s,@USE_NLS@,$USE_NLS,;t t
9719s,@MSGFMT@,$MSGFMT,;t t
9720s,@GMSGFMT@,$GMSGFMT,;t t
9721s,@XGETTEXT@,$XGETTEXT,;t t
9722s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9723s,@CATALOGS@,$CATALOGS,;t t
9724s,@CATOBJEXT@,$CATOBJEXT,;t t
9725s,@DATADIRNAME@,$DATADIRNAME,;t t
9726s,@GMOFILES@,$GMOFILES,;t t
9727s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9728s,@INTLDEPS@,$INTLDEPS,;t t
9729s,@INTLLIBS@,$INTLLIBS,;t t
9730s,@INTLOBJS@,$INTLOBJS,;t t
9731s,@POFILES@,$POFILES,;t t
9732s,@POSUB@,$POSUB,;t t
9733s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9734s,@GT_NO@,$GT_NO,;t t
9735s,@GT_YES@,$GT_YES,;t t
9736s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9737s,@l@,$l,;t t
9738s,@build@,$build,;t t
9739s,@build_cpu@,$build_cpu,;t t
9740s,@build_vendor@,$build_vendor,;t t
9741s,@build_os@,$build_os,;t t
9742s,@host@,$host,;t t
9743s,@host_cpu@,$host_cpu,;t t
9744s,@host_vendor@,$host_vendor,;t t
9745s,@host_os@,$host_os,;t t
9746s,@target@,$target,;t t
9747s,@target_cpu@,$target_cpu,;t t
9748s,@target_vendor@,$target_vendor,;t t
9749s,@target_os@,$target_os,;t t
9750s,@LIBOBJS@,$LIBOBJS,;t t
9751s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9752s,@HDEFINES@,$HDEFINES,;t t
9753s,@AR@,$AR,;t t
9754s,@sim_cflags@,$sim_cflags,;t t
9755s,@sim_warnings@,$sim_warnings,;t t
9756s,@sim_line_nr@,$sim_line_nr,;t t
9757s,@sim_config@,$sim_config,;t t
9758s,@sim_opcode@,$sim_opcode,;t t
9759s,@sim_switch@,$sim_switch,;t t
9760s,@sim_dup@,$sim_dup,;t t
9761s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
9762s,@sim_jump@,$sim_jump,;t t
9763s,@sim_filter@,$sim_filter,;t t
9764s,@sim_icache@,$sim_icache,;t t
9765s,@sim_hw_src@,$sim_hw_src,;t t
9766s,@sim_hw_obj@,$sim_hw_obj,;t t
9767s,@sim_pk_src@,$sim_pk_src,;t t
9768s,@sim_pk_obj@,$sim_pk_obj,;t t
9769s,@sim_bswap@,$sim_bswap,;t t
9770s,@sim_igen_smp@,$sim_igen_smp,;t t
9771s,@sim_hostbitsize@,$sim_hostbitsize,;t t
9772s,@sim_env@,$sim_env,;t t
9773s,@sim_timebase@,$sim_timebase,;t t
9774s,@sim_trace@,$sim_trace,;t t
9775s,@sim_reserved@,$sim_reserved,;t t
9776s,@sim_monitor@,$sim_monitor,;t t
9777s,@sim_model@,$sim_model,;t t
9778s,@sim_model_issue@,$sim_model_issue,;t t
9779s,@sim_stdio@,$sim_stdio,;t t
9780s,@sim_termio@,$sim_termio,;t t
9781s,@sim_devzero@,$sim_devzero,;t t
9782s,@sim_callback@,$sim_callback,;t t
9783s,@sim_targ_vals@,$sim_targ_vals,;t t
9784s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
9785s,@sim_fpu@,$sim_fpu,;t t
9786s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9787CEOF
9788
9789_ACEOF
9790
9791 cat >>$CONFIG_STATUS <<\_ACEOF
9792 # Split the substitutions into bite-sized pieces for seds with
9793 # small command number limits, like on Digital OSF/1 and HP-UX.
9794 ac_max_sed_lines=48
9795 ac_sed_frag=1 # Number of current file.
9796 ac_beg=1 # First line for current file.
9797 ac_end=$ac_max_sed_lines # Line after last line for current file.
9798 ac_more_lines=:
9799 ac_sed_cmds=
9800 while $ac_more_lines; do
9801 if test $ac_beg -gt 1; then
9802 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9803 else
9804 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9805 fi
9806 if test ! -s $tmp/subs.frag; then
9807 ac_more_lines=false
9808 else
9809 # The purpose of the label and of the branching condition is to
9810 # speed up the sed processing (if there are no `@' at all, there
9811 # is no need to browse any of the substitutions).
9812 # These are the two extra sed commands mentioned above.
9813 (echo ':t
9814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9815 if test -z "$ac_sed_cmds"; then
9816 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9817 else
9818 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9819 fi
9820 ac_sed_frag=`expr $ac_sed_frag + 1`
9821 ac_beg=$ac_end
9822 ac_end=`expr $ac_end + $ac_max_sed_lines`
9823 fi
9824 done
9825 if test -z "$ac_sed_cmds"; then
9826 ac_sed_cmds=cat
c906108c 9827 fi
b7026657 9828fi # test -n "$CONFIG_FILES"
c906108c 9829
b7026657
AC
9830_ACEOF
9831cat >>$CONFIG_STATUS <<\_ACEOF
9832for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9834 case $ac_file in
9835 - | *:- | *:-:* ) # input from stdin
9836 cat >$tmp/stdin
9837 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9839 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9841 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
9842 esac
9843
b7026657
AC
9844 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9845 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9846$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9847 X"$ac_file" : 'X\(//\)[^/]' \| \
9848 X"$ac_file" : 'X\(//\)$' \| \
9849 X"$ac_file" : 'X\(/\)' \| \
9850 . : '\(.\)' 2>/dev/null ||
9851echo X"$ac_file" |
9852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9854 /^X\(\/\/\)$/{ s//\1/; q; }
9855 /^X\(\/\).*/{ s//\1/; q; }
9856 s/.*/./; q'`
9857 { if $as_mkdir_p; then
9858 mkdir -p "$ac_dir"
9859 else
9860 as_dir="$ac_dir"
9861 as_dirs=
9862 while test ! -d "$as_dir"; do
9863 as_dirs="$as_dir $as_dirs"
9864 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9865$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9866 X"$as_dir" : 'X\(//\)[^/]' \| \
9867 X"$as_dir" : 'X\(//\)$' \| \
9868 X"$as_dir" : 'X\(/\)' \| \
9869 . : '\(.\)' 2>/dev/null ||
9870echo X"$as_dir" |
9871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9873 /^X\(\/\/\)$/{ s//\1/; q; }
9874 /^X\(\/\).*/{ s//\1/; q; }
9875 s/.*/./; q'`
9876 done
9877 test ! -n "$as_dirs" || mkdir $as_dirs
9878 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9879echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9880 { (exit 1); exit 1; }; }; }
9881
9882 ac_builddir=.
9883
9884if test "$ac_dir" != .; then
9885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9886 # A "../" for each directory in $ac_dir_suffix.
9887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9888else
9889 ac_dir_suffix= ac_top_builddir=
9890fi
c906108c 9891
b7026657
AC
9892case $srcdir in
9893 .) # No --srcdir option. We are building in place.
9894 ac_srcdir=.
9895 if test -z "$ac_top_builddir"; then
9896 ac_top_srcdir=.
9897 else
9898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9899 fi ;;
9900 [\\/]* | ?:[\\/]* ) # Absolute path.
9901 ac_srcdir=$srcdir$ac_dir_suffix;
9902 ac_top_srcdir=$srcdir ;;
9903 *) # Relative path.
9904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9906esac
9907
9908# Do not use `cd foo && pwd` to compute absolute paths, because
9909# the directories may not exist.
9910case `pwd` in
9911.) ac_abs_builddir="$ac_dir";;
9912*)
9913 case "$ac_dir" in
9914 .) ac_abs_builddir=`pwd`;;
9915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9917 esac;;
9918esac
9919case $ac_abs_builddir in
9920.) ac_abs_top_builddir=${ac_top_builddir}.;;
9921*)
9922 case ${ac_top_builddir}. in
9923 .) ac_abs_top_builddir=$ac_abs_builddir;;
9924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9926 esac;;
9927esac
9928case $ac_abs_builddir in
9929.) ac_abs_srcdir=$ac_srcdir;;
9930*)
9931 case $ac_srcdir in
9932 .) ac_abs_srcdir=$ac_abs_builddir;;
9933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9935 esac;;
9936esac
9937case $ac_abs_builddir in
9938.) ac_abs_top_srcdir=$ac_top_srcdir;;
9939*)
9940 case $ac_top_srcdir in
9941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9944 esac;;
9945esac
9946
9947
9948 case $INSTALL in
9949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9950 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
9951 esac
9952
b7026657
AC
9953 if test x"$ac_file" != x-; then
9954 { echo "$as_me:$LINENO: creating $ac_file" >&5
9955echo "$as_me: creating $ac_file" >&6;}
9956 rm -f "$ac_file"
9957 fi
9958 # Let's still pretend it is `configure' which instantiates (i.e., don't
9959 # use $as_me), people would be surprised to read:
9960 # /* config.h. Generated by config.status. */
9961 if test x"$ac_file" = x-; then
9962 configure_input=
9963 else
9964 configure_input="$ac_file. "
9965 fi
9966 configure_input=$configure_input"Generated from `echo $ac_file_in |
9967 sed 's,.*/,,'` by configure."
9968
9969 # First look for the input files in the build tree, otherwise in the
9970 # src tree.
9971 ac_file_inputs=`IFS=:
9972 for f in $ac_file_in; do
9973 case $f in
9974 -) echo $tmp/stdin ;;
9975 [\\/$]*)
9976 # Absolute (can't be DOS-style, as IFS=:)
9977 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9978echo "$as_me: error: cannot find input file: $f" >&2;}
9979 { (exit 1); exit 1; }; }
9980 echo "$f";;
9981 *) # Relative
9982 if test -f "$f"; then
9983 # Build tree
9984 echo "$f"
9985 elif test -f "$srcdir/$f"; then
9986 # Source tree
9987 echo "$srcdir/$f"
9988 else
9989 # /dev/null tree
9990 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9991echo "$as_me: error: cannot find input file: $f" >&2;}
9992 { (exit 1); exit 1; }; }
9993 fi;;
9994 esac
9995 done` || { (exit 1); exit 1; }
9996_ACEOF
9997cat >>$CONFIG_STATUS <<_ACEOF
9998 sed "$ac_vpsub
9999$extrasub
10000_ACEOF
10001cat >>$CONFIG_STATUS <<\_ACEOF
10002:t
10003/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10004s,@configure_input@,$configure_input,;t t
10005s,@srcdir@,$ac_srcdir,;t t
10006s,@abs_srcdir@,$ac_abs_srcdir,;t t
10007s,@top_srcdir@,$ac_top_srcdir,;t t
10008s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10009s,@builddir@,$ac_builddir,;t t
10010s,@abs_builddir@,$ac_abs_builddir,;t t
10011s,@top_builddir@,$ac_top_builddir,;t t
10012s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10013s,@INSTALL@,$ac_INSTALL,;t t
10014" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10015 rm -f $tmp/stdin
10016 if test x"$ac_file" != x-; then
10017 mv $tmp/out $ac_file
10018 else
10019 cat $tmp/out
10020 rm -f $tmp/out
10021 fi
10022
10023done
10024_ACEOF
10025cat >>$CONFIG_STATUS <<\_ACEOF
10026
10027#
10028# CONFIG_HEADER section.
10029#
c906108c
SS
10030
10031# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10032# NAME is the cpp macro being defined and VALUE is the value it is being given.
10033#
10034# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
10035ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10036ac_dB='[ ].*$,\1#\2'
10037ac_dC=' '
10038ac_dD=',;t'
10039# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10040ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10041ac_uB='$,\1#\2define\3'
c906108c 10042ac_uC=' '
b7026657
AC
10043ac_uD=',;t'
10044
10045for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 10046 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
10047 case $ac_file in
10048 - | *:- | *:-:* ) # input from stdin
10049 cat >$tmp/stdin
10050 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10051 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10052 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10053 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10054 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
10055 esac
10056
b7026657
AC
10057 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10058echo "$as_me: creating $ac_file" >&6;}
10059
10060 # First look for the input files in the build tree, otherwise in the
10061 # src tree.
10062 ac_file_inputs=`IFS=:
10063 for f in $ac_file_in; do
10064 case $f in
10065 -) echo $tmp/stdin ;;
10066 [\\/$]*)
10067 # Absolute (can't be DOS-style, as IFS=:)
10068 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10069echo "$as_me: error: cannot find input file: $f" >&2;}
10070 { (exit 1); exit 1; }; }
10071 # Do quote $f, to prevent DOS paths from being IFS'd.
10072 echo "$f";;
10073 *) # Relative
10074 if test -f "$f"; then
10075 # Build tree
10076 echo "$f"
10077 elif test -f "$srcdir/$f"; then
10078 # Source tree
10079 echo "$srcdir/$f"
10080 else
10081 # /dev/null tree
10082 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10083echo "$as_me: error: cannot find input file: $f" >&2;}
10084 { (exit 1); exit 1; }; }
10085 fi;;
10086 esac
10087 done` || { (exit 1); exit 1; }
10088 # Remove the trailing spaces.
10089 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10090
10091_ACEOF
10092
10093# Transform confdefs.h into two sed scripts, `conftest.defines' and
10094# `conftest.undefs', that substitutes the proper values into
10095# config.h.in to produce config.h. The first handles `#define'
10096# templates, and the second `#undef' templates.
10097# And first: Protect against being on the right side of a sed subst in
10098# config.status. Protect against being in an unquoted here document
10099# in config.status.
10100rm -f conftest.defines conftest.undefs
10101# Using a here document instead of a string reduces the quoting nightmare.
10102# Putting comments in sed scripts is not portable.
10103#
10104# `end' is used to avoid that the second main sed command (meant for
10105# 0-ary CPP macros) applies to n-ary macro definitions.
10106# See the Autoconf documentation for `clear'.
10107cat >confdef2sed.sed <<\_ACEOF
10108s/[\\&,]/\\&/g
10109s,[\\$`],\\&,g
10110t clear
10111: clear
10112s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10113t end
10114s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10115: end
10116_ACEOF
10117# If some macros were called several times there might be several times
10118# the same #defines, which is useless. Nevertheless, we may not want to
10119# sort them, since we want the *last* AC-DEFINE to be honored.
10120uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10121sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10122rm -f confdef2sed.sed
c906108c
SS
10123
10124# This sed command replaces #undef with comments. This is necessary, for
10125# example, in the case of _POSIX_SOURCE, which is predefined and required
10126# on some systems where configure will not decide to define it.
b7026657
AC
10127cat >>conftest.undefs <<\_ACEOF
10128s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10129_ACEOF
10130
10131# Break up conftest.defines because some shells have a limit on the size
10132# of here documents, and old seds have small limits too (100 cmds).
10133echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10134echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10135echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10136echo ' :' >>$CONFIG_STATUS
10137rm -f conftest.tail
10138while grep . conftest.defines >/dev/null
10139do
10140 # Write a limited-size here document to $tmp/defines.sed.
10141 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10142 # Speed up: don't consider the non `#define' lines.
10143 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10144 # Work around the forget-to-reset-the-flag bug.
10145 echo 't clr' >>$CONFIG_STATUS
10146 echo ': clr' >>$CONFIG_STATUS
10147 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10148 echo 'CEOF
10149 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10150 rm -f $tmp/in
10151 mv $tmp/out $tmp/in
10152' >>$CONFIG_STATUS
10153 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10154 rm -f conftest.defines
10155 mv conftest.tail conftest.defines
10156done
10157rm -f conftest.defines
10158echo ' fi # grep' >>$CONFIG_STATUS
10159echo >>$CONFIG_STATUS
c906108c 10160
b7026657
AC
10161# Break up conftest.undefs because some shells have a limit on the size
10162# of here documents, and old seds have small limits too (100 cmds).
10163echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 10164rm -f conftest.tail
b7026657 10165while grep . conftest.undefs >/dev/null
c906108c 10166do
b7026657
AC
10167 # Write a limited-size here document to $tmp/undefs.sed.
10168 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10169 # Speed up: don't consider the non `#undef'
10170 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10171 # Work around the forget-to-reset-the-flag bug.
10172 echo 't clr' >>$CONFIG_STATUS
10173 echo ': clr' >>$CONFIG_STATUS
10174 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 10175 echo 'CEOF
b7026657
AC
10176 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10177 rm -f $tmp/in
10178 mv $tmp/out $tmp/in
10179' >>$CONFIG_STATUS
10180 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10181 rm -f conftest.undefs
10182 mv conftest.tail conftest.undefs
c906108c 10183done
b7026657
AC
10184rm -f conftest.undefs
10185
10186cat >>$CONFIG_STATUS <<\_ACEOF
10187 # Let's still pretend it is `configure' which instantiates (i.e., don't
10188 # use $as_me), people would be surprised to read:
10189 # /* config.h. Generated by config.status. */
10190 if test x"$ac_file" = x-; then
10191 echo "/* Generated by configure. */" >$tmp/config.h
10192 else
10193 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10194 fi
10195 cat $tmp/in >>$tmp/config.h
10196 rm -f $tmp/in
10197 if test x"$ac_file" != x-; then
10198 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10199 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10200echo "$as_me: $ac_file is unchanged" >&6;}
10201 else
10202 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10203$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10204 X"$ac_file" : 'X\(//\)[^/]' \| \
10205 X"$ac_file" : 'X\(//\)$' \| \
10206 X"$ac_file" : 'X\(/\)' \| \
10207 . : '\(.\)' 2>/dev/null ||
10208echo X"$ac_file" |
10209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10211 /^X\(\/\/\)$/{ s//\1/; q; }
10212 /^X\(\/\).*/{ s//\1/; q; }
10213 s/.*/./; q'`
10214 { if $as_mkdir_p; then
10215 mkdir -p "$ac_dir"
c906108c 10216 else
b7026657
AC
10217 as_dir="$ac_dir"
10218 as_dirs=
10219 while test ! -d "$as_dir"; do
10220 as_dirs="$as_dir $as_dirs"
10221 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10222$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10223 X"$as_dir" : 'X\(//\)[^/]' \| \
10224 X"$as_dir" : 'X\(//\)$' \| \
10225 X"$as_dir" : 'X\(/\)' \| \
10226 . : '\(.\)' 2>/dev/null ||
10227echo X"$as_dir" |
10228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10230 /^X\(\/\/\)$/{ s//\1/; q; }
10231 /^X\(\/\).*/{ s//\1/; q; }
10232 s/.*/./; q'`
10233 done
10234 test ! -n "$as_dirs" || mkdir $as_dirs
10235 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10236echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10237 { (exit 1); exit 1; }; }; }
10238
10239 rm -f $ac_file
10240 mv $tmp/config.h $ac_file
c906108c 10241 fi
b7026657
AC
10242 else
10243 cat $tmp/config.h
10244 rm -f $tmp/config.h
c906108c 10245 fi
b7026657
AC
10246done
10247_ACEOF
10248cat >>$CONFIG_STATUS <<\_ACEOF
10249
10250#
10251# CONFIG_COMMANDS section.
10252#
10253for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10254 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10255 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10256 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10257$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10258 X"$ac_dest" : 'X\(//\)[^/]' \| \
10259 X"$ac_dest" : 'X\(//\)$' \| \
10260 X"$ac_dest" : 'X\(/\)' \| \
10261 . : '\(.\)' 2>/dev/null ||
10262echo X"$ac_dest" |
10263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10265 /^X\(\/\/\)$/{ s//\1/; q; }
10266 /^X\(\/\).*/{ s//\1/; q; }
10267 s/.*/./; q'`
10268 { if $as_mkdir_p; then
10269 mkdir -p "$ac_dir"
10270 else
10271 as_dir="$ac_dir"
10272 as_dirs=
10273 while test ! -d "$as_dir"; do
10274 as_dirs="$as_dir $as_dirs"
10275 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10276$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10277 X"$as_dir" : 'X\(//\)[^/]' \| \
10278 X"$as_dir" : 'X\(//\)$' \| \
10279 X"$as_dir" : 'X\(/\)' \| \
10280 . : '\(.\)' 2>/dev/null ||
10281echo X"$as_dir" |
10282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10284 /^X\(\/\/\)$/{ s//\1/; q; }
10285 /^X\(\/\).*/{ s//\1/; q; }
10286 s/.*/./; q'`
10287 done
10288 test ! -n "$as_dirs" || mkdir $as_dirs
10289 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10290echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10291 { (exit 1); exit 1; }; }; }
10292
10293 ac_builddir=.
10294
10295if test "$ac_dir" != .; then
10296 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10297 # A "../" for each directory in $ac_dir_suffix.
10298 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10299else
10300 ac_dir_suffix= ac_top_builddir=
10301fi
10302
10303case $srcdir in
10304 .) # No --srcdir option. We are building in place.
10305 ac_srcdir=.
10306 if test -z "$ac_top_builddir"; then
10307 ac_top_srcdir=.
10308 else
10309 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10310 fi ;;
10311 [\\/]* | ?:[\\/]* ) # Absolute path.
10312 ac_srcdir=$srcdir$ac_dir_suffix;
10313 ac_top_srcdir=$srcdir ;;
10314 *) # Relative path.
10315 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10316 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10317esac
10318
10319# Do not use `cd foo && pwd` to compute absolute paths, because
10320# the directories may not exist.
10321case `pwd` in
10322.) ac_abs_builddir="$ac_dir";;
10323*)
10324 case "$ac_dir" in
10325 .) ac_abs_builddir=`pwd`;;
10326 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10327 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10328 esac;;
10329esac
10330case $ac_abs_builddir in
10331.) ac_abs_top_builddir=${ac_top_builddir}.;;
10332*)
10333 case ${ac_top_builddir}. in
10334 .) ac_abs_top_builddir=$ac_abs_builddir;;
10335 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10336 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10337 esac;;
10338esac
10339case $ac_abs_builddir in
10340.) ac_abs_srcdir=$ac_srcdir;;
10341*)
10342 case $ac_srcdir in
10343 .) ac_abs_srcdir=$ac_abs_builddir;;
10344 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10345 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10346 esac;;
10347esac
10348case $ac_abs_builddir in
10349.) ac_abs_top_srcdir=$ac_top_srcdir;;
10350*)
10351 case $ac_top_srcdir in
10352 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10353 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10354 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10355 esac;;
10356esac
10357
c906108c 10358
b7026657
AC
10359 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10360echo "$as_me: executing $ac_dest commands" >&6;}
10361 case $ac_dest in
10362 default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
10363 esac
10364done
10365_ACEOF
c906108c 10366
b7026657
AC
10367cat >>$CONFIG_STATUS <<\_ACEOF
10368
10369{ (exit 0); exit 0; }
10370_ACEOF
c906108c 10371chmod +x $CONFIG_STATUS
b7026657
AC
10372ac_clean_files=$ac_clean_files_save
10373
10374
10375# configure is writing to config.log, and then calls config.status.
10376# config.status does its own redirection, appending to config.log.
10377# Unfortunately, on DOS this fails, as config.log is still kept open
10378# by configure, so config.status won't be able to write to it; its
10379# output is simply discarded. So we exec the FD to /dev/null,
10380# effectively closing config.log, so it can be properly (re)opened and
10381# appended to by config.status. When coming back to configure, we
10382# need to make the FD available again.
10383if test "$no_create" != yes; then
10384 ac_cs_success=:
10385 ac_config_status_args=
10386 test "$silent" = yes &&
10387 ac_config_status_args="$ac_config_status_args --quiet"
10388 exec 5>/dev/null
10389 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10390 exec 5>>config.log
10391 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10392 # would make configure fail if this is the last instruction.
10393 $ac_cs_success || { (exit 1); exit 1; }
10394fi
c906108c 10395
This page took 1.06439 seconds and 4 git commands to generate.