sim/common/ChangeLog:
[deliverable/binutils-gdb.git] / sim / d10v / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657
AC
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
c906108c 11
b7026657
AC
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
c906108c 23
b7026657
AC
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
c906108c
SS
30
31
b7026657
AC
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
c906108c 37
b7026657
AC
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
c906108c 50
b7026657
AC
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
c906108c 57
b7026657
AC
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
c906108c
SS
63
64
b7026657
AC
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
c906108c
SS
76
77
b7026657
AC
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 85
b7026657
AC
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
c906108c
SS
98
99
b7026657
AC
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
c906108c 116
b7026657
AC
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
c906108c 155
b7026657
AC
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
c906108c
SS
185
186
b7026657
AC
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
c906108c 193
b7026657
AC
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
c906108c 199
b7026657
AC
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
c906108c 217
b7026657
AC
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
c906108c 224
b7026657 225as_executable_p="test -f"
c906108c 226
b7026657
AC
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 229
b7026657
AC
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
232
233
b7026657
AC
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
c906108c 239
b7026657
AC
240# CDPATH.
241$as_unset CDPATH
c906108c
SS
242
243
b7026657
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 248
b7026657 249exec 6>&1
c906108c 250
c906108c 251#
b7026657 252# Initializations.
c906108c 253#
b7026657
AC
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
c906108c 261
b7026657
AC
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="Makefile.in"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
c906108c 311
35695fd6 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 SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile cgen_breaks LIBOBJS LTLIBOBJS'
b7026657 313ac_subst_files=''
c906108c
SS
314
315# Initialize some variables set by options.
b7026657
AC
316ac_init_help=
317ac_init_version=false
c906108c
SS
318# The variables have the same names as the options, with
319# dashes changed to underlines.
b7026657 320cache_file=/dev/null
c906108c 321exec_prefix=NONE
c906108c 322no_create=
c906108c
SS
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
c906108c
SS
331verbose=
332x_includes=NONE
333x_libraries=NONE
b7026657
AC
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
c906108c
SS
353ac_prev=
354for ac_option
355do
c906108c
SS
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
b7026657 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
b7026657 367 case $ac_option in
c906108c
SS
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 372 bindir=$ac_optarg ;;
c906108c
SS
373
374 -build | --build | --buil | --bui | --bu)
b7026657 375 ac_prev=build_alias ;;
c906108c 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 377 build_alias=$ac_optarg ;;
c906108c
SS
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
c906108c
SS
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
b7026657 393 datadir=$ac_optarg ;;
c906108c
SS
394
395 -disable-* | --disable-*)
b7026657 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 397 # Reject names that are not valid shell variable names.
b7026657
AC
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
c906108c
SS
403
404 -enable-* | --enable-*)
b7026657 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 406 # Reject names that are not valid shell variable names.
b7026657
AC
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
413 *) ac_optarg=yes ;;
414 esac
b7026657 415 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
b7026657 424 exec_prefix=$ac_optarg ;;
c906108c
SS
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
b7026657
AC
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
c906108c
SS
436
437 -host | --host | --hos | --ho)
b7026657 438 ac_prev=host_alias ;;
c906108c 439 -host=* | --host=* | --hos=* | --ho=*)
b7026657 440 host_alias=$ac_optarg ;;
c906108c
SS
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 447 includedir=$ac_optarg ;;
c906108c
SS
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 452 infodir=$ac_optarg ;;
c906108c
SS
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 457 libdir=$ac_optarg ;;
c906108c
SS
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
b7026657 464 libexecdir=$ac_optarg ;;
c906108c
SS
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b7026657 473 localstatedir=$ac_optarg ;;
c906108c
SS
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 478 mandir=$ac_optarg ;;
c906108c
SS
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 485 | --no-cr | --no-c | -n)
c906108c
SS
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 499 oldincludedir=$ac_optarg ;;
c906108c
SS
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 504 prefix=$ac_optarg ;;
c906108c
SS
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 511 program_prefix=$ac_optarg ;;
c906108c
SS
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 518 program_suffix=$ac_optarg ;;
c906108c
SS
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 535 program_transform_name=$ac_optarg ;;
c906108c
SS
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
b7026657 545 sbindir=$ac_optarg ;;
c906108c
SS
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
b7026657 556 sharedstatedir=$ac_optarg ;;
c906108c
SS
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
b7026657 561 site=$ac_optarg ;;
eb2d80b4 562
c906108c
SS
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 566 srcdir=$ac_optarg ;;
c906108c
SS
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 573 sysconfdir=$ac_optarg ;;
c906108c
SS
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 576 ac_prev=target_alias ;;
c906108c 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 578 target_alias=$ac_optarg ;;
c906108c
SS
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
b7026657
AC
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
c906108c
SS
585
586 -with-* | --with-*)
b7026657 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 588 # Reject names that are not valid shell variable names.
b7026657
AC
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
c906108c 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
b7026657
AC
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
595 *) ac_optarg=yes ;;
596 esac
b7026657 597 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
598
599 -without-* | --without-*)
b7026657 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 601 # Reject names that are not valid shell variable names.
b7026657
AC
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
c906108c
SS
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 617 x_includes=$ac_optarg ;;
c906108c
SS
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 624 x_libraries=$ac_optarg ;;
c906108c 625
b7026657
AC
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
c906108c
SS
629 ;;
630
b7026657
AC
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
c906108c 641 *)
b7026657
AC
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
b7026657
AC
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
c906108c 656fi
c906108c 657
b7026657
AC
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
c906108c 668
b7026657
AC
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 672do
b7026657
AC
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
c906108c
SS
678 esac
679done
680
b7026657
AC
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
c906108c 698
b7026657
AC
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
c906108c 703
c906108c
SS
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
b7026657
AC
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
c906108c
SS
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
b7026657
AC
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
c906108c 732 else
b7026657
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
c906108c
SS
735 fi
736fi
b7026657
AC
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
c906108c 773
b7026657
AC
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
c906108c 782
b7026657 783Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 784
b7026657
AC
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 787
b7026657 788Defaults for the options are specified in brackets.
c906108c 789
b7026657
AC
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
c906108c 809
b7026657
AC
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
c906108c 814
b7026657
AC
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
c906108c 844fi
b7026657
AC
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
35695fd6 853 --disable-nls do not use Native Language Support
b7026657
AC
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-build-warnings Enable build-time compiler warnings if gcc is used
862 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
863
35695fd6
AC
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-included-gettext use the GNU gettext library included here
868
b7026657
AC
869Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
876 CPP C preprocessor
877
878Use these variables to override the choices made by `configure' or to help
879it to find libraries and programs with nonstandard names/locations.
880
881_ACEOF
c906108c
SS
882fi
883
b7026657
AC
884if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
886 ac_popdir=`pwd`
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
889 ac_builddir=.
c906108c 890
b7026657
AC
891if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
c906108c 895else
b7026657 896 ac_dir_suffix= ac_top_builddir=
c906108c
SS
897fi
898
b7026657
AC
899case $srcdir in
900 .) # No --srcdir option. We are building in place.
901 ac_srcdir=.
902 if test -z "$ac_top_builddir"; then
903 ac_top_srcdir=.
904 else
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906 fi ;;
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
910 *) # Relative path.
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913esac
914
915# Do not use `cd foo && pwd` to compute absolute paths, because
916# the directories may not exist.
917case `pwd` in
918.) ac_abs_builddir="$ac_dir";;
919*)
920 case "$ac_dir" in
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
924 esac;;
925esac
926case $ac_abs_builddir in
927.) ac_abs_top_builddir=${ac_top_builddir}.;;
928*)
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933 esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_srcdir=$ac_srcdir;;
937*)
938 case $ac_srcdir in
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_srcdir=$ac_top_srcdir;;
946*)
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951 esac;;
952esac
953
954 cd $ac_dir
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
957 echo
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
960 echo
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
964 echo
965 $ac_configure --help
966 else
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 fi
969 cd $ac_popdir
970 done
c906108c 971fi
b7026657
AC
972
973test -n "$ac_init_help" && exit 0
974if $ac_init_version; then
975 cat <<\_ACEOF
976
977Copyright (C) 2003 Free Software Foundation, Inc.
978This configure script is free software; the Free Software Foundation
979gives unlimited permission to copy, distribute and modify it.
980_ACEOF
981 exit 0
982fi
983exec 5>config.log
984cat >&5 <<_ACEOF
985This file contains any messages produced by compilers while
986running configure, to aid debugging if configure makes a mistake.
987
988It was created by $as_me, which was
989generated by GNU Autoconf 2.59. Invocation command line was
990
991 $ $0 $@
992
993_ACEOF
994{
995cat <<_ASUNAME
996## --------- ##
997## Platform. ##
998## --------- ##
999
1000hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008
1009/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016
1017_ASUNAME
1018
1019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020for as_dir in $PATH
1021do
1022 IFS=$as_save_IFS
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1025done
1026
1027} >&5
1028
1029cat >&5 <<_ACEOF
1030
1031
1032## ----------- ##
1033## Core tests. ##
1034## ----------- ##
1035
1036_ACEOF
1037
1038
1039# Keep a trace of the command line.
1040# Strip out --no-create and --no-recursion so they do not pile up.
1041# Strip out --silent because we don't want to record it for future runs.
1042# Also quote any args containing shell meta-characters.
1043# Make two passes to allow for proper duplicate-argument suppression.
1044ac_configure_args=
1045ac_configure_args0=
1046ac_configure_args1=
1047ac_sep=
1048ac_must_keep_next=false
1049for ac_pass in 1 2
1050do
1051 for ac_arg
1052 do
1053 case $ac_arg in
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 continue ;;
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 esac
1061 case $ac_pass in
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 2)
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1067 else
1068 case $ac_arg in
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 esac
1076 ;;
1077 -* ) ac_must_keep_next=true ;;
1078 esac
1079 fi
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1082 ac_sep=" "
1083 ;;
1084 esac
1085 done
1086done
1087$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089
1090# When interrupted or exit'd, cleanup temporary files, and complete
1091# config.log. We remove comments because anyway the quotes in there
1092# would cause problems or look ugly.
1093# WARNING: Be sure not to use single quotes in there, as some shells,
1094# such as our DU 5.0 friend, will then `close' the trap.
1095trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1097 {
1098 echo
1099
1100 cat <<\_ASBOX
1101## ---------------- ##
1102## Cache variables. ##
1103## ---------------- ##
1104_ASBOX
1105 echo
1106 # The following way of writing the cache mishandles newlines in values,
1107{
1108 (set) 2>&1 |
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 *ac_space=\ *)
1111 sed -n \
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 ;;
1115 *)
1116 sed -n \
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ;;
1119 esac;
1120}
1121 echo
1122
1123 cat <<\_ASBOX
1124## ----------------- ##
1125## Output variables. ##
1126## ----------------- ##
1127_ASBOX
1128 echo
1129 for ac_var in $ac_subst_vars
1130 do
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1133 done | sort
1134 echo
1135
1136 if test -n "$ac_subst_files"; then
1137 cat <<\_ASBOX
1138## ------------- ##
1139## Output files. ##
1140## ------------- ##
1141_ASBOX
1142 echo
1143 for ac_var in $ac_subst_files
1144 do
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1149 fi
1150
1151 if test -s confdefs.h; then
1152 cat <<\_ASBOX
1153## ----------- ##
1154## confdefs.h. ##
1155## ----------- ##
1156_ASBOX
1157 echo
1158 sed "/^$/d" confdefs.h | sort
1159 echo
1160 fi
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1164 } >&5
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 exit $exit_status
1168 ' 0
1169for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171done
1172ac_signal=0
1173
1174# confdefs.h avoids OS command line length limits that DEFS can exceed.
1175rm -rf conftest* confdefs.h
1176# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177echo >confdefs.h
1178
1179# Predefined preprocessor variables.
1180
1181cat >>confdefs.h <<_ACEOF
1182#define PACKAGE_NAME "$PACKAGE_NAME"
1183_ACEOF
1184
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_VERSION "$PACKAGE_VERSION"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_STRING "$PACKAGE_STRING"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203_ACEOF
1204
1205
1206# Let the site file select an alternate cache file if it wants to.
1207# Prefer explicitly selected file to automatically selected ones.
1208if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211 else
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 fi
1214fi
1215for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1220 . "$ac_site_file"
1221 fi
1222done
1223
1224if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229echo "$as_me: loading cache $cache_file" >&6;}
1230 case $cache_file in
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1233 esac
1234 fi
1235else
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237echo "$as_me: creating cache $cache_file" >&6;}
1238 >$cache_file
1239fi
1240
1241# Check that the precious variables saved in the cache have kept the same
1242# value.
1243ac_cache_corrupted=false
1244for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1251 set,)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,set)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,);;
1260 *)
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1269 fi;;
1270 esac
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1273 case $ac_new_val in
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1277 esac
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 esac
1282 fi
1283done
1284if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1290fi
1291
1292ac_ext=c
1293ac_cpp='$CPP $CPPFLAGS'
1294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
35695fd6
AC
1316 ac_config_headers="$ac_config_headers config.h:config.in"
1317
1318
1319# This file contains common code used by all simulators.
1320#
1321# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1322# directory. It is intended to be invoked before any target specific stuff.
1323# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1324# It is intended to be invoked last.
1325#
1326# The simulator's configure.in should look like:
1327#
1328# dnl Process this file with autoconf to produce a configure script.
1329# sinclude(../common/aclocal.m4)
1330# AC_PREREQ(2.5)dnl
1331# AC_INIT(Makefile.in)
1332#
1333# SIM_AC_COMMON
1334#
1335# ... target specific stuff ...
1336#
1337# SIM_AC_OUTPUT
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386sim_inline="-DDEFAULT_INLINE=0"
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423# This file is derived from `gettext.m4'. The difference is that the
1424# included macros assume Cygnus-style source and build trees.
1425
1426# Macro to add for using GNU gettext.
1427# Ulrich Drepper <drepper@cygnus.com>, 1995.
1428#
1429# This file file be copied and used freely without restrictions. It can
1430# be used in projects which are not available under the GNU Public License
1431# but which still want to provide support for the GNU gettext functionality.
1432# Please note that the actual code is *not* freely available.
1433
1434# serial 3
1435
1436
1437
1438
1439
1440# Search path for a program which passes the given test.
1441# Ulrich Drepper <drepper@cygnus.com>, 1996.
1442#
1443# This file file be copied and used freely without restrictions. It can
1444# be used in projects which are not available under the GNU Public License
1445# but which still want to provide support for the GNU gettext functionality.
1446# Please note that the actual code is *not* freely available.
1447
1448# serial 1
1449
1450
1451
1452# Check whether LC_MESSAGES is available in <locale.h>.
1453# Ulrich Drepper <drepper@cygnus.com>, 1995.
1454#
1455# This file file be copied and used freely without restrictions. It can
1456# be used in projects which are not available under the GNU Public License
1457# but which still want to provide support for the GNU gettext functionality.
1458# Please note that the actual code is *not* freely available.
1459
1460# serial 1
1461
1462
1463
1464
1465
1466
b7026657 1467
35695fd6
AC
1468# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1469# it by inlining the macro's contents.
f0569246
AC
1470# This file contains common code used by all simulators.
1471#
1472# common.m4 invokes AC macros used by all simulators and by the common
1473# directory. It is intended to be included before any target specific
1474# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1475# the Makefile. It is intended to be invoked last.
1476#
1477# The simulator's configure.in should look like:
1478#
1479# dnl Process this file with autoconf to produce a configure script.
1480# AC_PREREQ(2.5)dnl
1481# AC_INIT(Makefile.in)
35695fd6 1482# AC_CONFIG_HEADER(config.h:config.in)
f0569246 1483#
35695fd6 1484# sinclude(../common/aclocal.m4)
f0569246
AC
1485# sinclude(../common/common.m4)
1486#
1487# ... target specific stuff ...
1488
38f48d72
AC
1489ac_aux_dir=
1490for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1491 if test -f $ac_dir/install-sh; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/install-sh -c"
1494 break
1495 elif test -f $ac_dir/install.sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install.sh -c"
1498 break
1499 elif test -f $ac_dir/shtool; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 break
1503 fi
1504done
1505if test -z "$ac_aux_dir"; then
1506 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1507echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1511ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1512ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513
b7026657
AC
1514# Make sure we can run config.sub.
1515$ac_config_sub sun4 >/dev/null 2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520echo "$as_me:$LINENO: checking build system type" >&5
1521echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 ac_cv_build_alias=$build_alias
1526test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias=`$ac_config_guess`
1528test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1536
1537fi
1538echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539echo "${ECHO_T}$ac_cv_build" >&6
1540build=$ac_cv_build
1541build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546echo "$as_me:$LINENO: checking host system type" >&5
1547echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551 ac_cv_host_alias=$host_alias
1552test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias=$ac_cv_build_alias
1554ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1558
1559fi
1560echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561echo "${ECHO_T}$ac_cv_host" >&6
1562host=$ac_cv_host
1563host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566
1567
f0569246
AC
1568echo "$as_me:$LINENO: checking target system type" >&5
1569echo $ECHO_N "checking target system type... $ECHO_C" >&6
1570if test "${ac_cv_target+set}" = set; then
b7026657
AC
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
f0569246
AC
1573 ac_cv_target_alias=$target_alias
1574test "x$ac_cv_target_alias" = "x" &&
1575 ac_cv_target_alias=$ac_cv_host_alias
1576ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1578echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1580
1581fi
1582echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1583echo "${ECHO_T}$ac_cv_target" >&6
1584target=$ac_cv_target
1585target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590# The aliases save the names the user supplied, while $host etc.
1591# will get canonicalized.
1592test -n "$target_alias" &&
1593 test "$program_prefix$program_suffix$program_transform_name" = \
1594 NONENONEs,x,x, &&
1595 program_prefix=${target_alias}-
1596test "$program_prefix" != NONE &&
1597 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1598# Use a double $ so make ignores it.
1599test "$program_suffix" != NONE &&
1600 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1601# Double any \ or $. echo might interpret backslashes.
1602# By default was `s,x,x', remove it if useless.
1603cat <<\_ACEOF >conftest.sed
1604s/[\\$]/&&/g;s/;s,x,x,$//
b7026657 1605_ACEOF
f0569246
AC
1606program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1607rm conftest.sed
1608
1609ac_ext=c
1610ac_cpp='$CPP $CPPFLAGS'
1611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617echo "$as_me:$LINENO: checking for $ac_word" >&5
1618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1621else
f0569246
AC
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1624else
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1635 fi
1636done
1637done
1638
b7026657 1639fi
b7026657 1640fi
f0569246
AC
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
b7026657
AC
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
b7026657
AC
1648fi
1649
f0569246
AC
1650fi
1651if test -z "$ac_cv_prog_CC"; then
1652 ac_ct_CC=$CC
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654set dummy gcc; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
f0569246
AC
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
b7026657 1676
f0569246
AC
1677fi
1678fi
1679ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1683else
f0569246
AC
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
b7026657 1687
f0569246
AC
1688 CC=$ac_ct_CC
1689else
1690 CC="$ac_cv_prog_CC"
b7026657 1691fi
b7026657 1692
f0569246
AC
1693if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696set dummy ${ac_tool_prefix}cc; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1701else
f0569246
AC
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
b7026657
AC
1718
1719fi
b7026657 1720fi
f0569246
AC
1721CC=$ac_cv_prog_CC
1722if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724echo "${ECHO_T}$CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
b7026657
AC
1728fi
1729
b7026657 1730fi
f0569246
AC
1731if test -z "$ac_cv_prog_CC"; then
1732 ac_ct_CC=$CC
1733 # Extract the first word of "cc", so it can be a program name with args.
1734set dummy cc; ac_word=$2
1735echo "$as_me:$LINENO: checking for $ac_word" >&5
1736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1739else
f0569246
AC
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742else
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
b7026657 1745do
f0569246
AC
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
b7026657 1753 fi
f0569246
AC
1754done
1755done
1756
b7026657 1757fi
f0569246
AC
1758fi
1759ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1763else
f0569246
AC
1764 echo "$as_me:$LINENO: result: no" >&5
1765echo "${ECHO_T}no" >&6
b7026657 1766fi
b7026657 1767
f0569246 1768 CC=$ac_ct_CC
b7026657 1769else
f0569246 1770 CC="$ac_cv_prog_CC"
b7026657 1771fi
b7026657 1772
b7026657 1773fi
f0569246
AC
1774if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776set dummy cc; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784else
1785 ac_prog_rejected=no
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1795 continue
1796 fi
1797 ac_cv_prog_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801done
b7026657 1802done
b7026657 1803
f0569246
AC
1804if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1807 shift
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1812 shift
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814 fi
b7026657 1815fi
f0569246
AC
1816fi
1817fi
1818CC=$ac_cv_prog_CC
1819if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821echo "${ECHO_T}$CC" >&6
b7026657 1822else
f0569246
AC
1823 echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
b7026657 1825fi
f0569246
AC
1826
1827fi
1828if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1830 for ac_prog in cl
1831 do
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834echo "$as_me:$LINENO: checking for $ac_word" >&5
1835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841else
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
b7026657 1844do
f0569246
AC
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
b7026657 1852 fi
f0569246
AC
1853done
1854done
1855
b7026657 1856fi
f0569246
AC
1857fi
1858CC=$ac_cv_prog_CC
1859if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861echo "${ECHO_T}$CC" >&6
b7026657 1862else
f0569246
AC
1863 echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
b7026657 1865fi
b7026657 1866
f0569246
AC
1867 test -n "$CC" && break
1868 done
c906108c 1869fi
f0569246
AC
1870if test -z "$CC"; then
1871 ac_ct_CC=$CC
1872 for ac_prog in cl
1873do
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875set dummy $ac_prog; ac_word=$2
1876echo "$as_me:$LINENO: checking for $ac_word" >&5
1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880else
f0569246
AC
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 1883else
f0569246
AC
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895done
1896done
b7026657
AC
1897
1898fi
f0569246
AC
1899fi
1900ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903echo "${ECHO_T}$ac_ct_CC" >&6
1904else
1905 echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907fi
1908
1909 test -n "$ac_ct_CC" && break
b7026657 1910done
b7026657 1911
f0569246 1912 CC=$ac_ct_CC
b7026657
AC
1913fi
1914
f0569246 1915fi
b7026657 1916
f0569246
AC
1917
1918test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1919See \`config.log' for more details." >&5
1920echo "$as_me: error: no acceptable C compiler found in \$PATH
1921See \`config.log' for more details." >&2;}
1922 { (exit 1); exit 1; }; }
1923
1924# Provide some information about the compiler.
1925echo "$as_me:$LINENO:" \
1926 "checking for C compiler version" >&5
1927ac_compiler=`set X $ac_compile; echo $2`
1928{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1929 (eval $ac_compiler --version </dev/null >&5) 2>&5
b7026657 1930 ac_status=$?
b7026657 1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1932 (exit $ac_status); }
1933{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1934 (eval $ac_compiler -v </dev/null >&5) 2>&5
b7026657
AC
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1937 (exit $ac_status); }
1938{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1939 (eval $ac_compiler -V </dev/null >&5) 2>&5
b7026657
AC
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1942 (exit $ac_status); }
1943
1944cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
1945/* confdefs.h. */
1946_ACEOF
1947cat confdefs.h >>conftest.$ac_ext
1948cat >>conftest.$ac_ext <<_ACEOF
1949/* end confdefs.h. */
f0569246 1950
b7026657
AC
1951int
1952main ()
1953{
f0569246 1954
b7026657
AC
1955 ;
1956 return 0;
1957}
1958_ACEOF
f0569246
AC
1959ac_clean_files_save=$ac_clean_files
1960ac_clean_files="$ac_clean_files a.out a.exe b.out"
1961# Try to create an executable without -o first, disregard a.out.
1962# It will help us diagnose broken compilers, and finding out an intuition
1963# of exeext.
1964echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1965echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1966ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1967if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1968 (eval $ac_link_default) 2>&5
b7026657 1969 ac_status=$?
b7026657 1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1971 (exit $ac_status); }; then
1972 # Find the output, starting from the most likely. This scheme is
1973# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1974# resort.
1975
1976# Be careful to initialize this variable, since it used to be cached.
1977# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1978ac_cv_exeext=
1979# b.out is created by i960 compilers.
1980for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1981do
1982 test -f "$ac_file" || continue
1983 case $ac_file in
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1985 ;;
1986 conftest.$ac_ext )
1987 # This is the source file.
1988 ;;
1989 [ab].out )
1990 # We found the default executable, but exeext='' is most
1991 # certainly right.
1992 break;;
1993 *.* )
1994 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 # FIXME: I believe we export ac_cv_exeext for Libtool,
1996 # but it would be cool to find out if it's true. Does anybody
1997 # maintain Libtool? --akim.
1998 export ac_cv_exeext
1999 break;;
2000 * )
2001 break;;
2002 esac
2003done
2004else
2005 echo "$as_me: failed program was:" >&5
2006sed 's/^/| /' conftest.$ac_ext >&5
2007
2008{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2009See \`config.log' for more details." >&5
2010echo "$as_me: error: C compiler cannot create executables
2011See \`config.log' for more details." >&2;}
2012 { (exit 77); exit 77; }; }
2013fi
2014
2015ac_exeext=$ac_cv_exeext
2016echo "$as_me:$LINENO: result: $ac_file" >&5
2017echo "${ECHO_T}$ac_file" >&6
2018
2019# Check the compiler produces executables we can run. If not, either
2020# the compiler is broken, or we cross compile.
2021echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2022echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2023# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2024# If not cross compiling, check that we can run a simple program.
2025if test "$cross_compiling" != yes; then
2026 if { ac_try='./$ac_file'
b7026657
AC
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2031 (exit $ac_status); }; }; then
2032 cross_compiling=no
2033 else
2034 if test "$cross_compiling" = maybe; then
2035 cross_compiling=yes
2036 else
2037 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2038If you meant to cross compile, use \`--host'.
2039See \`config.log' for more details." >&5
2040echo "$as_me: error: cannot run C compiled programs.
2041If you meant to cross compile, use \`--host'.
2042See \`config.log' for more details." >&2;}
2043 { (exit 1); exit 1; }; }
2044 fi
2045 fi
2046fi
2047echo "$as_me:$LINENO: result: yes" >&5
2048echo "${ECHO_T}yes" >&6
2049
2050rm -f a.out a.exe conftest$ac_cv_exeext b.out
2051ac_clean_files=$ac_clean_files_save
2052# Check the compiler produces executables we can run. If not, either
2053# the compiler is broken, or we cross compile.
2054echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2055echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2056echo "$as_me:$LINENO: result: $cross_compiling" >&5
2057echo "${ECHO_T}$cross_compiling" >&6
2058
2059echo "$as_me:$LINENO: checking for suffix of executables" >&5
2060echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2062 (eval $ac_link) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; then
2066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2067# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2068# work properly (i.e., refer to `conftest.exe'), while it won't with
2069# `rm'.
2070for ac_file in conftest.exe conftest conftest.*; do
2071 test -f "$ac_file" || continue
2072 case $ac_file in
2073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 export ac_cv_exeext
2076 break;;
2077 * ) break;;
2078 esac
2079done
2080else
2081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }
2086fi
2087
2088rm -f conftest$ac_cv_exeext
2089echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090echo "${ECHO_T}$ac_cv_exeext" >&6
2091
2092rm -f conftest.$ac_ext
2093EXEEXT=$ac_cv_exeext
2094ac_exeext=$EXEEXT
2095echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097if test "${ac_cv_objext+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100 cat >conftest.$ac_ext <<_ACEOF
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
2105/* end confdefs.h. */
2106
2107int
2108main ()
2109{
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115rm -f conftest.o conftest.obj
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
b7026657
AC
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2120 (exit $ac_status); }; then
2121 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122 case $ac_file in
2123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125 break;;
2126 esac
2127done
b7026657
AC
2128else
2129 echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
f0569246
AC
2132{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133See \`config.log' for more details." >&5
2134echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
b7026657 2137fi
f0569246
AC
2138
2139rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140fi
2141echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142echo "${ECHO_T}$ac_cv_objext" >&6
2143OBJEXT=$ac_cv_objext
2144ac_objext=$OBJEXT
2145echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
b7026657
AC
2150 cat >conftest.$ac_ext <<_ACEOF
2151/* confdefs.h. */
2152_ACEOF
2153cat confdefs.h >>conftest.$ac_ext
2154cat >>conftest.$ac_ext <<_ACEOF
2155/* end confdefs.h. */
f0569246 2156
b7026657
AC
2157int
2158main ()
2159{
f0569246
AC
2160#ifndef __GNUC__
2161 choke me
2162#endif
2163
b7026657
AC
2164 ;
2165 return 0;
2166}
2167_ACEOF
2168rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
f0569246 2190 ac_compiler_gnu=yes
b7026657 2191else
f0569246
AC
2192 echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
b7026657 2194
f0569246
AC
2195ac_compiler_gnu=no
2196fi
2197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198ac_cv_c_compiler_gnu=$ac_compiler_gnu
b7026657 2199
b7026657 2200fi
f0569246
AC
2201echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203GCC=`test $ac_compiler_gnu = yes && echo yes`
2204ac_test_CFLAGS=${CFLAGS+set}
2205ac_save_CFLAGS=$CFLAGS
2206CFLAGS="-g"
2207echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2211else
f0569246 2212 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2213/* confdefs.h. */
2214_ACEOF
2215cat confdefs.h >>conftest.$ac_ext
2216cat >>conftest.$ac_ext <<_ACEOF
2217/* end confdefs.h. */
f0569246
AC
2218
2219int
2220main ()
2221{
2222
2223 ;
2224 return 0;
2225}
b7026657
AC
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
f0569246 2249 ac_cv_prog_cc_g=yes
b7026657
AC
2250else
2251 echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
f0569246 2254ac_cv_prog_cc_g=no
b7026657
AC
2255fi
2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f0569246
AC
2257fi
2258echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260if test "$ac_test_CFLAGS" = set; then
2261 CFLAGS=$ac_save_CFLAGS
2262elif test $ac_cv_prog_cc_g = yes; then
2263 if test "$GCC" = yes; then
2264 CFLAGS="-g -O2"
2265 else
2266 CFLAGS="-g"
2267 fi
2268else
2269 if test "$GCC" = yes; then
2270 CFLAGS="-O2"
2271 else
2272 CFLAGS=
2273 fi
2274fi
2275echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280 ac_cv_prog_cc_stdc=no
2281ac_save_CC=$CC
b7026657
AC
2282cat >conftest.$ac_ext <<_ACEOF
2283/* confdefs.h. */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h. */
f0569246
AC
2288#include <stdarg.h>
2289#include <stdio.h>
2290#include <sys/types.h>
2291#include <sys/stat.h>
2292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2293struct buf { int x; };
2294FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295static char *e (p, i)
2296 char **p;
2297 int i;
2298{
2299 return p[i];
2300}
2301static char *f (char * (*g) (char **, int), char **p, ...)
2302{
2303 char *s;
2304 va_list v;
2305 va_start (v,p);
2306 s = g (p, va_arg (v,int));
2307 va_end (v);
2308 return s;
2309}
2310
2311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2312 function prototypes and stuff, but not '\xHH' hex character constants.
2313 These don't provoke an error unfortunately, instead are silently treated
2314 as 'x'. The following induces an error, until -std1 is added to get
2315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2316 array size at least. It's necessary to write '\x00'==0 to get something
2317 that's true only with -std1. */
2318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320int test (int i, double x);
2321struct s1 {int (*f) (int a);};
2322struct s2 {int (*f) (double a);};
2323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324int argc;
2325char **argv;
2326int
2327main ()
2328{
2329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 ;
2331 return 0;
2332}
b7026657 2333_ACEOF
f0569246
AC
2334# Don't try gcc -ansi; that turns off useful extensions and
2335# breaks some systems' header files.
2336# AIX -qlanglvl=ansi
2337# Ultrix and OSF/1 -std1
2338# HP-UX 10.20 and later -Ae
2339# HP-UX older versions -Aa -D_HPUX_SOURCE
2340# SVR4 -Xc -D__EXTENSIONS__
2341for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342do
2343 CC="$ac_save_CC $ac_arg"
2344 rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_cv_prog_cc_stdc=$ac_arg
2367break
b7026657
AC
2368else
2369 echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
c906108c 2372fi
f0569246 2373rm -f conftest.err conftest.$ac_objext
c906108c 2374done
f0569246
AC
2375rm -f conftest.$ac_ext conftest.$ac_objext
2376CC=$ac_save_CC
c906108c 2377
f0569246 2378fi
b7026657 2379
f0569246
AC
2380case "x$ac_cv_prog_cc_stdc" in
2381 x|xno)
2382 echo "$as_me:$LINENO: result: none needed" >&5
2383echo "${ECHO_T}none needed" >&6 ;;
2384 *)
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387 CC="$CC $ac_cv_prog_cc_stdc" ;;
2388esac
b7026657 2389
f0569246
AC
2390# Some people use a C++ compiler to compile C. Since we use `exit',
2391# in C++ we need to declare it. In case someone uses the same compiler
2392# for both compiling C and C++ we need to have the C++ compiler decide
2393# the declaration of exit, since it's the most demanding environment.
2394cat >conftest.$ac_ext <<_ACEOF
2395#ifndef __cplusplus
2396 choke me
2397#endif
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 for ac_declaration in \
2422 '' \
2423 'extern "C" void std::exit (int) throw (); using std::exit;' \
2424 'extern "C" void std::exit (int); using std::exit;' \
2425 'extern "C" void exit (int) throw ();' \
2426 'extern "C" void exit (int);' \
2427 'void exit (int);'
c906108c 2428do
b7026657
AC
2429 cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h. */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h. */
f0569246
AC
2435$ac_declaration
2436#include <stdlib.h>
b7026657
AC
2437int
2438main ()
2439{
f0569246 2440exit (42);
b7026657
AC
2441 ;
2442 return 0;
2443}
2444_ACEOF
f0569246
AC
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
f0569246 2461 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
f0569246 2467 :
b7026657
AC
2468else
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
f0569246 2472continue
c906108c 2473fi
f0569246 2474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
2475 cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
f0569246 2481$ac_declaration
b7026657
AC
2482int
2483main ()
2484{
f0569246 2485exit (42);
b7026657
AC
2486 ;
2487 return 0;
2488}
2489_ACEOF
f0569246
AC
2490rm -f conftest.$ac_objext
2491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
f0569246 2506 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
f0569246
AC
2512 break
2513else
2514 echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517fi
2518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519done
2520rm -f conftest*
2521if test -n "$ac_declaration"; then
2522 echo '#ifdef __cplusplus' >>confdefs.h
2523 echo $ac_declaration >>confdefs.h
2524 echo '#endif' >>confdefs.h
2525fi
2526
b7026657
AC
2527else
2528 echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
b7026657 2531fi
f0569246
AC
2532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539# Find a good install program. We prefer a C program (faster),
2540# so one script is as good as another. But avoid the broken or
2541# incompatible versions:
2542# SysV /etc/install, /usr/sbin/install
2543# SunOS /usr/etc/install
2544# IRIX /sbin/install
2545# AIX /bin/install
2546# AmigaOS /C/install, which installs bootblocks on floppy discs
2547# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550# OS/2's system install, which has a completely different semantic
2551# ./install, which can be erroneously created by make from ./install.sh.
2552echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2553echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2554if test -z "$INSTALL"; then
2555if test "${ac_cv_path_install+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 # Account for people who put trailing slashes in PATH elements.
2564case $as_dir/ in
2565 ./ | .// | /cC/* | \
2566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2568 /usr/ucb/* ) ;;
2569 *)
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2572 # by default.
2573 for ac_prog in ginstall scoinst install; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2576 if test $ac_prog = install &&
2577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # AIX install. It has an incompatible calling convention.
2579 :
2580 elif test $ac_prog = install &&
2581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2583 :
2584 else
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586 break 3
2587 fi
2588 fi
2589 done
2590 done
2591 ;;
2592esac
2593done
2594
2595
2596fi
2597 if test "${ac_cv_path_install+set}" = set; then
2598 INSTALL=$ac_cv_path_install
2599 else
2600 # As a last resort, use the slow shell script. We don't cache a
2601 # path for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the path is relative.
2604 INSTALL=$ac_install_sh
2605 fi
2606fi
2607echo "$as_me:$LINENO: result: $INSTALL" >&5
2608echo "${ECHO_T}$INSTALL" >&6
2609
2610# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611# It thinks the first close brace ends the variable substitution.
2612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
2614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2615
2616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
2618
2619# Put a plausible default for CC_FOR_BUILD in Makefile.
2620if test "x$cross_compiling" = "xno"; then
2621 CC_FOR_BUILD='$(CC)'
2622else
2623 CC_FOR_BUILD=gcc
2624fi
c906108c 2625
c906108c 2626
c906108c 2627
c906108c 2628
f0569246
AC
2629AR=${AR-ar}
2630
2631if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2633set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_RANLIB+set}" = set; then
b7026657
AC
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
f0569246
AC
2639 if test -n "$RANLIB"; then
2640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 2641else
f0569246
AC
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653done
2654done
b7026657 2655
c906108c 2656fi
c906108c 2657fi
f0569246
AC
2658RANLIB=$ac_cv_prog_RANLIB
2659if test -n "$RANLIB"; then
2660 echo "$as_me:$LINENO: result: $RANLIB" >&5
2661echo "${ECHO_T}$RANLIB" >&6
2662else
2663 echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6
2665fi
c906108c 2666
f0569246
AC
2667fi
2668if test -z "$ac_cv_prog_RANLIB"; then
2669 ac_ct_RANLIB=$RANLIB
2670 # Extract the first word of "ranlib", so it can be a program name with args.
2671set dummy ranlib; ac_word=$2
2672echo "$as_me:$LINENO: checking for $ac_word" >&5
2673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677 if test -n "$ac_ct_RANLIB"; then
2678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_ac_ct_RANLIB="ranlib"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
c906108c 2690 fi
f0569246
AC
2691done
2692done
2693
2694 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2695fi
2696fi
2697ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2698if test -n "$ac_ct_RANLIB"; then
2699 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2700echo "${ECHO_T}$ac_ct_RANLIB" >&6
c906108c 2701else
f0569246
AC
2702 echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6
2704fi
c906108c 2705
f0569246
AC
2706 RANLIB=$ac_ct_RANLIB
2707else
2708 RANLIB="$ac_cv_prog_RANLIB"
2709fi
c906108c 2710
c906108c 2711
f0569246 2712ALL_LINGUAS=
35695fd6
AC
2713echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719 cat >conftest.make <<\_ACEOF
2720all:
2721 @echo 'ac_maketemp="$(MAKE)"'
2722_ACEOF
2723# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2727else
2728 eval ac_cv_prog_make_${ac_make}_set=no
2729fi
2730rm -f conftest.make
2731fi
2732if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734echo "${ECHO_T}yes" >&6
2735 SET_MAKE=
2736else
2737 echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2740fi
b7026657 2741
c906108c 2742
35695fd6
AC
2743echo "$as_me:$LINENO: checking for library containing strerror" >&5
2744echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2745if test "${ac_cv_search_strerror+set}" = set; then
f0569246 2746 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2747else
35695fd6
AC
2748 ac_func_search_save_LIBS=$LIBS
2749ac_cv_search_strerror=no
2750cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2751/* confdefs.h. */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h. */
35695fd6
AC
2756
2757/* Override any gcc2 internal prototype to avoid an error. */
2758#ifdef __cplusplus
2759extern "C"
f0569246 2760#endif
35695fd6
AC
2761/* We use char because int might match the return type of a gcc2
2762 builtin and then its argument prototype would still apply. */
2763char strerror ();
2764int
2765main ()
2766{
2767strerror ();
2768 ;
2769 return 0;
2770}
b7026657 2771_ACEOF
35695fd6
AC
2772rm -f conftest.$ac_objext conftest$ac_exeext
2773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2774 (eval $ac_link) 2>conftest.er1
b7026657
AC
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest$ac_exeext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 ac_cv_search_strerror="none required"
b7026657
AC
2795else
2796 echo "$as_me: failed program was:" >&5
2797sed 's/^/| /' conftest.$ac_ext >&5
2798
b7026657 2799fi
35695fd6
AC
2800rm -f conftest.err conftest.$ac_objext \
2801 conftest$ac_exeext conftest.$ac_ext
2802if test "$ac_cv_search_strerror" = no; then
2803 for ac_lib in cposix; do
2804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2805 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2806/* confdefs.h. */
2807_ACEOF
f0569246
AC
2808cat confdefs.h >>conftest.$ac_ext
2809cat >>conftest.$ac_ext <<_ACEOF
2810/* end confdefs.h. */
35695fd6
AC
2811
2812/* Override any gcc2 internal prototype to avoid an error. */
2813#ifdef __cplusplus
2814extern "C"
2815#endif
2816/* We use char because int might match the return type of a gcc2
2817 builtin and then its argument prototype would still apply. */
2818char strerror ();
2819int
2820main ()
2821{
2822strerror ();
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext conftest$ac_exeext
2828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2829 (eval $ac_link) 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -z "$ac_c_werror_flag"
2837 || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest$ac_exeext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 ac_cv_search_strerror="-l$ac_lib"
2850break
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855fi
2856rm -f conftest.err conftest.$ac_objext \
2857 conftest$ac_exeext conftest.$ac_ext
2858 done
2859fi
2860LIBS=$ac_func_search_save_LIBS
2861fi
2862echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2863echo "${ECHO_T}$ac_cv_search_strerror" >&6
2864if test "$ac_cv_search_strerror" != no; then
2865 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2866
2867fi
2868
2869ac_ext=c
2870ac_cpp='$CPP $CPPFLAGS'
2871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2875echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2876# On Suns, sometimes $CPP names a directory.
2877if test -n "$CPP" && test -d "$CPP"; then
2878 CPP=
2879fi
2880if test -z "$CPP"; then
2881 if test "${ac_cv_prog_CPP+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884 # Double quotes because CPP needs to be expanded
2885 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2886 do
2887 ac_preproc_ok=false
2888for ac_c_preproc_warn_flag in '' yes
2889do
2890 # Use a header file that comes with gcc, so configuring glibc
2891 # with a fresh cross-compiler works.
2892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2893 # <limits.h> exists even on freestanding compilers.
2894 # On the NeXT, cc -E runs the code through the compiler's parser,
2895 # not just through cpp. "Syntax error" is here to catch this case.
2896 cat >conftest.$ac_ext <<_ACEOF
2897/* confdefs.h. */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h. */
2902#ifdef __STDC__
2903# include <limits.h>
2904#else
2905# include <assert.h>
2906#endif
2907 Syntax error
2908_ACEOF
2909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2920 else
2921 ac_cpp_err=
2922 fi
2923else
2924 ac_cpp_err=yes
2925fi
2926if test -z "$ac_cpp_err"; then
2927 :
2928else
2929 echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 # Broken: fails on valid input.
2933continue
2934fi
2935rm -f conftest.err conftest.$ac_ext
2936
2937 # OK, works on sane cases. Now check whether non-existent headers
2938 # can be detected and how.
2939 cat >conftest.$ac_ext <<_ACEOF
2940/* confdefs.h. */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h. */
2945#include <ac_nonexistent.h>
2946_ACEOF
2947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f0569246 2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958 else
2959 ac_cpp_err=
2960 fi
2961else
2962 ac_cpp_err=yes
2963fi
2964if test -z "$ac_cpp_err"; then
2965 # Broken: success on invalid input.
2966continue
c906108c 2967else
b7026657
AC
2968 echo "$as_me: failed program was:" >&5
2969sed 's/^/| /' conftest.$ac_ext >&5
2970
f0569246
AC
2971 # Passes both tests.
2972ac_preproc_ok=:
2973break
c906108c 2974fi
f0569246
AC
2975rm -f conftest.err conftest.$ac_ext
2976
2977done
2978# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2979rm -f conftest.err conftest.$ac_ext
2980if $ac_preproc_ok; then
2981 break
c906108c 2982fi
c906108c 2983
f0569246
AC
2984 done
2985 ac_cv_prog_CPP=$CPP
2986
2987fi
2988 CPP=$ac_cv_prog_CPP
c906108c 2989else
f0569246
AC
2990 ac_cv_prog_CPP=$CPP
2991fi
2992echo "$as_me:$LINENO: result: $CPP" >&5
2993echo "${ECHO_T}$CPP" >&6
2994ac_preproc_ok=false
2995for ac_c_preproc_warn_flag in '' yes
2996do
2997 # Use a header file that comes with gcc, so configuring glibc
2998 # with a fresh cross-compiler works.
2999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3000 # <limits.h> exists even on freestanding compilers.
3001 # On the NeXT, cc -E runs the code through the compiler's parser,
3002 # not just through cpp. "Syntax error" is here to catch this case.
3003 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3004/* confdefs.h. */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h. */
f0569246
AC
3009#ifdef __STDC__
3010# include <limits.h>
3011#else
3012# include <assert.h>
b7026657 3013#endif
f0569246 3014 Syntax error
b7026657 3015_ACEOF
f0569246
AC
3016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
3023 (exit $ac_status); } >/dev/null; then
3024 if test -s conftest.err; then
3025 ac_cpp_err=$ac_c_preproc_warn_flag
3026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3027 else
3028 ac_cpp_err=
3029 fi
3030else
3031 ac_cpp_err=yes
3032fi
3033if test -z "$ac_cpp_err"; then
3034 :
b7026657
AC
3035else
3036 echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
f0569246
AC
3039 # Broken: fails on valid input.
3040continue
b7026657 3041fi
f0569246
AC
3042rm -f conftest.err conftest.$ac_ext
3043
3044 # OK, works on sane cases. Now check whether non-existent headers
3045 # can be detected and how.
b7026657
AC
3046 cat >conftest.$ac_ext <<_ACEOF
3047/* confdefs.h. */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h. */
f0569246 3052#include <ac_nonexistent.h>
b7026657 3053_ACEOF
f0569246
AC
3054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
3056 ac_status=$?
3057 grep -v '^ *+' conftest.er1 >conftest.err
3058 rm -f conftest.er1
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
3061 (exit $ac_status); } >/dev/null; then
3062 if test -s conftest.err; then
3063 ac_cpp_err=$ac_c_preproc_warn_flag
3064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065 else
3066 ac_cpp_err=
3067 fi
3068else
3069 ac_cpp_err=yes
3070fi
3071if test -z "$ac_cpp_err"; then
3072 # Broken: success on invalid input.
3073continue
c906108c 3074else
b7026657
AC
3075 echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
f0569246
AC
3078 # Passes both tests.
3079ac_preproc_ok=:
3080break
c906108c 3081fi
f0569246 3082rm -f conftest.err conftest.$ac_ext
c906108c 3083
f0569246
AC
3084done
3085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3086rm -f conftest.err conftest.$ac_ext
3087if $ac_preproc_ok; then
3088 :
c906108c 3089else
f0569246
AC
3090 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3091See \`config.log' for more details." >&5
3092echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3093See \`config.log' for more details." >&2;}
3094 { (exit 1); exit 1; }; }
c906108c 3095fi
c906108c 3096
f0569246
AC
3097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102
3103
3104echo "$as_me:$LINENO: checking for egrep" >&5
3105echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3106if test "${ac_cv_prog_egrep+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108else
3109 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3110 then ac_cv_prog_egrep='grep -E'
3111 else ac_cv_prog_egrep='egrep'
3112 fi
3113fi
3114echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3115echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3116 EGREP=$ac_cv_prog_egrep
3117
3118
3119echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3120echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3121if test "${ac_cv_header_stdc+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124 cat >conftest.$ac_ext <<_ACEOF
3125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
3130#include <stdlib.h>
3131#include <stdarg.h>
3132#include <string.h>
3133#include <float.h>
c906108c 3134
b7026657
AC
3135int
3136main ()
3137{
f0569246 3138
b7026657
AC
3139 ;
3140 return 0;
3141}
3142_ACEOF
f0569246
AC
3143rm -f conftest.$ac_objext
3144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>conftest.er1
b7026657
AC
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag"
3153 || test ! -s conftest.err'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
f0569246 3159 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
f0569246 3165 ac_cv_header_stdc=yes
b7026657
AC
3166else
3167 echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
f0569246 3170ac_cv_header_stdc=no
b7026657 3171fi
f0569246 3172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3173
f0569246
AC
3174if test $ac_cv_header_stdc = yes; then
3175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3176 cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h. */
3182#include <string.h>
c906108c 3183
f0569246
AC
3184_ACEOF
3185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3186 $EGREP "memchr" >/dev/null 2>&1; then
3187 :
c906108c 3188else
f0569246 3189 ac_cv_header_stdc=no
c906108c 3190fi
f0569246 3191rm -f conftest*
b7026657 3192
c906108c
SS
3193fi
3194
f0569246
AC
3195if test $ac_cv_header_stdc = yes; then
3196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3197 cat >conftest.$ac_ext <<_ACEOF
3198/* confdefs.h. */
3199_ACEOF
3200cat confdefs.h >>conftest.$ac_ext
3201cat >>conftest.$ac_ext <<_ACEOF
3202/* end confdefs.h. */
3203#include <stdlib.h>
3204
3205_ACEOF
3206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3207 $EGREP "free" >/dev/null 2>&1; then
3208 :
c906108c 3209else
f0569246 3210 ac_cv_header_stdc=no
c906108c 3211fi
f0569246
AC
3212rm -f conftest*
3213
c906108c
SS
3214fi
3215
f0569246
AC
3216if test $ac_cv_header_stdc = yes; then
3217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3218 if test "$cross_compiling" = yes; then
3219 :
3220else
3221 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
f0569246
AC
3227#include <ctype.h>
3228#if ((' ' & 0x0FF) == 0x020)
3229# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3230# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3231#else
3232# define ISLOWER(c) \
3233 (('a' <= (c) && (c) <= 'i') \
3234 || ('j' <= (c) && (c) <= 'r') \
3235 || ('s' <= (c) && (c) <= 'z'))
3236# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3237#endif
c906108c 3238
f0569246 3239#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
3240int
3241main ()
3242{
f0569246
AC
3243 int i;
3244 for (i = 0; i < 256; i++)
3245 if (XOR (islower (i), ISLOWER (i))
3246 || toupper (i) != TOUPPER (i))
3247 exit(2);
3248 exit (0);
b7026657
AC
3249}
3250_ACEOF
f0569246 3251rm -f conftest$ac_exeext
b7026657 3252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f0569246 3253 (eval $ac_link) 2>&5
b7026657
AC
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246 3256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b7026657
AC
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
f0569246 3262 :
c906108c 3263else
f0569246
AC
3264 echo "$as_me: program exited with status $ac_status" >&5
3265echo "$as_me: failed program was:" >&5
b7026657
AC
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
f0569246
AC
3268( exit $ac_status )
3269ac_cv_header_stdc=no
c906108c 3270fi
f0569246 3271rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3272fi
c906108c 3273fi
c906108c 3274fi
f0569246
AC
3275echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3276echo "${ECHO_T}$ac_cv_header_stdc" >&6
3277if test $ac_cv_header_stdc = yes; then
b7026657 3278
f0569246
AC
3279cat >>confdefs.h <<\_ACEOF
3280#define STDC_HEADERS 1
3281_ACEOF
c906108c 3282
c906108c
SS
3283fi
3284
35695fd6
AC
3285echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3286echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3287if test "${ac_cv_c_const+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290 cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h. */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h. */
3296
3297int
3298main ()
3299{
3300/* FIXME: Include the comments suggested by Paul. */
3301#ifndef __cplusplus
3302 /* Ultrix mips cc rejects this. */
3303 typedef int charset[2];
3304 const charset x;
3305 /* SunOS 4.1.1 cc rejects this. */
3306 char const *const *ccp;
3307 char **p;
3308 /* NEC SVR4.0.2 mips cc rejects this. */
3309 struct point {int x, y;};
3310 static struct point const zero = {0,0};
3311 /* AIX XL C 1.02.0.0 rejects this.
3312 It does not let you subtract one const X* pointer from another in
3313 an arm of an if-expression whose if-part is not a constant
3314 expression */
3315 const char *g = "string";
3316 ccp = &g + (g ? g-g : 0);
3317 /* HPUX 7.0 cc rejects these. */
3318 ++ccp;
3319 p = (char**) ccp;
3320 ccp = (char const *const *) p;
3321 { /* SCO 3.2v4 cc rejects this. */
3322 char *t;
3323 char const *s = 0 ? (char *) 0 : (char const *) 0;
3324
3325 *t++ = 0;
3326 }
3327 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3328 int x[] = {25, 17};
3329 const int *foo = &x[0];
3330 ++foo;
3331 }
3332 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3333 typedef const int *iptr;
3334 iptr p = 0;
3335 ++p;
3336 }
3337 { /* AIX XL C 1.02.0.0 rejects this saying
3338 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3339 struct s { int j; const int *ap[3]; };
3340 struct s *b; b->j = 5;
3341 }
3342 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3343 const int foo = 10;
3344 }
3345#endif
3346
3347 ;
3348 return 0;
3349}
3350_ACEOF
3351rm -f conftest.$ac_objext
3352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>conftest.er1
3354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag"
3361 || test ! -s conftest.err'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 (eval $ac_try) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3373 ac_cv_c_const=yes
3374else
3375 echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378ac_cv_c_const=no
3379fi
3380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381fi
3382echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3383echo "${ECHO_T}$ac_cv_c_const" >&6
3384if test $ac_cv_c_const = no; then
3385
3386cat >>confdefs.h <<\_ACEOF
3387#define const
3388_ACEOF
3389
3390fi
3391
3392echo "$as_me:$LINENO: checking for inline" >&5
3393echo $ECHO_N "checking for inline... $ECHO_C" >&6
3394if test "${ac_cv_c_inline+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397 ac_cv_c_inline=no
3398for ac_kw in inline __inline__ __inline; do
3399 cat >conftest.$ac_ext <<_ACEOF
3400/* confdefs.h. */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h. */
3405#ifndef __cplusplus
3406typedef int foo_t;
3407static $ac_kw foo_t static_foo () {return 0; }
3408$ac_kw foo_t foo () {return 0; }
3409#endif
3410
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -z "$ac_c_werror_flag"
3422 || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 ac_cv_c_inline=$ac_kw; break
3435else
3436 echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439fi
3440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441done
3442
3443fi
3444echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3445echo "${ECHO_T}$ac_cv_c_inline" >&6
3446
3447
3448case $ac_cv_c_inline in
3449 inline | yes) ;;
3450 *)
3451 case $ac_cv_c_inline in
3452 no) ac_val=;;
3453 *) ac_val=$ac_cv_c_inline;;
3454 esac
3455 cat >>confdefs.h <<_ACEOF
3456#ifndef __cplusplus
3457#define inline $ac_val
3458#endif
3459_ACEOF
3460 ;;
3461esac
3462
f0569246 3463# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657
AC
3464
3465
3466
3467
3468
3469
3470
c906108c 3471
c906108c 3472
35695fd6
AC
3473for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3474 inttypes.h stdint.h unistd.h
3475do
3476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3477echo "$as_me:$LINENO: checking for $ac_header" >&5
3478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3479if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482 cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h. */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h. */
3488$ac_includes_default
3489
3490#include <$ac_header>
3491_ACEOF
3492rm -f conftest.$ac_objext
3493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 eval "$as_ac_Header=yes"
3515else
3516 echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519eval "$as_ac_Header=no"
3520fi
3521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522fi
3523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3525if test `eval echo '${'$as_ac_Header'}'` = yes; then
3526 cat >>confdefs.h <<_ACEOF
3527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3528_ACEOF
3529
3530fi
3531
3532done
3533
3534
3535echo "$as_me:$LINENO: checking for off_t" >&5
3536echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3537if test "${ac_cv_type_off_t+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540 cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h. */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h. */
3546$ac_includes_default
3547int
3548main ()
3549{
3550if ((off_t *) 0)
3551 return 0;
3552if (sizeof (off_t))
3553 return 0;
3554 ;
3555 return 0;
3556}
3557_ACEOF
3558rm -f conftest.$ac_objext
3559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_type_off_t=yes
3581else
3582 echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
3585ac_cv_type_off_t=no
3586fi
3587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588fi
3589echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3590echo "${ECHO_T}$ac_cv_type_off_t" >&6
3591if test $ac_cv_type_off_t = yes; then
3592 :
3593else
3594
3595cat >>confdefs.h <<_ACEOF
3596#define off_t long
3597_ACEOF
3598
3599fi
3600
3601echo "$as_me:$LINENO: checking for size_t" >&5
3602echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3603if test "${ac_cv_type_size_t+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612$ac_includes_default
3613int
3614main ()
3615{
3616if ((size_t *) 0)
3617 return 0;
3618if (sizeof (size_t))
3619 return 0;
3620 ;
3621 return 0;
3622}
3623_ACEOF
3624rm -f conftest.$ac_objext
3625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>conftest.er1
3627 ac_status=$?
3628 grep -v '^ *+' conftest.er1 >conftest.err
3629 rm -f conftest.er1
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } &&
3633 { ac_try='test -z "$ac_c_werror_flag"
3634 || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_cv_type_size_t=yes
3647else
3648 echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651ac_cv_type_size_t=no
3652fi
3653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3654fi
3655echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3656echo "${ECHO_T}$ac_cv_type_size_t" >&6
3657if test $ac_cv_type_size_t = yes; then
3658 :
3659else
3660
3661cat >>confdefs.h <<_ACEOF
3662#define size_t unsigned
3663_ACEOF
3664
3665fi
3666
3667# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3668# for constant arguments. Useless!
3669echo "$as_me:$LINENO: checking for working alloca.h" >&5
3670echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3671if test "${ac_cv_working_alloca_h+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 cat >conftest.$ac_ext <<_ACEOF
3675/* confdefs.h. */
3676_ACEOF
3677cat confdefs.h >>conftest.$ac_ext
3678cat >>conftest.$ac_ext <<_ACEOF
3679/* end confdefs.h. */
3680#include <alloca.h>
3681int
3682main ()
3683{
3684char *p = (char *) alloca (2 * sizeof (int));
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689rm -f conftest.$ac_objext conftest$ac_exeext
3690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3691 (eval $ac_link) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest$ac_exeext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_working_alloca_h=yes
3712else
3713 echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
3716ac_cv_working_alloca_h=no
3717fi
3718rm -f conftest.err conftest.$ac_objext \
3719 conftest$ac_exeext conftest.$ac_ext
3720fi
3721echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3722echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3723if test $ac_cv_working_alloca_h = yes; then
3724
3725cat >>confdefs.h <<\_ACEOF
3726#define HAVE_ALLOCA_H 1
3727_ACEOF
3728
3729fi
3730
3731echo "$as_me:$LINENO: checking for alloca" >&5
3732echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3733if test "${ac_cv_func_alloca_works+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */
3742#ifdef __GNUC__
3743# define alloca __builtin_alloca
3744#else
3745# ifdef _MSC_VER
3746# include <malloc.h>
3747# define alloca _alloca
3748# else
3749# if HAVE_ALLOCA_H
3750# include <alloca.h>
3751# else
3752# ifdef _AIX
3753 #pragma alloca
3754# else
3755# ifndef alloca /* predefined by HP cc +Olibcalls */
3756char *alloca ();
3757# endif
3758# endif
3759# endif
3760# endif
3761#endif
3762
3763int
3764main ()
3765{
3766char *p = (char *) alloca (1);
3767 ;
3768 return 0;
3769}
3770_ACEOF
3771rm -f conftest.$ac_objext conftest$ac_exeext
3772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773 (eval $ac_link) 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try='test -z "$ac_c_werror_flag"
3781 || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest$ac_exeext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_cv_func_alloca_works=yes
3794else
3795 echo "$as_me: failed program was:" >&5
3796sed 's/^/| /' conftest.$ac_ext >&5
3797
3798ac_cv_func_alloca_works=no
3799fi
3800rm -f conftest.err conftest.$ac_objext \
3801 conftest$ac_exeext conftest.$ac_ext
3802fi
3803echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3804echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3805
3806if test $ac_cv_func_alloca_works = yes; then
3807
3808cat >>confdefs.h <<\_ACEOF
3809#define HAVE_ALLOCA 1
3810_ACEOF
3811
3812else
3813 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3814# that cause trouble. Some versions do not even contain alloca or
3815# contain a buggy version. If you still want to use their alloca,
3816# use ar to extract alloca.o from them instead of compiling alloca.c.
3817
3818ALLOCA=alloca.$ac_objext
3819
3820cat >>confdefs.h <<\_ACEOF
3821#define C_ALLOCA 1
3822_ACEOF
3823
3824
3825echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3826echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3827if test "${ac_cv_os_cray+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 cat >conftest.$ac_ext <<_ACEOF
3831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
3836#if defined(CRAY) && ! defined(CRAY2)
3837webecray
3838#else
3839wenotbecray
3840#endif
3841
3842_ACEOF
3843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 $EGREP "webecray" >/dev/null 2>&1; then
3845 ac_cv_os_cray=yes
3846else
3847 ac_cv_os_cray=no
3848fi
3849rm -f conftest*
3850
3851fi
3852echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3853echo "${ECHO_T}$ac_cv_os_cray" >&6
3854if test $ac_cv_os_cray = yes; then
3855 for ac_func in _getb67 GETB67 getb67; do
3856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3857echo "$as_me:$LINENO: checking for $ac_func" >&5
3858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3859if eval "test \"\${$as_ac_var+set}\" = set"; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
3868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3870#define $ac_func innocuous_$ac_func
3871
3872/* System header to define __stub macros and hopefully few prototypes,
3873 which can conflict with char $ac_func (); below.
3874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875 <limits.h> exists even on freestanding compilers. */
3876
3877#ifdef __STDC__
3878# include <limits.h>
3879#else
3880# include <assert.h>
3881#endif
3882
3883#undef $ac_func
3884
3885/* Override any gcc2 internal prototype to avoid an error. */
3886#ifdef __cplusplus
3887extern "C"
3888{
3889#endif
3890/* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3892char $ac_func ();
3893/* The GNU C library defines this for functions which it implements
3894 to always fail with ENOSYS. Some functions are actually named
3895 something starting with __ and the normal name is an alias. */
3896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3897choke me
3898#else
3899char (*f) () = $ac_func;
3900#endif
3901#ifdef __cplusplus
3902}
3903#endif
3904
3905int
3906main ()
3907{
3908return f != $ac_func;
3909 ;
3910 return 0;
3911}
3912_ACEOF
3913rm -f conftest.$ac_objext conftest$ac_exeext
3914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915 (eval $ac_link) 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -z "$ac_c_werror_flag"
3923 || test ! -s conftest.err'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; } &&
3929 { ac_try='test -s conftest$ac_exeext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 eval "$as_ac_var=yes"
3936else
3937 echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940eval "$as_ac_var=no"
3941fi
3942rm -f conftest.err conftest.$ac_objext \
3943 conftest$ac_exeext conftest.$ac_ext
3944fi
3945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3946echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3947if test `eval echo '${'$as_ac_var'}'` = yes; then
3948
3949cat >>confdefs.h <<_ACEOF
3950#define CRAY_STACKSEG_END $ac_func
3951_ACEOF
3952
3953 break
3954fi
3955
3956 done
3957fi
3958
3959echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3960echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3961if test "${ac_cv_c_stack_direction+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 if test "$cross_compiling" = yes; then
3965 ac_cv_c_stack_direction=0
3966else
3967 cat >conftest.$ac_ext <<_ACEOF
3968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h. */
3973int
3974find_stack_direction ()
3975{
3976 static char *addr = 0;
3977 auto char dummy;
3978 if (addr == 0)
3979 {
3980 addr = &dummy;
3981 return find_stack_direction ();
3982 }
3983 else
3984 return (&dummy > addr) ? 1 : -1;
3985}
3986
3987int
3988main ()
3989{
3990 exit (find_stack_direction () < 0);
3991}
3992_ACEOF
3993rm -f conftest$ac_exeext
3994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3995 (eval $ac_link) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_cv_c_stack_direction=1
4005else
4006 echo "$as_me: program exited with status $ac_status" >&5
4007echo "$as_me: failed program was:" >&5
4008sed 's/^/| /' conftest.$ac_ext >&5
4009
4010( exit $ac_status )
4011ac_cv_c_stack_direction=-1
4012fi
4013rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4014fi
4015fi
4016echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4017echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4018
4019cat >>confdefs.h <<_ACEOF
4020#define STACK_DIRECTION $ac_cv_c_stack_direction
4021_ACEOF
4022
4023
4024fi
4025
4026
4027
4028for ac_header in stdlib.h unistd.h
4029do
4030as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4031if eval "test \"\${$as_ac_Header+set}\" = set"; then
4032 echo "$as_me:$LINENO: checking for $ac_header" >&5
4033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4034if eval "test \"\${$as_ac_Header+set}\" = set"; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036fi
4037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4039else
4040 # Is the header compilable?
4041echo "$as_me:$LINENO: checking $ac_header usability" >&5
4042echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4043cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h. */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h. */
4049$ac_includes_default
4050#include <$ac_header>
4051_ACEOF
4052rm -f conftest.$ac_objext
4053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag"
4062 || test ! -s conftest.err'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_header_compiler=yes
4075else
4076 echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079ac_header_compiler=no
4080fi
4081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4083echo "${ECHO_T}$ac_header_compiler" >&6
4084
4085# Is the header present?
4086echo "$as_me:$LINENO: checking $ac_header presence" >&5
4087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4088cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
4094#include <$ac_header>
4095_ACEOF
4096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null; then
4104 if test -s conftest.err; then
4105 ac_cpp_err=$ac_c_preproc_warn_flag
4106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4107 else
4108 ac_cpp_err=
4109 fi
4110else
4111 ac_cpp_err=yes
4112fi
4113if test -z "$ac_cpp_err"; then
4114 ac_header_preproc=yes
4115else
4116 echo "$as_me: failed program was:" >&5
4117sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 ac_header_preproc=no
4120fi
4121rm -f conftest.err conftest.$ac_ext
4122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4123echo "${ECHO_T}$ac_header_preproc" >&6
4124
4125# So? What about this header?
4126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4127 yes:no: )
4128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4132 ac_header_preproc=yes
4133 ;;
4134 no:yes:* )
4135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4147 (
4148 cat <<\_ASBOX
4149## ------------------------------------------ ##
4150## Report this to the AC_PACKAGE_NAME lists. ##
4151## ------------------------------------------ ##
4152_ASBOX
4153 ) |
4154 sed "s/^/$as_me: WARNING: /" >&2
4155 ;;
4156esac
4157echo "$as_me:$LINENO: checking for $ac_header" >&5
4158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4159if eval "test \"\${$as_ac_Header+set}\" = set"; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
4162 eval "$as_ac_Header=\$ac_header_preproc"
4163fi
4164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4166
4167fi
4168if test `eval echo '${'$as_ac_Header'}'` = yes; then
4169 cat >>confdefs.h <<_ACEOF
4170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4171_ACEOF
4172
4173fi
4174
4175done
4176
4177
4178for ac_func in getpagesize
4179do
4180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4181echo "$as_me:$LINENO: checking for $ac_func" >&5
4182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4183if eval "test \"\${$as_ac_var+set}\" = set"; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
4192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4194#define $ac_func innocuous_$ac_func
4195
4196/* System header to define __stub macros and hopefully few prototypes,
4197 which can conflict with char $ac_func (); below.
4198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 <limits.h> exists even on freestanding compilers. */
4200
4201#ifdef __STDC__
4202# include <limits.h>
4203#else
4204# include <assert.h>
4205#endif
4206
4207#undef $ac_func
4208
4209/* Override any gcc2 internal prototype to avoid an error. */
4210#ifdef __cplusplus
4211extern "C"
4212{
4213#endif
4214/* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4216char $ac_func ();
4217/* The GNU C library defines this for functions which it implements
4218 to always fail with ENOSYS. Some functions are actually named
4219 something starting with __ and the normal name is an alias. */
4220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4221choke me
4222#else
4223char (*f) () = $ac_func;
4224#endif
4225#ifdef __cplusplus
4226}
4227#endif
4228
4229int
4230main ()
4231{
4232return f != $ac_func;
4233 ;
4234 return 0;
4235}
4236_ACEOF
4237rm -f conftest.$ac_objext conftest$ac_exeext
4238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239 (eval $ac_link) 2>conftest.er1
4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -z "$ac_c_werror_flag"
4247 || test ! -s conftest.err'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; } &&
4253 { ac_try='test -s conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 eval "$as_ac_var=yes"
4260else
4261 echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264eval "$as_ac_var=no"
4265fi
4266rm -f conftest.err conftest.$ac_objext \
4267 conftest$ac_exeext conftest.$ac_ext
4268fi
4269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4271if test `eval echo '${'$as_ac_var'}'` = yes; then
4272 cat >>confdefs.h <<_ACEOF
4273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4274_ACEOF
4275
4276fi
4277done
4278
4279echo "$as_me:$LINENO: checking for working mmap" >&5
4280echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4281if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284 if test "$cross_compiling" = yes; then
4285 ac_cv_func_mmap_fixed_mapped=no
4286else
4287 cat >conftest.$ac_ext <<_ACEOF
4288/* confdefs.h. */
4289_ACEOF
4290cat confdefs.h >>conftest.$ac_ext
4291cat >>conftest.$ac_ext <<_ACEOF
4292/* end confdefs.h. */
4293$ac_includes_default
4294/* malloc might have been renamed as rpl_malloc. */
4295#undef malloc
4296
4297/* Thanks to Mike Haertel and Jim Avera for this test.
4298 Here is a matrix of mmap possibilities:
4299 mmap private not fixed
4300 mmap private fixed at somewhere currently unmapped
4301 mmap private fixed at somewhere already mapped
4302 mmap shared not fixed
4303 mmap shared fixed at somewhere currently unmapped
4304 mmap shared fixed at somewhere already mapped
4305 For private mappings, we should verify that changes cannot be read()
4306 back from the file, nor mmap's back from the file at a different
4307 address. (There have been systems where private was not correctly
4308 implemented like the infamous i386 svr4.0, and systems where the
4309 VM page cache was not coherent with the file system buffer cache
4310 like early versions of FreeBSD and possibly contemporary NetBSD.)
4311 For shared mappings, we should conversely verify that changes get
4312 propagated back to all the places they're supposed to be.
4313
4314 Grep wants private fixed already mapped.
4315 The main things grep needs to know about mmap are:
4316 * does it exist and is it safe to write into the mmap'd area
4317 * how to use it (BSD variants) */
4318
4319#include <fcntl.h>
4320#include <sys/mman.h>
4321
4322#if !STDC_HEADERS && !HAVE_STDLIB_H
4323char *malloc ();
4324#endif
4325
4326/* This mess was copied from the GNU getpagesize.h. */
4327#if !HAVE_GETPAGESIZE
4328/* Assume that all systems that can run configure have sys/param.h. */
4329# if !HAVE_SYS_PARAM_H
4330# define HAVE_SYS_PARAM_H 1
4331# endif
4332
4333# ifdef _SC_PAGESIZE
4334# define getpagesize() sysconf(_SC_PAGESIZE)
4335# else /* no _SC_PAGESIZE */
4336# if HAVE_SYS_PARAM_H
4337# include <sys/param.h>
4338# ifdef EXEC_PAGESIZE
4339# define getpagesize() EXEC_PAGESIZE
4340# else /* no EXEC_PAGESIZE */
4341# ifdef NBPG
4342# define getpagesize() NBPG * CLSIZE
4343# ifndef CLSIZE
4344# define CLSIZE 1
4345# endif /* no CLSIZE */
4346# else /* no NBPG */
4347# ifdef NBPC
4348# define getpagesize() NBPC
4349# else /* no NBPC */
4350# ifdef PAGESIZE
4351# define getpagesize() PAGESIZE
4352# endif /* PAGESIZE */
4353# endif /* no NBPC */
4354# endif /* no NBPG */
4355# endif /* no EXEC_PAGESIZE */
4356# else /* no HAVE_SYS_PARAM_H */
4357# define getpagesize() 8192 /* punt totally */
4358# endif /* no HAVE_SYS_PARAM_H */
4359# endif /* no _SC_PAGESIZE */
4360
4361#endif /* no HAVE_GETPAGESIZE */
4362
4363int
4364main ()
4365{
4366 char *data, *data2, *data3;
4367 int i, pagesize;
4368 int fd;
4369
4370 pagesize = getpagesize ();
4371
4372 /* First, make a file with some known garbage in it. */
4373 data = (char *) malloc (pagesize);
4374 if (!data)
4375 exit (1);
4376 for (i = 0; i < pagesize; ++i)
4377 *(data + i) = rand ();
4378 umask (0);
4379 fd = creat ("conftest.mmap", 0600);
4380 if (fd < 0)
4381 exit (1);
4382 if (write (fd, data, pagesize) != pagesize)
4383 exit (1);
4384 close (fd);
4385
4386 /* Next, try to mmap the file at a fixed address which already has
4387 something else allocated at it. If we can, also make sure that
4388 we see the same garbage. */
4389 fd = open ("conftest.mmap", O_RDWR);
4390 if (fd < 0)
4391 exit (1);
4392 data2 = (char *) malloc (2 * pagesize);
4393 if (!data2)
4394 exit (1);
4395 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4396 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4397 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4398 exit (1);
4399 for (i = 0; i < pagesize; ++i)
4400 if (*(data + i) != *(data2 + i))
4401 exit (1);
4402
4403 /* Finally, make sure that changes to the mapped area do not
4404 percolate back to the file as seen by read(). (This is a bug on
4405 some variants of i386 svr4.0.) */
4406 for (i = 0; i < pagesize; ++i)
4407 *(data2 + i) = *(data2 + i) + 1;
4408 data3 = (char *) malloc (pagesize);
4409 if (!data3)
4410 exit (1);
4411 if (read (fd, data3, pagesize) != pagesize)
4412 exit (1);
4413 for (i = 0; i < pagesize; ++i)
4414 if (*(data + i) != *(data3 + i))
4415 exit (1);
4416 close (fd);
4417 exit (0);
4418}
4419_ACEOF
4420rm -f conftest$ac_exeext
4421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4422 (eval $ac_link) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_func_mmap_fixed_mapped=yes
4432else
4433 echo "$as_me: program exited with status $ac_status" >&5
4434echo "$as_me: failed program was:" >&5
4435sed 's/^/| /' conftest.$ac_ext >&5
4436
4437( exit $ac_status )
4438ac_cv_func_mmap_fixed_mapped=no
4439fi
4440rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4441fi
4442fi
4443echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4444echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4445if test $ac_cv_func_mmap_fixed_mapped = yes; then
4446
4447cat >>confdefs.h <<\_ACEOF
4448#define HAVE_MMAP 1
4449_ACEOF
4450
4451fi
4452rm -f conftest.mmap
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4465unistd.h values.h sys/param.h
4466do
4467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4468if eval "test \"\${$as_ac_Header+set}\" = set"; then
4469 echo "$as_me:$LINENO: checking for $ac_header" >&5
4470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4471if eval "test \"\${$as_ac_Header+set}\" = set"; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473fi
4474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4476else
4477 # Is the header compilable?
4478echo "$as_me:$LINENO: checking $ac_header usability" >&5
4479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4480cat >conftest.$ac_ext <<_ACEOF
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
4486$ac_includes_default
4487#include <$ac_header>
4488_ACEOF
4489rm -f conftest.$ac_objext
4490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try='test -z "$ac_c_werror_flag"
4499 || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_header_compiler=yes
4512else
4513 echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516ac_header_compiler=no
4517fi
4518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4520echo "${ECHO_T}$ac_header_compiler" >&6
4521
4522# Is the header present?
4523echo "$as_me:$LINENO: checking $ac_header presence" >&5
4524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4525cat >conftest.$ac_ext <<_ACEOF
4526/* confdefs.h. */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h. */
4531#include <$ac_header>
4532_ACEOF
4533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } >/dev/null; then
4541 if test -s conftest.err; then
4542 ac_cpp_err=$ac_c_preproc_warn_flag
4543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4544 else
4545 ac_cpp_err=
4546 fi
4547else
4548 ac_cpp_err=yes
4549fi
4550if test -z "$ac_cpp_err"; then
4551 ac_header_preproc=yes
4552else
4553 echo "$as_me: failed program was:" >&5
4554sed 's/^/| /' conftest.$ac_ext >&5
4555
4556 ac_header_preproc=no
4557fi
4558rm -f conftest.err conftest.$ac_ext
4559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4560echo "${ECHO_T}$ac_header_preproc" >&6
4561
4562# So? What about this header?
4563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4564 yes:no: )
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4569 ac_header_preproc=yes
4570 ;;
4571 no:yes:* )
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4584 (
4585 cat <<\_ASBOX
4586## ------------------------------------------ ##
4587## Report this to the AC_PACKAGE_NAME lists. ##
4588## ------------------------------------------ ##
4589_ASBOX
4590 ) |
4591 sed "s/^/$as_me: WARNING: /" >&2
4592 ;;
4593esac
4594echo "$as_me:$LINENO: checking for $ac_header" >&5
4595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596if eval "test \"\${$as_ac_Header+set}\" = set"; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 eval "$as_ac_Header=\$ac_header_preproc"
4600fi
4601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4603
4604fi
4605if test `eval echo '${'$as_ac_Header'}'` = yes; then
4606 cat >>confdefs.h <<_ACEOF
4607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4608_ACEOF
4609
4610fi
4611
4612done
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4625__argz_count __argz_stringify __argz_next
4626do
4627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4628echo "$as_me:$LINENO: checking for $ac_func" >&5
4629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4630if eval "test \"\${$as_ac_var+set}\" = set"; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633 cat >conftest.$ac_ext <<_ACEOF
4634/* confdefs.h. */
4635_ACEOF
4636cat confdefs.h >>conftest.$ac_ext
4637cat >>conftest.$ac_ext <<_ACEOF
4638/* end confdefs.h. */
4639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4641#define $ac_func innocuous_$ac_func
4642
4643/* System header to define __stub macros and hopefully few prototypes,
4644 which can conflict with char $ac_func (); below.
4645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646 <limits.h> exists even on freestanding compilers. */
4647
4648#ifdef __STDC__
4649# include <limits.h>
4650#else
4651# include <assert.h>
4652#endif
4653
4654#undef $ac_func
4655
4656/* Override any gcc2 internal prototype to avoid an error. */
4657#ifdef __cplusplus
4658extern "C"
4659{
4660#endif
4661/* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4663char $ac_func ();
4664/* The GNU C library defines this for functions which it implements
4665 to always fail with ENOSYS. Some functions are actually named
4666 something starting with __ and the normal name is an alias. */
4667#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4668choke me
4669#else
4670char (*f) () = $ac_func;
4671#endif
4672#ifdef __cplusplus
4673}
4674#endif
4675
4676int
4677main ()
4678{
4679return f != $ac_func;
4680 ;
4681 return 0;
4682}
4683_ACEOF
4684rm -f conftest.$ac_objext conftest$ac_exeext
4685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686 (eval $ac_link) 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest$ac_exeext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 eval "$as_ac_var=yes"
4707else
4708 echo "$as_me: failed program was:" >&5
4709sed 's/^/| /' conftest.$ac_ext >&5
4710
4711eval "$as_ac_var=no"
4712fi
4713rm -f conftest.err conftest.$ac_objext \
4714 conftest$ac_exeext conftest.$ac_ext
4715fi
4716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4718if test `eval echo '${'$as_ac_var'}'` = yes; then
4719 cat >>confdefs.h <<_ACEOF
4720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4721_ACEOF
4722
4723fi
4724done
4725
4726
4727 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4728
4729for ac_func in stpcpy
4730do
4731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4732echo "$as_me:$LINENO: checking for $ac_func" >&5
4733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4734if eval "test \"\${$as_ac_var+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737 cat >conftest.$ac_ext <<_ACEOF
4738/* confdefs.h. */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h. */
4743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4745#define $ac_func innocuous_$ac_func
4746
4747/* System header to define __stub macros and hopefully few prototypes,
4748 which can conflict with char $ac_func (); below.
4749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 <limits.h> exists even on freestanding compilers. */
4751
4752#ifdef __STDC__
4753# include <limits.h>
4754#else
4755# include <assert.h>
4756#endif
4757
4758#undef $ac_func
4759
4760/* Override any gcc2 internal prototype to avoid an error. */
4761#ifdef __cplusplus
4762extern "C"
4763{
4764#endif
4765/* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4767char $ac_func ();
4768/* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4772choke me
4773#else
4774char (*f) () = $ac_func;
4775#endif
4776#ifdef __cplusplus
4777}
4778#endif
4779
4780int
4781main ()
4782{
4783return f != $ac_func;
4784 ;
4785 return 0;
4786}
4787_ACEOF
4788rm -f conftest.$ac_objext conftest$ac_exeext
4789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790 (eval $ac_link) 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 eval "$as_ac_var=yes"
4811else
4812 echo "$as_me: failed program was:" >&5
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815eval "$as_ac_var=no"
4816fi
4817rm -f conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4819fi
4820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4821echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4822if test `eval echo '${'$as_ac_var'}'` = yes; then
4823 cat >>confdefs.h <<_ACEOF
4824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4825_ACEOF
4826
4827fi
4828done
4829
4830 fi
4831 if test "${ac_cv_func_stpcpy}" = "yes"; then
4832 cat >>confdefs.h <<\_ACEOF
4833#define HAVE_STPCPY 1
4834_ACEOF
4835
4836 fi
4837
4838 if test $ac_cv_header_locale_h = yes; then
4839 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4840echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4841if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844 cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h. */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h. */
4850#include <locale.h>
4851int
4852main ()
4853{
4854return LC_MESSAGES
4855 ;
4856 return 0;
4857}
4858_ACEOF
4859rm -f conftest.$ac_objext conftest$ac_exeext
4860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861 (eval $ac_link) 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -z "$ac_c_werror_flag"
4869 || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest$ac_exeext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 am_cv_val_LC_MESSAGES=yes
4882else
4883 echo "$as_me: failed program was:" >&5
4884sed 's/^/| /' conftest.$ac_ext >&5
4885
4886am_cv_val_LC_MESSAGES=no
4887fi
4888rm -f conftest.err conftest.$ac_objext \
4889 conftest$ac_exeext conftest.$ac_ext
4890fi
4891echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4892echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4893 if test $am_cv_val_LC_MESSAGES = yes; then
4894 cat >>confdefs.h <<\_ACEOF
4895#define HAVE_LC_MESSAGES 1
4896_ACEOF
4897
4898 fi
4899 fi
4900 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4901echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4902 # Check whether --enable-nls or --disable-nls was given.
4903if test "${enable_nls+set}" = set; then
4904 enableval="$enable_nls"
4905 USE_NLS=$enableval
4906else
4907 USE_NLS=yes
4908fi;
4909 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4910echo "${ECHO_T}$USE_NLS" >&6
4911
4912
4913 USE_INCLUDED_LIBINTL=no
4914
4915 if test "$USE_NLS" = "yes"; then
4916 cat >>confdefs.h <<\_ACEOF
4917#define ENABLE_NLS 1
4918_ACEOF
4919
4920 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4921echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4922
4923# Check whether --with-included-gettext or --without-included-gettext was given.
4924if test "${with_included_gettext+set}" = set; then
4925 withval="$with_included_gettext"
4926 nls_cv_force_use_gnu_gettext=$withval
4927else
4928 nls_cv_force_use_gnu_gettext=no
4929fi;
4930 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4931echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4932
4933 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4934 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4935 nls_cv_header_intl=
4936 nls_cv_header_libgt=
4937 CATOBJEXT=NONE
4938
4939 if test "${ac_cv_header_libintl_h+set}" = set; then
4940 echo "$as_me:$LINENO: checking for libintl.h" >&5
4941echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4942if test "${ac_cv_header_libintl_h+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944fi
4945echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4946echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4947else
4948 # Is the header compilable?
4949echo "$as_me:$LINENO: checking libintl.h usability" >&5
4950echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4951cat >conftest.$ac_ext <<_ACEOF
4952/* confdefs.h. */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h. */
4957$ac_includes_default
4958#include <libintl.h>
4959_ACEOF
4960rm -f conftest.$ac_objext
4961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_header_compiler=yes
4983else
4984 echo "$as_me: failed program was:" >&5
4985sed 's/^/| /' conftest.$ac_ext >&5
4986
4987ac_header_compiler=no
4988fi
4989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4991echo "${ECHO_T}$ac_header_compiler" >&6
4992
4993# Is the header present?
4994echo "$as_me:$LINENO: checking libintl.h presence" >&5
4995echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4996cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002#include <libintl.h>
5003_ACEOF
5004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_c_preproc_warn_flag
5014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5015 else
5016 ac_cpp_err=
5017 fi
5018else
5019 ac_cpp_err=yes
5020fi
5021if test -z "$ac_cpp_err"; then
5022 ac_header_preproc=yes
5023else
5024 echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 ac_header_preproc=no
5028fi
5029rm -f conftest.err conftest.$ac_ext
5030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5031echo "${ECHO_T}$ac_header_preproc" >&6
5032
5033# So? What about this header?
5034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5035 yes:no: )
5036 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5037echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5038 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5039echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5040 ac_header_preproc=yes
5041 ;;
5042 no:yes:* )
5043 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5044echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5045 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5046echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5047 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5048echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5049 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5050echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5052echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5054echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5055 (
5056 cat <<\_ASBOX
5057## ------------------------------------------ ##
5058## Report this to the AC_PACKAGE_NAME lists. ##
5059## ------------------------------------------ ##
5060_ASBOX
5061 ) |
5062 sed "s/^/$as_me: WARNING: /" >&2
5063 ;;
5064esac
5065echo "$as_me:$LINENO: checking for libintl.h" >&5
5066echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5067if test "${ac_cv_header_libintl_h+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069else
5070 ac_cv_header_libintl_h=$ac_header_preproc
5071fi
5072echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5073echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5074
5075fi
5076if test $ac_cv_header_libintl_h = yes; then
5077 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5078echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5079if test "${gt_cv_func_gettext_libc+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082 cat >conftest.$ac_ext <<_ACEOF
5083/* confdefs.h. */
5084_ACEOF
5085cat confdefs.h >>conftest.$ac_ext
5086cat >>conftest.$ac_ext <<_ACEOF
5087/* end confdefs.h. */
5088#include <libintl.h>
5089int
5090main ()
5091{
5092return (int) gettext ("")
5093 ;
5094 return 0;
5095}
5096_ACEOF
5097rm -f conftest.$ac_objext conftest$ac_exeext
5098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099 (eval $ac_link) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -z "$ac_c_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest$ac_exeext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 gt_cv_func_gettext_libc=yes
5120else
5121 echo "$as_me: failed program was:" >&5
5122sed 's/^/| /' conftest.$ac_ext >&5
5123
5124gt_cv_func_gettext_libc=no
5125fi
5126rm -f conftest.err conftest.$ac_objext \
5127 conftest$ac_exeext conftest.$ac_ext
5128fi
5129echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5130echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5131
5132 if test "$gt_cv_func_gettext_libc" != "yes"; then
5133 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5134echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5135if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 ac_check_lib_save_LIBS=$LIBS
5139LIBS="-lintl $LIBS"
5140cat >conftest.$ac_ext <<_ACEOF
5141/* confdefs.h. */
5142_ACEOF
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h. */
5146
5147/* Override any gcc2 internal prototype to avoid an error. */
5148#ifdef __cplusplus
5149extern "C"
5150#endif
5151/* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5153char bindtextdomain ();
5154int
5155main ()
5156{
5157bindtextdomain ();
5158 ;
5159 return 0;
5160}
5161_ACEOF
5162rm -f conftest.$ac_objext conftest$ac_exeext
5163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164 (eval $ac_link) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -z "$ac_c_werror_flag"
5172 || test ! -s conftest.err'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 (eval $ac_try) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_cv_lib_intl_bindtextdomain=yes
5185else
5186 echo "$as_me: failed program was:" >&5
5187sed 's/^/| /' conftest.$ac_ext >&5
5188
5189ac_cv_lib_intl_bindtextdomain=no
5190fi
5191rm -f conftest.err conftest.$ac_objext \
5192 conftest$ac_exeext conftest.$ac_ext
5193LIBS=$ac_check_lib_save_LIBS
5194fi
5195echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5196echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5197if test $ac_cv_lib_intl_bindtextdomain = yes; then
5198 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5199echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5200if test "${gt_cv_func_gettext_libintl+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
5203 cat >conftest.$ac_ext <<_ACEOF
5204/* confdefs.h. */
5205_ACEOF
5206cat confdefs.h >>conftest.$ac_ext
5207cat >>conftest.$ac_ext <<_ACEOF
5208/* end confdefs.h. */
5209
5210int
5211main ()
5212{
5213return (int) gettext ("")
5214 ;
5215 return 0;
5216}
5217_ACEOF
5218rm -f conftest.$ac_objext conftest$ac_exeext
5219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>conftest.er1
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -z "$ac_c_werror_flag"
5228 || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest$ac_exeext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 gt_cv_func_gettext_libintl=yes
5241else
5242 echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245gt_cv_func_gettext_libintl=no
5246fi
5247rm -f conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
5249fi
5250echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5251echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5252fi
5253
5254 fi
5255
5256 if test "$gt_cv_func_gettext_libc" = "yes" \
5257 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5258 cat >>confdefs.h <<\_ACEOF
5259#define HAVE_GETTEXT 1
5260_ACEOF
5261
5262 # Extract the first word of "msgfmt", so it can be a program name with args.
5263set dummy msgfmt; ac_word=$2
5264echo "$as_me:$LINENO: checking for $ac_word" >&5
5265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266if test "${ac_cv_path_MSGFMT+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269 case "$MSGFMT" in
5270 /*)
5271 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5272 ;;
5273 *)
5274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5275 for ac_dir in $PATH; do
5276 test -z "$ac_dir" && ac_dir=.
5277 if test -f $ac_dir/$ac_word; then
5278 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5279 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5280 break
5281 fi
5282 fi
5283 done
5284 IFS="$ac_save_ifs"
5285 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5286 ;;
5287esac
5288fi
5289MSGFMT="$ac_cv_path_MSGFMT"
5290if test -n "$MSGFMT"; then
5291 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5292echo "${ECHO_T}$MSGFMT" >&6
5293else
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
5296fi
5297 if test "$MSGFMT" != "no"; then
5298
5299for ac_func in dcgettext
5300do
5301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5302echo "$as_me:$LINENO: checking for $ac_func" >&5
5303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5304if eval "test \"\${$as_ac_var+set}\" = set"; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307 cat >conftest.$ac_ext <<_ACEOF
5308/* confdefs.h. */
5309_ACEOF
5310cat confdefs.h >>conftest.$ac_ext
5311cat >>conftest.$ac_ext <<_ACEOF
5312/* end confdefs.h. */
5313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5315#define $ac_func innocuous_$ac_func
5316
5317/* System header to define __stub macros and hopefully few prototypes,
5318 which can conflict with char $ac_func (); below.
5319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 <limits.h> exists even on freestanding compilers. */
5321
5322#ifdef __STDC__
5323# include <limits.h>
5324#else
5325# include <assert.h>
5326#endif
5327
5328#undef $ac_func
5329
5330/* Override any gcc2 internal prototype to avoid an error. */
5331#ifdef __cplusplus
5332extern "C"
5333{
5334#endif
5335/* We use char because int might match the return type of a gcc2
5336 builtin and then its argument prototype would still apply. */
5337char $ac_func ();
5338/* The GNU C library defines this for functions which it implements
5339 to always fail with ENOSYS. Some functions are actually named
5340 something starting with __ and the normal name is an alias. */
5341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5342choke me
5343#else
5344char (*f) () = $ac_func;
5345#endif
5346#ifdef __cplusplus
5347}
5348#endif
5349
5350int
5351main ()
5352{
5353return f != $ac_func;
5354 ;
5355 return 0;
5356}
5357_ACEOF
5358rm -f conftest.$ac_objext conftest$ac_exeext
5359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest$ac_exeext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 eval "$as_ac_var=yes"
5381else
5382 echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385eval "$as_ac_var=no"
5386fi
5387rm -f conftest.err conftest.$ac_objext \
5388 conftest$ac_exeext conftest.$ac_ext
5389fi
5390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5392if test `eval echo '${'$as_ac_var'}'` = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5395_ACEOF
5396
5397fi
5398done
5399
5400 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5401set dummy gmsgfmt; ac_word=$2
5402echo "$as_me:$LINENO: checking for $ac_word" >&5
5403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404if test "${ac_cv_path_GMSGFMT+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407 case $GMSGFMT in
5408 [\\/]* | ?:[\\/]*)
5409 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5410 ;;
5411 *)
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423done
5424done
5425
5426 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5427 ;;
5428esac
5429fi
5430GMSGFMT=$ac_cv_path_GMSGFMT
5431
5432if test -n "$GMSGFMT"; then
5433 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5434echo "${ECHO_T}$GMSGFMT" >&6
5435else
5436 echo "$as_me:$LINENO: result: no" >&5
5437echo "${ECHO_T}no" >&6
5438fi
5439
5440 # Extract the first word of "xgettext", so it can be a program name with args.
5441set dummy xgettext; ac_word=$2
5442echo "$as_me:$LINENO: checking for $ac_word" >&5
5443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5444if test "${ac_cv_path_XGETTEXT+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447 case "$XGETTEXT" in
5448 /*)
5449 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5450 ;;
5451 *)
5452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5453 for ac_dir in $PATH; do
5454 test -z "$ac_dir" && ac_dir=.
5455 if test -f $ac_dir/$ac_word; then
5456 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5457 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5458 break
5459 fi
5460 fi
5461 done
5462 IFS="$ac_save_ifs"
5463 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5464 ;;
5465esac
5466fi
5467XGETTEXT="$ac_cv_path_XGETTEXT"
5468if test -n "$XGETTEXT"; then
5469 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5470echo "${ECHO_T}$XGETTEXT" >&6
5471else
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
5474fi
5475
5476 cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h. */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h. */
5482
5483int
5484main ()
5485{
5486extern int _nl_msg_cat_cntr;
5487 return _nl_msg_cat_cntr
5488 ;
5489 return 0;
5490}
5491_ACEOF
5492rm -f conftest.$ac_objext conftest$ac_exeext
5493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5494 (eval $ac_link) 2>conftest.er1
5495 ac_status=$?
5496 grep -v '^ *+' conftest.er1 >conftest.err
5497 rm -f conftest.er1
5498 cat conftest.err >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } &&
5501 { ac_try='test -z "$ac_c_werror_flag"
5502 || test ! -s conftest.err'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; } &&
5508 { ac_try='test -s conftest$ac_exeext'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 (eval $ac_try) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 CATOBJEXT=.gmo
5515 DATADIRNAME=share
5516else
5517 echo "$as_me: failed program was:" >&5
5518sed 's/^/| /' conftest.$ac_ext >&5
5519
5520CATOBJEXT=.mo
5521 DATADIRNAME=lib
5522fi
5523rm -f conftest.err conftest.$ac_objext \
5524 conftest$ac_exeext conftest.$ac_ext
5525 INSTOBJEXT=.mo
5526 fi
5527 fi
5528
5529fi
5530
5531
5532
5533
5534 if test "$CATOBJEXT" = "NONE"; then
5535 nls_cv_use_gnu_gettext=yes
5536 fi
5537 fi
5538
5539 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5540 INTLOBJS="\$(GETTOBJS)"
5541 # Extract the first word of "msgfmt", so it can be a program name with args.
5542set dummy msgfmt; ac_word=$2
5543echo "$as_me:$LINENO: checking for $ac_word" >&5
5544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5545if test "${ac_cv_path_MSGFMT+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548 case "$MSGFMT" in
5549 /*)
5550 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5551 ;;
5552 *)
5553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5554 for ac_dir in $PATH; do
5555 test -z "$ac_dir" && ac_dir=.
5556 if test -f $ac_dir/$ac_word; then
5557 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5558 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5559 break
5560 fi
5561 fi
5562 done
5563 IFS="$ac_save_ifs"
5564 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5565 ;;
5566esac
5567fi
5568MSGFMT="$ac_cv_path_MSGFMT"
5569if test -n "$MSGFMT"; then
5570 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5571echo "${ECHO_T}$MSGFMT" >&6
5572else
5573 echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6
5575fi
5576
5577 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5578set dummy gmsgfmt; ac_word=$2
5579echo "$as_me:$LINENO: checking for $ac_word" >&5
5580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5581if test "${ac_cv_path_GMSGFMT+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583else
5584 case $GMSGFMT in
5585 [\\/]* | ?:[\\/]*)
5586 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5587 ;;
5588 *)
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600done
5601done
5602
5603 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5604 ;;
5605esac
5606fi
5607GMSGFMT=$ac_cv_path_GMSGFMT
5608
5609if test -n "$GMSGFMT"; then
5610 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5611echo "${ECHO_T}$GMSGFMT" >&6
5612else
5613 echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615fi
5616
5617 # Extract the first word of "xgettext", so it can be a program name with args.
5618set dummy xgettext; ac_word=$2
5619echo "$as_me:$LINENO: checking for $ac_word" >&5
5620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621if test "${ac_cv_path_XGETTEXT+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 case "$XGETTEXT" in
5625 /*)
5626 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5627 ;;
5628 *)
5629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5630 for ac_dir in $PATH; do
5631 test -z "$ac_dir" && ac_dir=.
5632 if test -f $ac_dir/$ac_word; then
5633 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5634 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5635 break
5636 fi
5637 fi
5638 done
5639 IFS="$ac_save_ifs"
5640 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5641 ;;
5642esac
5643fi
5644XGETTEXT="$ac_cv_path_XGETTEXT"
5645if test -n "$XGETTEXT"; then
5646 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5647echo "${ECHO_T}$XGETTEXT" >&6
5648else
5649 echo "$as_me:$LINENO: result: no" >&5
5650echo "${ECHO_T}no" >&6
5651fi
5652
5653
5654 USE_INCLUDED_LIBINTL=yes
5655 CATOBJEXT=.gmo
5656 INSTOBJEXT=.mo
5657 DATADIRNAME=share
5658 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5659 INTLLIBS=$INTLDEPS
5660 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5661 nls_cv_header_intl=libintl.h
5662 nls_cv_header_libgt=libgettext.h
5663 fi
5664
5665 if test "$XGETTEXT" != ":"; then
5666 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5667 : ;
5668 else
5669 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5670echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5671 XGETTEXT=":"
5672 fi
5673 fi
5674
5675 # We need to process the po/ directory.
5676 POSUB=po
5677 else
5678 DATADIRNAME=share
5679 nls_cv_header_intl=libintl.h
5680 nls_cv_header_libgt=libgettext.h
5681 fi
5682
5683 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5684 # because some of the sources are only built for this goal.
5685 if test "$PACKAGE" = gettext; then
5686 USE_NLS=yes
5687 USE_INCLUDED_LIBINTL=yes
5688 fi
5689
5690 for lang in $ALL_LINGUAS; do
5691 GMOFILES="$GMOFILES $lang.gmo"
5692 POFILES="$POFILES $lang.po"
5693 done
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 if test "x$CATOBJEXT" != "x"; then
5709 if test "x$ALL_LINGUAS" = "x"; then
5710 LINGUAS=
5711 else
5712 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5713echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5714 NEW_LINGUAS=
5715 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5716 case "$ALL_LINGUAS" in
5717 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5718 esac
5719 done
5720 LINGUAS=$NEW_LINGUAS
5721 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5722echo "${ECHO_T}$LINGUAS" >&6
5723 fi
5724
5725 if test -n "$LINGUAS"; then
5726 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5727 fi
5728 fi
5729
5730 if test $ac_cv_header_locale_h = yes; then
5731 INCLUDE_LOCALE_H="#include <locale.h>"
5732 else
5733 INCLUDE_LOCALE_H="\
5734/* The system does not provide the header <locale.h>. Take care yourself. */"
5735 fi
5736
5737
5738 if test -f $srcdir/po2tbl.sed.in; then
5739 if test "$CATOBJEXT" = ".cat"; then
5740 if test "${ac_cv_header_linux_version_h+set}" = set; then
5741 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5742echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5743if test "${ac_cv_header_linux_version_h+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745fi
5746echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5747echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5748else
5749 # Is the header compilable?
5750echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5751echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5752cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h. */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h. */
5758$ac_includes_default
5759#include <linux/version.h>
5760_ACEOF
5761rm -f conftest.$ac_objext
5762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -z "$ac_c_werror_flag"
5771 || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 ac_header_compiler=yes
5784else
5785 echo "$as_me: failed program was:" >&5
5786sed 's/^/| /' conftest.$ac_ext >&5
5787
5788ac_header_compiler=no
5789fi
5790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5792echo "${ECHO_T}$ac_header_compiler" >&6
5793
5794# Is the header present?
5795echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5796echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5797cat >conftest.$ac_ext <<_ACEOF
5798/* confdefs.h. */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h. */
5803#include <linux/version.h>
5804_ACEOF
5805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } >/dev/null; then
5813 if test -s conftest.err; then
5814 ac_cpp_err=$ac_c_preproc_warn_flag
5815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5816 else
5817 ac_cpp_err=
5818 fi
5819else
5820 ac_cpp_err=yes
5821fi
5822if test -z "$ac_cpp_err"; then
5823 ac_header_preproc=yes
5824else
5825 echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_header_preproc=no
5829fi
5830rm -f conftest.err conftest.$ac_ext
5831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5832echo "${ECHO_T}$ac_header_preproc" >&6
5833
5834# So? What about this header?
5835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5836 yes:no: )
5837 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5838echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5839 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5840echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5841 ac_header_preproc=yes
5842 ;;
5843 no:yes:* )
5844 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5845echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5846 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5847echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5848 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5849echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5850 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5851echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5853echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5855echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5856 (
5857 cat <<\_ASBOX
5858## ------------------------------------------ ##
5859## Report this to the AC_PACKAGE_NAME lists. ##
5860## ------------------------------------------ ##
5861_ASBOX
5862 ) |
5863 sed "s/^/$as_me: WARNING: /" >&2
5864 ;;
5865esac
5866echo "$as_me:$LINENO: checking for linux/version.h" >&5
5867echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5868if test "${ac_cv_header_linux_version_h+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871 ac_cv_header_linux_version_h=$ac_header_preproc
5872fi
5873echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5874echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5875
5876fi
5877if test $ac_cv_header_linux_version_h = yes; then
5878 msgformat=linux
5879else
5880 msgformat=xopen
5881fi
5882
5883
5884
5885 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5886 fi
5887 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5888 $srcdir/po2tbl.sed.in > po2tbl.sed
5889 fi
5890
5891 if test "$PACKAGE" = "gettext"; then
5892 GT_NO="#NO#"
5893 GT_YES=
5894 else
5895 GT_NO=
5896 GT_YES="#YES#"
5897 fi
5898
5899
5900
5901 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
f0569246 5902
b7026657 5903
35695fd6 5904 l=
b7026657 5905
c906108c 5906
35695fd6
AC
5907 if test -d $srcdir/po; then
5908 test -d po || mkdir po
5909 if test "x$srcdir" != "x."; then
5910 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5911 posrcprefix="$srcdir/"
5912 else
5913 posrcprefix="../$srcdir/"
5914 fi
5915 else
5916 posrcprefix="../"
5917 fi
5918 rm -f po/POTFILES
5919 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5920 < $srcdir/po/POTFILES.in > po/POTFILES
5921 fi
b7026657 5922
c906108c 5923
35695fd6
AC
5924# Check for common headers.
5925# FIXME: Seems to me this can cause problems for i386-windows hosts.
5926# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
b7026657
AC
5927
5928
5929
5930
5931
5932for ac_header in stdlib.h string.h strings.h unistd.h time.h
c906108c 5933do
b7026657
AC
5934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5935if eval "test \"\${$as_ac_Header+set}\" = set"; then
5936 echo "$as_me:$LINENO: checking for $ac_header" >&5
5937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5938if eval "test \"\${$as_ac_Header+set}\" = set"; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940fi
5941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5943else
5944 # Is the header compilable?
5945echo "$as_me:$LINENO: checking $ac_header usability" >&5
5946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5947cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h. */
5953$ac_includes_default
5954#include <$ac_header>
5955_ACEOF
5956rm -f conftest.$ac_objext
5957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -z "$ac_c_werror_flag"
5966 || test ! -s conftest.err'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest.$ac_objext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_header_compiler=yes
5979else
5980 echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983ac_header_compiler=no
5984fi
5985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5987echo "${ECHO_T}$ac_header_compiler" >&6
5988
5989# Is the header present?
5990echo "$as_me:$LINENO: checking $ac_header presence" >&5
5991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5992cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h. */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
5998#include <$ac_header>
5999_ACEOF
6000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } >/dev/null; then
6008 if test -s conftest.err; then
6009 ac_cpp_err=$ac_c_preproc_warn_flag
6010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011 else
6012 ac_cpp_err=
6013 fi
6014else
6015 ac_cpp_err=yes
c906108c 6016fi
b7026657
AC
6017if test -z "$ac_cpp_err"; then
6018 ac_header_preproc=yes
6019else
6020 echo "$as_me: failed program was:" >&5
6021sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 ac_header_preproc=no
c906108c 6024fi
b7026657
AC
6025rm -f conftest.err conftest.$ac_ext
6026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6027echo "${ECHO_T}$ac_header_preproc" >&6
6028
6029# So? What about this header?
6030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6031 yes:no: )
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6036 ac_header_preproc=yes
6037 ;;
6038 no:yes:* )
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6051 (
6052 cat <<\_ASBOX
6053## ------------------------------------------ ##
6054## Report this to the AC_PACKAGE_NAME lists. ##
6055## ------------------------------------------ ##
6056_ASBOX
6057 ) |
6058 sed "s/^/$as_me: WARNING: /" >&2
6059 ;;
6060esac
6061echo "$as_me:$LINENO: checking for $ac_header" >&5
6062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6063if eval "test \"\${$as_ac_Header+set}\" = set"; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6065else
b7026657
AC
6066 eval "$as_ac_Header=\$ac_header_preproc"
6067fi
6068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070
6071fi
6072if test `eval echo '${'$as_ac_Header'}'` = yes; then
6073 cat >>confdefs.h <<_ACEOF
6074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6075_ACEOF
6076
c906108c 6077fi
b7026657 6078
c906108c
SS
6079done
6080
b7026657
AC
6081
6082
6083for ac_header in sys/time.h sys/resource.h
c906108c 6084do
b7026657
AC
6085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6086if eval "test \"\${$as_ac_Header+set}\" = set"; then
6087 echo "$as_me:$LINENO: checking for $ac_header" >&5
6088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6089if eval "test \"\${$as_ac_Header+set}\" = set"; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091fi
6092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6094else
6095 # Is the header compilable?
6096echo "$as_me:$LINENO: checking $ac_header usability" >&5
6097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6098cat >conftest.$ac_ext <<_ACEOF
6099/* confdefs.h. */
6100_ACEOF
6101cat confdefs.h >>conftest.$ac_ext
6102cat >>conftest.$ac_ext <<_ACEOF
6103/* end confdefs.h. */
6104$ac_includes_default
6105#include <$ac_header>
6106_ACEOF
6107rm -f conftest.$ac_objext
6108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109 (eval $ac_compile) 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -z "$ac_c_werror_flag"
6117 || test ! -s conftest.err'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_header_compiler=yes
6130else
6131 echo "$as_me: failed program was:" >&5
6132sed 's/^/| /' conftest.$ac_ext >&5
6133
6134ac_header_compiler=no
6135fi
6136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6138echo "${ECHO_T}$ac_header_compiler" >&6
6139
6140# Is the header present?
6141echo "$as_me:$LINENO: checking $ac_header presence" >&5
6142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6143cat >conftest.$ac_ext <<_ACEOF
6144/* confdefs.h. */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */
6149#include <$ac_header>
6150_ACEOF
6151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null; then
6159 if test -s conftest.err; then
6160 ac_cpp_err=$ac_c_preproc_warn_flag
6161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6162 else
6163 ac_cpp_err=
6164 fi
6165else
6166 ac_cpp_err=yes
c906108c 6167fi
b7026657
AC
6168if test -z "$ac_cpp_err"; then
6169 ac_header_preproc=yes
6170else
6171 echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
6174 ac_header_preproc=no
c906108c 6175fi
b7026657
AC
6176rm -f conftest.err conftest.$ac_ext
6177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6178echo "${ECHO_T}$ac_header_preproc" >&6
6179
6180# So? What about this header?
6181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6182 yes:no: )
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6187 ac_header_preproc=yes
6188 ;;
6189 no:yes:* )
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6202 (
6203 cat <<\_ASBOX
6204## ------------------------------------------ ##
6205## Report this to the AC_PACKAGE_NAME lists. ##
6206## ------------------------------------------ ##
6207_ASBOX
6208 ) |
6209 sed "s/^/$as_me: WARNING: /" >&2
6210 ;;
6211esac
6212echo "$as_me:$LINENO: checking for $ac_header" >&5
6213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6214if eval "test \"\${$as_ac_Header+set}\" = set"; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6216else
b7026657
AC
6217 eval "$as_ac_Header=\$ac_header_preproc"
6218fi
6219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221
c906108c 6222fi
b7026657
AC
6223if test `eval echo '${'$as_ac_Header'}'` = yes; then
6224 cat >>confdefs.h <<_ACEOF
6225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226_ACEOF
6227
6228fi
6229
c906108c
SS
6230done
6231
b7026657
AC
6232
6233
6234for ac_header in fcntl.h fpu_control.h
c906108c 6235do
b7026657
AC
6236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6237if eval "test \"\${$as_ac_Header+set}\" = set"; then
6238 echo "$as_me:$LINENO: checking for $ac_header" >&5
6239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6240if eval "test \"\${$as_ac_Header+set}\" = set"; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242fi
6243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6245else
6246 # Is the header compilable?
6247echo "$as_me:$LINENO: checking $ac_header usability" >&5
6248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6249cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255$ac_includes_default
6256#include <$ac_header>
6257_ACEOF
6258rm -f conftest.$ac_objext
6259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 (eval $ac_compile) 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_header_compiler=yes
6281else
6282 echo "$as_me: failed program was:" >&5
6283sed 's/^/| /' conftest.$ac_ext >&5
6284
6285ac_header_compiler=no
6286fi
6287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6289echo "${ECHO_T}$ac_header_compiler" >&6
6290
6291# Is the header present?
6292echo "$as_me:$LINENO: checking $ac_header presence" >&5
6293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6294cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
6300#include <$ac_header>
6301_ACEOF
6302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } >/dev/null; then
6310 if test -s conftest.err; then
6311 ac_cpp_err=$ac_c_preproc_warn_flag
6312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6313 else
6314 ac_cpp_err=
6315 fi
6316else
6317 ac_cpp_err=yes
cd0fc7c3 6318fi
b7026657
AC
6319if test -z "$ac_cpp_err"; then
6320 ac_header_preproc=yes
6321else
6322 echo "$as_me: failed program was:" >&5
6323sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 ac_header_preproc=no
cd0fc7c3 6326fi
b7026657
AC
6327rm -f conftest.err conftest.$ac_ext
6328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6329echo "${ECHO_T}$ac_header_preproc" >&6
6330
6331# So? What about this header?
6332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6333 yes:no: )
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6338 ac_header_preproc=yes
6339 ;;
6340 no:yes:* )
6341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6344echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6348echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6353 (
6354 cat <<\_ASBOX
6355## ------------------------------------------ ##
6356## Report this to the AC_PACKAGE_NAME lists. ##
6357## ------------------------------------------ ##
6358_ASBOX
6359 ) |
6360 sed "s/^/$as_me: WARNING: /" >&2
6361 ;;
6362esac
6363echo "$as_me:$LINENO: checking for $ac_header" >&5
6364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6365if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
cd0fc7c3 6367else
b7026657
AC
6368 eval "$as_ac_Header=\$ac_header_preproc"
6369fi
6370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6372
6373fi
6374if test `eval echo '${'$as_ac_Header'}'` = yes; then
6375 cat >>confdefs.h <<_ACEOF
6376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6377_ACEOF
6378
cd0fc7c3 6379fi
b7026657 6380
cd0fc7c3
SS
6381done
6382
b7026657
AC
6383
6384
6385
6386for ac_header in dlfcn.h errno.h sys/stat.h
cd0fc7c3 6387do
b7026657
AC
6388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389if eval "test \"\${$as_ac_Header+set}\" = set"; then
6390 echo "$as_me:$LINENO: checking for $ac_header" >&5
6391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6392if eval "test \"\${$as_ac_Header+set}\" = set"; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394fi
6395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6397else
6398 # Is the header compilable?
6399echo "$as_me:$LINENO: checking $ac_header usability" >&5
6400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6401cat >conftest.$ac_ext <<_ACEOF
6402/* confdefs.h. */
6403_ACEOF
6404cat confdefs.h >>conftest.$ac_ext
6405cat >>conftest.$ac_ext <<_ACEOF
6406/* end confdefs.h. */
6407$ac_includes_default
6408#include <$ac_header>
6409_ACEOF
6410rm -f conftest.$ac_objext
6411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412 (eval $ac_compile) 2>conftest.er1
6413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_c_werror_flag"
6420 || test ! -s conftest.err'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 ac_header_compiler=yes
6433else
6434 echo "$as_me: failed program was:" >&5
6435sed 's/^/| /' conftest.$ac_ext >&5
6436
6437ac_header_compiler=no
6438fi
6439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6441echo "${ECHO_T}$ac_header_compiler" >&6
6442
6443# Is the header present?
6444echo "$as_me:$LINENO: checking $ac_header presence" >&5
6445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6446cat >conftest.$ac_ext <<_ACEOF
6447/* confdefs.h. */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h. */
6452#include <$ac_header>
6453_ACEOF
6454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6456 ac_status=$?
6457 grep -v '^ *+' conftest.er1 >conftest.err
6458 rm -f conftest.er1
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } >/dev/null; then
6462 if test -s conftest.err; then
6463 ac_cpp_err=$ac_c_preproc_warn_flag
6464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6465 else
6466 ac_cpp_err=
6467 fi
6468else
6469 ac_cpp_err=yes
c906108c 6470fi
b7026657
AC
6471if test -z "$ac_cpp_err"; then
6472 ac_header_preproc=yes
6473else
6474 echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 ac_header_preproc=no
c906108c 6478fi
b7026657
AC
6479rm -f conftest.err conftest.$ac_ext
6480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6481echo "${ECHO_T}$ac_header_preproc" >&6
6482
6483# So? What about this header?
6484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6485 yes:no: )
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6490 ac_header_preproc=yes
6491 ;;
6492 no:yes:* )
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6505 (
6506 cat <<\_ASBOX
6507## ------------------------------------------ ##
6508## Report this to the AC_PACKAGE_NAME lists. ##
6509## ------------------------------------------ ##
6510_ASBOX
6511 ) |
6512 sed "s/^/$as_me: WARNING: /" >&2
6513 ;;
6514esac
6515echo "$as_me:$LINENO: checking for $ac_header" >&5
6516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6517if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6519else
b7026657
AC
6520 eval "$as_ac_Header=\$ac_header_preproc"
6521fi
6522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6524
6525fi
6526if test `eval echo '${'$as_ac_Header'}'` = yes; then
6527 cat >>confdefs.h <<_ACEOF
6528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6529_ACEOF
6530
c906108c 6531fi
b7026657 6532
c906108c
SS
6533done
6534
b7026657
AC
6535
6536
6537
6538
c906108c
SS
6539for ac_func in getrusage time sigaction __setfpucw
6540do
b7026657
AC
6541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6542echo "$as_me:$LINENO: checking for $ac_func" >&5
6543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6544if eval "test \"\${$as_ac_var+set}\" = set"; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h. */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h. */
6553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6555#define $ac_func innocuous_$ac_func
6556
c906108c 6557/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
6558 which can conflict with char $ac_func (); below.
6559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6560 <limits.h> exists even on freestanding compilers. */
6561
6562#ifdef __STDC__
6563# include <limits.h>
6564#else
6565# include <assert.h>
6566#endif
c906108c 6567
b7026657 6568#undef $ac_func
c906108c 6569
b7026657
AC
6570/* Override any gcc2 internal prototype to avoid an error. */
6571#ifdef __cplusplus
6572extern "C"
6573{
6574#endif
6575/* We use char because int might match the return type of a gcc2
6576 builtin and then its argument prototype would still apply. */
6577char $ac_func ();
c906108c
SS
6578/* The GNU C library defines this for functions which it implements
6579 to always fail with ENOSYS. Some functions are actually named
6580 something starting with __ and the normal name is an alias. */
6581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6582choke me
6583#else
b7026657
AC
6584char (*f) () = $ac_func;
6585#endif
6586#ifdef __cplusplus
6587}
c906108c
SS
6588#endif
6589
b7026657
AC
6590int
6591main ()
6592{
6593return f != $ac_func;
6594 ;
6595 return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext conftest$ac_exeext
6599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -z "$ac_c_werror_flag"
6608 || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try='test -s conftest$ac_exeext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 eval "$as_ac_var=yes"
6621else
6622 echo "$as_me: failed program was:" >&5
6623sed 's/^/| /' conftest.$ac_ext >&5
6624
6625eval "$as_ac_var=no"
6626fi
6627rm -f conftest.err conftest.$ac_objext \
6628 conftest$ac_exeext conftest.$ac_ext
6629fi
6630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6631echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6632if test `eval echo '${'$as_ac_var'}'` = yes; then
6633 cat >>confdefs.h <<_ACEOF
6634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6635_ACEOF
c906108c 6636
c906108c
SS
6637fi
6638done
6639
6640
6641# Check for socket libraries
b7026657
AC
6642
6643echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6644echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6645if test "${ac_cv_lib_socket_bind+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6647else
b7026657 6648 ac_check_lib_save_LIBS=$LIBS
c906108c 6649LIBS="-lsocket $LIBS"
b7026657
AC
6650cat >conftest.$ac_ext <<_ACEOF
6651/* confdefs.h. */
6652_ACEOF
6653cat confdefs.h >>conftest.$ac_ext
6654cat >>conftest.$ac_ext <<_ACEOF
6655/* end confdefs.h. */
6656
c906108c 6657/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6658#ifdef __cplusplus
6659extern "C"
6660#endif
c906108c 6661/* We use char because int might match the return type of a gcc2
b7026657
AC
6662 builtin and then its argument prototype would still apply. */
6663char bind ();
6664int
6665main ()
6666{
6667bind ();
6668 ;
6669 return 0;
6670}
6671_ACEOF
6672rm -f conftest.$ac_objext conftest$ac_exeext
6673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6674 (eval $ac_link) 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try='test -z "$ac_c_werror_flag"
6682 || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try='test -s conftest$ac_exeext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_lib_socket_bind=yes
6695else
6696 echo "$as_me: failed program was:" >&5
6697sed 's/^/| /' conftest.$ac_ext >&5
6698
6699ac_cv_lib_socket_bind=no
6700fi
6701rm -f conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext conftest.$ac_ext
6703LIBS=$ac_check_lib_save_LIBS
6704fi
6705echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6706echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6707if test $ac_cv_lib_socket_bind = yes; then
6708 cat >>confdefs.h <<_ACEOF
6709#define HAVE_LIBSOCKET 1
6710_ACEOF
c906108c
SS
6711
6712 LIBS="-lsocket $LIBS"
6713
c906108c
SS
6714fi
6715
b7026657
AC
6716
6717echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6718echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6719if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6721else
b7026657 6722 ac_check_lib_save_LIBS=$LIBS
c906108c 6723LIBS="-lnsl $LIBS"
b7026657
AC
6724cat >conftest.$ac_ext <<_ACEOF
6725/* confdefs.h. */
6726_ACEOF
6727cat confdefs.h >>conftest.$ac_ext
6728cat >>conftest.$ac_ext <<_ACEOF
6729/* end confdefs.h. */
6730
c906108c 6731/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6732#ifdef __cplusplus
6733extern "C"
6734#endif
c906108c 6735/* We use char because int might match the return type of a gcc2
b7026657
AC
6736 builtin and then its argument prototype would still apply. */
6737char gethostbyname ();
6738int
6739main ()
6740{
6741gethostbyname ();
6742 ;
6743 return 0;
6744}
6745_ACEOF
6746rm -f conftest.$ac_objext conftest$ac_exeext
6747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748 (eval $ac_link) 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -z "$ac_c_werror_flag"
6756 || test ! -s conftest.err'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; } &&
6762 { ac_try='test -s conftest$ac_exeext'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 ac_cv_lib_nsl_gethostbyname=yes
6769else
6770 echo "$as_me: failed program was:" >&5
6771sed 's/^/| /' conftest.$ac_ext >&5
6772
6773ac_cv_lib_nsl_gethostbyname=no
6774fi
6775rm -f conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777LIBS=$ac_check_lib_save_LIBS
6778fi
6779echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6780echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6781if test $ac_cv_lib_nsl_gethostbyname = yes; then
6782 cat >>confdefs.h <<_ACEOF
6783#define HAVE_LIBNSL 1
6784_ACEOF
c906108c
SS
6785
6786 LIBS="-lnsl $LIBS"
6787
c906108c
SS
6788fi
6789
6790
6791. ${srcdir}/../../bfd/configure.host
6792
6793
6794
6795USE_MAINTAINER_MODE=no
6796# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6797if test "${enable_maintainer_mode+set}" = set; then
6798 enableval="$enable_maintainer_mode"
6799 case "${enableval}" in
6800 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6801 no) MAINT="#" ;;
b7026657
AC
6802 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6803echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6804 { (exit 1); exit 1; }; }; MAINT="#" ;;
c906108c
SS
6805esac
6806if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6807 echo "Setting maintainer mode" 6>&1
6808fi
6809else
6810 MAINT="#"
b7026657 6811fi;
c906108c
SS
6812
6813
6814# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6815if test "${enable_sim_bswap+set}" = set; then
6816 enableval="$enable_sim_bswap"
6817 case "${enableval}" in
6818 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6819 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
6820 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6821echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6822 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
6823esac
6824if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6825 echo "Setting bswap flags = $sim_bswap" 6>&1
6826fi
6827else
6828 sim_bswap=""
b7026657 6829fi;
c906108c
SS
6830
6831
6832# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6833if test "${enable_sim_cflags+set}" = set; then
6834 enableval="$enable_sim_cflags"
6835 case "${enableval}" in
6836 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
6837 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6838echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6839 { (exit 1); exit 1; }; }; sim_cflags="";;
c906108c
SS
6840 no) sim_cflags="";;
6841 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6842esac
6843if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6844 echo "Setting sim cflags = $sim_cflags" 6>&1
6845fi
6846else
6847 sim_cflags=""
b7026657 6848fi;
c906108c
SS
6849
6850
6851# Check whether --enable-sim-debug or --disable-sim-debug was given.
6852if test "${enable_sim_debug+set}" = set; then
6853 enableval="$enable_sim_debug"
6854 case "${enableval}" in
6855 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6856 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6857 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6858esac
6859if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6860 echo "Setting sim debug = $sim_debug" 6>&1
6861fi
6862else
6863 sim_debug=""
b7026657 6864fi;
c906108c
SS
6865
6866
6867# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6868if test "${enable_sim_stdio+set}" = set; then
6869 enableval="$enable_sim_stdio"
6870 case "${enableval}" in
6871 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6872 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
6873 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6874echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6875 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
6876esac
6877if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6878 echo "Setting stdio flags = $sim_stdio" 6>&1
6879fi
6880else
6881 sim_stdio=""
b7026657 6882fi;
c906108c
SS
6883
6884
6885# Check whether --enable-sim-trace or --disable-sim-trace was given.
6886if test "${enable_sim_trace+set}" = set; then
6887 enableval="$enable_sim_trace"
6888 case "${enableval}" in
6889 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6890 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6891 [-0-9]*)
6892 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6893 [a-z]*)
6894 sim_trace=""
6895 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6896 if test x"$sim_trace" = x; then
6897 sim_trace="-DWITH_TRACE='(TRACE_$x"
6898 else
6899 sim_trace="${sim_trace}|TRACE_$x"
6900 fi
6901 done
6902 sim_trace="$sim_trace)'" ;;
6903esac
6904if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6905 echo "Setting sim trace = $sim_trace" 6>&1
6906fi
6907else
6908 sim_trace=""
b7026657 6909fi;
c906108c
SS
6910
6911
6912# Check whether --enable-sim-profile or --disable-sim-profile was given.
6913if test "${enable_sim_profile+set}" = set; then
6914 enableval="$enable_sim_profile"
6915 case "${enableval}" in
6916 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6917 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6918 [-0-9]*)
6919 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6920 [a-z]*)
6921 sim_profile=""
6922 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6923 if test x"$sim_profile" = x; then
6924 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6925 else
6926 sim_profile="${sim_profile}|PROFILE_$x"
6927 fi
6928 done
6929 sim_profile="$sim_profile)'" ;;
6930esac
6931if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6932 echo "Setting sim profile = $sim_profile" 6>&1
6933fi
6934else
eb2d80b4 6935 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 6936fi;
c906108c
SS
6937
6938
b7026657
AC
6939echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6940echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6941if test "${ac_cv_type_signal+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6943else
b7026657
AC
6944 cat >conftest.$ac_ext <<_ACEOF
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
c906108c
SS
6950#include <sys/types.h>
6951#include <signal.h>
6952#ifdef signal
b7026657 6953# undef signal
c906108c
SS
6954#endif
6955#ifdef __cplusplus
6956extern "C" void (*signal (int, void (*)(int)))(int);
6957#else
6958void (*signal ()) ();
6959#endif
6960
b7026657
AC
6961int
6962main ()
6963{
c906108c 6964int i;
b7026657
AC
6965 ;
6966 return 0;
6967}
6968_ACEOF
6969rm -f conftest.$ac_objext
6970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
c906108c
SS
6991 ac_cv_type_signal=void
6992else
b7026657
AC
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996ac_cv_type_signal=int
c906108c 6997fi
b7026657 6998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6999fi
b7026657
AC
7000echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7001echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 7002
b7026657 7003cat >>confdefs.h <<_ACEOF
c906108c 7004#define RETSIGTYPE $ac_cv_type_signal
b7026657 7005_ACEOF
c906108c
SS
7006
7007
cd0fc7c3
SS
7008
7009
c906108c
SS
7010
7011sim_link_files=
7012sim_link_links=
7013
7014sim_link_links=tconfig.h
7015if test -f ${srcdir}/tconfig.in
7016then
7017 sim_link_files=tconfig.in
7018else
7019 sim_link_files=../common/tconfig.in
7020fi
7021
7022# targ-vals.def points to the libc macro description file.
7023case "${target}" in
7024*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
7025esac
7026sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
7027sim_link_links="${sim_link_links} targ-vals.def"
7028
c906108c
SS
7029
7030
c8cca39f
AC
7031# NOTE: Don't add -Wall or -Wunused, they both include
7032# -Wunused-parameter which reports bogus warnings.
7033# NOTE: If you add to this list, remember to update
7034# gdb/doc/gdbint.texinfo.
7035build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
51216631
JB
7036-Wformat -Wparentheses -Wpointer-arith"
7037# GCC supports -Wuninitialized only with -O or -On, n != 0.
7038if test x${CFLAGS+set} = xset; then
7039 case "${CFLAGS}" in
7040 *"-O0"* ) ;;
7041 *"-O"* )
7042 build_warnings="${build_warnings} -Wuninitialized"
7043 ;;
7044 esac
7045else
7046 build_warnings="${build_warnings} -Wuninitialized"
7047fi
c8cca39f
AC
7048# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7049# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7050# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7051# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7052# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7053# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
7054# Check whether --enable-build-warnings or --disable-build-warnings was given.
7055if test "${enable_build_warnings+set}" = set; then
7056 enableval="$enable_build_warnings"
c8cca39f
AC
7057 case "${enableval}" in
7058 yes) ;;
7059 no) build_warnings="-w";;
7060 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7061 build_warnings="${build_warnings} ${t}";;
7062 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7063 build_warnings="${t} ${build_warnings}";;
7064 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7065esac
7066if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7067 echo "Setting compiler warning flags = $build_warnings" 6>&1
7068fi
b7026657 7069fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
c8cca39f
AC
7070if test "${enable_sim_build_warnings+set}" = set; then
7071 enableval="$enable_sim_build_warnings"
7072 case "${enableval}" in
c906108c
SS
7073 yes) ;;
7074 no) build_warnings="-w";;
7075 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 7076 build_warnings="${build_warnings} ${t}";;
c906108c 7077 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
7078 build_warnings="${t} ${build_warnings}";;
7079 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
7080esac
7081if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
7082 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7083fi
b7026657 7084fi; WARN_CFLAGS=""
d4f3574e
SS
7085WERROR_CFLAGS=""
7086if test "x${build_warnings}" != x -a "x$GCC" = xyes
7087then
b7026657
AC
7088 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7089echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
c8cca39f
AC
7090 # Separate out the -Werror flag as some files just cannot be
7091 # compiled with it enabled.
7092 for w in ${build_warnings}; do
7093 case $w in
7094 -Werr*) WERROR_CFLAGS=-Werror ;;
7095 *) # Check that GCC accepts it
7096 saved_CFLAGS="$CFLAGS"
7097 CFLAGS="$CFLAGS $w"
b7026657
AC
7098 cat >conftest.$ac_ext <<_ACEOF
7099/* confdefs.h. */
7100_ACEOF
7101cat confdefs.h >>conftest.$ac_ext
7102cat >>conftest.$ac_ext <<_ACEOF
7103/* end confdefs.h. */
c8cca39f 7104
b7026657
AC
7105int
7106main ()
7107{
c8cca39f 7108
b7026657
AC
7109 ;
7110 return 0;
7111}
7112_ACEOF
7113rm -f conftest.$ac_objext
7114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115 (eval $ac_compile) 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -z "$ac_c_werror_flag"
7123 || test ! -s conftest.err'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
c8cca39f 7135 WARN_CFLAGS="${WARN_CFLAGS} $w"
c906108c 7136else
b7026657
AC
7137 echo "$as_me: failed program was:" >&5
7138sed 's/^/| /' conftest.$ac_ext >&5
7139
c8cca39f 7140fi
b7026657 7141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
7142 CFLAGS="$saved_CFLAGS"
7143 esac
7144 done
b7026657
AC
7145 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7146echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
7147fi
7148
7149
b7026657
AC
7150
7151for ac_header in unistd.h
c906108c 7152do
b7026657
AC
7153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7154if eval "test \"\${$as_ac_Header+set}\" = set"; then
7155 echo "$as_me:$LINENO: checking for $ac_header" >&5
7156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7157if eval "test \"\${$as_ac_Header+set}\" = set"; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159fi
7160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7162else
7163 # Is the header compilable?
7164echo "$as_me:$LINENO: checking $ac_header usability" >&5
7165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7166cat >conftest.$ac_ext <<_ACEOF
7167/* confdefs.h. */
7168_ACEOF
7169cat confdefs.h >>conftest.$ac_ext
7170cat >>conftest.$ac_ext <<_ACEOF
7171/* end confdefs.h. */
7172$ac_includes_default
7173#include <$ac_header>
7174_ACEOF
7175rm -f conftest.$ac_objext
7176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try='test -z "$ac_c_werror_flag"
7185 || test ! -s conftest.err'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; } &&
7191 { ac_try='test -s conftest.$ac_objext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_header_compiler=yes
7198else
7199 echo "$as_me: failed program was:" >&5
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
7202ac_header_compiler=no
7203fi
7204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7205echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7206echo "${ECHO_T}$ac_header_compiler" >&6
7207
7208# Is the header present?
7209echo "$as_me:$LINENO: checking $ac_header presence" >&5
7210echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7211cat >conftest.$ac_ext <<_ACEOF
7212/* confdefs.h. */
7213_ACEOF
7214cat confdefs.h >>conftest.$ac_ext
7215cat >>conftest.$ac_ext <<_ACEOF
7216/* end confdefs.h. */
7217#include <$ac_header>
7218_ACEOF
7219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } >/dev/null; then
7227 if test -s conftest.err; then
7228 ac_cpp_err=$ac_c_preproc_warn_flag
7229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7230 else
7231 ac_cpp_err=
7232 fi
7233else
7234 ac_cpp_err=yes
c906108c 7235fi
b7026657
AC
7236if test -z "$ac_cpp_err"; then
7237 ac_header_preproc=yes
7238else
7239 echo "$as_me: failed program was:" >&5
7240sed 's/^/| /' conftest.$ac_ext >&5
7241
7242 ac_header_preproc=no
c906108c 7243fi
b7026657
AC
7244rm -f conftest.err conftest.$ac_ext
7245echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7246echo "${ECHO_T}$ac_header_preproc" >&6
7247
7248# So? What about this header?
7249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7250 yes:no: )
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7255 ac_header_preproc=yes
7256 ;;
7257 no:yes:* )
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7270 (
7271 cat <<\_ASBOX
7272## ------------------------------------------ ##
7273## Report this to the AC_PACKAGE_NAME lists. ##
7274## ------------------------------------------ ##
7275_ASBOX
7276 ) |
7277 sed "s/^/$as_me: WARNING: /" >&2
7278 ;;
7279esac
7280echo "$as_me:$LINENO: checking for $ac_header" >&5
7281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7282if eval "test \"\${$as_ac_Header+set}\" = set"; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7284else
b7026657
AC
7285 eval "$as_ac_Header=\$ac_header_preproc"
7286fi
7287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7289
c906108c 7290fi
b7026657
AC
7291if test `eval echo '${'$as_ac_Header'}'` = yes; then
7292 cat >>confdefs.h <<_ACEOF
7293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7294_ACEOF
7295
7296fi
7297
c906108c
SS
7298done
7299
7300
7301
7302
b7026657
AC
7303ac_sources="$sim_link_files"
7304ac_dests="$sim_link_links"
7305while test -n "$ac_sources"; do
7306 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7307 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7308 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7309done
7310 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c 7311
379832de
HPN
7312cgen_breaks=""
7313if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7314cgen_breaks="break cgen_rtx_error";
7315fi
7316
38f48d72
AC
7317 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7318
7319 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7320
7321 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7322
7323 ac_config_commands="$ac_config_commands Makefile"
7324
7325 ac_config_commands="$ac_config_commands stamp-h"
7326
b7026657 7327cat >confcache <<\_ACEOF
c906108c
SS
7328# This file is a shell script that caches the results of configure
7329# tests run on this system so they can be shared between configure
b7026657
AC
7330# scripts and configure runs, see configure's option --config-cache.
7331# It is not useful on other systems. If it contains results you don't
7332# want to keep, you may remove or edit it.
c906108c 7333#
b7026657
AC
7334# config.status only pays attention to the cache file if you give it
7335# the --recheck option to rerun configure.
c906108c 7336#
b7026657
AC
7337# `ac_cv_env_foo' variables (set or unset) will be overridden when
7338# loading this file, other *unset* `ac_cv_foo' will be assigned the
7339# following values.
7340
7341_ACEOF
7342
c906108c
SS
7343# The following way of writing the cache mishandles newlines in values,
7344# but we know of no workaround that is simple, portable, and efficient.
7345# So, don't put newlines in cache variables' values.
7346# Ultrix sh set writes to stderr and can't be redirected directly,
7347# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
7348{
7349 (set) 2>&1 |
7350 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7351 *ac_space=\ *)
7352 # `set' does not quote correctly, so add quotes (double-quote
7353 # substitution turns \\\\ into \\, and sed turns \\ into \).
7354 sed -n \
7355 "s/'/'\\\\''/g;
7356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7357 ;;
7358 *)
7359 # `set' quotes correctly as required by POSIX, so do not add quotes.
7360 sed -n \
7361 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7362 ;;
7363 esac;
7364} |
7365 sed '
7366 t clear
7367 : clear
7368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7369 t end
7370 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7371 : end' >>confcache
7372if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 7373 if test -w $cache_file; then
b7026657
AC
7374 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7375 cat confcache >$cache_file
c906108c
SS
7376 else
7377 echo "not updating unwritable cache $cache_file"
7378 fi
7379fi
7380rm -f confcache
7381
c906108c
SS
7382test "x$prefix" = xNONE && prefix=$ac_default_prefix
7383# Let make expand exec_prefix.
7384test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7385
b7026657
AC
7386# VPATH may cause trouble with some makes, so we remove $(srcdir),
7387# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7388# trailing colons and then remove the whole line if VPATH becomes empty
7389# (actually we leave an empty line to preserve line numbers).
c906108c 7390if test "x$srcdir" = x.; then
b7026657
AC
7391 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7392s/:*\$(srcdir):*/:/;
7393s/:*\${srcdir}:*/:/;
7394s/:*@srcdir@:*/:/;
7395s/^\([^=]*=[ ]*\):*/\1/;
7396s/:*$//;
7397s/^[^=]*=[ ]*$//;
7398}'
c906108c
SS
7399fi
7400
c906108c
SS
7401DEFS=-DHAVE_CONFIG_H
7402
b7026657
AC
7403ac_libobjs=
7404ac_ltlibobjs=
7405for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7406 # 1. Remove the extension, and $U if already installed.
7407 ac_i=`echo "$ac_i" |
7408 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7409 # 2. Add them.
7410 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7411 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7412done
7413LIBOBJS=$ac_libobjs
c906108c 7414
b7026657
AC
7415LTLIBOBJS=$ac_ltlibobjs
7416
7417
7418
7419: ${CONFIG_STATUS=./config.status}
7420ac_clean_files_save=$ac_clean_files
7421ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7422{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7423echo "$as_me: creating $CONFIG_STATUS" >&6;}
7424cat >$CONFIG_STATUS <<_ACEOF
7425#! $SHELL
7426# Generated by $as_me.
c906108c 7427# Run this file to recreate the current configuration.
c906108c 7428# Compiler output produced by configure, useful for debugging
b7026657 7429# configure, is in config.log if it exists.
c906108c 7430
b7026657
AC
7431debug=false
7432ac_cs_recheck=false
7433ac_cs_silent=false
7434SHELL=\${CONFIG_SHELL-$SHELL}
7435_ACEOF
7436
7437cat >>$CONFIG_STATUS <<\_ACEOF
7438## --------------------- ##
7439## M4sh Initialization. ##
7440## --------------------- ##
7441
7442# Be Bourne compatible
7443if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7444 emulate sh
7445 NULLCMD=:
7446 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7447 # is contrary to our usage. Disable this feature.
7448 alias -g '${1+"$@"}'='"$@"'
7449elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7450 set -o posix
7451fi
7452DUALCASE=1; export DUALCASE # for MKS sh
7453
7454# Support unset when possible.
7455if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7456 as_unset=unset
7457else
7458 as_unset=false
7459fi
7460
7461
7462# Work around bugs in pre-3.0 UWIN ksh.
7463$as_unset ENV MAIL MAILPATH
7464PS1='$ '
7465PS2='> '
7466PS4='+ '
7467
7468# NLS nuisances.
7469for as_var in \
7470 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7471 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7472 LC_TELEPHONE LC_TIME
c906108c 7473do
b7026657
AC
7474 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7475 eval $as_var=C; export $as_var
7476 else
7477 $as_unset $as_var
7478 fi
c906108c
SS
7479done
7480
b7026657
AC
7481# Required to use basename.
7482if expr a : '\(a\)' >/dev/null 2>&1; then
7483 as_expr=expr
7484else
7485 as_expr=false
7486fi
7487
7488if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7489 as_basename=basename
7490else
7491 as_basename=false
7492fi
c906108c 7493
c906108c 7494
b7026657
AC
7495# Name of the executable.
7496as_me=`$as_basename "$0" ||
7497$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7498 X"$0" : 'X\(//\)$' \| \
7499 X"$0" : 'X\(/\)$' \| \
7500 . : '\(.\)' 2>/dev/null ||
7501echo X/"$0" |
7502 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7503 /^X\/\(\/\/\)$/{ s//\1/; q; }
7504 /^X\/\(\/\).*/{ s//\1/; q; }
7505 s/.*/./; q'`
c906108c 7506
b7026657
AC
7507
7508# PATH needs CR, and LINENO needs CR and PATH.
7509# Avoid depending upon Character Ranges.
7510as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7511as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7512as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7513as_cr_digits='0123456789'
7514as_cr_alnum=$as_cr_Letters$as_cr_digits
7515
7516# The user is always right.
7517if test "${PATH_SEPARATOR+set}" != set; then
7518 echo "#! /bin/sh" >conf$$.sh
7519 echo "exit 0" >>conf$$.sh
7520 chmod +x conf$$.sh
7521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7522 PATH_SEPARATOR=';'
c906108c 7523 else
b7026657
AC
7524 PATH_SEPARATOR=:
7525 fi
7526 rm -f conf$$.sh
7527fi
7528
7529
7530 as_lineno_1=$LINENO
7531 as_lineno_2=$LINENO
7532 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7533 test "x$as_lineno_1" != "x$as_lineno_2" &&
7534 test "x$as_lineno_3" = "x$as_lineno_2" || {
7535 # Find who we are. Look in the path if we contain no path at all
7536 # relative or not.
7537 case $0 in
7538 *[\\/]* ) as_myself=$0 ;;
7539 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7545done
7546
7547 ;;
7548 esac
7549 # We did not find ourselves, most probably we were run as `sh COMMAND'
7550 # in which case we are not to be found in the path.
7551 if test "x$as_myself" = x; then
7552 as_myself=$0
7553 fi
7554 if test ! -f "$as_myself"; then
7555 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7556echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7557 { (exit 1); exit 1; }; }
c906108c 7558 fi
b7026657
AC
7559 case $CONFIG_SHELL in
7560 '')
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for as_base in sh bash ksh sh5; do
7567 case $as_dir in
7568 /*)
7569 if ("$as_dir/$as_base" -c '
7570 as_lineno_1=$LINENO
7571 as_lineno_2=$LINENO
7572 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7573 test "x$as_lineno_1" != "x$as_lineno_2" &&
7574 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7575 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7576 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7577 CONFIG_SHELL=$as_dir/$as_base
7578 export CONFIG_SHELL
7579 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7580 fi;;
7581 esac
7582 done
7583done
7584;;
7585 esac
7586
7587 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7588 # uniformly replaced by the line number. The first 'sed' inserts a
7589 # line-number line before each line; the second 'sed' does the real
7590 # work. The second script uses 'N' to pair each line-number line
7591 # with the numbered line, and appends trailing '-' during
7592 # substitution so that $LINENO is not a special case at line end.
7593 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7594 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7595 sed '=' <$as_myself |
7596 sed '
7597 N
7598 s,$,-,
7599 : loop
7600 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7601 t loop
7602 s,-$,,
7603 s,^['$as_cr_digits']*\n,,
7604 ' >$as_me.lineno &&
7605 chmod +x $as_me.lineno ||
7606 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7607echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7608 { (exit 1); exit 1; }; }
7609
7610 # Don't try to exec as it changes $[0], causing all sort of problems
7611 # (the dirname of $[0] is not the place where we might find the
7612 # original and so on. Autoconf is especially sensible to this).
7613 . ./$as_me.lineno
7614 # Exit status is that of the last command.
7615 exit
7616}
7617
7618
7619case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7620 *c*,-n*) ECHO_N= ECHO_C='
7621' ECHO_T=' ' ;;
7622 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7623 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7624esac
7625
7626if expr a : '\(a\)' >/dev/null 2>&1; then
7627 as_expr=expr
7628else
7629 as_expr=false
7630fi
7631
7632rm -f conf$$ conf$$.exe conf$$.file
7633echo >conf$$.file
7634if ln -s conf$$.file conf$$ 2>/dev/null; then
7635 # We could just check for DJGPP; but this test a) works b) is more generic
7636 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7637 if test -f conf$$.exe; then
7638 # Don't use ln at all; we don't have any links
7639 as_ln_s='cp -p'
c906108c 7640 else
b7026657 7641 as_ln_s='ln -s'
c906108c 7642 fi
b7026657
AC
7643elif ln conf$$.file conf$$ 2>/dev/null; then
7644 as_ln_s=ln
7645else
7646 as_ln_s='cp -p'
7647fi
7648rm -f conf$$ conf$$.exe conf$$.file
7649
7650if mkdir -p . 2>/dev/null; then
7651 as_mkdir_p=:
7652else
7653 test -d ./-p && rmdir ./-p
7654 as_mkdir_p=false
7655fi
7656
7657as_executable_p="test -f"
7658
7659# Sed expression to map a string onto a valid CPP name.
7660as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7661
7662# Sed expression to map a string onto a valid variable name.
7663as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7664
7665
7666# IFS
7667# We need space, tab and new line, in precisely that order.
7668as_nl='
7669'
7670IFS=" $as_nl"
7671
7672# CDPATH.
7673$as_unset CDPATH
7674
7675exec 6>&1
7676
7677# Open the log real soon, to keep \$[0] and so on meaningful, and to
7678# report actual input values of CONFIG_FILES etc. instead of their
7679# values after options handling. Logging --version etc. is OK.
7680exec 5>>config.log
7681{
7682 echo
7683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7684## Running $as_me. ##
7685_ASBOX
7686} >&5
7687cat >&5 <<_CSEOF
7688
7689This file was extended by $as_me, which was
7690generated by GNU Autoconf 2.59. Invocation command line was
7691
7692 CONFIG_FILES = $CONFIG_FILES
7693 CONFIG_HEADERS = $CONFIG_HEADERS
7694 CONFIG_LINKS = $CONFIG_LINKS
7695 CONFIG_COMMANDS = $CONFIG_COMMANDS
7696 $ $0 $@
7697
7698_CSEOF
7699echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7700echo >&5
7701_ACEOF
7702
7703# Files that config.status was made for.
7704if test -n "$ac_config_files"; then
7705 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7706fi
7707
7708if test -n "$ac_config_headers"; then
7709 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7710fi
7711
7712if test -n "$ac_config_links"; then
7713 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7714fi
7715
7716if test -n "$ac_config_commands"; then
7717 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7718fi
7719
7720cat >>$CONFIG_STATUS <<\_ACEOF
7721
7722ac_cs_usage="\
7723\`$as_me' instantiates files from templates according to the
7724current configuration.
7725
7726Usage: $0 [OPTIONS] [FILE]...
7727
7728 -h, --help print this help, then exit
7729 -V, --version print version number, then exit
7730 -q, --quiet do not print progress messages
7731 -d, --debug don't remove temporary files
7732 --recheck update $as_me by reconfiguring in the same conditions
7733 --file=FILE[:TEMPLATE]
7734 instantiate the configuration file FILE
7735 --header=FILE[:TEMPLATE]
7736 instantiate the configuration header FILE
7737
7738Configuration files:
7739$config_files
7740
7741Configuration headers:
7742$config_headers
7743
7744Configuration links:
7745$config_links
7746
7747Configuration commands:
7748$config_commands
7749
7750Report bugs to <bug-autoconf@gnu.org>."
7751_ACEOF
7752
7753cat >>$CONFIG_STATUS <<_ACEOF
7754ac_cs_version="\\
7755config.status
7756configured by $0, generated by GNU Autoconf 2.59,
7757 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7758
7759Copyright (C) 2003 Free Software Foundation, Inc.
7760This config.status script is free software; the Free Software Foundation
7761gives unlimited permission to copy, distribute and modify it."
7762srcdir=$srcdir
7763INSTALL="$INSTALL"
7764_ACEOF
7765
7766cat >>$CONFIG_STATUS <<\_ACEOF
7767# If no file are specified by the user, then we need to provide default
7768# value. By we need to know if files were specified by the user.
7769ac_need_defaults=:
7770while test $# != 0
7771do
7772 case $1 in
7773 --*=*)
7774 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7775 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7776 ac_shift=:
7777 ;;
7778 -*)
7779 ac_option=$1
7780 ac_optarg=$2
7781 ac_shift=shift
7782 ;;
7783 *) # This is not an option, so the user has probably given explicit
7784 # arguments.
7785 ac_option=$1
7786 ac_need_defaults=false;;
7787 esac
7788
7789 case $ac_option in
7790 # Handling of the options.
7791_ACEOF
7792cat >>$CONFIG_STATUS <<\_ACEOF
7793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7794 ac_cs_recheck=: ;;
7795 --version | --vers* | -V )
7796 echo "$ac_cs_version"; exit 0 ;;
7797 --he | --h)
7798 # Conflict between --help and --header
7799 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7800Try \`$0 --help' for more information." >&5
7801echo "$as_me: error: ambiguous option: $1
7802Try \`$0 --help' for more information." >&2;}
7803 { (exit 1); exit 1; }; };;
7804 --help | --hel | -h )
7805 echo "$ac_cs_usage"; exit 0 ;;
7806 --debug | --d* | -d )
7807 debug=: ;;
7808 --file | --fil | --fi | --f )
7809 $ac_shift
7810 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7811 ac_need_defaults=false;;
7812 --header | --heade | --head | --hea )
7813 $ac_shift
7814 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7815 ac_need_defaults=false;;
7816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7817 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7818 ac_cs_silent=: ;;
7819
7820 # This is an error.
7821 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7822Try \`$0 --help' for more information." >&5
7823echo "$as_me: error: unrecognized option: $1
7824Try \`$0 --help' for more information." >&2;}
7825 { (exit 1); exit 1; }; } ;;
7826
7827 *) ac_config_targets="$ac_config_targets $1" ;;
7828
7829 esac
7830 shift
c906108c 7831done
b7026657
AC
7832
7833ac_configure_extra_args=
7834
7835if $ac_cs_silent; then
7836 exec 6>/dev/null
7837 ac_configure_extra_args="$ac_configure_extra_args --silent"
7838fi
7839
7840_ACEOF
7841cat >>$CONFIG_STATUS <<_ACEOF
7842if \$ac_cs_recheck; then
7843 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7844 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
c906108c 7845fi
c906108c 7846
b7026657 7847_ACEOF
c906108c 7848
b7026657
AC
7849
7850
7851
7852
7853cat >>$CONFIG_STATUS <<\_ACEOF
7854for ac_config_target in $ac_config_targets
7855do
7856 case "$ac_config_target" in
7857 # Handling of arguments.
7858 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
7859 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
7860 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
7861 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
38f48d72
AC
7862 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
7863 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
b7026657
AC
7864 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7865 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7866echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7867 { (exit 1); exit 1; }; };;
c906108c 7868 esac
b7026657 7869done
c906108c 7870
b7026657
AC
7871# If the user did not use the arguments to specify the items to instantiate,
7872# then the envvar interface is used. Set only those that are not.
7873# We use the long form for the default assignment because of an extremely
7874# bizarre bug on SunOS 4.1.3.
7875if $ac_need_defaults; then
7876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7878 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7880fi
7881
7882# Have a temporary directory for convenience. Make it in the build tree
7883# simply because there is no reason to put it here, and in addition,
7884# creating and moving files from /tmp can sometimes cause problems.
7885# Create a temporary directory, and hook for its removal unless debugging.
7886$debug ||
7887{
7888 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7889 trap '{ (exit 1); exit 1; }' 1 2 13 15
7890}
c906108c 7891
b7026657
AC
7892# Create a (secure) tmp directory for tmp files.
7893
7894{
7895 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7896 test -n "$tmp" && test -d "$tmp"
7897} ||
7898{
7899 tmp=./confstat$$-$RANDOM
7900 (umask 077 && mkdir $tmp)
7901} ||
7902{
7903 echo "$me: cannot create a temporary directory in ." >&2
7904 { (exit 1); exit 1; }
7905}
7906
7907_ACEOF
7908
7909cat >>$CONFIG_STATUS <<_ACEOF
7910
7911#
7912# CONFIG_FILES section.
7913#
7914
7915# No need to generate the scripts if there are no CONFIG_FILES.
7916# This happens for instance when ./config.status config.h
7917if test -n "\$CONFIG_FILES"; then
7918 # Protect against being on the right side of a sed subst in config.status.
7919 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7920 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
b7026657
AC
7921s,@SHELL@,$SHELL,;t t
7922s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7923s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7924s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7925s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7926s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7927s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7928s,@exec_prefix@,$exec_prefix,;t t
7929s,@prefix@,$prefix,;t t
7930s,@program_transform_name@,$program_transform_name,;t t
7931s,@bindir@,$bindir,;t t
7932s,@sbindir@,$sbindir,;t t
7933s,@libexecdir@,$libexecdir,;t t
7934s,@datadir@,$datadir,;t t
7935s,@sysconfdir@,$sysconfdir,;t t
7936s,@sharedstatedir@,$sharedstatedir,;t t
7937s,@localstatedir@,$localstatedir,;t t
7938s,@libdir@,$libdir,;t t
7939s,@includedir@,$includedir,;t t
7940s,@oldincludedir@,$oldincludedir,;t t
7941s,@infodir@,$infodir,;t t
7942s,@mandir@,$mandir,;t t
7943s,@build_alias@,$build_alias,;t t
7944s,@host_alias@,$host_alias,;t t
7945s,@target_alias@,$target_alias,;t t
7946s,@DEFS@,$DEFS,;t t
7947s,@ECHO_C@,$ECHO_C,;t t
7948s,@ECHO_N@,$ECHO_N,;t t
7949s,@ECHO_T@,$ECHO_T,;t t
7950s,@LIBS@,$LIBS,;t t
35695fd6
AC
7951s,@sim_environment@,$sim_environment,;t t
7952s,@sim_alignment@,$sim_alignment,;t t
7953s,@sim_assert@,$sim_assert,;t t
7954s,@sim_bitsize@,$sim_bitsize,;t t
7955s,@sim_endian@,$sim_endian,;t t
7956s,@sim_hostendian@,$sim_hostendian,;t t
7957s,@sim_float@,$sim_float,;t t
7958s,@sim_scache@,$sim_scache,;t t
7959s,@sim_default_model@,$sim_default_model,;t t
7960s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7961s,@sim_hw_objs@,$sim_hw_objs,;t t
7962s,@sim_hw@,$sim_hw,;t t
7963s,@sim_inline@,$sim_inline,;t t
7964s,@sim_packages@,$sim_packages,;t t
7965s,@sim_regparm@,$sim_regparm,;t t
7966s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7967s,@sim_smp@,$sim_smp,;t t
7968s,@sim_stdcall@,$sim_stdcall,;t t
7969s,@sim_xor_endian@,$sim_xor_endian,;t t
7970s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7971s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
b7026657
AC
7972s,@build@,$build,;t t
7973s,@build_cpu@,$build_cpu,;t t
7974s,@build_vendor@,$build_vendor,;t t
7975s,@build_os@,$build_os,;t t
7976s,@host@,$host,;t t
7977s,@host_cpu@,$host_cpu,;t t
7978s,@host_vendor@,$host_vendor,;t t
7979s,@host_os@,$host_os,;t t
7980s,@target@,$target,;t t
7981s,@target_cpu@,$target_cpu,;t t
7982s,@target_vendor@,$target_vendor,;t t
7983s,@target_os@,$target_os,;t t
7984s,@CC@,$CC,;t t
7985s,@CFLAGS@,$CFLAGS,;t t
7986s,@LDFLAGS@,$LDFLAGS,;t t
7987s,@CPPFLAGS@,$CPPFLAGS,;t t
7988s,@ac_ct_CC@,$ac_ct_CC,;t t
7989s,@EXEEXT@,$EXEEXT,;t t
7990s,@OBJEXT@,$OBJEXT,;t t
7991s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7992s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7993s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7994s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7995s,@HDEFINES@,$HDEFINES,;t t
7996s,@AR@,$AR,;t t
7997s,@RANLIB@,$RANLIB,;t t
7998s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35695fd6 7999s,@SET_MAKE@,$SET_MAKE,;t t
b7026657
AC
8000s,@CPP@,$CPP,;t t
8001s,@EGREP@,$EGREP,;t t
35695fd6
AC
8002s,@ALLOCA@,$ALLOCA,;t t
8003s,@USE_NLS@,$USE_NLS,;t t
8004s,@MSGFMT@,$MSGFMT,;t t
8005s,@GMSGFMT@,$GMSGFMT,;t t
8006s,@XGETTEXT@,$XGETTEXT,;t t
8007s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8008s,@CATALOGS@,$CATALOGS,;t t
8009s,@CATOBJEXT@,$CATOBJEXT,;t t
8010s,@DATADIRNAME@,$DATADIRNAME,;t t
8011s,@GMOFILES@,$GMOFILES,;t t
8012s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8013s,@INTLDEPS@,$INTLDEPS,;t t
8014s,@INTLLIBS@,$INTLLIBS,;t t
8015s,@INTLOBJS@,$INTLOBJS,;t t
8016s,@POFILES@,$POFILES,;t t
8017s,@POSUB@,$POSUB,;t t
8018s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8019s,@GT_NO@,$GT_NO,;t t
8020s,@GT_YES@,$GT_YES,;t t
8021s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8022s,@l@,$l,;t t
b7026657
AC
8023s,@MAINT@,$MAINT,;t t
8024s,@sim_bswap@,$sim_bswap,;t t
8025s,@sim_cflags@,$sim_cflags,;t t
8026s,@sim_debug@,$sim_debug,;t t
8027s,@sim_stdio@,$sim_stdio,;t t
8028s,@sim_trace@,$sim_trace,;t t
8029s,@sim_profile@,$sim_profile,;t t
8030s,@cgen_breaks@,$cgen_breaks,;t t
8031s,@LIBOBJS@,$LIBOBJS,;t t
8032s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8033CEOF
8034
8035_ACEOF
8036
8037 cat >>$CONFIG_STATUS <<\_ACEOF
8038 # Split the substitutions into bite-sized pieces for seds with
8039 # small command number limits, like on Digital OSF/1 and HP-UX.
8040 ac_max_sed_lines=48
8041 ac_sed_frag=1 # Number of current file.
8042 ac_beg=1 # First line for current file.
8043 ac_end=$ac_max_sed_lines # Line after last line for current file.
8044 ac_more_lines=:
8045 ac_sed_cmds=
8046 while $ac_more_lines; do
8047 if test $ac_beg -gt 1; then
8048 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8049 else
8050 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8051 fi
8052 if test ! -s $tmp/subs.frag; then
8053 ac_more_lines=false
8054 else
8055 # The purpose of the label and of the branching condition is to
8056 # speed up the sed processing (if there are no `@' at all, there
8057 # is no need to browse any of the substitutions).
8058 # These are the two extra sed commands mentioned above.
8059 (echo ':t
8060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8061 if test -z "$ac_sed_cmds"; then
8062 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8063 else
8064 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8065 fi
8066 ac_sed_frag=`expr $ac_sed_frag + 1`
8067 ac_beg=$ac_end
8068 ac_end=`expr $ac_end + $ac_max_sed_lines`
8069 fi
8070 done
8071 if test -z "$ac_sed_cmds"; then
8072 ac_sed_cmds=cat
c906108c 8073 fi
b7026657 8074fi # test -n "$CONFIG_FILES"
c906108c 8075
b7026657
AC
8076_ACEOF
8077cat >>$CONFIG_STATUS <<\_ACEOF
8078for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8080 case $ac_file in
8081 - | *:- | *:-:* ) # input from stdin
8082 cat >$tmp/stdin
8083 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8085 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8087 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
8088 esac
8089
b7026657
AC
8090 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8091 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8092$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8093 X"$ac_file" : 'X\(//\)[^/]' \| \
8094 X"$ac_file" : 'X\(//\)$' \| \
8095 X"$ac_file" : 'X\(/\)' \| \
8096 . : '\(.\)' 2>/dev/null ||
8097echo X"$ac_file" |
8098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8100 /^X\(\/\/\)$/{ s//\1/; q; }
8101 /^X\(\/\).*/{ s//\1/; q; }
8102 s/.*/./; q'`
8103 { if $as_mkdir_p; then
8104 mkdir -p "$ac_dir"
8105 else
8106 as_dir="$ac_dir"
8107 as_dirs=
8108 while test ! -d "$as_dir"; do
8109 as_dirs="$as_dir $as_dirs"
8110 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8112 X"$as_dir" : 'X\(//\)[^/]' \| \
8113 X"$as_dir" : 'X\(//\)$' \| \
8114 X"$as_dir" : 'X\(/\)' \| \
8115 . : '\(.\)' 2>/dev/null ||
8116echo X"$as_dir" |
8117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8119 /^X\(\/\/\)$/{ s//\1/; q; }
8120 /^X\(\/\).*/{ s//\1/; q; }
8121 s/.*/./; q'`
8122 done
8123 test ! -n "$as_dirs" || mkdir $as_dirs
8124 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8125echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8126 { (exit 1); exit 1; }; }; }
c906108c 8127
b7026657
AC
8128 ac_builddir=.
8129
8130if test "$ac_dir" != .; then
8131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8132 # A "../" for each directory in $ac_dir_suffix.
8133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8134else
8135 ac_dir_suffix= ac_top_builddir=
8136fi
8137
8138case $srcdir in
8139 .) # No --srcdir option. We are building in place.
8140 ac_srcdir=.
8141 if test -z "$ac_top_builddir"; then
8142 ac_top_srcdir=.
8143 else
8144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8145 fi ;;
8146 [\\/]* | ?:[\\/]* ) # Absolute path.
8147 ac_srcdir=$srcdir$ac_dir_suffix;
8148 ac_top_srcdir=$srcdir ;;
8149 *) # Relative path.
8150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8152esac
8153
8154# Do not use `cd foo && pwd` to compute absolute paths, because
8155# the directories may not exist.
8156case `pwd` in
8157.) ac_abs_builddir="$ac_dir";;
8158*)
8159 case "$ac_dir" in
8160 .) ac_abs_builddir=`pwd`;;
8161 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8162 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8163 esac;;
8164esac
8165case $ac_abs_builddir in
8166.) ac_abs_top_builddir=${ac_top_builddir}.;;
8167*)
8168 case ${ac_top_builddir}. in
8169 .) ac_abs_top_builddir=$ac_abs_builddir;;
8170 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8171 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8172 esac;;
8173esac
8174case $ac_abs_builddir in
8175.) ac_abs_srcdir=$ac_srcdir;;
8176*)
8177 case $ac_srcdir in
8178 .) ac_abs_srcdir=$ac_abs_builddir;;
8179 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8180 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8181 esac;;
8182esac
8183case $ac_abs_builddir in
8184.) ac_abs_top_srcdir=$ac_top_srcdir;;
8185*)
8186 case $ac_top_srcdir in
8187 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8188 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8189 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8190 esac;;
8191esac
8192
8193
8194 case $INSTALL in
8195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8196 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
8197 esac
8198
b7026657
AC
8199 if test x"$ac_file" != x-; then
8200 { echo "$as_me:$LINENO: creating $ac_file" >&5
8201echo "$as_me: creating $ac_file" >&6;}
8202 rm -f "$ac_file"
8203 fi
8204 # Let's still pretend it is `configure' which instantiates (i.e., don't
8205 # use $as_me), people would be surprised to read:
8206 # /* config.h. Generated by config.status. */
8207 if test x"$ac_file" = x-; then
8208 configure_input=
8209 else
8210 configure_input="$ac_file. "
8211 fi
8212 configure_input=$configure_input"Generated from `echo $ac_file_in |
8213 sed 's,.*/,,'` by configure."
8214
8215 # First look for the input files in the build tree, otherwise in the
8216 # src tree.
8217 ac_file_inputs=`IFS=:
8218 for f in $ac_file_in; do
8219 case $f in
8220 -) echo $tmp/stdin ;;
8221 [\\/$]*)
8222 # Absolute (can't be DOS-style, as IFS=:)
8223 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8224echo "$as_me: error: cannot find input file: $f" >&2;}
8225 { (exit 1); exit 1; }; }
8226 echo "$f";;
8227 *) # Relative
8228 if test -f "$f"; then
8229 # Build tree
8230 echo "$f"
8231 elif test -f "$srcdir/$f"; then
8232 # Source tree
8233 echo "$srcdir/$f"
8234 else
8235 # /dev/null tree
8236 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8237echo "$as_me: error: cannot find input file: $f" >&2;}
8238 { (exit 1); exit 1; }; }
8239 fi;;
8240 esac
8241 done` || { (exit 1); exit 1; }
8242_ACEOF
8243cat >>$CONFIG_STATUS <<_ACEOF
8244 sed "$ac_vpsub
8245$extrasub
8246_ACEOF
8247cat >>$CONFIG_STATUS <<\_ACEOF
8248:t
8249/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8250s,@configure_input@,$configure_input,;t t
8251s,@srcdir@,$ac_srcdir,;t t
8252s,@abs_srcdir@,$ac_abs_srcdir,;t t
8253s,@top_srcdir@,$ac_top_srcdir,;t t
8254s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8255s,@builddir@,$ac_builddir,;t t
8256s,@abs_builddir@,$ac_abs_builddir,;t t
8257s,@top_builddir@,$ac_top_builddir,;t t
8258s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8259s,@INSTALL@,$ac_INSTALL,;t t
8260" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8261 rm -f $tmp/stdin
8262 if test x"$ac_file" != x-; then
8263 mv $tmp/out $ac_file
8264 else
8265 cat $tmp/out
8266 rm -f $tmp/out
8267 fi
8268
8269done
8270_ACEOF
8271cat >>$CONFIG_STATUS <<\_ACEOF
8272
8273#
8274# CONFIG_HEADER section.
8275#
c906108c
SS
8276
8277# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8278# NAME is the cpp macro being defined and VALUE is the value it is being given.
8279#
8280# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
8281ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8282ac_dB='[ ].*$,\1#\2'
8283ac_dC=' '
8284ac_dD=',;t'
8285# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8286ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8287ac_uB='$,\1#\2define\3'
c906108c 8288ac_uC=' '
b7026657
AC
8289ac_uD=',;t'
8290
8291for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 8292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
8293 case $ac_file in
8294 - | *:- | *:-:* ) # input from stdin
8295 cat >$tmp/stdin
8296 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8298 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8300 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
8301 esac
8302
b7026657
AC
8303 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8304echo "$as_me: creating $ac_file" >&6;}
8305
8306 # First look for the input files in the build tree, otherwise in the
8307 # src tree.
8308 ac_file_inputs=`IFS=:
8309 for f in $ac_file_in; do
8310 case $f in
8311 -) echo $tmp/stdin ;;
8312 [\\/$]*)
8313 # Absolute (can't be DOS-style, as IFS=:)
8314 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8315echo "$as_me: error: cannot find input file: $f" >&2;}
8316 { (exit 1); exit 1; }; }
8317 # Do quote $f, to prevent DOS paths from being IFS'd.
8318 echo "$f";;
8319 *) # Relative
8320 if test -f "$f"; then
8321 # Build tree
8322 echo "$f"
8323 elif test -f "$srcdir/$f"; then
8324 # Source tree
8325 echo "$srcdir/$f"
8326 else
8327 # /dev/null tree
8328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8329echo "$as_me: error: cannot find input file: $f" >&2;}
8330 { (exit 1); exit 1; }; }
8331 fi;;
8332 esac
8333 done` || { (exit 1); exit 1; }
8334 # Remove the trailing spaces.
8335 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8336
8337_ACEOF
8338
8339# Transform confdefs.h into two sed scripts, `conftest.defines' and
8340# `conftest.undefs', that substitutes the proper values into
8341# config.h.in to produce config.h. The first handles `#define'
8342# templates, and the second `#undef' templates.
8343# And first: Protect against being on the right side of a sed subst in
8344# config.status. Protect against being in an unquoted here document
8345# in config.status.
8346rm -f conftest.defines conftest.undefs
8347# Using a here document instead of a string reduces the quoting nightmare.
8348# Putting comments in sed scripts is not portable.
8349#
8350# `end' is used to avoid that the second main sed command (meant for
8351# 0-ary CPP macros) applies to n-ary macro definitions.
8352# See the Autoconf documentation for `clear'.
8353cat >confdef2sed.sed <<\_ACEOF
8354s/[\\&,]/\\&/g
8355s,[\\$`],\\&,g
8356t clear
8357: clear
8358s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8359t end
8360s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8361: end
8362_ACEOF
8363# If some macros were called several times there might be several times
8364# the same #defines, which is useless. Nevertheless, we may not want to
8365# sort them, since we want the *last* AC-DEFINE to be honored.
8366uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8367sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8368rm -f confdef2sed.sed
c906108c
SS
8369
8370# This sed command replaces #undef with comments. This is necessary, for
8371# example, in the case of _POSIX_SOURCE, which is predefined and required
8372# on some systems where configure will not decide to define it.
b7026657
AC
8373cat >>conftest.undefs <<\_ACEOF
8374s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8375_ACEOF
8376
8377# Break up conftest.defines because some shells have a limit on the size
8378# of here documents, and old seds have small limits too (100 cmds).
8379echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8380echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8381echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8382echo ' :' >>$CONFIG_STATUS
8383rm -f conftest.tail
8384while grep . conftest.defines >/dev/null
8385do
8386 # Write a limited-size here document to $tmp/defines.sed.
8387 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8388 # Speed up: don't consider the non `#define' lines.
8389 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8390 # Work around the forget-to-reset-the-flag bug.
8391 echo 't clr' >>$CONFIG_STATUS
8392 echo ': clr' >>$CONFIG_STATUS
8393 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8394 echo 'CEOF
8395 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8396 rm -f $tmp/in
8397 mv $tmp/out $tmp/in
8398' >>$CONFIG_STATUS
8399 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8400 rm -f conftest.defines
8401 mv conftest.tail conftest.defines
8402done
8403rm -f conftest.defines
8404echo ' fi # grep' >>$CONFIG_STATUS
8405echo >>$CONFIG_STATUS
c906108c 8406
b7026657
AC
8407# Break up conftest.undefs because some shells have a limit on the size
8408# of here documents, and old seds have small limits too (100 cmds).
8409echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 8410rm -f conftest.tail
b7026657 8411while grep . conftest.undefs >/dev/null
c906108c 8412do
b7026657
AC
8413 # Write a limited-size here document to $tmp/undefs.sed.
8414 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8415 # Speed up: don't consider the non `#undef'
8416 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8417 # Work around the forget-to-reset-the-flag bug.
8418 echo 't clr' >>$CONFIG_STATUS
8419 echo ': clr' >>$CONFIG_STATUS
8420 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 8421 echo 'CEOF
b7026657
AC
8422 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8423 rm -f $tmp/in
8424 mv $tmp/out $tmp/in
8425' >>$CONFIG_STATUS
8426 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8427 rm -f conftest.undefs
8428 mv conftest.tail conftest.undefs
c906108c 8429done
b7026657
AC
8430rm -f conftest.undefs
8431
8432cat >>$CONFIG_STATUS <<\_ACEOF
8433 # Let's still pretend it is `configure' which instantiates (i.e., don't
8434 # use $as_me), people would be surprised to read:
8435 # /* config.h. Generated by config.status. */
8436 if test x"$ac_file" = x-; then
8437 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 8438 else
b7026657 8439 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 8440 fi
b7026657
AC
8441 cat $tmp/in >>$tmp/config.h
8442 rm -f $tmp/in
8443 if test x"$ac_file" != x-; then
8444 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8445 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8446echo "$as_me: $ac_file is unchanged" >&6;}
8447 else
8448 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8449$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8450 X"$ac_file" : 'X\(//\)[^/]' \| \
8451 X"$ac_file" : 'X\(//\)$' \| \
8452 X"$ac_file" : 'X\(/\)' \| \
8453 . : '\(.\)' 2>/dev/null ||
8454echo X"$ac_file" |
8455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8457 /^X\(\/\/\)$/{ s//\1/; q; }
8458 /^X\(\/\).*/{ s//\1/; q; }
8459 s/.*/./; q'`
8460 { if $as_mkdir_p; then
8461 mkdir -p "$ac_dir"
8462 else
8463 as_dir="$ac_dir"
8464 as_dirs=
8465 while test ! -d "$as_dir"; do
8466 as_dirs="$as_dir $as_dirs"
8467 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8469 X"$as_dir" : 'X\(//\)[^/]' \| \
8470 X"$as_dir" : 'X\(//\)$' \| \
8471 X"$as_dir" : 'X\(/\)' \| \
8472 . : '\(.\)' 2>/dev/null ||
8473echo X"$as_dir" |
8474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8476 /^X\(\/\/\)$/{ s//\1/; q; }
8477 /^X\(\/\).*/{ s//\1/; q; }
8478 s/.*/./; q'`
8479 done
8480 test ! -n "$as_dirs" || mkdir $as_dirs
8481 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8482echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8483 { (exit 1); exit 1; }; }; }
c906108c 8484
b7026657
AC
8485 rm -f $ac_file
8486 mv $tmp/config.h $ac_file
8487 fi
8488 else
8489 cat $tmp/config.h
8490 rm -f $tmp/config.h
8491 fi
8492done
8493_ACEOF
8494cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 8495
b7026657
AC
8496#
8497# CONFIG_LINKS section.
8498#
c906108c 8499
b7026657
AC
8500for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8501 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8502 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 8503
b7026657
AC
8504 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8505echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
8506
8507 if test ! -r $srcdir/$ac_source; then
b7026657
AC
8508 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8509echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8510 { (exit 1); exit 1; }; }
c906108c
SS
8511 fi
8512 rm -f $ac_dest
8513
8514 # Make relative symlinks.
b7026657
AC
8515 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8516$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8517 X"$ac_dest" : 'X\(//\)[^/]' \| \
8518 X"$ac_dest" : 'X\(//\)$' \| \
8519 X"$ac_dest" : 'X\(/\)' \| \
8520 . : '\(.\)' 2>/dev/null ||
8521echo X"$ac_dest" |
8522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8524 /^X\(\/\/\)$/{ s//\1/; q; }
8525 /^X\(\/\).*/{ s//\1/; q; }
8526 s/.*/./; q'`
8527 { if $as_mkdir_p; then
8528 mkdir -p "$ac_dest_dir"
c906108c 8529 else
b7026657
AC
8530 as_dir="$ac_dest_dir"
8531 as_dirs=
8532 while test ! -d "$as_dir"; do
8533 as_dirs="$as_dir $as_dirs"
8534 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8535$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8536 X"$as_dir" : 'X\(//\)[^/]' \| \
8537 X"$as_dir" : 'X\(//\)$' \| \
8538 X"$as_dir" : 'X\(/\)' \| \
8539 . : '\(.\)' 2>/dev/null ||
8540echo X"$as_dir" |
8541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8543 /^X\(\/\/\)$/{ s//\1/; q; }
8544 /^X\(\/\).*/{ s//\1/; q; }
8545 s/.*/./; q'`
8546 done
8547 test ! -n "$as_dirs" || mkdir $as_dirs
8548 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8549echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8550 { (exit 1); exit 1; }; }; }
8551
8552 ac_builddir=.
8553
8554if test "$ac_dest_dir" != .; then
8555 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8556 # A "../" for each directory in $ac_dir_suffix.
8557 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8558else
8559 ac_dir_suffix= ac_top_builddir=
8560fi
8561
8562case $srcdir in
8563 .) # No --srcdir option. We are building in place.
8564 ac_srcdir=.
8565 if test -z "$ac_top_builddir"; then
8566 ac_top_srcdir=.
8567 else
8568 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8569 fi ;;
8570 [\\/]* | ?:[\\/]* ) # Absolute path.
8571 ac_srcdir=$srcdir$ac_dir_suffix;
8572 ac_top_srcdir=$srcdir ;;
8573 *) # Relative path.
8574 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8575 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8576esac
8577
8578# Do not use `cd foo && pwd` to compute absolute paths, because
8579# the directories may not exist.
8580case `pwd` in
8581.) ac_abs_builddir="$ac_dest_dir";;
8582*)
8583 case "$ac_dest_dir" in
8584 .) ac_abs_builddir=`pwd`;;
8585 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8586 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8587 esac;;
8588esac
8589case $ac_abs_builddir in
8590.) ac_abs_top_builddir=${ac_top_builddir}.;;
8591*)
8592 case ${ac_top_builddir}. in
8593 .) ac_abs_top_builddir=$ac_abs_builddir;;
8594 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8595 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8596 esac;;
8597esac
8598case $ac_abs_builddir in
8599.) ac_abs_srcdir=$ac_srcdir;;
8600*)
8601 case $ac_srcdir in
8602 .) ac_abs_srcdir=$ac_abs_builddir;;
8603 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8604 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8605 esac;;
8606esac
8607case $ac_abs_builddir in
8608.) ac_abs_top_srcdir=$ac_top_srcdir;;
8609*)
8610 case $ac_top_srcdir in
8611 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8612 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8613 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8614 esac;;
8615esac
c906108c 8616
b7026657
AC
8617
8618 case $srcdir in
8619 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8620 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
8621 esac
8622
b7026657
AC
8623 # Try a symlink, then a hard link, then a copy.
8624 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8625 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8626 cp -p $srcdir/$ac_source $ac_dest ||
8627 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8628echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8629 { (exit 1); exit 1; }; }
c906108c 8630done
b7026657
AC
8631_ACEOF
8632cat >>$CONFIG_STATUS <<\_ACEOF
8633
8634#
8635# CONFIG_COMMANDS section.
8636#
8637for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8638 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8639 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8640 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8641$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8642 X"$ac_dest" : 'X\(//\)[^/]' \| \
8643 X"$ac_dest" : 'X\(//\)$' \| \
8644 X"$ac_dest" : 'X\(/\)' \| \
8645 . : '\(.\)' 2>/dev/null ||
8646echo X"$ac_dest" |
8647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8649 /^X\(\/\/\)$/{ s//\1/; q; }
8650 /^X\(\/\).*/{ s//\1/; q; }
8651 s/.*/./; q'`
8652 { if $as_mkdir_p; then
8653 mkdir -p "$ac_dir"
8654 else
8655 as_dir="$ac_dir"
8656 as_dirs=
8657 while test ! -d "$as_dir"; do
8658 as_dirs="$as_dir $as_dirs"
8659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8661 X"$as_dir" : 'X\(//\)[^/]' \| \
8662 X"$as_dir" : 'X\(//\)$' \| \
8663 X"$as_dir" : 'X\(/\)' \| \
8664 . : '\(.\)' 2>/dev/null ||
8665echo X"$as_dir" |
8666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8668 /^X\(\/\/\)$/{ s//\1/; q; }
8669 /^X\(\/\).*/{ s//\1/; q; }
8670 s/.*/./; q'`
8671 done
8672 test ! -n "$as_dirs" || mkdir $as_dirs
8673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8674echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8675 { (exit 1); exit 1; }; }; }
8676
8677 ac_builddir=.
8678
8679if test "$ac_dir" != .; then
8680 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8681 # A "../" for each directory in $ac_dir_suffix.
8682 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8683else
8684 ac_dir_suffix= ac_top_builddir=
8685fi
c906108c 8686
b7026657
AC
8687case $srcdir in
8688 .) # No --srcdir option. We are building in place.
8689 ac_srcdir=.
8690 if test -z "$ac_top_builddir"; then
8691 ac_top_srcdir=.
8692 else
8693 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8694 fi ;;
8695 [\\/]* | ?:[\\/]* ) # Absolute path.
8696 ac_srcdir=$srcdir$ac_dir_suffix;
8697 ac_top_srcdir=$srcdir ;;
8698 *) # Relative path.
8699 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8700 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8701esac
8702
8703# Do not use `cd foo && pwd` to compute absolute paths, because
8704# the directories may not exist.
8705case `pwd` in
8706.) ac_abs_builddir="$ac_dir";;
8707*)
8708 case "$ac_dir" in
8709 .) ac_abs_builddir=`pwd`;;
8710 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8711 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8712 esac;;
8713esac
8714case $ac_abs_builddir in
8715.) ac_abs_top_builddir=${ac_top_builddir}.;;
8716*)
8717 case ${ac_top_builddir}. in
8718 .) ac_abs_top_builddir=$ac_abs_builddir;;
8719 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8720 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8721 esac;;
8722esac
8723case $ac_abs_builddir in
8724.) ac_abs_srcdir=$ac_srcdir;;
8725*)
8726 case $ac_srcdir in
8727 .) ac_abs_srcdir=$ac_abs_builddir;;
8728 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8729 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8730 esac;;
8731esac
8732case $ac_abs_builddir in
8733.) ac_abs_top_srcdir=$ac_top_srcdir;;
8734*)
8735 case $ac_top_srcdir in
8736 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8737 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8738 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8739 esac;;
8740esac
8741
8742
8743 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8744echo "$as_me: executing $ac_dest commands" >&6;}
8745 case $ac_dest in
38f48d72
AC
8746 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8747 rm -f Makesim1.tmp Makesim2.tmp Makefile
8748 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
8749 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
8750 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
8751 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8752 <Makefile.sim >Makefile
38f48d72 8753 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 8754 ;;
38f48d72 8755 stamp-h ) echo > stamp-h ;;
b7026657
AC
8756 esac
8757done
8758_ACEOF
c906108c 8759
b7026657
AC
8760cat >>$CONFIG_STATUS <<\_ACEOF
8761
8762{ (exit 0); exit 0; }
8763_ACEOF
c906108c 8764chmod +x $CONFIG_STATUS
b7026657
AC
8765ac_clean_files=$ac_clean_files_save
8766
8767
8768# configure is writing to config.log, and then calls config.status.
8769# config.status does its own redirection, appending to config.log.
8770# Unfortunately, on DOS this fails, as config.log is still kept open
8771# by configure, so config.status won't be able to write to it; its
8772# output is simply discarded. So we exec the FD to /dev/null,
8773# effectively closing config.log, so it can be properly (re)opened and
8774# appended to by config.status. When coming back to configure, we
8775# need to make the FD available again.
8776if test "$no_create" != yes; then
8777 ac_cs_success=:
8778 ac_config_status_args=
8779 test "$silent" = yes &&
8780 ac_config_status_args="$ac_config_status_args --quiet"
8781 exec 5>/dev/null
8782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8783 exec 5>>config.log
8784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8785 # would make configure fail if this is the last instruction.
8786 $ac_cs_success || { (exit 1); exit 1; }
8787fi
c906108c
SS
8788
8789
This page took 0.632004 seconds and 4 git commands to generate.