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