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