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