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