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