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