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