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