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