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