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