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