]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/frv/configure
Minor fixes in sim, gold, gdb for Autoconf 2.64, Automake 1.11.
[thirdparty/binutils-gdb.git] / sim / frv / configure
CommitLineData
b34f6357 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## --------------------- ##
b34f6357 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
b34f6357 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
b34f6357
DB
30
31
b7026657
AC
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
b34f6357 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
b34f6357 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
b34f6357 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
b34f6357
DB
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'`
b34f6357
DB
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
b34f6357 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
b34f6357
DB
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
b34f6357 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
b34f6357 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}
b34f6357
DB
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
b34f6357 193
b7026657
AC
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
b34f6357 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
b34f6357 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
b34f6357 224
b7026657 225as_executable_p="test -f"
b34f6357 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'"
b34f6357 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'"
b34f6357
DB
232
233
b7026657
AC
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
b34f6357 239
b7026657
AC
240# CDPATH.
241$as_unset CDPATH
b34f6357
DB
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`
b34f6357 248
b7026657 249exec 6>&1
b34f6357 250
b34f6357 251#
b7026657 252# Initializations.
b34f6357 253#
b7026657
AC
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
b34f6357 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"
b34f6357 311
6efef468 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI CGEN_MAINT cgendir cgen sim_trapdump cgen_breaks LIBOBJS LTLIBOBJS'
b7026657 313ac_subst_files=''
b34f6357
DB
314
315# Initialize some variables set by options.
b7026657
AC
316ac_init_help=
317ac_init_version=false
b34f6357
DB
318# The variables have the same names as the options, with
319# dashes changed to underlines.
b7026657 320cache_file=/dev/null
b34f6357 321exec_prefix=NONE
b34f6357 322no_create=
b34f6357
DB
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
b34f6357 330srcdir=
b34f6357
DB
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.
b34f6357
DB
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
b34f6357
DB
353ac_prev=
354for ac_option
355do
b34f6357
DB
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[^=]*=\(.*\)'`
b34f6357
DB
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
b7026657 367 case $ac_option in
b34f6357
DB
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 372 bindir=$ac_optarg ;;
b34f6357
DB
373
374 -build | --build | --buil | --bui | --bu)
b7026657 375 ac_prev=build_alias ;;
b34f6357 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 377 build_alias=$ac_optarg ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
394
395 -disable-* | --disable-*)
b7026657 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b34f6357 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" ;;
b34f6357
DB
403
404 -enable-* | --enable-*)
b7026657 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b34f6357 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"`;;
b34f6357
DB
413 *) ac_optarg=yes ;;
414 esac
b7026657 415 eval "enable_$ac_feature='$ac_optarg'" ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
436
437 -host | --host | --hos | --ho)
b7026657 438 ac_prev=host_alias ;;
b34f6357 439 -host=* | --host=* | --hos=* | --ho=*)
b7026657 440 host_alias=$ac_optarg ;;
b34f6357
DB
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 ;;
b34f6357
DB
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 452 infodir=$ac_optarg ;;
b34f6357
DB
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 457 libdir=$ac_optarg ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
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)
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357
DB
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
b7026657 561 site=$ac_optarg ;;
b34f6357
DB
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 566 srcdir=$ac_optarg ;;
b34f6357
DB
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 ;;
b34f6357
DB
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 576 ac_prev=target_alias ;;
b34f6357 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 578 target_alias=$ac_optarg ;;
b34f6357
DB
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=: ;;
b34f6357
DB
585
586 -with-* | --with-*)
b7026657 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b34f6357 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; }; }
b34f6357 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"`;;
b34f6357
DB
595 *) ac_optarg=yes ;;
596 esac
b7026657 597 eval "with_$ac_package='$ac_optarg'" ;;
b34f6357
DB
598
599 -without-* | --without-*)
b7026657 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b34f6357 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" ;;
b34f6357
DB
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 ;;
b34f6357
DB
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 ;;
b34f6357 625
b7026657
AC
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
b34f6357
DB
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
b34f6357 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}
b34f6357
DB
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; }; }
b34f6357 656fi
b34f6357 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
b34f6357 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
b34f6357 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; }; };;
b34f6357
DB
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
b34f6357 698
b7026657
AC
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
b34f6357 703
b34f6357
DB
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'`
b34f6357
DB
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; }; }
b34f6357 732 else
b7026657
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
b34f6357
DB
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
d6416cdc 753ac_pwd=`pwd`
b7026657
AC
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
b34f6357 774
b7026657
AC
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
b34f6357 783
b7026657 784Usage: $0 [OPTION]... [VAR=VALUE]...
b34f6357 785
b7026657
AC
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
b34f6357 788
b7026657 789Defaults for the options are specified in brackets.
b34f6357 790
b7026657
AC
791Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804 cat <<_ACEOF
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
b34f6357 810
b7026657
AC
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
b34f6357 815
b7026657
AC
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831_ACEOF
832
833 cat <<\_ACEOF
834
835Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 --target=TARGET configure for building compilers for TARGET [HOST]
844_ACEOF
b34f6357 845fi
b7026657
AC
846
847if test -n "$ac_init_help"; then
848
849 cat <<\_ACEOF
850
851Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-endian=endian Specify target byte endian orientation.
862 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify host byte endian orientation.
864 --enable-sim-scache=size Specify simulator execution cache size.
865 --enable-sim-default-model=model Specify default model to simulate.
866 --enable-sim-environment=environment Specify mixed, user, virtual or operating environment.
867 --enable-cgen-maint=DIR build cgen generated files
868 --enable-sim-trapdump Make unknown traps dump the registers
869
6efef468
JM
870Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
874 --with-bugurl=URL Direct users to URL to report a bug
875
b7026657
AC
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
b34f6357
DB
889fi
890
b7026657
AC
891if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
b34f6357 897
b7026657
AC
898if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
b34f6357 902else
b7026657 903 ac_dir_suffix= ac_top_builddir=
b34f6357
DB
904fi
905
b7026657
AC
906case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920esac
921
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959esac
960
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
976 cd $ac_popdir
977 done
b34f6357 978fi
b7026657
AC
979
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982 cat <<\_ACEOF
983
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988 exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
994
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032done
1033
1034} >&5
1035
1036cat >&5 <<_ACEOF
1037
1038
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
1042
1043_ACEOF
1044
1045
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log. We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114{
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127}
1128 echo
1129
1130 cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229done
1230
1231if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290done
1291if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
35695fd6
AC
1323 ac_config_headers="$ac_config_headers config.h:config.in"
1324
1325
1326# This file contains common code used by all simulators.
1327#
1328# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1329# directory. It is intended to be invoked before any target specific stuff.
1330# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1331# It is intended to be invoked last.
1332#
1333# The simulator's configure.in should look like:
1334#
1335# dnl Process this file with autoconf to produce a configure script.
1336# sinclude(../common/aclocal.m4)
1337# AC_PREREQ(2.5)dnl
1338# AC_INIT(Makefile.in)
1339#
1340# SIM_AC_COMMON
1341#
1342# ... target specific stuff ...
1343#
1344# SIM_AC_OUTPUT
1345
d6416cdc
RW
1346# Include global overrides and fixes for Autoconf.
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377# _AC_OUTPUT_SUBDIRS
1378# ------------------
1379# This is a subroutine of AC_OUTPUT, but it does not go into
1380# config.status, rather, it is called after running config.status.
1381# _AC_OUTPUT_SUBDIRS
1382
1383
1384
1385
1386# _AC_ARG_VAR_VALIDATE
1387# --------------------
1388# The code is the same as autoconf 2.59, but with a more lenient check
1389# on precious variables and an output of pwd that have been added in
1390# autoconf 2.62.
1391# _AC_ARG_VAR_VALIDATE
1392
1393
1394
1395
1396# AC_MSG_FAILURE(ERROR, [EXIT-STATUS = 1])
1397# ----------------------------------------
1398# This is the same code as in 2.59 and 2.61, except it also outputs pwd.
1399
1400
1401
1402
1403
1404
1405
1406
1407
35695fd6
AC
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455sim_inline="-DDEFAULT_INLINE=0"
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
20e95c23 1492# intl sister-directory configuration rules.
35695fd6 1493#
35695fd6 1494
20e95c23
DJ
1495# The idea behind this macro is that there's no need to repeat all the
1496# autoconf probes done by the intl directory - it's already done them
1497# for us. In fact, there's no need even to look at the cache for the
1498# answers. All we need to do is nab a few pieces of information.
1499# The intl directory is set up to make this easy, by generating a
1500# small file which can be sourced as a shell script; then we produce
1501# the necessary substitutions and definitions for this directory.
35695fd6
AC
1502
1503
6efef468
JM
1504
1505# Autoconf M4 include file defining utility macros for complex Canadian
1506# cross builds.
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516####
1517# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1518# or AC_INIT.
1519# These demand that AC_CANONICAL_SYSTEM be called beforehand.
1520
1521####
1522# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1523# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1524
1525
1526####
1527# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1528# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1529
1530
1531
1532# Backported from Autoconf 2.5x; can go away when and if
1533# we switch. Put the OS path separator in $PATH_SEPARATOR.
1534
1535
1536
1537
1538# ACX_HAVE_GCC_FOR_TARGET
1539# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1540
1541
1542# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1543# Searching for installed target binutils. We need to take extra care,
1544# else we may find the wrong assembler, linker, etc., and lose.
1545#
1546# First try --with-build-time-tools, if specified.
1547#
1548# For build != host, we ask the installed GCC for the name of the tool it
1549# uses, and accept it if it is an absolute path. This is because the
1550# only good choice for a compiler is the same GCC version that is being
1551# installed (or we couldn't make target libraries), and we assume that
1552# on the host system we'll have not only the same GCC version, but also
1553# the same binutils version.
1554#
1555# For build == host, search the same directories that the installed
1556# compiler will search. We used to do this for the assembler, linker,
1557# and nm only; for simplicity of configuration, however, we extend this
1558# criterion to tools (such as ar and ranlib) that are never invoked by
1559# the compiler, to avoid mismatches.
1560#
1561# Also note we have to check MD_EXEC_PREFIX before checking the user's path
1562# if build == target. This makes the most sense only when bootstrapping,
1563# but we also do so when build != host. In this case, we hope that the
1564# build and host systems will have similar contents of MD_EXEC_PREFIX.
1565#
1566# If we do not find a suitable binary, then try the user's path.
1567
1568
1569###
1570# AC_PROG_CPP_WERROR
1571# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1572# triggers warnings from the preprocessor. Will be in autoconf 2.58.
1573# For now, using this also overrides header checks to use only the
1574# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1575# bit harder from here).
1576# Eventually autoconf will default to checking headers with the compiler
1577# instead, and we'll have to do this differently.
1578
1579# AC_PROG_CPP_WERROR
1580
1581# Test for GNAT.
1582# We require the gnatbind program, and a compiler driver that
1583# understands Ada. We use the user's CC setting, already found,
1584# and possibly add $1 to the command-line parameters.
1585#
1586# Sets the shell variable have_gnat to yes or no as appropriate, and
1587# substitutes GNATBIND and GNATMAKE.
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
35695fd6
AC
1608
1609
1610
1611
b7026657 1612
35695fd6
AC
1613# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1614# it by inlining the macro's contents.
f0569246
AC
1615# This file contains common code used by all simulators.
1616#
1617# common.m4 invokes AC macros used by all simulators and by the common
1618# directory. It is intended to be included before any target specific
1619# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1620# the Makefile. It is intended to be invoked last.
1621#
1622# The simulator's configure.in should look like:
1623#
1624# dnl Process this file with autoconf to produce a configure script.
1625# AC_PREREQ(2.5)dnl
1626# AC_INIT(Makefile.in)
35695fd6 1627# AC_CONFIG_HEADER(config.h:config.in)
f0569246 1628#
35695fd6 1629# sinclude(../common/aclocal.m4)
f0569246
AC
1630# sinclude(../common/common.m4)
1631#
1632# ... target specific stuff ...
1633
38f48d72
AC
1634ac_aux_dir=
1635for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1636 if test -f $ac_dir/install-sh; then
1637 ac_aux_dir=$ac_dir
1638 ac_install_sh="$ac_aux_dir/install-sh -c"
1639 break
1640 elif test -f $ac_dir/install.sh; then
1641 ac_aux_dir=$ac_dir
1642 ac_install_sh="$ac_aux_dir/install.sh -c"
1643 break
1644 elif test -f $ac_dir/shtool; then
1645 ac_aux_dir=$ac_dir
1646 ac_install_sh="$ac_aux_dir/shtool install -c"
1647 break
1648 fi
1649done
1650if test -z "$ac_aux_dir"; then
1651 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1652echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1653 { (exit 1); exit 1; }; }
1654fi
1655ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1656ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1657ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1658
b7026657
AC
1659# Make sure we can run config.sub.
1660$ac_config_sub sun4 >/dev/null 2>&1 ||
1661 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1662echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1663 { (exit 1); exit 1; }; }
1664
1665echo "$as_me:$LINENO: checking build system type" >&5
1666echo $ECHO_N "checking build system type... $ECHO_C" >&6
1667if test "${ac_cv_build+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670 ac_cv_build_alias=$build_alias
1671test -z "$ac_cv_build_alias" &&
1672 ac_cv_build_alias=`$ac_config_guess`
1673test -z "$ac_cv_build_alias" &&
1674 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1675echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1676 { (exit 1); exit 1; }; }
1677ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1678 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1679echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1680 { (exit 1); exit 1; }; }
1681
1682fi
1683echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1684echo "${ECHO_T}$ac_cv_build" >&6
1685build=$ac_cv_build
1686build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691echo "$as_me:$LINENO: checking host system type" >&5
1692echo $ECHO_N "checking host system type... $ECHO_C" >&6
1693if test "${ac_cv_host+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695else
1696 ac_cv_host_alias=$host_alias
1697test -z "$ac_cv_host_alias" &&
1698 ac_cv_host_alias=$ac_cv_build_alias
1699ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1700 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1701echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1702 { (exit 1); exit 1; }; }
1703
1704fi
1705echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1706echo "${ECHO_T}$ac_cv_host" >&6
1707host=$ac_cv_host
1708host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1709host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1710host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711
1712
f0569246
AC
1713echo "$as_me:$LINENO: checking target system type" >&5
1714echo $ECHO_N "checking target system type... $ECHO_C" >&6
1715if test "${ac_cv_target+set}" = set; then
b7026657
AC
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
f0569246
AC
1718 ac_cv_target_alias=$target_alias
1719test "x$ac_cv_target_alias" = "x" &&
1720 ac_cv_target_alias=$ac_cv_host_alias
1721ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1722 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1723echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1724 { (exit 1); exit 1; }; }
1725
1726fi
1727echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1728echo "${ECHO_T}$ac_cv_target" >&6
1729target=$ac_cv_target
1730target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1731target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1732target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1733
1734
1735# The aliases save the names the user supplied, while $host etc.
1736# will get canonicalized.
1737test -n "$target_alias" &&
1738 test "$program_prefix$program_suffix$program_transform_name" = \
1739 NONENONEs,x,x, &&
1740 program_prefix=${target_alias}-
1741test "$program_prefix" != NONE &&
1742 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1743# Use a double $ so make ignores it.
1744test "$program_suffix" != NONE &&
1745 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1746# Double any \ or $. echo might interpret backslashes.
1747# By default was `s,x,x', remove it if useless.
1748cat <<\_ACEOF >conftest.sed
1749s/[\\$]/&&/g;s/;s,x,x,$//
b7026657 1750_ACEOF
f0569246
AC
1751program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1752rm conftest.sed
1753
1754ac_ext=c
1755ac_cpp='$CPP $CPPFLAGS'
1756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758ac_compiler_gnu=$ac_cv_c_compiler_gnu
1759if test -n "$ac_tool_prefix"; then
1760 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1761set dummy ${ac_tool_prefix}gcc; ac_word=$2
1762echo "$as_me:$LINENO: checking for $ac_word" >&5
1763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764if test "${ac_cv_prog_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1766else
f0569246
AC
1767 if test -n "$CC"; then
1768 ac_cv_prog_CC="$CC" # Let the user override the test.
1769else
1770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771for as_dir in $PATH
1772do
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 break 2
1780 fi
1781done
1782done
1783
b7026657 1784fi
b7026657 1785fi
f0569246
AC
1786CC=$ac_cv_prog_CC
1787if test -n "$CC"; then
1788 echo "$as_me:$LINENO: result: $CC" >&5
1789echo "${ECHO_T}$CC" >&6
b7026657
AC
1790else
1791 echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
b7026657
AC
1793fi
1794
f0569246
AC
1795fi
1796if test -z "$ac_cv_prog_CC"; then
1797 ac_ct_CC=$CC
1798 # Extract the first word of "gcc", so it can be a program name with args.
1799set dummy gcc; ac_word=$2
1800echo "$as_me:$LINENO: checking for $ac_word" >&5
1801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
f0569246
AC
1805 if test -n "$ac_ct_CC"; then
1806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807else
1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809for as_dir in $PATH
1810do
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_ac_ct_CC="gcc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1818 fi
1819done
1820done
b7026657 1821
f0569246
AC
1822fi
1823fi
1824ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825if test -n "$ac_ct_CC"; then
1826 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1828else
f0569246
AC
1829 echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
b7026657 1832
f0569246
AC
1833 CC=$ac_ct_CC
1834else
1835 CC="$ac_cv_prog_CC"
b7026657 1836fi
b7026657 1837
f0569246
AC
1838if test -z "$CC"; then
1839 if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1841set dummy ${ac_tool_prefix}cc; ac_word=$2
1842echo "$as_me:$LINENO: checking for $ac_word" >&5
1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844if test "${ac_cv_prog_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1846else
f0569246
AC
1847 if test -n "$CC"; then
1848 ac_cv_prog_CC="$CC" # Let the user override the test.
1849else
1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851for as_dir in $PATH
1852do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_CC="${ac_tool_prefix}cc"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 break 2
1860 fi
1861done
1862done
b7026657
AC
1863
1864fi
b7026657 1865fi
f0569246
AC
1866CC=$ac_cv_prog_CC
1867if test -n "$CC"; then
1868 echo "$as_me:$LINENO: result: $CC" >&5
1869echo "${ECHO_T}$CC" >&6
1870else
1871 echo "$as_me:$LINENO: result: no" >&5
1872echo "${ECHO_T}no" >&6
b7026657
AC
1873fi
1874
b7026657 1875fi
f0569246
AC
1876if test -z "$ac_cv_prog_CC"; then
1877 ac_ct_CC=$CC
1878 # Extract the first word of "cc", so it can be a program name with args.
1879set dummy cc; ac_word=$2
1880echo "$as_me:$LINENO: checking for $ac_word" >&5
1881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1884else
f0569246
AC
1885 if test -n "$ac_ct_CC"; then
1886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1887else
1888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889for as_dir in $PATH
b7026657 1890do
f0569246
AC
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_CC="cc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
b7026657 1898 fi
f0569246
AC
1899done
1900done
1901
b7026657 1902fi
f0569246
AC
1903fi
1904ac_ct_CC=$ac_cv_prog_ac_ct_CC
1905if test -n "$ac_ct_CC"; then
1906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1908else
f0569246
AC
1909 echo "$as_me:$LINENO: result: no" >&5
1910echo "${ECHO_T}no" >&6
b7026657 1911fi
b7026657 1912
f0569246 1913 CC=$ac_ct_CC
b7026657 1914else
f0569246 1915 CC="$ac_cv_prog_CC"
b7026657 1916fi
b7026657 1917
b7026657 1918fi
f0569246
AC
1919if test -z "$CC"; then
1920 # Extract the first word of "cc", so it can be a program name with args.
1921set dummy cc; ac_word=$2
1922echo "$as_me:$LINENO: checking for $ac_word" >&5
1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924if test "${ac_cv_prog_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC="$CC" # Let the user override the test.
1929else
1930 ac_prog_rejected=no
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1939 ac_prog_rejected=yes
1940 continue
1941 fi
1942 ac_cv_prog_CC="cc"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1945 fi
1946done
b7026657 1947done
b7026657 1948
f0569246
AC
1949if test $ac_prog_rejected = yes; then
1950 # We found a bogon in the path, so make sure we never use it.
1951 set dummy $ac_cv_prog_CC
1952 shift
1953 if test $# != 0; then
1954 # We chose a different compiler from the bogus one.
1955 # However, it has the same basename, so the bogon will be chosen
1956 # first if we set CC to just the basename; use the full file name.
1957 shift
1958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1959 fi
b7026657 1960fi
f0569246
AC
1961fi
1962fi
1963CC=$ac_cv_prog_CC
1964if test -n "$CC"; then
1965 echo "$as_me:$LINENO: result: $CC" >&5
1966echo "${ECHO_T}$CC" >&6
b7026657 1967else
f0569246
AC
1968 echo "$as_me:$LINENO: result: no" >&5
1969echo "${ECHO_T}no" >&6
b7026657 1970fi
f0569246
AC
1971
1972fi
1973if test -z "$CC"; then
1974 if test -n "$ac_tool_prefix"; then
1975 for ac_prog in cl
1976 do
1977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986else
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
b7026657 1989do
f0569246
AC
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
b7026657 1997 fi
f0569246
AC
1998done
1999done
2000
b7026657 2001fi
f0569246
AC
2002fi
2003CC=$ac_cv_prog_CC
2004if test -n "$CC"; then
2005 echo "$as_me:$LINENO: result: $CC" >&5
2006echo "${ECHO_T}$CC" >&6
b7026657 2007else
f0569246
AC
2008 echo "$as_me:$LINENO: result: no" >&5
2009echo "${ECHO_T}no" >&6
b7026657 2010fi
b7026657 2011
f0569246
AC
2012 test -n "$CC" && break
2013 done
b34f6357 2014fi
f0569246
AC
2015if test -z "$CC"; then
2016 ac_ct_CC=$CC
2017 for ac_prog in cl
2018do
2019 # Extract the first word of "$ac_prog", so it can be a program name with args.
2020set dummy $ac_prog; ac_word=$2
2021echo "$as_me:$LINENO: checking for $ac_word" >&5
2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
f0569246
AC
2026 if test -n "$ac_ct_CC"; then
2027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 2028else
f0569246
AC
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 ac_cv_prog_ac_ct_CC="$ac_prog"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 break 2
2039 fi
2040done
2041done
b7026657
AC
2042
2043fi
f0569246
AC
2044fi
2045ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046if test -n "$ac_ct_CC"; then
2047 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048echo "${ECHO_T}$ac_ct_CC" >&6
2049else
2050 echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6
2052fi
2053
2054 test -n "$ac_ct_CC" && break
b7026657 2055done
b7026657 2056
f0569246 2057 CC=$ac_ct_CC
b7026657
AC
2058fi
2059
f0569246 2060fi
b7026657 2061
f0569246 2062
d6416cdc
RW
2063test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2064echo "$as_me: error: in \`$ac_pwd':" >&2;}
2065{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
f0569246
AC
2066See \`config.log' for more details." >&5
2067echo "$as_me: error: no acceptable C compiler found in \$PATH
2068See \`config.log' for more details." >&2;}
d6416cdc 2069 { (exit 1); exit 1; }; }; }
f0569246
AC
2070
2071# Provide some information about the compiler.
2072echo "$as_me:$LINENO:" \
2073 "checking for C compiler version" >&5
2074ac_compiler=`set X $ac_compile; echo $2`
2075{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2076 (eval $ac_compiler --version </dev/null >&5) 2>&5
b7026657 2077 ac_status=$?
b7026657 2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2079 (exit $ac_status); }
2080{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2081 (eval $ac_compiler -v </dev/null >&5) 2>&5
b7026657
AC
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2084 (exit $ac_status); }
2085{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2086 (eval $ac_compiler -V </dev/null >&5) 2>&5
b7026657
AC
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2089 (exit $ac_status); }
2090
2091cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2092/* confdefs.h. */
2093_ACEOF
2094cat confdefs.h >>conftest.$ac_ext
2095cat >>conftest.$ac_ext <<_ACEOF
2096/* end confdefs.h. */
f0569246 2097
b7026657
AC
2098int
2099main ()
2100{
f0569246 2101
b7026657
AC
2102 ;
2103 return 0;
2104}
2105_ACEOF
f0569246
AC
2106ac_clean_files_save=$ac_clean_files
2107ac_clean_files="$ac_clean_files a.out a.exe b.out"
2108# Try to create an executable without -o first, disregard a.out.
2109# It will help us diagnose broken compilers, and finding out an intuition
2110# of exeext.
2111echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2112echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2113ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2115 (eval $ac_link_default) 2>&5
b7026657 2116 ac_status=$?
b7026657 2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2118 (exit $ac_status); }; then
2119 # Find the output, starting from the most likely. This scheme is
2120# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2121# resort.
2122
2123# Be careful to initialize this variable, since it used to be cached.
2124# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2125ac_cv_exeext=
2126# b.out is created by i960 compilers.
2127for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2128do
2129 test -f "$ac_file" || continue
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2132 ;;
2133 conftest.$ac_ext )
2134 # This is the source file.
2135 ;;
2136 [ab].out )
2137 # We found the default executable, but exeext='' is most
2138 # certainly right.
2139 break;;
2140 *.* )
2141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142 # FIXME: I believe we export ac_cv_exeext for Libtool,
2143 # but it would be cool to find out if it's true. Does anybody
2144 # maintain Libtool? --akim.
2145 export ac_cv_exeext
2146 break;;
2147 * )
2148 break;;
2149 esac
2150done
2151else
2152 echo "$as_me: failed program was:" >&5
2153sed 's/^/| /' conftest.$ac_ext >&5
2154
d6416cdc
RW
2155{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2156echo "$as_me: error: in \`$ac_pwd':" >&2;}
f0569246
AC
2157{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2158See \`config.log' for more details." >&5
2159echo "$as_me: error: C compiler cannot create executables
2160See \`config.log' for more details." >&2;}
d6416cdc 2161 { (exit 77); exit 77; }; }; }
f0569246
AC
2162fi
2163
2164ac_exeext=$ac_cv_exeext
2165echo "$as_me:$LINENO: result: $ac_file" >&5
2166echo "${ECHO_T}$ac_file" >&6
2167
2168# Check the compiler produces executables we can run. If not, either
2169# the compiler is broken, or we cross compile.
2170echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2171echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2172# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2173# If not cross compiling, check that we can run a simple program.
2174if test "$cross_compiling" != yes; then
2175 if { ac_try='./$ac_file'
b7026657
AC
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2180 (exit $ac_status); }; }; then
2181 cross_compiling=no
2182 else
2183 if test "$cross_compiling" = maybe; then
2184 cross_compiling=yes
2185 else
d6416cdc
RW
2186 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2187echo "$as_me: error: in \`$ac_pwd':" >&2;}
2188{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
f0569246
AC
2189If you meant to cross compile, use \`--host'.
2190See \`config.log' for more details." >&5
2191echo "$as_me: error: cannot run C compiled programs.
2192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." >&2;}
d6416cdc 2194 { (exit 1); exit 1; }; }; }
f0569246
AC
2195 fi
2196 fi
2197fi
2198echo "$as_me:$LINENO: result: yes" >&5
2199echo "${ECHO_T}yes" >&6
2200
2201rm -f a.out a.exe conftest$ac_cv_exeext b.out
2202ac_clean_files=$ac_clean_files_save
2203# Check the compiler produces executables we can run. If not, either
2204# the compiler is broken, or we cross compile.
2205echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2206echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2207echo "$as_me:$LINENO: result: $cross_compiling" >&5
2208echo "${ECHO_T}$cross_compiling" >&6
2209
2210echo "$as_me:$LINENO: checking for suffix of executables" >&5
2211echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2213 (eval $ac_link) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2218# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2219# work properly (i.e., refer to `conftest.exe'), while it won't with
2220# `rm'.
2221for ac_file in conftest.exe conftest conftest.*; do
2222 test -f "$ac_file" || continue
2223 case $ac_file in
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226 export ac_cv_exeext
2227 break;;
2228 * ) break;;
2229 esac
2230done
2231else
d6416cdc
RW
2232 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2233echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
f0569246
AC
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237See \`config.log' for more details." >&2;}
d6416cdc 2238 { (exit 1); exit 1; }; }; }
f0569246
AC
2239fi
2240
2241rm -f conftest$ac_cv_exeext
2242echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243echo "${ECHO_T}$ac_cv_exeext" >&6
2244
2245rm -f conftest.$ac_ext
2246EXEEXT=$ac_cv_exeext
2247ac_exeext=$EXEEXT
2248echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250if test "${ac_cv_objext+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253 cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
2259
2260int
2261main ()
2262{
2263
2264 ;
2265 return 0;
2266}
2267_ACEOF
2268rm -f conftest.o conftest.obj
2269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>&5
b7026657
AC
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2273 (exit $ac_status); }; then
2274 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275 case $ac_file in
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278 break;;
2279 esac
2280done
b7026657
AC
2281else
2282 echo "$as_me: failed program was:" >&5
2283sed 's/^/| /' conftest.$ac_ext >&5
2284
d6416cdc
RW
2285{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2286echo "$as_me: error: in \`$ac_pwd':" >&2;}
f0569246
AC
2287{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: cannot compute suffix of object files: cannot compile
2290See \`config.log' for more details." >&2;}
d6416cdc 2291 { (exit 1); exit 1; }; }; }
b7026657 2292fi
f0569246
AC
2293
2294rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295fi
2296echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2297echo "${ECHO_T}$ac_cv_objext" >&6
2298OBJEXT=$ac_cv_objext
2299ac_objext=$OBJEXT
2300echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2301echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2302if test "${ac_cv_c_compiler_gnu+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
b7026657
AC
2305 cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h. */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h. */
f0569246 2311
b7026657
AC
2312int
2313main ()
2314{
f0569246
AC
2315#ifndef __GNUC__
2316 choke me
2317#endif
2318
b7026657
AC
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323rm -f conftest.$ac_objext
2324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>conftest.er1
2326 ac_status=$?
2327 grep -v '^ *+' conftest.er1 >conftest.err
2328 rm -f conftest.er1
2329 cat conftest.err >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -z "$ac_c_werror_flag"
2333 || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
f0569246 2345 ac_compiler_gnu=yes
b34f6357 2346else
f0569246
AC
2347 echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
b7026657 2349
f0569246
AC
2350ac_compiler_gnu=no
2351fi
2352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353ac_cv_c_compiler_gnu=$ac_compiler_gnu
b7026657 2354
b7026657 2355fi
f0569246
AC
2356echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2357echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2358GCC=`test $ac_compiler_gnu = yes && echo yes`
2359ac_test_CFLAGS=${CFLAGS+set}
2360ac_save_CFLAGS=$CFLAGS
2361CFLAGS="-g"
2362echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2363echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2364if test "${ac_cv_prog_cc_g+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2366else
f0569246 2367 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
f0569246
AC
2373
2374int
2375main ()
2376{
2377
2378 ;
2379 return 0;
2380}
b7026657
AC
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
f0569246 2404 ac_cv_prog_cc_g=yes
b7026657
AC
2405else
2406 echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
f0569246 2409ac_cv_prog_cc_g=no
b7026657
AC
2410fi
2411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f0569246
AC
2412fi
2413echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2414echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2415if test "$ac_test_CFLAGS" = set; then
2416 CFLAGS=$ac_save_CFLAGS
2417elif test $ac_cv_prog_cc_g = yes; then
2418 if test "$GCC" = yes; then
2419 CFLAGS="-g -O2"
2420 else
2421 CFLAGS="-g"
2422 fi
2423else
2424 if test "$GCC" = yes; then
2425 CFLAGS="-O2"
2426 else
2427 CFLAGS=
2428 fi
2429fi
2430echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2431echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2432if test "${ac_cv_prog_cc_stdc+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435 ac_cv_prog_cc_stdc=no
2436ac_save_CC=$CC
b7026657
AC
2437cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h. */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h. */
f0569246
AC
2443#include <stdarg.h>
2444#include <stdio.h>
2445#include <sys/types.h>
2446#include <sys/stat.h>
2447/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2448struct buf { int x; };
2449FILE * (*rcsopen) (struct buf *, struct stat *, int);
2450static char *e (p, i)
2451 char **p;
2452 int i;
2453{
2454 return p[i];
2455}
2456static char *f (char * (*g) (char **, int), char **p, ...)
2457{
2458 char *s;
2459 va_list v;
2460 va_start (v,p);
2461 s = g (p, va_arg (v,int));
2462 va_end (v);
2463 return s;
2464}
2465
2466/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2467 function prototypes and stuff, but not '\xHH' hex character constants.
2468 These don't provoke an error unfortunately, instead are silently treated
2469 as 'x'. The following induces an error, until -std1 is added to get
2470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2471 array size at least. It's necessary to write '\x00'==0 to get something
2472 that's true only with -std1. */
2473int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474
2475int test (int i, double x);
2476struct s1 {int (*f) (int a);};
2477struct s2 {int (*f) (double a);};
2478int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479int argc;
2480char **argv;
2481int
2482main ()
2483{
2484return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2485 ;
2486 return 0;
2487}
b7026657 2488_ACEOF
f0569246
AC
2489# Don't try gcc -ansi; that turns off useful extensions and
2490# breaks some systems' header files.
2491# AIX -qlanglvl=ansi
2492# Ultrix and OSF/1 -std1
2493# HP-UX 10.20 and later -Ae
2494# HP-UX older versions -Aa -D_HPUX_SOURCE
2495# SVR4 -Xc -D__EXTENSIONS__
2496for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497do
2498 CC="$ac_save_CC $ac_arg"
2499 rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 ac_cv_prog_cc_stdc=$ac_arg
2522break
b7026657
AC
2523else
2524 echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
2526
b34f6357 2527fi
f0569246 2528rm -f conftest.err conftest.$ac_objext
b34f6357 2529done
f0569246
AC
2530rm -f conftest.$ac_ext conftest.$ac_objext
2531CC=$ac_save_CC
b34f6357 2532
f0569246 2533fi
b7026657 2534
f0569246
AC
2535case "x$ac_cv_prog_cc_stdc" in
2536 x|xno)
2537 echo "$as_me:$LINENO: result: none needed" >&5
2538echo "${ECHO_T}none needed" >&6 ;;
2539 *)
2540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2541echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2542 CC="$CC $ac_cv_prog_cc_stdc" ;;
2543esac
b7026657 2544
f0569246
AC
2545# Some people use a C++ compiler to compile C. Since we use `exit',
2546# in C++ we need to declare it. In case someone uses the same compiler
2547# for both compiling C and C++ we need to have the C++ compiler decide
2548# the declaration of exit, since it's the most demanding environment.
2549cat >conftest.$ac_ext <<_ACEOF
2550#ifndef __cplusplus
2551 choke me
2552#endif
2553_ACEOF
2554rm -f conftest.$ac_objext
2555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag"
2564 || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 for ac_declaration in \
2577 '' \
2578 'extern "C" void std::exit (int) throw (); using std::exit;' \
2579 'extern "C" void std::exit (int); using std::exit;' \
2580 'extern "C" void exit (int) throw ();' \
2581 'extern "C" void exit (int);' \
2582 'void exit (int);'
b34f6357 2583do
b7026657
AC
2584 cat >conftest.$ac_ext <<_ACEOF
2585/* confdefs.h. */
2586_ACEOF
2587cat confdefs.h >>conftest.$ac_ext
2588cat >>conftest.$ac_ext <<_ACEOF
2589/* end confdefs.h. */
f0569246
AC
2590$ac_declaration
2591#include <stdlib.h>
b7026657
AC
2592int
2593main ()
2594{
f0569246 2595exit (42);
b7026657
AC
2596 ;
2597 return 0;
2598}
2599_ACEOF
f0569246
AC
2600rm -f conftest.$ac_objext
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
f0569246 2616 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
f0569246 2622 :
b7026657
AC
2623else
2624 echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
f0569246 2627continue
b34f6357 2628fi
f0569246 2629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
2630 cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h. */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h. */
f0569246 2636$ac_declaration
b7026657
AC
2637int
2638main ()
2639{
f0569246 2640exit (42);
b7026657
AC
2641 ;
2642 return 0;
2643}
2644_ACEOF
f0569246
AC
2645rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2648 ac_status=$?
2649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -z "$ac_c_werror_flag"
2655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
f0569246 2661 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
f0569246
AC
2667 break
2668else
2669 echo "$as_me: failed program was:" >&5
2670sed 's/^/| /' conftest.$ac_ext >&5
2671
2672fi
2673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674done
2675rm -f conftest*
2676if test -n "$ac_declaration"; then
2677 echo '#ifdef __cplusplus' >>confdefs.h
2678 echo $ac_declaration >>confdefs.h
2679 echo '#endif' >>confdefs.h
2680fi
2681
b7026657
AC
2682else
2683 echo "$as_me: failed program was:" >&5
2684sed 's/^/| /' conftest.$ac_ext >&5
2685
b7026657 2686fi
f0569246
AC
2687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688ac_ext=c
2689ac_cpp='$CPP $CPPFLAGS'
2690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693
2694# Find a good install program. We prefer a C program (faster),
2695# so one script is as good as another. But avoid the broken or
2696# incompatible versions:
2697# SysV /etc/install, /usr/sbin/install
2698# SunOS /usr/etc/install
2699# IRIX /sbin/install
2700# AIX /bin/install
2701# AmigaOS /C/install, which installs bootblocks on floppy discs
2702# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2703# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2704# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2705# OS/2's system install, which has a completely different semantic
2706# ./install, which can be erroneously created by make from ./install.sh.
2707echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2708echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2709if test -z "$INSTALL"; then
2710if test "${ac_cv_path_install+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 # Account for people who put trailing slashes in PATH elements.
2719case $as_dir/ in
2720 ./ | .// | /cC/* | \
2721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2723 /usr/ucb/* ) ;;
2724 *)
2725 # OSF1 and SCO ODT 3.0 have their own names for install.
2726 # Don't use installbsd from OSF since it installs stuff as root
2727 # by default.
2728 for ac_prog in ginstall scoinst install; do
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2731 if test $ac_prog = install &&
2732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733 # AIX install. It has an incompatible calling convention.
2734 :
2735 elif test $ac_prog = install &&
2736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737 # program-specific install script used by HP pwplus--don't use.
2738 :
2739 else
2740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2741 break 3
2742 fi
2743 fi
2744 done
2745 done
2746 ;;
2747esac
2748done
2749
2750
2751fi
2752 if test "${ac_cv_path_install+set}" = set; then
2753 INSTALL=$ac_cv_path_install
2754 else
2755 # As a last resort, use the slow shell script. We don't cache a
2756 # path for INSTALL within a source directory, because that will
2757 # break other packages using the cache if that directory is
2758 # removed, or if the path is relative.
2759 INSTALL=$ac_install_sh
2760 fi
2761fi
2762echo "$as_me:$LINENO: result: $INSTALL" >&5
2763echo "${ECHO_T}$INSTALL" >&6
2764
2765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2766# It thinks the first close brace ends the variable substitution.
2767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2768
2769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2770
2771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2772
2773
2774# Put a plausible default for CC_FOR_BUILD in Makefile.
2775if test "x$cross_compiling" = "xno"; then
2776 CC_FOR_BUILD='$(CC)'
2777else
2778 CC_FOR_BUILD=gcc
2779fi
b34f6357 2780
b34f6357 2781
b34f6357 2782
b34f6357 2783
f0569246
AC
2784AR=${AR-ar}
2785
2786if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2789echo "$as_me:$LINENO: checking for $ac_word" >&5
2790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791if test "${ac_cv_prog_RANLIB+set}" = set; then
b7026657
AC
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793else
f0569246
AC
2794 if test -n "$RANLIB"; then
2795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b34f6357 2796else
f0569246
AC
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809done
b7026657 2810
b34f6357 2811fi
b34f6357 2812fi
f0569246
AC
2813RANLIB=$ac_cv_prog_RANLIB
2814if test -n "$RANLIB"; then
2815 echo "$as_me:$LINENO: result: $RANLIB" >&5
2816echo "${ECHO_T}$RANLIB" >&6
2817else
2818 echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6
2820fi
b34f6357 2821
f0569246
AC
2822fi
2823if test -z "$ac_cv_prog_RANLIB"; then
2824 ac_ct_RANLIB=$RANLIB
2825 # Extract the first word of "ranlib", so it can be a program name with args.
2826set dummy ranlib; ac_word=$2
2827echo "$as_me:$LINENO: checking for $ac_word" >&5
2828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
2832 if test -n "$ac_ct_RANLIB"; then
2833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_ac_ct_RANLIB="ranlib"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
b34f6357 2845 fi
f0569246
AC
2846done
2847done
2848
2849 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2850fi
2851fi
2852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2853if test -n "$ac_ct_RANLIB"; then
2854 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2855echo "${ECHO_T}$ac_ct_RANLIB" >&6
2856else
2857 echo "$as_me:$LINENO: result: no" >&5
2858echo "${ECHO_T}no" >&6
2859fi
b34f6357 2860
f0569246
AC
2861 RANLIB=$ac_ct_RANLIB
2862else
2863 RANLIB="$ac_cv_prog_RANLIB"
2864fi
b34f6357 2865
b34f6357 2866
f0569246 2867ALL_LINGUAS=
2f0122dc
DJ
2868# If we haven't got the data from the intl directory,
2869# assume NLS is disabled.
2870USE_NLS=no
2871LIBINTL=
2872LIBINTL_DEP=
2873INCINTL=
2874XGETTEXT=
2875GMSGFMT=
2876POSUB=
e85e3205
RE
2877
2878if test -f ../../intl/config.intl; then
2879 . ../../intl/config.intl
2f0122dc
DJ
2880fi
2881echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2882echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2883if test x"$USE_NLS" != xyes; then
2884 echo "$as_me:$LINENO: result: no" >&5
2885echo "${ECHO_T}no" >&6
2886else
2887 echo "$as_me:$LINENO: result: yes" >&5
2888echo "${ECHO_T}yes" >&6
2889
2890cat >>confdefs.h <<\_ACEOF
2891#define ENABLE_NLS 1
2892_ACEOF
2893
2894
2895 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2896echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2897 # Look for .po and .gmo files in the source directory.
2898 CATALOGS=
2899 XLINGUAS=
2900 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2901 # If there aren't any .gmo files the shell will give us the
2902 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2903 # weeded out.
2904 case "$cat" in *\**)
2905 continue;;
2906 esac
2907 # The quadruple backslash is collapsed to a double backslash
2908 # by the backticks, then collapsed again by the double quotes,
2909 # leaving us with one backslash in the sed expression (right
2910 # before the dot that mustn't act as a wildcard).
2911 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2912 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2913 # The user is allowed to set LINGUAS to a list of languages to
2914 # install catalogs for. If it's empty that means "all of them."
2915 if test "x$LINGUAS" = x; then
2916 CATALOGS="$CATALOGS $cat"
2917 XLINGUAS="$XLINGUAS $lang"
2918 else
2919 case "$LINGUAS" in *$lang*)
2920 CATALOGS="$CATALOGS $cat"
2921 XLINGUAS="$XLINGUAS $lang"
2922 ;;
2923 esac
2924 fi
2925 done
2926 LINGUAS="$XLINGUAS"
2927 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2928echo "${ECHO_T}$LINGUAS" >&6
2929
2930
2931 DATADIRNAME=share
2932
2933 INSTOBJEXT=.mo
2934
2935 GENCAT=gencat
2936
2937 CATOBJEXT=.gmo
2938
2939fi
35695fd6 2940
20e95c23
DJ
2941# Check for common headers.
2942# FIXME: Seems to me this can cause problems for i386-windows hosts.
2943# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
35695fd6
AC
2944
2945ac_ext=c
2946ac_cpp='$CPP $CPPFLAGS'
2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2951echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2952# On Suns, sometimes $CPP names a directory.
2953if test -n "$CPP" && test -d "$CPP"; then
2954 CPP=
2955fi
2956if test -z "$CPP"; then
2957 if test "${ac_cv_prog_CPP+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959else
2960 # Double quotes because CPP needs to be expanded
2961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962 do
2963 ac_preproc_ok=false
2964for ac_c_preproc_warn_flag in '' yes
2965do
2966 # Use a header file that comes with gcc, so configuring glibc
2967 # with a fresh cross-compiler works.
2968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969 # <limits.h> exists even on freestanding compilers.
2970 # On the NeXT, cc -E runs the code through the compiler's parser,
2971 # not just through cpp. "Syntax error" is here to catch this case.
2972 cat >conftest.$ac_ext <<_ACEOF
2973/* confdefs.h. */
2974_ACEOF
2975cat confdefs.h >>conftest.$ac_ext
2976cat >>conftest.$ac_ext <<_ACEOF
2977/* end confdefs.h. */
2978#ifdef __STDC__
2979# include <limits.h>
2980#else
2981# include <assert.h>
2982#endif
2983 Syntax error
2984_ACEOF
2985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null; then
2993 if test -s conftest.err; then
2994 ac_cpp_err=$ac_c_preproc_warn_flag
2995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996 else
2997 ac_cpp_err=
2998 fi
2999else
3000 ac_cpp_err=yes
3001fi
3002if test -z "$ac_cpp_err"; then
3003 :
3004else
3005 echo "$as_me: failed program was:" >&5
3006sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 # Broken: fails on valid input.
3009continue
3010fi
3011rm -f conftest.err conftest.$ac_ext
3012
3013 # OK, works on sane cases. Now check whether non-existent headers
3014 # can be detected and how.
3015 cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021#include <ac_nonexistent.h>
3022_ACEOF
3023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f0569246 3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034 else
3035 ac_cpp_err=
3036 fi
3037else
3038 ac_cpp_err=yes
3039fi
3040if test -z "$ac_cpp_err"; then
3041 # Broken: success on invalid input.
3042continue
b34f6357 3043else
b7026657
AC
3044 echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
f0569246
AC
3047 # Passes both tests.
3048ac_preproc_ok=:
3049break
b34f6357 3050fi
f0569246
AC
3051rm -f conftest.err conftest.$ac_ext
3052
3053done
3054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3055rm -f conftest.err conftest.$ac_ext
3056if $ac_preproc_ok; then
3057 break
b34f6357 3058fi
b34f6357 3059
f0569246
AC
3060 done
3061 ac_cv_prog_CPP=$CPP
3062
3063fi
3064 CPP=$ac_cv_prog_CPP
b34f6357 3065else
f0569246
AC
3066 ac_cv_prog_CPP=$CPP
3067fi
3068echo "$as_me:$LINENO: result: $CPP" >&5
3069echo "${ECHO_T}$CPP" >&6
3070ac_preproc_ok=false
3071for ac_c_preproc_warn_flag in '' yes
3072do
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
f0569246
AC
3085#ifdef __STDC__
3086# include <limits.h>
3087#else
3088# include <assert.h>
b7026657 3089#endif
f0569246 3090 Syntax error
b7026657 3091_ACEOF
f0569246
AC
3092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_c_preproc_warn_flag
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103 else
3104 ac_cpp_err=
3105 fi
3106else
3107 ac_cpp_err=yes
3108fi
3109if test -z "$ac_cpp_err"; then
3110 :
b7026657
AC
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
f0569246
AC
3115 # Broken: fails on valid input.
3116continue
b7026657 3117fi
f0569246
AC
3118rm -f conftest.err conftest.$ac_ext
3119
3120 # OK, works on sane cases. Now check whether non-existent headers
3121 # can be detected and how.
b7026657
AC
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
f0569246 3128#include <ac_nonexistent.h>
b7026657 3129_ACEOF
f0569246
AC
3130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
3137 (exit $ac_status); } >/dev/null; then
3138 if test -s conftest.err; then
3139 ac_cpp_err=$ac_c_preproc_warn_flag
3140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3141 else
3142 ac_cpp_err=
3143 fi
3144else
3145 ac_cpp_err=yes
3146fi
3147if test -z "$ac_cpp_err"; then
3148 # Broken: success on invalid input.
3149continue
b34f6357 3150else
b7026657
AC
3151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
f0569246
AC
3154 # Passes both tests.
3155ac_preproc_ok=:
3156break
b34f6357 3157fi
f0569246 3158rm -f conftest.err conftest.$ac_ext
b34f6357 3159
f0569246
AC
3160done
3161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162rm -f conftest.err conftest.$ac_ext
3163if $ac_preproc_ok; then
3164 :
b34f6357 3165else
d6416cdc
RW
3166 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3167echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
f0569246
AC
3169See \`config.log' for more details." >&5
3170echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3171See \`config.log' for more details." >&2;}
d6416cdc 3172 { (exit 1); exit 1; }; }; }
b34f6357 3173fi
b7026657 3174
f0569246
AC
3175ac_ext=c
3176ac_cpp='$CPP $CPPFLAGS'
3177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179ac_compiler_gnu=$ac_cv_c_compiler_gnu
b34f6357 3180
b34f6357 3181
f0569246
AC
3182echo "$as_me:$LINENO: checking for egrep" >&5
3183echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3184if test "${ac_cv_prog_egrep+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3188 then ac_cv_prog_egrep='grep -E'
3189 else ac_cv_prog_egrep='egrep'
3190 fi
3191fi
3192echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3193echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3194 EGREP=$ac_cv_prog_egrep
3195
3196
3197echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3198echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3199if test "${ac_cv_header_stdc+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
3202 cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h. */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h. */
3208#include <stdlib.h>
3209#include <stdarg.h>
3210#include <string.h>
3211#include <float.h>
b34f6357 3212
b7026657
AC
3213int
3214main ()
3215{
f0569246 3216
b7026657
AC
3217 ;
3218 return 0;
3219}
3220_ACEOF
f0569246
AC
3221rm -f conftest.$ac_objext
3222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
b7026657
AC
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
f0569246 3237 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
f0569246 3243 ac_cv_header_stdc=yes
b7026657
AC
3244else
3245 echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
f0569246 3248ac_cv_header_stdc=no
b7026657 3249fi
f0569246 3250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b34f6357 3251
f0569246
AC
3252if test $ac_cv_header_stdc = yes; then
3253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3254 cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h. */
3260#include <string.h>
b34f6357 3261
f0569246
AC
3262_ACEOF
3263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3264 $EGREP "memchr" >/dev/null 2>&1; then
3265 :
b34f6357 3266else
f0569246 3267 ac_cv_header_stdc=no
b34f6357 3268fi
f0569246 3269rm -f conftest*
b7026657 3270
b34f6357
DB
3271fi
3272
f0569246
AC
3273if test $ac_cv_header_stdc = yes; then
3274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3275 cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h. */
3281#include <stdlib.h>
3282
3283_ACEOF
3284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3285 $EGREP "free" >/dev/null 2>&1; then
3286 :
b34f6357 3287else
f0569246 3288 ac_cv_header_stdc=no
b34f6357 3289fi
f0569246
AC
3290rm -f conftest*
3291
b34f6357
DB
3292fi
3293
f0569246
AC
3294if test $ac_cv_header_stdc = yes; then
3295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3296 if test "$cross_compiling" = yes; then
3297 :
3298else
3299 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h. */
f0569246
AC
3305#include <ctype.h>
3306#if ((' ' & 0x0FF) == 0x020)
3307# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3308# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3309#else
3310# define ISLOWER(c) \
3311 (('a' <= (c) && (c) <= 'i') \
3312 || ('j' <= (c) && (c) <= 'r') \
3313 || ('s' <= (c) && (c) <= 'z'))
3314# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3315#endif
b34f6357 3316
f0569246 3317#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
3318int
3319main ()
3320{
f0569246
AC
3321 int i;
3322 for (i = 0; i < 256; i++)
3323 if (XOR (islower (i), ISLOWER (i))
3324 || toupper (i) != TOUPPER (i))
3325 exit(2);
3326 exit (0);
b7026657
AC
3327}
3328_ACEOF
f0569246 3329rm -f conftest$ac_exeext
b7026657 3330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f0569246 3331 (eval $ac_link) 2>&5
b7026657
AC
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246 3334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b7026657
AC
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
f0569246 3340 :
b34f6357 3341else
f0569246
AC
3342 echo "$as_me: program exited with status $ac_status" >&5
3343echo "$as_me: failed program was:" >&5
b7026657
AC
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
f0569246
AC
3346( exit $ac_status )
3347ac_cv_header_stdc=no
b34f6357 3348fi
f0569246 3349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b34f6357 3350fi
b34f6357 3351fi
b34f6357 3352fi
f0569246
AC
3353echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3354echo "${ECHO_T}$ac_cv_header_stdc" >&6
3355if test $ac_cv_header_stdc = yes; then
b7026657 3356
f0569246
AC
3357cat >>confdefs.h <<\_ACEOF
3358#define STDC_HEADERS 1
3359_ACEOF
b34f6357 3360
b34f6357
DB
3361fi
3362
f0569246 3363# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657
AC
3364
3365
3366
3367
3368
3369
b34f6357 3370
b34f6357 3371
f0569246 3372
35695fd6
AC
3373for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3374 inttypes.h stdint.h unistd.h
3375do
3376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3377echo "$as_me:$LINENO: checking for $ac_header" >&5
3378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3379if eval "test \"\${$as_ac_Header+set}\" = set"; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
3388$ac_includes_default
3389
3390#include <$ac_header>
3391_ACEOF
3392rm -f conftest.$ac_objext
3393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -z "$ac_c_werror_flag"
3402 || test ! -s conftest.err'
3403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 (eval $ac_try) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; } &&
3408 { ac_try='test -s conftest.$ac_objext'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; }; then
3414 eval "$as_ac_Header=yes"
3415else
3416 echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
3419eval "$as_ac_Header=no"
3420fi
3421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3422fi
3423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3425if test `eval echo '${'$as_ac_Header'}'` = yes; then
3426 cat >>confdefs.h <<_ACEOF
3427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3428_ACEOF
3429
3430fi
3431
3432done
3433
3434
b7026657
AC
3435
3436
3437
3438
3439
3440for ac_header in stdlib.h string.h strings.h unistd.h time.h
b34f6357 3441do
b7026657
AC
3442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3443if eval "test \"\${$as_ac_Header+set}\" = set"; then
3444 echo "$as_me:$LINENO: checking for $ac_header" >&5
3445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3446if eval "test \"\${$as_ac_Header+set}\" = set"; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448fi
3449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3451else
3452 # Is the header compilable?
3453echo "$as_me:$LINENO: checking $ac_header usability" >&5
3454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3455cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h. */
3461$ac_includes_default
3462#include <$ac_header>
3463_ACEOF
3464rm -f conftest.$ac_objext
3465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_header_compiler=yes
3487else
3488 echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491ac_header_compiler=no
3492fi
3493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3495echo "${ECHO_T}$ac_header_compiler" >&6
3496
3497# Is the header present?
3498echo "$as_me:$LINENO: checking $ac_header presence" >&5
3499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3500cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */
3506#include <$ac_header>
3507_ACEOF
3508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } >/dev/null; then
3516 if test -s conftest.err; then
3517 ac_cpp_err=$ac_c_preproc_warn_flag
3518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3519 else
3520 ac_cpp_err=
3521 fi
3522else
3523 ac_cpp_err=yes
b34f6357 3524fi
b7026657
AC
3525if test -z "$ac_cpp_err"; then
3526 ac_header_preproc=yes
3527else
3528 echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531 ac_header_preproc=no
b34f6357 3532fi
b7026657
AC
3533rm -f conftest.err conftest.$ac_ext
3534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3535echo "${ECHO_T}$ac_header_preproc" >&6
3536
3537# So? What about this header?
3538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3539 yes:no: )
3540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3544 ac_header_preproc=yes
3545 ;;
3546 no:yes:* )
3547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3550echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3554echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3559 (
3560 cat <<\_ASBOX
3561## ------------------------------------------ ##
3562## Report this to the AC_PACKAGE_NAME lists. ##
3563## ------------------------------------------ ##
3564_ASBOX
3565 ) |
3566 sed "s/^/$as_me: WARNING: /" >&2
3567 ;;
3568esac
3569echo "$as_me:$LINENO: checking for $ac_header" >&5
3570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3571if eval "test \"\${$as_ac_Header+set}\" = set"; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
b34f6357 3573else
b7026657 3574 eval "$as_ac_Header=\$ac_header_preproc"
b34f6357 3575fi
b7026657
AC
3576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3578
3579fi
3580if test `eval echo '${'$as_ac_Header'}'` = yes; then
3581 cat >>confdefs.h <<_ACEOF
3582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3583_ACEOF
3584
3585fi
3586
b34f6357
DB
3587done
3588
b7026657
AC
3589
3590
3591for ac_header in sys/time.h sys/resource.h
b34f6357 3592do
b7026657
AC
3593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3594if eval "test \"\${$as_ac_Header+set}\" = set"; then
3595 echo "$as_me:$LINENO: checking for $ac_header" >&5
3596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3597if eval "test \"\${$as_ac_Header+set}\" = set"; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599fi
3600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3602else
3603 # Is the header compilable?
3604echo "$as_me:$LINENO: checking $ac_header usability" >&5
3605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3606cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612$ac_includes_default
3613#include <$ac_header>
3614_ACEOF
3615rm -f conftest.$ac_objext
3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_c_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 ac_header_compiler=yes
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642ac_header_compiler=no
3643fi
3644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3646echo "${ECHO_T}$ac_header_compiler" >&6
3647
3648# Is the header present?
3649echo "$as_me:$LINENO: checking $ac_header presence" >&5
3650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3651cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h. */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h. */
3657#include <$ac_header>
3658_ACEOF
3659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } >/dev/null; then
3667 if test -s conftest.err; then
3668 ac_cpp_err=$ac_c_preproc_warn_flag
3669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670 else
3671 ac_cpp_err=
3672 fi
3673else
3674 ac_cpp_err=yes
b34f6357 3675fi
b7026657
AC
3676if test -z "$ac_cpp_err"; then
3677 ac_header_preproc=yes
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 ac_header_preproc=no
b34f6357 3683fi
b7026657
AC
3684rm -f conftest.err conftest.$ac_ext
3685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3686echo "${ECHO_T}$ac_header_preproc" >&6
3687
3688# So? What about this header?
3689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3690 yes:no: )
3691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3695 ac_header_preproc=yes
3696 ;;
3697 no:yes:* )
3698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3710 (
3711 cat <<\_ASBOX
3712## ------------------------------------------ ##
3713## Report this to the AC_PACKAGE_NAME lists. ##
3714## ------------------------------------------ ##
3715_ASBOX
3716 ) |
3717 sed "s/^/$as_me: WARNING: /" >&2
3718 ;;
3719esac
3720echo "$as_me:$LINENO: checking for $ac_header" >&5
3721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3722if eval "test \"\${$as_ac_Header+set}\" = set"; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
b34f6357 3724else
b7026657
AC
3725 eval "$as_ac_Header=\$ac_header_preproc"
3726fi
3727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3729
3730fi
3731if test `eval echo '${'$as_ac_Header'}'` = yes; then
3732 cat >>confdefs.h <<_ACEOF
3733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3734_ACEOF
3735
b34f6357 3736fi
b7026657 3737
b34f6357
DB
3738done
3739
b7026657
AC
3740
3741
3742for ac_header in fcntl.h fpu_control.h
b34f6357 3743do
b7026657
AC
3744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3745if eval "test \"\${$as_ac_Header+set}\" = set"; then
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750fi
3751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3753else
3754 # Is the header compilable?
3755echo "$as_me:$LINENO: checking $ac_header usability" >&5
3756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3757cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h. */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h. */
3763$ac_includes_default
3764#include <$ac_header>
3765_ACEOF
3766rm -f conftest.$ac_objext
3767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -z "$ac_c_werror_flag"
3776 || test ! -s conftest.err'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_header_compiler=yes
3789else
3790 echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793ac_header_compiler=no
3794fi
3795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3797echo "${ECHO_T}$ac_header_compiler" >&6
3798
3799# Is the header present?
3800echo "$as_me:$LINENO: checking $ac_header presence" >&5
3801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3802cat >conftest.$ac_ext <<_ACEOF
3803/* confdefs.h. */
3804_ACEOF
3805cat confdefs.h >>conftest.$ac_ext
3806cat >>conftest.$ac_ext <<_ACEOF
3807/* end confdefs.h. */
3808#include <$ac_header>
3809_ACEOF
3810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812 ac_status=$?
3813 grep -v '^ *+' conftest.er1 >conftest.err
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null; then
3818 if test -s conftest.err; then
3819 ac_cpp_err=$ac_c_preproc_warn_flag
3820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3821 else
3822 ac_cpp_err=
3823 fi
3824else
3825 ac_cpp_err=yes
b34f6357 3826fi
b7026657
AC
3827if test -z "$ac_cpp_err"; then
3828 ac_header_preproc=yes
3829else
3830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 ac_header_preproc=no
b34f6357 3834fi
b7026657
AC
3835rm -f conftest.err conftest.$ac_ext
3836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3837echo "${ECHO_T}$ac_header_preproc" >&6
3838
3839# So? What about this header?
3840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3841 yes:no: )
3842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3846 ac_header_preproc=yes
3847 ;;
3848 no:yes:* )
3849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3856echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3861 (
3862 cat <<\_ASBOX
3863## ------------------------------------------ ##
3864## Report this to the AC_PACKAGE_NAME lists. ##
3865## ------------------------------------------ ##
3866_ASBOX
3867 ) |
3868 sed "s/^/$as_me: WARNING: /" >&2
3869 ;;
3870esac
3871echo "$as_me:$LINENO: checking for $ac_header" >&5
3872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3873if eval "test \"\${$as_ac_Header+set}\" = set"; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
b34f6357 3875else
b7026657
AC
3876 eval "$as_ac_Header=\$ac_header_preproc"
3877fi
3878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3880
b34f6357 3881fi
b7026657
AC
3882if test `eval echo '${'$as_ac_Header'}'` = yes; then
3883 cat >>confdefs.h <<_ACEOF
3884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3885_ACEOF
3886
3887fi
3888
b34f6357
DB
3889done
3890
b7026657
AC
3891
3892
3893
3894for ac_header in dlfcn.h errno.h sys/stat.h
b34f6357 3895do
b7026657
AC
3896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3897if eval "test \"\${$as_ac_Header+set}\" = set"; then
3898 echo "$as_me:$LINENO: checking for $ac_header" >&5
3899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3900if eval "test \"\${$as_ac_Header+set}\" = set"; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902fi
3903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905else
3906 # Is the header compilable?
3907echo "$as_me:$LINENO: checking $ac_header usability" >&5
3908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3909cat >conftest.$ac_ext <<_ACEOF
3910/* confdefs.h. */
3911_ACEOF
3912cat confdefs.h >>conftest.$ac_ext
3913cat >>conftest.$ac_ext <<_ACEOF
3914/* end confdefs.h. */
3915$ac_includes_default
3916#include <$ac_header>
3917_ACEOF
3918rm -f conftest.$ac_objext
3919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920 (eval $ac_compile) 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try='test -s conftest.$ac_objext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_header_compiler=yes
3941else
3942 echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945ac_header_compiler=no
3946fi
3947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3949echo "${ECHO_T}$ac_header_compiler" >&6
3950
3951# Is the header present?
3952echo "$as_me:$LINENO: checking $ac_header presence" >&5
3953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3954cat >conftest.$ac_ext <<_ACEOF
3955/* confdefs.h. */
3956_ACEOF
3957cat confdefs.h >>conftest.$ac_ext
3958cat >>conftest.$ac_ext <<_ACEOF
3959/* end confdefs.h. */
3960#include <$ac_header>
3961_ACEOF
3962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } >/dev/null; then
3970 if test -s conftest.err; then
3971 ac_cpp_err=$ac_c_preproc_warn_flag
3972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3973 else
3974 ac_cpp_err=
3975 fi
3976else
3977 ac_cpp_err=yes
b34f6357 3978fi
b7026657
AC
3979if test -z "$ac_cpp_err"; then
3980 ac_header_preproc=yes
3981else
3982 echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 ac_header_preproc=no
b34f6357 3986fi
b7026657
AC
3987rm -f conftest.err conftest.$ac_ext
3988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3989echo "${ECHO_T}$ac_header_preproc" >&6
3990
3991# So? What about this header?
3992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3993 yes:no: )
3994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3998 ac_header_preproc=yes
3999 ;;
4000 no:yes:* )
4001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4008echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4013 (
4014 cat <<\_ASBOX
4015## ------------------------------------------ ##
4016## Report this to the AC_PACKAGE_NAME lists. ##
4017## ------------------------------------------ ##
4018_ASBOX
4019 ) |
4020 sed "s/^/$as_me: WARNING: /" >&2
4021 ;;
4022esac
4023echo "$as_me:$LINENO: checking for $ac_header" >&5
4024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4025if eval "test \"\${$as_ac_Header+set}\" = set"; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
b34f6357 4027else
b7026657
AC
4028 eval "$as_ac_Header=\$ac_header_preproc"
4029fi
4030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4032
4033fi
4034if test `eval echo '${'$as_ac_Header'}'` = yes; then
4035 cat >>confdefs.h <<_ACEOF
4036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4037_ACEOF
4038
b34f6357 4039fi
b7026657 4040
b34f6357
DB
4041done
4042
b7026657
AC
4043
4044
4045
4046
b34f6357
DB
4047for ac_func in getrusage time sigaction __setfpucw
4048do
b7026657
AC
4049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4050echo "$as_me:$LINENO: checking for $ac_func" >&5
4051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4052if eval "test \"\${$as_ac_var+set}\" = set"; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055 cat >conftest.$ac_ext <<_ACEOF
4056/* confdefs.h. */
4057_ACEOF
4058cat confdefs.h >>conftest.$ac_ext
4059cat >>conftest.$ac_ext <<_ACEOF
4060/* end confdefs.h. */
4061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4063#define $ac_func innocuous_$ac_func
4064
b34f6357 4065/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4066 which can conflict with char $ac_func (); below.
4067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068 <limits.h> exists even on freestanding compilers. */
b34f6357 4069
b7026657
AC
4070#ifdef __STDC__
4071# include <limits.h>
4072#else
4073# include <assert.h>
4074#endif
b34f6357 4075
b7026657
AC
4076#undef $ac_func
4077
4078/* Override any gcc2 internal prototype to avoid an error. */
4079#ifdef __cplusplus
4080extern "C"
4081{
4082#endif
4083/* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4085char $ac_func ();
b34f6357
DB
4086/* The GNU C library defines this for functions which it implements
4087 to always fail with ENOSYS. Some functions are actually named
4088 something starting with __ and the normal name is an alias. */
4089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4090choke me
4091#else
b7026657
AC
4092char (*f) () = $ac_func;
4093#endif
4094#ifdef __cplusplus
4095}
b34f6357
DB
4096#endif
4097
b7026657
AC
4098int
4099main ()
4100{
4101return f != $ac_func;
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106rm -f conftest.$ac_objext conftest$ac_exeext
4107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4108 (eval $ac_link) 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -z "$ac_c_werror_flag"
4116 || test ! -s conftest.err'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest$ac_exeext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 eval "$as_ac_var=yes"
4129else
4130 echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133eval "$as_ac_var=no"
4134fi
4135rm -f conftest.err conftest.$ac_objext \
4136 conftest$ac_exeext conftest.$ac_ext
4137fi
4138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4139echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4140if test `eval echo '${'$as_ac_var'}'` = yes; then
4141 cat >>confdefs.h <<_ACEOF
4142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4143_ACEOF
b34f6357 4144
b34f6357
DB
4145fi
4146done
4147
4148
4149# Check for socket libraries
b7026657
AC
4150
4151echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4152echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4153if test "${ac_cv_lib_socket_bind+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
b34f6357 4155else
b7026657 4156 ac_check_lib_save_LIBS=$LIBS
b34f6357 4157LIBS="-lsocket $LIBS"
b7026657
AC
4158cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164
b34f6357 4165/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4166#ifdef __cplusplus
4167extern "C"
4168#endif
b34f6357 4169/* We use char because int might match the return type of a gcc2
b7026657
AC
4170 builtin and then its argument prototype would still apply. */
4171char bind ();
4172int
4173main ()
4174{
4175bind ();
4176 ;
4177 return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext conftest$ac_exeext
4181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4182 (eval $ac_link) 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest$ac_exeext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_cv_lib_socket_bind=yes
4203else
4204 echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207ac_cv_lib_socket_bind=no
4208fi
4209rm -f conftest.err conftest.$ac_objext \
4210 conftest$ac_exeext conftest.$ac_ext
4211LIBS=$ac_check_lib_save_LIBS
4212fi
4213echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4214echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4215if test $ac_cv_lib_socket_bind = yes; then
4216 cat >>confdefs.h <<_ACEOF
4217#define HAVE_LIBSOCKET 1
4218_ACEOF
b34f6357
DB
4219
4220 LIBS="-lsocket $LIBS"
4221
b34f6357
DB
4222fi
4223
b7026657
AC
4224
4225echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4226echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4227if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
b34f6357 4229else
b7026657 4230 ac_check_lib_save_LIBS=$LIBS
b34f6357 4231LIBS="-lnsl $LIBS"
b7026657
AC
4232cat >conftest.$ac_ext <<_ACEOF
4233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */
b34f6357 4238
b7026657
AC
4239/* Override any gcc2 internal prototype to avoid an error. */
4240#ifdef __cplusplus
4241extern "C"
4242#endif
4243/* We use char because int might match the return type of a gcc2
4244 builtin and then its argument prototype would still apply. */
4245char gethostbyname ();
4246int
4247main ()
4248{
4249gethostbyname ();
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext conftest$ac_exeext
4255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256 (eval $ac_link) 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest$ac_exeext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_lib_nsl_gethostbyname=yes
4277else
4278 echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281ac_cv_lib_nsl_gethostbyname=no
4282fi
4283rm -f conftest.err conftest.$ac_objext \
4284 conftest$ac_exeext conftest.$ac_ext
4285LIBS=$ac_check_lib_save_LIBS
4286fi
4287echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4288echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4289if test $ac_cv_lib_nsl_gethostbyname = yes; then
4290 cat >>confdefs.h <<_ACEOF
4291#define HAVE_LIBNSL 1
4292_ACEOF
b34f6357
DB
4293
4294 LIBS="-lnsl $LIBS"
4295
b34f6357
DB
4296fi
4297
4298
b5bd9624
HPN
4299# BFD conditionally uses zlib, so we must link it in if libbfd does, by
4300# using the same condition.
4301echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4302echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4303if test "${ac_cv_search_zlibVersion+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305else
4306 ac_func_search_save_LIBS=$LIBS
4307ac_cv_search_zlibVersion=no
4308cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h. */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */
4314
4315/* Override any gcc2 internal prototype to avoid an error. */
4316#ifdef __cplusplus
4317extern "C"
4318#endif
4319/* We use char because int might match the return type of a gcc2
4320 builtin and then its argument prototype would still apply. */
4321char zlibVersion ();
4322int
4323main ()
4324{
4325zlibVersion ();
4326 ;
4327 return 0;
4328}
4329_ACEOF
4330rm -f conftest.$ac_objext conftest$ac_exeext
4331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332 (eval $ac_link) 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag"
4340 || test ! -s conftest.err'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; } &&
4346 { ac_try='test -s conftest$ac_exeext'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_search_zlibVersion="none required"
4353else
4354 echo "$as_me: failed program was:" >&5
4355sed 's/^/| /' conftest.$ac_ext >&5
4356
4357fi
4358rm -f conftest.err conftest.$ac_objext \
4359 conftest$ac_exeext conftest.$ac_ext
4360if test "$ac_cv_search_zlibVersion" = no; then
4361 for ac_lib in z; do
4362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4363 cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h. */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h. */
4369
4370/* Override any gcc2 internal prototype to avoid an error. */
4371#ifdef __cplusplus
4372extern "C"
4373#endif
4374/* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376char zlibVersion ();
4377int
4378main ()
4379{
4380zlibVersion ();
4381 ;
4382 return 0;
4383}
4384_ACEOF
4385rm -f conftest.$ac_objext conftest$ac_exeext
4386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag"
4395 || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest$ac_exeext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_cv_search_zlibVersion="-l$ac_lib"
4408break
4409else
4410 echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413fi
4414rm -f conftest.err conftest.$ac_objext \
4415 conftest$ac_exeext conftest.$ac_ext
4416 done
4417fi
4418LIBS=$ac_func_search_save_LIBS
4419fi
4420echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4421echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4422if test "$ac_cv_search_zlibVersion" != no; then
4423 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4424
4425for ac_header in zlib.h
4426do
4427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429 echo "$as_me:$LINENO: checking for $ac_header" >&5
4430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4431if eval "test \"\${$as_ac_Header+set}\" = set"; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433fi
4434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4436else
4437 # Is the header compilable?
4438echo "$as_me:$LINENO: checking $ac_header usability" >&5
4439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4440cat >conftest.$ac_ext <<_ACEOF
4441/* confdefs.h. */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h. */
4446$ac_includes_default
4447#include <$ac_header>
4448_ACEOF
4449rm -f conftest.$ac_objext
4450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -z "$ac_c_werror_flag"
4459 || test ! -s conftest.err'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 ac_header_compiler=yes
4472else
4473 echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476ac_header_compiler=no
4477fi
4478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4480echo "${ECHO_T}$ac_header_compiler" >&6
4481
4482# Is the header present?
4483echo "$as_me:$LINENO: checking $ac_header presence" >&5
4484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4485cat >conftest.$ac_ext <<_ACEOF
4486/* confdefs.h. */
4487_ACEOF
4488cat confdefs.h >>conftest.$ac_ext
4489cat >>conftest.$ac_ext <<_ACEOF
4490/* end confdefs.h. */
4491#include <$ac_header>
4492_ACEOF
4493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } >/dev/null; then
4501 if test -s conftest.err; then
4502 ac_cpp_err=$ac_c_preproc_warn_flag
4503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4504 else
4505 ac_cpp_err=
4506 fi
4507else
4508 ac_cpp_err=yes
4509fi
4510if test -z "$ac_cpp_err"; then
4511 ac_header_preproc=yes
4512else
4513 echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 ac_header_preproc=no
4517fi
4518rm -f conftest.err conftest.$ac_ext
4519echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4520echo "${ECHO_T}$ac_header_preproc" >&6
4521
4522# So? What about this header?
4523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4524 yes:no: )
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4528echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4529 ac_header_preproc=yes
4530 ;;
4531 no:yes:* )
4532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4533echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4535echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4537echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4539echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4541echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4543echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4544 (
4545 cat <<\_ASBOX
4546## ------------------------------------------ ##
4547## Report this to the AC_PACKAGE_NAME lists. ##
4548## ------------------------------------------ ##
4549_ASBOX
4550 ) |
4551 sed "s/^/$as_me: WARNING: /" >&2
4552 ;;
4553esac
4554echo "$as_me:$LINENO: checking for $ac_header" >&5
4555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4556if eval "test \"\${$as_ac_Header+set}\" = set"; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559 eval "$as_ac_Header=\$ac_header_preproc"
4560fi
4561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4563
4564fi
4565if test `eval echo '${'$as_ac_Header'}'` = yes; then
4566 cat >>confdefs.h <<_ACEOF
4567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4568_ACEOF
4569
4570fi
4571
4572done
4573
4574fi
4575
4576
b34f6357
DB
4577. ${srcdir}/../../bfd/configure.host
4578
4579
4580
4581USE_MAINTAINER_MODE=no
4582# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4583if test "${enable_maintainer_mode+set}" = set; then
4584 enableval="$enable_maintainer_mode"
4585 case "${enableval}" in
4586 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4587 no) MAINT="#" ;;
b7026657
AC
4588 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4589echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4590 { (exit 1); exit 1; }; }; MAINT="#" ;;
b34f6357
DB
4591esac
4592if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4593 echo "Setting maintainer mode" 6>&1
4594fi
4595else
4596 MAINT="#"
b7026657 4597fi;
b34f6357
DB
4598
4599
4600# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4601if test "${enable_sim_bswap+set}" = set; then
4602 enableval="$enable_sim_bswap"
4603 case "${enableval}" in
4604 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4605 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
4606 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4607echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4608 { (exit 1); exit 1; }; }; sim_bswap="";;
b34f6357
DB
4609esac
4610if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4611 echo "Setting bswap flags = $sim_bswap" 6>&1
4612fi
4613else
4614 sim_bswap=""
b7026657 4615fi;
b34f6357
DB
4616
4617
4618# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4619if test "${enable_sim_cflags+set}" = set; then
4620 enableval="$enable_sim_cflags"
4621 case "${enableval}" in
4622 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
4623 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4624echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4625 { (exit 1); exit 1; }; }; sim_cflags="";;
b34f6357
DB
4626 no) sim_cflags="";;
4627 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4628esac
4629if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4630 echo "Setting sim cflags = $sim_cflags" 6>&1
4631fi
4632else
4633 sim_cflags=""
b7026657 4634fi;
b34f6357
DB
4635
4636
4637# Check whether --enable-sim-debug or --disable-sim-debug was given.
4638if test "${enable_sim_debug+set}" = set; then
4639 enableval="$enable_sim_debug"
4640 case "${enableval}" in
4641 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4642 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4643 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4644esac
4645if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4646 echo "Setting sim debug = $sim_debug" 6>&1
4647fi
4648else
4649 sim_debug=""
b7026657 4650fi;
b34f6357
DB
4651
4652
4653# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4654if test "${enable_sim_stdio+set}" = set; then
4655 enableval="$enable_sim_stdio"
4656 case "${enableval}" in
4657 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4658 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
4659 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4660echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4661 { (exit 1); exit 1; }; }; sim_stdio="";;
b34f6357
DB
4662esac
4663if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4664 echo "Setting stdio flags = $sim_stdio" 6>&1
4665fi
4666else
4667 sim_stdio=""
b7026657 4668fi;
b34f6357
DB
4669
4670
4671# Check whether --enable-sim-trace or --disable-sim-trace was given.
4672if test "${enable_sim_trace+set}" = set; then
4673 enableval="$enable_sim_trace"
4674 case "${enableval}" in
4675 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4676 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4677 [-0-9]*)
4678 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4679 [a-z]*)
4680 sim_trace=""
4681 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4682 if test x"$sim_trace" = x; then
4683 sim_trace="-DWITH_TRACE='(TRACE_$x"
4684 else
4685 sim_trace="${sim_trace}|TRACE_$x"
4686 fi
4687 done
4688 sim_trace="$sim_trace)'" ;;
4689esac
4690if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4691 echo "Setting sim trace = $sim_trace" 6>&1
4692fi
4693else
4694 sim_trace=""
b7026657 4695fi;
b34f6357
DB
4696
4697
4698# Check whether --enable-sim-profile or --disable-sim-profile was given.
4699if test "${enable_sim_profile+set}" = set; then
4700 enableval="$enable_sim_profile"
4701 case "${enableval}" in
4702 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4703 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4704 [-0-9]*)
4705 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4706 [a-z]*)
4707 sim_profile=""
4708 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4709 if test x"$sim_profile" = x; then
4710 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4711 else
4712 sim_profile="${sim_profile}|PROFILE_$x"
4713 fi
4714 done
4715 sim_profile="$sim_profile)'" ;;
4716esac
4717if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4718 echo "Setting sim profile = $sim_profile" 6>&1
4719fi
4720else
4721 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 4722fi;
b34f6357
DB
4723
4724
6efef468
JM
4725
4726# Check whether --with-pkgversion or --without-pkgversion was given.
4727if test "${with_pkgversion+set}" = set; then
4728 withval="$with_pkgversion"
4729 case "$withval" in
4730 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4731echo "$as_me: error: package version not specified" >&2;}
4732 { (exit 1); exit 1; }; } ;;
4733 no) PKGVERSION= ;;
4734 *) PKGVERSION="($withval) " ;;
4735 esac
4736else
4737 PKGVERSION="(GDB) "
4738
4739fi;
4740
4741
4742
4743
4744# Check whether --with-bugurl or --without-bugurl was given.
4745if test "${with_bugurl+set}" = set; then
4746 withval="$with_bugurl"
4747 case "$withval" in
4748 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4749echo "$as_me: error: bug URL not specified" >&2;}
4750 { (exit 1); exit 1; }; } ;;
4751 no) BUGURL=
4752 ;;
4753 *) BUGURL="$withval"
4754 ;;
4755 esac
4756else
4757 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4758
4759fi;
4760 case ${BUGURL} in
4761 "")
4762 REPORT_BUGS_TO=
4763 REPORT_BUGS_TEXI=
4764 ;;
4765 *)
4766 REPORT_BUGS_TO="<$BUGURL>"
4767 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4768 ;;
4769 esac;
4770
4771
4772
4773
4774cat >>confdefs.h <<_ACEOF
4775#define PKGVERSION "$PKGVERSION"
4776_ACEOF
4777
4778
4779cat >>confdefs.h <<_ACEOF
4780#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4781_ACEOF
4782
4783
b7026657
AC
4784echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4785echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4786if test "${ac_cv_type_signal+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
b34f6357 4788else
b7026657
AC
4789 cat >conftest.$ac_ext <<_ACEOF
4790/* confdefs.h. */
4791_ACEOF
4792cat confdefs.h >>conftest.$ac_ext
4793cat >>conftest.$ac_ext <<_ACEOF
4794/* end confdefs.h. */
b34f6357
DB
4795#include <sys/types.h>
4796#include <signal.h>
4797#ifdef signal
b7026657 4798# undef signal
b34f6357
DB
4799#endif
4800#ifdef __cplusplus
4801extern "C" void (*signal (int, void (*)(int)))(int);
4802#else
4803void (*signal ()) ();
4804#endif
4805
b7026657
AC
4806int
4807main ()
4808{
b34f6357 4809int i;
b7026657
AC
4810 ;
4811 return 0;
4812}
4813_ACEOF
4814rm -f conftest.$ac_objext
4815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -z "$ac_c_werror_flag"
4824 || test ! -s conftest.err'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
b34f6357
DB
4836 ac_cv_type_signal=void
4837else
b7026657
AC
4838 echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841ac_cv_type_signal=int
b34f6357 4842fi
b7026657 4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b34f6357 4844fi
b7026657
AC
4845echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4846echo "${ECHO_T}$ac_cv_type_signal" >&6
b34f6357 4847
b7026657 4848cat >>confdefs.h <<_ACEOF
b34f6357 4849#define RETSIGTYPE $ac_cv_type_signal
b7026657 4850_ACEOF
b34f6357
DB
4851
4852
4853
4854
4855
b34f6357
DB
4856sim_link_files=
4857sim_link_links=
4858
4859sim_link_links=tconfig.h
4860if test -f ${srcdir}/tconfig.in
4861then
4862 sim_link_files=tconfig.in
4863else
4864 sim_link_files=../common/tconfig.in
4865fi
4866
4867# targ-vals.def points to the libc macro description file.
4868case "${target}" in
4869*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4870esac
4871sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4872sim_link_links="${sim_link_links} targ-vals.def"
4873
b34f6357
DB
4874
4875
4876wire_endian="BIG_ENDIAN"
4877default_endian=""
4878# Check whether --enable-sim-endian or --disable-sim-endian was given.
4879if test "${enable_sim_endian+set}" = set; then
4880 enableval="$enable_sim_endian"
4881 case "${enableval}" in
4882 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4883 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4884 yes) if test x"$wire_endian" != x; then
4885 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4886 else
4887 if test x"$default_endian" != x; then
4888 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4889 else
4890 echo "No hard-wired endian for target $target" 1>&6
4891 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
4892 fi
4893 fi;;
4894 no) if test x"$default_endian" != x; then
4895 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4896 else
4897 if test x"$wire_endian" != x; then
4898 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4899 else
4900 echo "No default endian for target $target" 1>&6
4901 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4902 fi
4903 fi;;
b7026657
AC
4904 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
4905echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
4906 { (exit 1); exit 1; }; }; sim_endian="";;
b34f6357
DB
4907esac
4908if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
4909 echo "Setting endian flags = $sim_endian" 6>&1
4910fi
4911else
4912 if test x"$default_endian" != x; then
4913 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4914else
4915 if test x"$wire_endian" != x; then
4916 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4917 else
4918 sim_endian=
4919 fi
4920fi
b7026657 4921fi;
b34f6357
DB
4922wire_alignment="STRICT_ALIGNMENT"
4923default_alignment=""
4924
4925# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4926if test "${enable_sim_alignment+set}" = set; then
4927 enableval="$enable_sim_alignment"
4928 case "${enableval}" in
4929 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4930 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4931 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4932 yes) if test x"$wire_alignment" != x; then
4933 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4934 else
4935 if test x"$default_alignment" != x; then
4936 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4937 else
4938 echo "No hard-wired alignment for target $target" 1>&6
4939 sim_alignment="-DWITH_ALIGNMENT=0"
4940 fi
4941 fi;;
4942 no) if test x"$default_alignment" != x; then
4943 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4944 else
4945 if test x"$wire_alignment" != x; then
4946 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4947 else
4948 echo "No default alignment for target $target" 1>&6
4949 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4950 fi
4951 fi;;
b7026657
AC
4952 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4953echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4954 { (exit 1); exit 1; }; }; sim_alignment="";;
b34f6357
DB
4955esac
4956if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4957 echo "Setting alignment flags = $sim_alignment" 6>&1
4958fi
4959else
4960 if test x"$default_alignment" != x; then
4961 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4962else
4963 if test x"$wire_alignment" != x; then
4964 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4965 else
4966 sim_alignment=
4967 fi
4968fi
b7026657 4969fi;
b34f6357
DB
4970
4971# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4972if test "${enable_sim_hostendian+set}" = set; then
4973 enableval="$enable_sim_hostendian"
4974 case "${enableval}" in
4975 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4976 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4977 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
b7026657
AC
4978 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4979echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4980 { (exit 1); exit 1; }; }; sim_hostendian="";;
b34f6357
DB
4981esac
4982if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4983 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4984fi
4985else
b7026657 4986
b34f6357 4987if test "x$cross_compiling" = "xno"; then
b7026657
AC
4988 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4989echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4990if test "${ac_cv_c_bigendian+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4992else
4993 # See if sys/param.h defines the BYTE_ORDER macro.
4994cat >conftest.$ac_ext <<_ACEOF
4995/* confdefs.h. */
4996_ACEOF
4997cat confdefs.h >>conftest.$ac_ext
4998cat >>conftest.$ac_ext <<_ACEOF
4999/* end confdefs.h. */
b34f6357
DB
5000#include <sys/types.h>
5001#include <sys/param.h>
b34f6357 5002
b7026657
AC
5003int
5004main ()
5005{
b34f6357
DB
5006#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5007 bogus endian macros
5008#endif
b7026657
AC
5009
5010 ;
5011 return 0;
5012}
5013_ACEOF
5014rm -f conftest.$ac_objext
5015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -z "$ac_c_werror_flag"
5024 || test ! -s conftest.err'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; } &&
5030 { ac_try='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
b34f6357 5036 # It does; now see whether it defined to BIG_ENDIAN or not.
b7026657
AC
5037cat >conftest.$ac_ext <<_ACEOF
5038/* confdefs.h. */
5039_ACEOF
5040cat confdefs.h >>conftest.$ac_ext
5041cat >>conftest.$ac_ext <<_ACEOF
5042/* end confdefs.h. */
b34f6357
DB
5043#include <sys/types.h>
5044#include <sys/param.h>
b34f6357 5045
b7026657
AC
5046int
5047main ()
5048{
b34f6357
DB
5049#if BYTE_ORDER != BIG_ENDIAN
5050 not big endian
5051#endif
b7026657
AC
5052
5053 ;
5054 return 0;
5055}
5056_ACEOF
5057rm -f conftest.$ac_objext
5058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5059 (eval $ac_compile) 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest.$ac_objext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
b34f6357
DB
5079 ac_cv_c_bigendian=yes
5080else
b7026657
AC
5081 echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084ac_cv_c_bigendian=no
b34f6357 5085fi
b7026657 5086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b34f6357 5087else
b7026657
AC
5088 echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091# It does not; compile a test program.
b34f6357 5092if test "$cross_compiling" = yes; then
b7026657
AC
5093 # try to guess the endianness by grepping values into an object file
5094 ac_cv_c_bigendian=unknown
5095 cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h. */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h. */
5101short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5102short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5103void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5104short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5105short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5106void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5107int
5108main ()
5109{
5110 _ascii (); _ebcdic ();
5111 ;
5112 return 0;
5113}
5114_ACEOF
5115rm -f conftest.$ac_objext
5116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117 (eval $ac_compile) 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try='test -z "$ac_c_werror_flag"
5125 || test ! -s conftest.err'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 (eval $ac_try) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; } &&
5131 { ac_try='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5138 ac_cv_c_bigendian=yes
5139fi
5140if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5141 if test "$ac_cv_c_bigendian" = unknown; then
5142 ac_cv_c_bigendian=no
5143 else
5144 # finding both strings is unlikely to happen, but who knows?
5145 ac_cv_c_bigendian=unknown
5146 fi
5147fi
5148else
5149 echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152fi
5153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b34f6357 5154else
b7026657
AC
5155 cat >conftest.$ac_ext <<_ACEOF
5156/* confdefs.h. */
5157_ACEOF
5158cat confdefs.h >>conftest.$ac_ext
5159cat >>conftest.$ac_ext <<_ACEOF
5160/* end confdefs.h. */
5161int
5162main ()
5163{
b34f6357
DB
5164 /* Are we little or big endian? From Harbison&Steele. */
5165 union
5166 {
5167 long l;
5168 char c[sizeof (long)];
5169 } u;
5170 u.l = 1;
5171 exit (u.c[sizeof (long) - 1] == 1);
5172}
b7026657
AC
5173_ACEOF
5174rm -f conftest$ac_exeext
5175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176 (eval $ac_link) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
b34f6357
DB
5185 ac_cv_c_bigendian=no
5186else
b7026657
AC
5187 echo "$as_me: program exited with status $ac_status" >&5
5188echo "$as_me: failed program was:" >&5
5189sed 's/^/| /' conftest.$ac_ext >&5
5190
5191( exit $ac_status )
5192ac_cv_c_bigendian=yes
b34f6357 5193fi
b7026657 5194rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b34f6357 5195fi
b34f6357 5196fi
b7026657 5197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b34f6357 5198fi
b7026657
AC
5199echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5200echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5201case $ac_cv_c_bigendian in
5202 yes)
b34f6357 5203
b7026657 5204cat >>confdefs.h <<\_ACEOF
b34f6357 5205#define WORDS_BIGENDIAN 1
b7026657
AC
5206_ACEOF
5207 ;;
5208 no)
5209 ;;
5210 *)
5211 { { echo "$as_me:$LINENO: error: unknown endianness
5212presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5213echo "$as_me: error: unknown endianness
5214presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5216esac
b34f6357
DB
5217
5218 if test $ac_cv_c_bigendian = yes; then
5219 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5220 else
5221 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5222 fi
5223else
5224 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
5225fi
b7026657 5226fi;
b34f6357
DB
5227
5228default_sim_scache="16384"
5229# Check whether --enable-sim-scache or --disable-sim-scache was given.
5230if test "${enable_sim_scache+set}" = set; then
5231 enableval="$enable_sim_scache"
5232 case "${enableval}" in
5233 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
5234 no) sim_scache="-DWITH_SCACHE=0" ;;
379832de 5235 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
b7026657
AC
5236 *) { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
5237echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
5238 { (exit 1); exit 1; }; };
b34f6357
DB
5239 sim_scache="";;
5240esac
5241if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
5242 echo "Setting scache size = $sim_scache" 6>&1
5243fi
5244else
5245 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
b7026657
AC
5246fi;
5247
5248
5249default_sim_default_model="fr500"
5250# Check whether --enable-sim-default-model or --disable-sim-default-model was given.
5251if test "${enable_sim_default_model+set}" = set; then
5252 enableval="$enable_sim_default_model"
5253 case "${enableval}" in
5254 yes|no) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
5255echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
5256 { (exit 1); exit 1; }; };;
5257 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
5258esac
5259if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5260 echo "Setting default model = $sim_default_model" 6>&1
5261fi
5262else
5263 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
5264fi;
5265
5266
5267# Check whether --enable-sim-environment or --disable-sim-environment was given.
5268if test "${enable_sim_environment+set}" = set; then
5269 enableval="$enable_sim_environment"
5270 case "${enableval}" in
5271 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
5272 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5273 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5274 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5275 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
5276echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
5277 { (exit 1); exit 1; }; };
5278 sim_environment="";;
5279esac
5280if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
5281 echo "Setting sim environment = $sim_environment" 6>&1
5282fi
5283else
5284 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
5285fi;
5286
5287cgen_maint=no
5288cgen=guile
5289cgendir='$(srcdir)/../../cgen'
5290# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
5291if test "${enable_cgen_maint+set}" = set; then
5292 enableval="$enable_cgen_maint"
5293 case "${enableval}" in
5294 yes) cgen_maint=yes ;;
5295 no) cgen_maint=no ;;
5296 *)
5297 # argument is cgen install directory (not implemented yet).
5298 # Having a `share' directory might be more appropriate for the .scm,
5299 # .cpu, etc. files.
5300 cgendir=${cgen_maint}/lib/cgen
5301 cgen=guile
5302 ;;
5303esac
5304fi; if test x${cgen_maint} != xno ; then
5305 CGEN_MAINT=''
5306else
5307 CGEN_MAINT='#'
5308fi
5309
5310
5311
5312
5313
5314#
5315# Enable making unknown traps dump out registers
5316#
5317# Check whether --enable-sim-trapdump or --disable-sim-trapdump was given.
5318if test "${enable_sim_trapdump+set}" = set; then
5319 enableval="$enable_sim_trapdump"
5320 case "${enableval}" in
5321 yes) sim_trapdump="-DTRAPDUMP=1";;
5322 no) sim_trapdump="-DTRAPDUMP=0";;
5323 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-trapdump\"" >&5
5324echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-trapdump\"" >&2;}
5325 { (exit 1); exit 1; }; }; sim_trapdump="";;
5326esac
5327if test x"$silent" != x"yes" && test x"$sim_trapdump" != x""; then
5328 echo "Setting sim_trapdump = $sim_trapdump" 6>&1
5329fi
5330else
5331 sim_trapdump=""
5332fi;
5333
5334
5335ac_sources="$sim_link_files"
5336ac_dests="$sim_link_links"
5337while test -n "$ac_sources"; do
5338 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5339 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5340 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5341done
5342 ac_config_links="$ac_config_links $ac_config_links_1"
5343
5344cgen_breaks=""
5345if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5346cgen_breaks="break cgen_rtx_error";
5347fi
5348
38f48d72
AC
5349 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5350
5351 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5352
5353 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5354
5355 ac_config_commands="$ac_config_commands Makefile"
5356
5357 ac_config_commands="$ac_config_commands stamp-h"
5358
b7026657
AC
5359cat >confcache <<\_ACEOF
5360# This file is a shell script that caches the results of configure
5361# tests run on this system so they can be shared between configure
5362# scripts and configure runs, see configure's option --config-cache.
5363# It is not useful on other systems. If it contains results you don't
5364# want to keep, you may remove or edit it.
5365#
5366# config.status only pays attention to the cache file if you give it
5367# the --recheck option to rerun configure.
5368#
5369# `ac_cv_env_foo' variables (set or unset) will be overridden when
5370# loading this file, other *unset* `ac_cv_foo' will be assigned the
5371# following values.
5372
5373_ACEOF
5374
5375# The following way of writing the cache mishandles newlines in values,
5376# but we know of no workaround that is simple, portable, and efficient.
5377# So, don't put newlines in cache variables' values.
5378# Ultrix sh set writes to stderr and can't be redirected directly,
5379# and sets the high bit in the cache file unless we assign to the vars.
5380{
5381 (set) 2>&1 |
5382 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5383 *ac_space=\ *)
5384 # `set' does not quote correctly, so add quotes (double-quote
5385 # substitution turns \\\\ into \\, and sed turns \\ into \).
5386 sed -n \
5387 "s/'/'\\\\''/g;
5388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5389 ;;
5390 *)
5391 # `set' quotes correctly as required by POSIX, so do not add quotes.
5392 sed -n \
5393 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5394 ;;
5395 esac;
5396} |
5397 sed '
5398 t clear
5399 : clear
5400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5401 t end
5402 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5403 : end' >>confcache
5404if diff $cache_file confcache >/dev/null 2>&1; then :; else
5405 if test -w $cache_file; then
5406 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5407 cat confcache >$cache_file
5408 else
5409 echo "not updating unwritable cache $cache_file"
5410 fi
5411fi
5412rm -f confcache
5413
5414test "x$prefix" = xNONE && prefix=$ac_default_prefix
5415# Let make expand exec_prefix.
5416test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5417
5418# VPATH may cause trouble with some makes, so we remove $(srcdir),
5419# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5420# trailing colons and then remove the whole line if VPATH becomes empty
5421# (actually we leave an empty line to preserve line numbers).
5422if test "x$srcdir" = x.; then
5423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5424s/:*\$(srcdir):*/:/;
5425s/:*\${srcdir}:*/:/;
5426s/:*@srcdir@:*/:/;
5427s/^\([^=]*=[ ]*\):*/\1/;
5428s/:*$//;
5429s/^[^=]*=[ ]*$//;
5430}'
5431fi
5432
5433DEFS=-DHAVE_CONFIG_H
5434
5435ac_libobjs=
5436ac_ltlibobjs=
5437for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5438 # 1. Remove the extension, and $U if already installed.
5439 ac_i=`echo "$ac_i" |
5440 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5441 # 2. Add them.
5442 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5443 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5444done
5445LIBOBJS=$ac_libobjs
5446
5447LTLIBOBJS=$ac_ltlibobjs
5448
5449
5450
5451: ${CONFIG_STATUS=./config.status}
5452ac_clean_files_save=$ac_clean_files
5453ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5454{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5455echo "$as_me: creating $CONFIG_STATUS" >&6;}
5456cat >$CONFIG_STATUS <<_ACEOF
5457#! $SHELL
5458# Generated by $as_me.
5459# Run this file to recreate the current configuration.
5460# Compiler output produced by configure, useful for debugging
5461# configure, is in config.log if it exists.
5462
5463debug=false
5464ac_cs_recheck=false
5465ac_cs_silent=false
5466SHELL=\${CONFIG_SHELL-$SHELL}
5467_ACEOF
5468
5469cat >>$CONFIG_STATUS <<\_ACEOF
5470## --------------------- ##
5471## M4sh Initialization. ##
5472## --------------------- ##
5473
5474# Be Bourne compatible
5475if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5476 emulate sh
5477 NULLCMD=:
5478 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5479 # is contrary to our usage. Disable this feature.
5480 alias -g '${1+"$@"}'='"$@"'
5481elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5482 set -o posix
5483fi
5484DUALCASE=1; export DUALCASE # for MKS sh
5485
5486# Support unset when possible.
5487if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5488 as_unset=unset
5489else
5490 as_unset=false
5491fi
5492
5493
5494# Work around bugs in pre-3.0 UWIN ksh.
5495$as_unset ENV MAIL MAILPATH
5496PS1='$ '
5497PS2='> '
5498PS4='+ '
5499
5500# NLS nuisances.
5501for as_var in \
5502 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5503 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5504 LC_TELEPHONE LC_TIME
5505do
5506 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5507 eval $as_var=C; export $as_var
5508 else
5509 $as_unset $as_var
5510 fi
5511done
5512
5513# Required to use basename.
5514if expr a : '\(a\)' >/dev/null 2>&1; then
5515 as_expr=expr
5516else
5517 as_expr=false
5518fi
5519
5520if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5521 as_basename=basename
5522else
5523 as_basename=false
5524fi
5525
5526
5527# Name of the executable.
5528as_me=`$as_basename "$0" ||
5529$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5530 X"$0" : 'X\(//\)$' \| \
5531 X"$0" : 'X\(/\)$' \| \
5532 . : '\(.\)' 2>/dev/null ||
5533echo X/"$0" |
5534 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5535 /^X\/\(\/\/\)$/{ s//\1/; q; }
5536 /^X\/\(\/\).*/{ s//\1/; q; }
5537 s/.*/./; q'`
5538
5539
5540# PATH needs CR, and LINENO needs CR and PATH.
5541# Avoid depending upon Character Ranges.
5542as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5543as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5544as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5545as_cr_digits='0123456789'
5546as_cr_alnum=$as_cr_Letters$as_cr_digits
5547
5548# The user is always right.
5549if test "${PATH_SEPARATOR+set}" != set; then
5550 echo "#! /bin/sh" >conf$$.sh
5551 echo "exit 0" >>conf$$.sh
5552 chmod +x conf$$.sh
5553 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5554 PATH_SEPARATOR=';'
5555 else
5556 PATH_SEPARATOR=:
5557 fi
5558 rm -f conf$$.sh
b34f6357
DB
5559fi
5560
5561
b7026657
AC
5562 as_lineno_1=$LINENO
5563 as_lineno_2=$LINENO
5564 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5565 test "x$as_lineno_1" != "x$as_lineno_2" &&
5566 test "x$as_lineno_3" = "x$as_lineno_2" || {
5567 # Find who we are. Look in the path if we contain no path at all
5568 # relative or not.
5569 case $0 in
5570 *[\\/]* ) as_myself=$0 ;;
5571 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5577done
5578
5579 ;;
5580 esac
5581 # We did not find ourselves, most probably we were run as `sh COMMAND'
5582 # in which case we are not to be found in the path.
5583 if test "x$as_myself" = x; then
5584 as_myself=$0
5585 fi
5586 if test ! -f "$as_myself"; then
5587 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5588echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5589 { (exit 1); exit 1; }; }
5590 fi
5591 case $CONFIG_SHELL in
5592 '')
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5595do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for as_base in sh bash ksh sh5; do
5599 case $as_dir in
5600 /*)
5601 if ("$as_dir/$as_base" -c '
5602 as_lineno_1=$LINENO
5603 as_lineno_2=$LINENO
5604 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5605 test "x$as_lineno_1" != "x$as_lineno_2" &&
5606 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5607 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5608 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5609 CONFIG_SHELL=$as_dir/$as_base
5610 export CONFIG_SHELL
5611 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5612 fi;;
5613 esac
5614 done
5615done
5616;;
5617 esac
5618
5619 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5620 # uniformly replaced by the line number. The first 'sed' inserts a
5621 # line-number line before each line; the second 'sed' does the real
5622 # work. The second script uses 'N' to pair each line-number line
5623 # with the numbered line, and appends trailing '-' during
5624 # substitution so that $LINENO is not a special case at line end.
5625 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5626 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5627 sed '=' <$as_myself |
5628 sed '
5629 N
5630 s,$,-,
5631 : loop
5632 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5633 t loop
5634 s,-$,,
5635 s,^['$as_cr_digits']*\n,,
5636 ' >$as_me.lineno &&
5637 chmod +x $as_me.lineno ||
5638 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5639echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5640 { (exit 1); exit 1; }; }
5641
5642 # Don't try to exec as it changes $[0], causing all sort of problems
5643 # (the dirname of $[0] is not the place where we might find the
5644 # original and so on. Autoconf is especially sensible to this).
5645 . ./$as_me.lineno
5646 # Exit status is that of the last command.
5647 exit
5648}
5649
b34f6357 5650
b7026657
AC
5651case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5652 *c*,-n*) ECHO_N= ECHO_C='
5653' ECHO_T=' ' ;;
5654 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5655 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
b34f6357 5656esac
b7026657
AC
5657
5658if expr a : '\(a\)' >/dev/null 2>&1; then
5659 as_expr=expr
5660else
5661 as_expr=false
b34f6357 5662fi
b7026657
AC
5663
5664rm -f conf$$ conf$$.exe conf$$.file
5665echo >conf$$.file
5666if ln -s conf$$.file conf$$ 2>/dev/null; then
5667 # We could just check for DJGPP; but this test a) works b) is more generic
5668 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5669 if test -f conf$$.exe; then
5670 # Don't use ln at all; we don't have any links
5671 as_ln_s='cp -p'
5672 else
5673 as_ln_s='ln -s'
5674 fi
5675elif ln conf$$.file conf$$ 2>/dev/null; then
5676 as_ln_s=ln
b34f6357 5677else
b7026657 5678 as_ln_s='cp -p'
b34f6357 5679fi
b7026657 5680rm -f conf$$ conf$$.exe conf$$.file
b34f6357 5681
b7026657
AC
5682if mkdir -p . 2>/dev/null; then
5683 as_mkdir_p=:
5684else
5685 test -d ./-p && rmdir ./-p
5686 as_mkdir_p=false
5687fi
b34f6357 5688
b7026657 5689as_executable_p="test -f"
b34f6357 5690
b7026657
AC
5691# Sed expression to map a string onto a valid CPP name.
5692as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5693
5694# Sed expression to map a string onto a valid variable name.
5695as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5696
5697
5698# IFS
5699# We need space, tab and new line, in precisely that order.
5700as_nl='
5701'
5702IFS=" $as_nl"
5703
5704# CDPATH.
5705$as_unset CDPATH
5706
5707exec 6>&1
5708
5709# Open the log real soon, to keep \$[0] and so on meaningful, and to
5710# report actual input values of CONFIG_FILES etc. instead of their
5711# values after options handling. Logging --version etc. is OK.
5712exec 5>>config.log
5713{
5714 echo
5715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5716## Running $as_me. ##
5717_ASBOX
5718} >&5
5719cat >&5 <<_CSEOF
5720
5721This file was extended by $as_me, which was
5722generated by GNU Autoconf 2.59. Invocation command line was
5723
5724 CONFIG_FILES = $CONFIG_FILES
5725 CONFIG_HEADERS = $CONFIG_HEADERS
5726 CONFIG_LINKS = $CONFIG_LINKS
5727 CONFIG_COMMANDS = $CONFIG_COMMANDS
5728 $ $0 $@
5729
5730_CSEOF
5731echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5732echo >&5
5733_ACEOF
5734
5735# Files that config.status was made for.
5736if test -n "$ac_config_files"; then
5737 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
b34f6357
DB
5738fi
5739
b7026657
AC
5740if test -n "$ac_config_headers"; then
5741 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5742fi
b34f6357 5743
b7026657
AC
5744if test -n "$ac_config_links"; then
5745 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
b34f6357 5746fi
b7026657
AC
5747
5748if test -n "$ac_config_commands"; then
5749 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
b34f6357
DB
5750fi
5751
b7026657 5752cat >>$CONFIG_STATUS <<\_ACEOF
b34f6357 5753
b7026657
AC
5754ac_cs_usage="\
5755\`$as_me' instantiates files from templates according to the
5756current configuration.
b34f6357 5757
b7026657 5758Usage: $0 [OPTIONS] [FILE]...
b34f6357 5759
b7026657
AC
5760 -h, --help print this help, then exit
5761 -V, --version print version number, then exit
5762 -q, --quiet do not print progress messages
5763 -d, --debug don't remove temporary files
5764 --recheck update $as_me by reconfiguring in the same conditions
5765 --file=FILE[:TEMPLATE]
5766 instantiate the configuration file FILE
5767 --header=FILE[:TEMPLATE]
5768 instantiate the configuration header FILE
b34f6357 5769
b7026657
AC
5770Configuration files:
5771$config_files
b34f6357 5772
b7026657
AC
5773Configuration headers:
5774$config_headers
b34f6357 5775
b7026657
AC
5776Configuration links:
5777$config_links
b34f6357 5778
b7026657
AC
5779Configuration commands:
5780$config_commands
b34f6357 5781
b7026657
AC
5782Report bugs to <bug-autoconf@gnu.org>."
5783_ACEOF
379832de 5784
b7026657
AC
5785cat >>$CONFIG_STATUS <<_ACEOF
5786ac_cs_version="\\
5787config.status
5788configured by $0, generated by GNU Autoconf 2.59,
5789 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5790
5791Copyright (C) 2003 Free Software Foundation, Inc.
5792This config.status script is free software; the Free Software Foundation
5793gives unlimited permission to copy, distribute and modify it."
5794srcdir=$srcdir
5795INSTALL="$INSTALL"
5796_ACEOF
5797
5798cat >>$CONFIG_STATUS <<\_ACEOF
5799# If no file are specified by the user, then we need to provide default
5800# value. By we need to know if files were specified by the user.
5801ac_need_defaults=:
5802while test $# != 0
5803do
5804 case $1 in
5805 --*=*)
5806 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5807 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5808 ac_shift=:
b34f6357 5809 ;;
b7026657
AC
5810 -*)
5811 ac_option=$1
5812 ac_optarg=$2
5813 ac_shift=shift
b34f6357 5814 ;;
b7026657
AC
5815 *) # This is not an option, so the user has probably given explicit
5816 # arguments.
5817 ac_option=$1
5818 ac_need_defaults=false;;
5819 esac
b34f6357 5820
b7026657
AC
5821 case $ac_option in
5822 # Handling of the options.
5823_ACEOF
5824cat >>$CONFIG_STATUS <<\_ACEOF
5825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5826 ac_cs_recheck=: ;;
5827 --version | --vers* | -V )
5828 echo "$ac_cs_version"; exit 0 ;;
5829 --he | --h)
5830 # Conflict between --help and --header
5831 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5832Try \`$0 --help' for more information." >&5
5833echo "$as_me: error: ambiguous option: $1
5834Try \`$0 --help' for more information." >&2;}
5835 { (exit 1); exit 1; }; };;
5836 --help | --hel | -h )
5837 echo "$ac_cs_usage"; exit 0 ;;
5838 --debug | --d* | -d )
5839 debug=: ;;
5840 --file | --fil | --fi | --f )
5841 $ac_shift
5842 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5843 ac_need_defaults=false;;
5844 --header | --heade | --head | --hea )
5845 $ac_shift
5846 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5847 ac_need_defaults=false;;
5848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5850 ac_cs_silent=: ;;
b34f6357 5851
b7026657
AC
5852 # This is an error.
5853 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5854Try \`$0 --help' for more information." >&5
5855echo "$as_me: error: unrecognized option: $1
5856Try \`$0 --help' for more information." >&2;}
5857 { (exit 1); exit 1; }; } ;;
b34f6357 5858
b7026657
AC
5859 *) ac_config_targets="$ac_config_targets $1" ;;
5860
5861 esac
5862 shift
5863done
5864
5865ac_configure_extra_args=
5866
5867if $ac_cs_silent; then
5868 exec 6>/dev/null
5869 ac_configure_extra_args="$ac_configure_extra_args --silent"
b34f6357
DB
5870fi
5871
b7026657
AC
5872_ACEOF
5873cat >>$CONFIG_STATUS <<_ACEOF
5874if \$ac_cs_recheck; then
5875 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5876 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5877fi
b34f6357 5878
b7026657 5879_ACEOF
b34f6357 5880
b34f6357 5881
b34f6357 5882
b7026657
AC
5883
5884
5885cat >>$CONFIG_STATUS <<\_ACEOF
5886for ac_config_target in $ac_config_targets
b34f6357 5887do
b7026657
AC
5888 case "$ac_config_target" in
5889 # Handling of arguments.
5890 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5891 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5892 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5893 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
38f48d72
AC
5894 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5895 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
b7026657
AC
5896 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5897 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5898echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5899 { (exit 1); exit 1; }; };;
b34f6357
DB
5900 esac
5901done
5902
b7026657
AC
5903# If the user did not use the arguments to specify the items to instantiate,
5904# then the envvar interface is used. Set only those that are not.
5905# We use the long form for the default assignment because of an extremely
5906# bizarre bug on SunOS 4.1.3.
5907if $ac_need_defaults; then
5908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5910 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5911 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5912fi
5913
5914# Have a temporary directory for convenience. Make it in the build tree
5915# simply because there is no reason to put it here, and in addition,
5916# creating and moving files from /tmp can sometimes cause problems.
5917# Create a temporary directory, and hook for its removal unless debugging.
5918$debug ||
5919{
5920 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5921 trap '{ (exit 1); exit 1; }' 1 2 13 15
5922}
b34f6357 5923
b7026657 5924# Create a (secure) tmp directory for tmp files.
b34f6357 5925
b7026657
AC
5926{
5927 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5928 test -n "$tmp" && test -d "$tmp"
5929} ||
5930{
5931 tmp=./confstat$$-$RANDOM
5932 (umask 077 && mkdir $tmp)
5933} ||
5934{
5935 echo "$me: cannot create a temporary directory in ." >&2
5936 { (exit 1); exit 1; }
5937}
5938
5939_ACEOF
5940
5941cat >>$CONFIG_STATUS <<_ACEOF
5942
5943#
5944# CONFIG_FILES section.
5945#
b34f6357 5946
b7026657
AC
5947# No need to generate the scripts if there are no CONFIG_FILES.
5948# This happens for instance when ./config.status config.h
5949if test -n "\$CONFIG_FILES"; then
5950 # Protect against being on the right side of a sed subst in config.status.
5951 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5952 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
b7026657
AC
5953s,@SHELL@,$SHELL,;t t
5954s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5955s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5956s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5957s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5958s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5959s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5960s,@exec_prefix@,$exec_prefix,;t t
5961s,@prefix@,$prefix,;t t
5962s,@program_transform_name@,$program_transform_name,;t t
5963s,@bindir@,$bindir,;t t
5964s,@sbindir@,$sbindir,;t t
5965s,@libexecdir@,$libexecdir,;t t
5966s,@datadir@,$datadir,;t t
5967s,@sysconfdir@,$sysconfdir,;t t
5968s,@sharedstatedir@,$sharedstatedir,;t t
5969s,@localstatedir@,$localstatedir,;t t
5970s,@libdir@,$libdir,;t t
5971s,@includedir@,$includedir,;t t
5972s,@oldincludedir@,$oldincludedir,;t t
5973s,@infodir@,$infodir,;t t
5974s,@mandir@,$mandir,;t t
5975s,@build_alias@,$build_alias,;t t
5976s,@host_alias@,$host_alias,;t t
5977s,@target_alias@,$target_alias,;t t
5978s,@DEFS@,$DEFS,;t t
5979s,@ECHO_C@,$ECHO_C,;t t
5980s,@ECHO_N@,$ECHO_N,;t t
5981s,@ECHO_T@,$ECHO_T,;t t
5982s,@LIBS@,$LIBS,;t t
35695fd6
AC
5983s,@sim_environment@,$sim_environment,;t t
5984s,@sim_alignment@,$sim_alignment,;t t
5985s,@sim_assert@,$sim_assert,;t t
5986s,@sim_bitsize@,$sim_bitsize,;t t
5987s,@sim_endian@,$sim_endian,;t t
5988s,@sim_hostendian@,$sim_hostendian,;t t
5989s,@sim_float@,$sim_float,;t t
5990s,@sim_scache@,$sim_scache,;t t
5991s,@sim_default_model@,$sim_default_model,;t t
5992s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5993s,@sim_hw_objs@,$sim_hw_objs,;t t
5994s,@sim_hw@,$sim_hw,;t t
5995s,@sim_inline@,$sim_inline,;t t
5996s,@sim_packages@,$sim_packages,;t t
5997s,@sim_regparm@,$sim_regparm,;t t
5998s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5999s,@sim_smp@,$sim_smp,;t t
6000s,@sim_stdcall@,$sim_stdcall,;t t
6001s,@sim_xor_endian@,$sim_xor_endian,;t t
6002s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6003s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
b7026657
AC
6004s,@build@,$build,;t t
6005s,@build_cpu@,$build_cpu,;t t
6006s,@build_vendor@,$build_vendor,;t t
6007s,@build_os@,$build_os,;t t
6008s,@host@,$host,;t t
6009s,@host_cpu@,$host_cpu,;t t
6010s,@host_vendor@,$host_vendor,;t t
6011s,@host_os@,$host_os,;t t
6012s,@target@,$target,;t t
6013s,@target_cpu@,$target_cpu,;t t
6014s,@target_vendor@,$target_vendor,;t t
6015s,@target_os@,$target_os,;t t
6016s,@CC@,$CC,;t t
6017s,@CFLAGS@,$CFLAGS,;t t
6018s,@LDFLAGS@,$LDFLAGS,;t t
6019s,@CPPFLAGS@,$CPPFLAGS,;t t
6020s,@ac_ct_CC@,$ac_ct_CC,;t t
6021s,@EXEEXT@,$EXEEXT,;t t
6022s,@OBJEXT@,$OBJEXT,;t t
6023s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6024s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6025s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6026s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
6027s,@HDEFINES@,$HDEFINES,;t t
6028s,@AR@,$AR,;t t
6029s,@RANLIB@,$RANLIB,;t t
6030s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
2f0122dc
DJ
6031s,@USE_NLS@,$USE_NLS,;t t
6032s,@LIBINTL@,$LIBINTL,;t t
6033s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6034s,@INCINTL@,$INCINTL,;t t
6035s,@XGETTEXT@,$XGETTEXT,;t t
6036s,@GMSGFMT@,$GMSGFMT,;t t
6037s,@POSUB@,$POSUB,;t t
6038s,@CATALOGS@,$CATALOGS,;t t
6039s,@DATADIRNAME@,$DATADIRNAME,;t t
6040s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6041s,@GENCAT@,$GENCAT,;t t
6042s,@CATOBJEXT@,$CATOBJEXT,;t t
b7026657
AC
6043s,@CPP@,$CPP,;t t
6044s,@EGREP@,$EGREP,;t t
b7026657
AC
6045s,@MAINT@,$MAINT,;t t
6046s,@sim_bswap@,$sim_bswap,;t t
6047s,@sim_cflags@,$sim_cflags,;t t
6048s,@sim_debug@,$sim_debug,;t t
6049s,@sim_stdio@,$sim_stdio,;t t
6050s,@sim_trace@,$sim_trace,;t t
6051s,@sim_profile@,$sim_profile,;t t
6efef468
JM
6052s,@PKGVERSION@,$PKGVERSION,;t t
6053s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
6054s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b7026657
AC
6055s,@CGEN_MAINT@,$CGEN_MAINT,;t t
6056s,@cgendir@,$cgendir,;t t
6057s,@cgen@,$cgen,;t t
6058s,@sim_trapdump@,$sim_trapdump,;t t
6059s,@cgen_breaks@,$cgen_breaks,;t t
6060s,@LIBOBJS@,$LIBOBJS,;t t
6061s,@LTLIBOBJS@,$LTLIBOBJS,;t t
b34f6357 6062CEOF
b7026657
AC
6063
6064_ACEOF
6065
6066 cat >>$CONFIG_STATUS <<\_ACEOF
6067 # Split the substitutions into bite-sized pieces for seds with
6068 # small command number limits, like on Digital OSF/1 and HP-UX.
6069 ac_max_sed_lines=48
6070 ac_sed_frag=1 # Number of current file.
6071 ac_beg=1 # First line for current file.
6072 ac_end=$ac_max_sed_lines # Line after last line for current file.
6073 ac_more_lines=:
6074 ac_sed_cmds=
6075 while $ac_more_lines; do
6076 if test $ac_beg -gt 1; then
6077 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
b34f6357 6078 else
b7026657
AC
6079 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6080 fi
6081 if test ! -s $tmp/subs.frag; then
6082 ac_more_lines=false
6083 else
6084 # The purpose of the label and of the branching condition is to
6085 # speed up the sed processing (if there are no `@' at all, there
6086 # is no need to browse any of the substitutions).
6087 # These are the two extra sed commands mentioned above.
6088 (echo ':t
6089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6090 if test -z "$ac_sed_cmds"; then
6091 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6092 else
6093 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6094 fi
6095 ac_sed_frag=`expr $ac_sed_frag + 1`
6096 ac_beg=$ac_end
6097 ac_end=`expr $ac_end + $ac_max_sed_lines`
b34f6357 6098 fi
b7026657
AC
6099 done
6100 if test -z "$ac_sed_cmds"; then
6101 ac_sed_cmds=cat
b34f6357 6102 fi
b7026657 6103fi # test -n "$CONFIG_FILES"
b34f6357 6104
b7026657
AC
6105_ACEOF
6106cat >>$CONFIG_STATUS <<\_ACEOF
6107for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
b34f6357 6108 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
6109 case $ac_file in
6110 - | *:- | *:-:* ) # input from stdin
6111 cat >$tmp/stdin
6112 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6113 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6114 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6116 * ) ac_file_in=$ac_file.in ;;
b34f6357
DB
6117 esac
6118
b7026657
AC
6119 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6120 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6121$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6122 X"$ac_file" : 'X\(//\)[^/]' \| \
6123 X"$ac_file" : 'X\(//\)$' \| \
6124 X"$ac_file" : 'X\(/\)' \| \
6125 . : '\(.\)' 2>/dev/null ||
6126echo X"$ac_file" |
6127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6129 /^X\(\/\/\)$/{ s//\1/; q; }
6130 /^X\(\/\).*/{ s//\1/; q; }
6131 s/.*/./; q'`
6132 { if $as_mkdir_p; then
6133 mkdir -p "$ac_dir"
b34f6357 6134 else
b7026657
AC
6135 as_dir="$ac_dir"
6136 as_dirs=
6137 while test ! -d "$as_dir"; do
6138 as_dirs="$as_dir $as_dirs"
6139 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6140$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6141 X"$as_dir" : 'X\(//\)[^/]' \| \
6142 X"$as_dir" : 'X\(//\)$' \| \
6143 X"$as_dir" : 'X\(/\)' \| \
6144 . : '\(.\)' 2>/dev/null ||
6145echo X"$as_dir" |
6146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6148 /^X\(\/\/\)$/{ s//\1/; q; }
6149 /^X\(\/\).*/{ s//\1/; q; }
6150 s/.*/./; q'`
6151 done
6152 test ! -n "$as_dirs" || mkdir $as_dirs
6153 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6154echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6155 { (exit 1); exit 1; }; }; }
6156
6157 ac_builddir=.
b34f6357 6158
b7026657
AC
6159if test "$ac_dir" != .; then
6160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6161 # A "../" for each directory in $ac_dir_suffix.
6162 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6163else
6164 ac_dir_suffix= ac_top_builddir=
6165fi
6166
6167case $srcdir in
6168 .) # No --srcdir option. We are building in place.
6169 ac_srcdir=.
6170 if test -z "$ac_top_builddir"; then
6171 ac_top_srcdir=.
6172 else
6173 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6174 fi ;;
6175 [\\/]* | ?:[\\/]* ) # Absolute path.
6176 ac_srcdir=$srcdir$ac_dir_suffix;
6177 ac_top_srcdir=$srcdir ;;
b34f6357 6178 *) # Relative path.
b7026657
AC
6179 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6180 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6181esac
b34f6357 6182
b7026657
AC
6183# Do not use `cd foo && pwd` to compute absolute paths, because
6184# the directories may not exist.
6185case `pwd` in
6186.) ac_abs_builddir="$ac_dir";;
6187*)
6188 case "$ac_dir" in
6189 .) ac_abs_builddir=`pwd`;;
6190 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6191 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6192 esac;;
6193esac
6194case $ac_abs_builddir in
6195.) ac_abs_top_builddir=${ac_top_builddir}.;;
6196*)
6197 case ${ac_top_builddir}. in
6198 .) ac_abs_top_builddir=$ac_abs_builddir;;
6199 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6200 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6201 esac;;
6202esac
6203case $ac_abs_builddir in
6204.) ac_abs_srcdir=$ac_srcdir;;
6205*)
6206 case $ac_srcdir in
6207 .) ac_abs_srcdir=$ac_abs_builddir;;
6208 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6209 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6210 esac;;
6211esac
6212case $ac_abs_builddir in
6213.) ac_abs_top_srcdir=$ac_top_srcdir;;
6214*)
6215 case $ac_top_srcdir in
6216 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6217 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6218 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6219 esac;;
6220esac
b34f6357 6221
b7026657
AC
6222
6223 case $INSTALL in
6224 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6225 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
b34f6357
DB
6226 esac
6227
b7026657
AC
6228 if test x"$ac_file" != x-; then
6229 { echo "$as_me:$LINENO: creating $ac_file" >&5
6230echo "$as_me: creating $ac_file" >&6;}
6231 rm -f "$ac_file"
6232 fi
6233 # Let's still pretend it is `configure' which instantiates (i.e., don't
6234 # use $as_me), people would be surprised to read:
6235 # /* config.h. Generated by config.status. */
6236 if test x"$ac_file" = x-; then
6237 configure_input=
6238 else
6239 configure_input="$ac_file. "
6240 fi
6241 configure_input=$configure_input"Generated from `echo $ac_file_in |
6242 sed 's,.*/,,'` by configure."
6243
6244 # First look for the input files in the build tree, otherwise in the
6245 # src tree.
6246 ac_file_inputs=`IFS=:
6247 for f in $ac_file_in; do
6248 case $f in
6249 -) echo $tmp/stdin ;;
6250 [\\/$]*)
6251 # Absolute (can't be DOS-style, as IFS=:)
6252 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6253echo "$as_me: error: cannot find input file: $f" >&2;}
6254 { (exit 1); exit 1; }; }
6255 echo "$f";;
6256 *) # Relative
6257 if test -f "$f"; then
6258 # Build tree
6259 echo "$f"
6260 elif test -f "$srcdir/$f"; then
6261 # Source tree
6262 echo "$srcdir/$f"
6263 else
6264 # /dev/null tree
6265 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6266echo "$as_me: error: cannot find input file: $f" >&2;}
6267 { (exit 1); exit 1; }; }
6268 fi;;
6269 esac
6270 done` || { (exit 1); exit 1; }
6271_ACEOF
6272cat >>$CONFIG_STATUS <<_ACEOF
6273 sed "$ac_vpsub
6274$extrasub
6275_ACEOF
6276cat >>$CONFIG_STATUS <<\_ACEOF
6277:t
6278/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6279s,@configure_input@,$configure_input,;t t
6280s,@srcdir@,$ac_srcdir,;t t
6281s,@abs_srcdir@,$ac_abs_srcdir,;t t
6282s,@top_srcdir@,$ac_top_srcdir,;t t
6283s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6284s,@builddir@,$ac_builddir,;t t
6285s,@abs_builddir@,$ac_abs_builddir,;t t
6286s,@top_builddir@,$ac_top_builddir,;t t
6287s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6288s,@INSTALL@,$ac_INSTALL,;t t
6289" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6290 rm -f $tmp/stdin
6291 if test x"$ac_file" != x-; then
6292 mv $tmp/out $ac_file
6293 else
6294 cat $tmp/out
6295 rm -f $tmp/out
6296 fi
6297
6298done
6299_ACEOF
6300cat >>$CONFIG_STATUS <<\_ACEOF
6301
6302#
6303# CONFIG_HEADER section.
6304#
b34f6357
DB
6305
6306# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6307# NAME is the cpp macro being defined and VALUE is the value it is being given.
6308#
6309# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
6310ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6311ac_dB='[ ].*$,\1#\2'
6312ac_dC=' '
6313ac_dD=',;t'
6314# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6315ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6316ac_uB='$,\1#\2define\3'
b34f6357 6317ac_uC=' '
b7026657
AC
6318ac_uD=',;t'
6319
6320for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
b34f6357 6321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
6322 case $ac_file in
6323 - | *:- | *:-:* ) # input from stdin
6324 cat >$tmp/stdin
6325 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6326 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6327 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6329 * ) ac_file_in=$ac_file.in ;;
b34f6357
DB
6330 esac
6331
b7026657
AC
6332 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6333echo "$as_me: creating $ac_file" >&6;}
6334
6335 # First look for the input files in the build tree, otherwise in the
6336 # src tree.
6337 ac_file_inputs=`IFS=:
6338 for f in $ac_file_in; do
6339 case $f in
6340 -) echo $tmp/stdin ;;
6341 [\\/$]*)
6342 # Absolute (can't be DOS-style, as IFS=:)
6343 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6344echo "$as_me: error: cannot find input file: $f" >&2;}
6345 { (exit 1); exit 1; }; }
6346 # Do quote $f, to prevent DOS paths from being IFS'd.
6347 echo "$f";;
6348 *) # Relative
6349 if test -f "$f"; then
6350 # Build tree
6351 echo "$f"
6352 elif test -f "$srcdir/$f"; then
6353 # Source tree
6354 echo "$srcdir/$f"
6355 else
6356 # /dev/null tree
6357 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6358echo "$as_me: error: cannot find input file: $f" >&2;}
6359 { (exit 1); exit 1; }; }
6360 fi;;
6361 esac
6362 done` || { (exit 1); exit 1; }
6363 # Remove the trailing spaces.
6364 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6365
6366_ACEOF
6367
6368# Transform confdefs.h into two sed scripts, `conftest.defines' and
6369# `conftest.undefs', that substitutes the proper values into
6370# config.h.in to produce config.h. The first handles `#define'
6371# templates, and the second `#undef' templates.
6372# And first: Protect against being on the right side of a sed subst in
6373# config.status. Protect against being in an unquoted here document
6374# in config.status.
6375rm -f conftest.defines conftest.undefs
6376# Using a here document instead of a string reduces the quoting nightmare.
6377# Putting comments in sed scripts is not portable.
6378#
6379# `end' is used to avoid that the second main sed command (meant for
6380# 0-ary CPP macros) applies to n-ary macro definitions.
6381# See the Autoconf documentation for `clear'.
6382cat >confdef2sed.sed <<\_ACEOF
6383s/[\\&,]/\\&/g
6384s,[\\$`],\\&,g
6385t clear
6386: clear
6387s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6388t end
6389s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6390: end
6391_ACEOF
6392# If some macros were called several times there might be several times
6393# the same #defines, which is useless. Nevertheless, we may not want to
6394# sort them, since we want the *last* AC-DEFINE to be honored.
6395uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6396sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6397rm -f confdef2sed.sed
b34f6357
DB
6398
6399# This sed command replaces #undef with comments. This is necessary, for
6400# example, in the case of _POSIX_SOURCE, which is predefined and required
6401# on some systems where configure will not decide to define it.
b7026657
AC
6402cat >>conftest.undefs <<\_ACEOF
6403s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6404_ACEOF
6405
6406# Break up conftest.defines because some shells have a limit on the size
6407# of here documents, and old seds have small limits too (100 cmds).
6408echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6409echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6410echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6411echo ' :' >>$CONFIG_STATUS
6412rm -f conftest.tail
6413while grep . conftest.defines >/dev/null
6414do
6415 # Write a limited-size here document to $tmp/defines.sed.
6416 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6417 # Speed up: don't consider the non `#define' lines.
6418 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6419 # Work around the forget-to-reset-the-flag bug.
6420 echo 't clr' >>$CONFIG_STATUS
6421 echo ': clr' >>$CONFIG_STATUS
6422 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6423 echo 'CEOF
6424 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6425 rm -f $tmp/in
6426 mv $tmp/out $tmp/in
6427' >>$CONFIG_STATUS
6428 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6429 rm -f conftest.defines
6430 mv conftest.tail conftest.defines
6431done
6432rm -f conftest.defines
6433echo ' fi # grep' >>$CONFIG_STATUS
6434echo >>$CONFIG_STATUS
b34f6357 6435
b7026657
AC
6436# Break up conftest.undefs because some shells have a limit on the size
6437# of here documents, and old seds have small limits too (100 cmds).
6438echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
b34f6357 6439rm -f conftest.tail
b7026657 6440while grep . conftest.undefs >/dev/null
b34f6357 6441do
b7026657
AC
6442 # Write a limited-size here document to $tmp/undefs.sed.
6443 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6444 # Speed up: don't consider the non `#undef'
6445 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6446 # Work around the forget-to-reset-the-flag bug.
6447 echo 't clr' >>$CONFIG_STATUS
6448 echo ': clr' >>$CONFIG_STATUS
6449 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
b34f6357 6450 echo 'CEOF
b7026657
AC
6451 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6452 rm -f $tmp/in
6453 mv $tmp/out $tmp/in
6454' >>$CONFIG_STATUS
6455 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6456 rm -f conftest.undefs
6457 mv conftest.tail conftest.undefs
b34f6357 6458done
b7026657
AC
6459rm -f conftest.undefs
6460
6461cat >>$CONFIG_STATUS <<\_ACEOF
6462 # Let's still pretend it is `configure' which instantiates (i.e., don't
6463 # use $as_me), people would be surprised to read:
6464 # /* config.h. Generated by config.status. */
6465 if test x"$ac_file" = x-; then
6466 echo "/* Generated by configure. */" >$tmp/config.h
b34f6357 6467 else
b7026657 6468 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
b34f6357 6469 fi
b7026657
AC
6470 cat $tmp/in >>$tmp/config.h
6471 rm -f $tmp/in
6472 if test x"$ac_file" != x-; then
6473 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6474 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6475echo "$as_me: $ac_file is unchanged" >&6;}
6476 else
6477 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6478$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6479 X"$ac_file" : 'X\(//\)[^/]' \| \
6480 X"$ac_file" : 'X\(//\)$' \| \
6481 X"$ac_file" : 'X\(/\)' \| \
6482 . : '\(.\)' 2>/dev/null ||
6483echo X"$ac_file" |
6484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6486 /^X\(\/\/\)$/{ s//\1/; q; }
6487 /^X\(\/\).*/{ s//\1/; q; }
6488 s/.*/./; q'`
6489 { if $as_mkdir_p; then
6490 mkdir -p "$ac_dir"
6491 else
6492 as_dir="$ac_dir"
6493 as_dirs=
6494 while test ! -d "$as_dir"; do
6495 as_dirs="$as_dir $as_dirs"
6496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6497$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6498 X"$as_dir" : 'X\(//\)[^/]' \| \
6499 X"$as_dir" : 'X\(//\)$' \| \
6500 X"$as_dir" : 'X\(/\)' \| \
6501 . : '\(.\)' 2>/dev/null ||
6502echo X"$as_dir" |
6503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6505 /^X\(\/\/\)$/{ s//\1/; q; }
6506 /^X\(\/\).*/{ s//\1/; q; }
6507 s/.*/./; q'`
6508 done
6509 test ! -n "$as_dirs" || mkdir $as_dirs
6510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6511echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6512 { (exit 1); exit 1; }; }; }
b34f6357 6513
b7026657
AC
6514 rm -f $ac_file
6515 mv $tmp/config.h $ac_file
6516 fi
6517 else
6518 cat $tmp/config.h
6519 rm -f $tmp/config.h
6520 fi
6521done
6522_ACEOF
6523cat >>$CONFIG_STATUS <<\_ACEOF
b34f6357 6524
b7026657
AC
6525#
6526# CONFIG_LINKS section.
6527#
b34f6357 6528
b7026657
AC
6529for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
6530 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6531 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
b34f6357 6532
b7026657
AC
6533 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6534echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
b34f6357
DB
6535
6536 if test ! -r $srcdir/$ac_source; then
b7026657
AC
6537 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6538echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6539 { (exit 1); exit 1; }; }
b34f6357
DB
6540 fi
6541 rm -f $ac_dest
6542
6543 # Make relative symlinks.
b7026657
AC
6544 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
6545$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6546 X"$ac_dest" : 'X\(//\)[^/]' \| \
6547 X"$ac_dest" : 'X\(//\)$' \| \
6548 X"$ac_dest" : 'X\(/\)' \| \
6549 . : '\(.\)' 2>/dev/null ||
6550echo X"$ac_dest" |
6551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6553 /^X\(\/\/\)$/{ s//\1/; q; }
6554 /^X\(\/\).*/{ s//\1/; q; }
6555 s/.*/./; q'`
6556 { if $as_mkdir_p; then
6557 mkdir -p "$ac_dest_dir"
b34f6357 6558 else
b7026657
AC
6559 as_dir="$ac_dest_dir"
6560 as_dirs=
6561 while test ! -d "$as_dir"; do
6562 as_dirs="$as_dir $as_dirs"
6563 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6564$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6565 X"$as_dir" : 'X\(//\)[^/]' \| \
6566 X"$as_dir" : 'X\(//\)$' \| \
6567 X"$as_dir" : 'X\(/\)' \| \
6568 . : '\(.\)' 2>/dev/null ||
6569echo X"$as_dir" |
6570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6572 /^X\(\/\/\)$/{ s//\1/; q; }
6573 /^X\(\/\).*/{ s//\1/; q; }
6574 s/.*/./; q'`
6575 done
6576 test ! -n "$as_dirs" || mkdir $as_dirs
6577 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6578echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6579 { (exit 1); exit 1; }; }; }
6580
6581 ac_builddir=.
6582
6583if test "$ac_dest_dir" != .; then
6584 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6585 # A "../" for each directory in $ac_dir_suffix.
6586 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6587else
6588 ac_dir_suffix= ac_top_builddir=
6589fi
6590
6591case $srcdir in
6592 .) # No --srcdir option. We are building in place.
6593 ac_srcdir=.
6594 if test -z "$ac_top_builddir"; then
6595 ac_top_srcdir=.
6596 else
6597 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6598 fi ;;
6599 [\\/]* | ?:[\\/]* ) # Absolute path.
6600 ac_srcdir=$srcdir$ac_dir_suffix;
6601 ac_top_srcdir=$srcdir ;;
6602 *) # Relative path.
6603 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6604 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6605esac
6606
6607# Do not use `cd foo && pwd` to compute absolute paths, because
6608# the directories may not exist.
6609case `pwd` in
6610.) ac_abs_builddir="$ac_dest_dir";;
6611*)
6612 case "$ac_dest_dir" in
6613 .) ac_abs_builddir=`pwd`;;
6614 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
6615 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
6616 esac;;
6617esac
6618case $ac_abs_builddir in
6619.) ac_abs_top_builddir=${ac_top_builddir}.;;
6620*)
6621 case ${ac_top_builddir}. in
6622 .) ac_abs_top_builddir=$ac_abs_builddir;;
6623 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6624 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6625 esac;;
6626esac
6627case $ac_abs_builddir in
6628.) ac_abs_srcdir=$ac_srcdir;;
6629*)
6630 case $ac_srcdir in
6631 .) ac_abs_srcdir=$ac_abs_builddir;;
6632 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6633 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6634 esac;;
6635esac
6636case $ac_abs_builddir in
6637.) ac_abs_top_srcdir=$ac_top_srcdir;;
6638*)
6639 case $ac_top_srcdir in
6640 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6641 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6642 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6643 esac;;
6644esac
b34f6357 6645
b7026657
AC
6646
6647 case $srcdir in
6648 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
6649 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
b34f6357
DB
6650 esac
6651
b7026657
AC
6652 # Try a symlink, then a hard link, then a copy.
6653 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6654 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
6655 cp -p $srcdir/$ac_source $ac_dest ||
6656 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6657echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6658 { (exit 1); exit 1; }; }
b34f6357 6659done
b7026657
AC
6660_ACEOF
6661cat >>$CONFIG_STATUS <<\_ACEOF
6662
6663#
6664# CONFIG_COMMANDS section.
6665#
6666for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6667 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6668 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6669 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6670$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6671 X"$ac_dest" : 'X\(//\)[^/]' \| \
6672 X"$ac_dest" : 'X\(//\)$' \| \
6673 X"$ac_dest" : 'X\(/\)' \| \
6674 . : '\(.\)' 2>/dev/null ||
6675echo X"$ac_dest" |
6676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6678 /^X\(\/\/\)$/{ s//\1/; q; }
6679 /^X\(\/\).*/{ s//\1/; q; }
6680 s/.*/./; q'`
6681 { if $as_mkdir_p; then
6682 mkdir -p "$ac_dir"
6683 else
6684 as_dir="$ac_dir"
6685 as_dirs=
6686 while test ! -d "$as_dir"; do
6687 as_dirs="$as_dir $as_dirs"
6688 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6689$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6690 X"$as_dir" : 'X\(//\)[^/]' \| \
6691 X"$as_dir" : 'X\(//\)$' \| \
6692 X"$as_dir" : 'X\(/\)' \| \
6693 . : '\(.\)' 2>/dev/null ||
6694echo X"$as_dir" |
6695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6697 /^X\(\/\/\)$/{ s//\1/; q; }
6698 /^X\(\/\).*/{ s//\1/; q; }
6699 s/.*/./; q'`
6700 done
6701 test ! -n "$as_dirs" || mkdir $as_dirs
6702 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6703echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6704 { (exit 1); exit 1; }; }; }
6705
6706 ac_builddir=.
6707
6708if test "$ac_dir" != .; then
6709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6710 # A "../" for each directory in $ac_dir_suffix.
6711 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6712else
6713 ac_dir_suffix= ac_top_builddir=
6714fi
b34f6357 6715
b7026657
AC
6716case $srcdir in
6717 .) # No --srcdir option. We are building in place.
6718 ac_srcdir=.
6719 if test -z "$ac_top_builddir"; then
6720 ac_top_srcdir=.
6721 else
6722 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6723 fi ;;
6724 [\\/]* | ?:[\\/]* ) # Absolute path.
6725 ac_srcdir=$srcdir$ac_dir_suffix;
6726 ac_top_srcdir=$srcdir ;;
6727 *) # Relative path.
6728 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6729 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6730esac
6731
6732# Do not use `cd foo && pwd` to compute absolute paths, because
6733# the directories may not exist.
6734case `pwd` in
6735.) ac_abs_builddir="$ac_dir";;
6736*)
6737 case "$ac_dir" in
6738 .) ac_abs_builddir=`pwd`;;
6739 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6740 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6741 esac;;
6742esac
6743case $ac_abs_builddir in
6744.) ac_abs_top_builddir=${ac_top_builddir}.;;
6745*)
6746 case ${ac_top_builddir}. in
6747 .) ac_abs_top_builddir=$ac_abs_builddir;;
6748 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6749 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6750 esac;;
6751esac
6752case $ac_abs_builddir in
6753.) ac_abs_srcdir=$ac_srcdir;;
6754*)
6755 case $ac_srcdir in
6756 .) ac_abs_srcdir=$ac_abs_builddir;;
6757 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6758 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6759 esac;;
6760esac
6761case $ac_abs_builddir in
6762.) ac_abs_top_srcdir=$ac_top_srcdir;;
6763*)
6764 case $ac_top_srcdir in
6765 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6766 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6767 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6768 esac;;
6769esac
6770
6771
6772 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6773echo "$as_me: executing $ac_dest commands" >&6;}
6774 case $ac_dest in
38f48d72
AC
6775 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6776 rm -f Makesim1.tmp Makesim2.tmp Makefile
6777 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6778 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6779 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
b34f6357
DB
6780 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6781 <Makefile.sim >Makefile
38f48d72 6782 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 6783 ;;
38f48d72 6784 stamp-h ) echo > stamp-h ;;
b7026657
AC
6785 esac
6786done
6787_ACEOF
b34f6357 6788
b7026657
AC
6789cat >>$CONFIG_STATUS <<\_ACEOF
6790
6791{ (exit 0); exit 0; }
6792_ACEOF
b34f6357 6793chmod +x $CONFIG_STATUS
b7026657
AC
6794ac_clean_files=$ac_clean_files_save
6795
6796
6797# configure is writing to config.log, and then calls config.status.
6798# config.status does its own redirection, appending to config.log.
6799# Unfortunately, on DOS this fails, as config.log is still kept open
6800# by configure, so config.status won't be able to write to it; its
6801# output is simply discarded. So we exec the FD to /dev/null,
6802# effectively closing config.log, so it can be properly (re)opened and
6803# appended to by config.status. When coming back to configure, we
6804# need to make the FD available again.
6805if test "$no_create" != yes; then
6806 ac_cs_success=:
6807 ac_config_status_args=
6808 test "$silent" = yes &&
6809 ac_config_status_args="$ac_config_status_args --quiet"
6810 exec 5>/dev/null
6811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6812 exec 5>>config.log
6813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6814 # would make configure fail if this is the last instruction.
6815 $ac_cs_success || { (exit 1); exit 1; }
6816fi
b34f6357
DB
6817
6818