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