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