* cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
[official-gcc.git] / libcpp / configure
blobbf26738eeafa8f867c879ab16d4a7099315fa173
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
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 ## --------------------- ##
14 # Be Bourne compatible
15 if 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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for 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
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
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if 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=:
98 rm -f conf$$.sh
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
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
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; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 done
156 esac
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 '
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; }; }
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
189 case `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= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if 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'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
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}
269 # Identity of this package.
270 PACKAGE_NAME='cpplib'
271 PACKAGE_TARNAME='cpplib'
272 PACKAGE_VERSION=' '
273 PACKAGE_STRING='cpplib '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
276 ac_unique_file="ucnid.h"
277 # Factoring default headers for most tests.
278 ac_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"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER CPP EGREP LIBOBJS ALLOCA USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS LIBICONV LTLIBICONV PACKAGE USED_CATALOGS MAINT LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
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.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
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
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
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 ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
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 ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
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 ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
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 ;;
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 ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
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 ;;
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 ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
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 ;;
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 ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
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 ;;
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 ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
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'" ;;
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" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
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 ;;
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 ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
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 ;;
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}
651 esac
652 done
654 if 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; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
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
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
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
681 done
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.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if 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
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if 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 ||
717 echo 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=..
727 else
728 ac_srcdir_defaulted=no
730 if 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; }; }
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; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if 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 cpplib to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
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 \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation 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]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine 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
834 cat <<\_ACEOF
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of cpplib :";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-rpath do not hardcode runtime library paths
853 --enable-maintainer-mode enable rules only needed by maintainers
854 --enable-checking enable expensive run-time checks
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-gnu-ld assume the C compiler uses GNU ld default=no
860 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
861 --without-libiconv-prefix don't search for libiconv in includedir and libdir
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
870 CPP C preprocessor
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
875 Report bugs to <gcc-bugs@gcc.gnu.org>.
876 _ACEOF
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
881 ac_popdir=`pwd`
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
884 ac_builddir=.
886 if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 else
891 ac_dir_suffix= ac_top_builddir=
894 case $srcdir in
895 .) # No --srcdir option. We are building in place.
896 ac_srcdir=.
897 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=.
899 else
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901 fi ;;
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
905 *) # Relative path.
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 esac
910 # Do not use `cd foo && pwd` to compute absolute paths, because
911 # the directories may not exist.
912 case `pwd` in
913 .) ac_abs_builddir="$ac_dir";;
915 case "$ac_dir" in
916 .) ac_abs_builddir=`pwd`;;
917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918 *) ac_abs_builddir=`pwd`/"$ac_dir";;
919 esac;;
920 esac
921 case $ac_abs_builddir in
922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
924 case ${ac_top_builddir}. in
925 .) ac_abs_top_builddir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
928 esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_srcdir=$ac_srcdir;;
933 case $ac_srcdir in
934 .) ac_abs_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
942 case $ac_top_srcdir in
943 .) ac_abs_top_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946 esac;;
947 esac
949 cd $ac_dir
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
952 echo
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
955 echo
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
959 echo
960 $ac_configure --help
961 else
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 cd $ac_popdir
965 done
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970 cat <<\_ACEOF
971 cpplib configure
972 generated by GNU Autoconf 2.59
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
977 _ACEOF
978 exit 0
980 exec 5>config.log
981 cat >&5 <<_ACEOF
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by cpplib $as_me , which was
986 generated by GNU Autoconf 2.59. Invocation command line was
988 $ $0 $@
990 _ACEOF
992 cat <<_ASUNAME
993 ## --------- ##
994 ## Platform. ##
995 ## --------- ##
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014 _ASUNAME
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 for as_dir in $PATH
1019 IFS=$as_save_IFS
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1022 done
1024 } >&5
1026 cat >&5 <<_ACEOF
1029 ## ----------- ##
1030 ## Core tests. ##
1031 ## ----------- ##
1033 _ACEOF
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_configure_args=
1042 ac_configure_args0=
1043 ac_configure_args1=
1044 ac_sep=
1045 ac_must_keep_next=false
1046 for ac_pass in 1 2
1048 for ac_arg
1050 case $ac_arg in
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 continue ;;
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057 esac
1058 case $ac_pass in
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1064 else
1065 case $ac_arg in
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072 esac
1074 -* ) ac_must_keep_next=true ;;
1075 esac
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1079 ac_sep=" "
1081 esac
1082 done
1083 done
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1095 echo
1097 cat <<\_ASBOX
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1101 _ASBOX
1102 echo
1103 # The following way of writing the cache mishandles newlines in values,
1105 (set) 2>&1 |
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107 *ac_space=\ *)
1108 sed -n \
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 sed -n \
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 esac;
1118 echo
1120 cat <<\_ASBOX
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1133 if test -n "$ac_subst_files"; then
1134 cat <<\_ASBOX
1135 ## ------------- ##
1136 ## Output files. ##
1137 ## ------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1148 if test -s confdefs.h; then
1149 cat <<\_ASBOX
1150 ## ----------- ##
1151 ## confdefs.h. ##
1152 ## ----------- ##
1153 _ASBOX
1154 echo
1155 sed "/^$/d" confdefs.h | sort
1156 echo
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1161 } >&5
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164 exit $exit_status
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 done
1169 ac_signal=0
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174 echo >confdefs.h
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 _ACEOF
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208 else
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1217 . "$ac_site_file"
1219 done
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1227 case $cache_file in
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1230 esac
1232 else
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1235 >$cache_file
1238 # Check that the precious variables saved in the cache have kept the same
1239 # value.
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1248 set,)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,set)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,);;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1266 fi;;
1267 esac
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1270 case $ac_new_val in
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1274 esac
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 esac
1280 done
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1289 ac_ext=c
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_aux_dir=
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1337 done
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1373 build=$ac_cv_build
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1395 host=$ac_cv_host
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1427 NONENONEs,x,x, &&
1428 program_prefix=${target_alias}-
1429 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1430 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1431 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1432 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 cat >conftest.make <<\_ACEOF
1436 all:
1437 @echo 'ac_maketemp="$(MAKE)"'
1438 _ACEOF
1439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1440 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1441 if test -n "$ac_maketemp"; then
1442 eval ac_cv_prog_make_${ac_make}_set=yes
1443 else
1444 eval ac_cv_prog_make_${ac_make}_set=no
1446 rm -f conftest.make
1448 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1449 echo "$as_me:$LINENO: result: yes" >&5
1450 echo "${ECHO_T}yes" >&6
1451 SET_MAKE=
1452 else
1453 echo "$as_me:$LINENO: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1455 SET_MAKE="MAKE=${MAKE-make}"
1458 # Find a good install program. We prefer a C program (faster),
1459 # so one script is as good as another. But avoid the broken or
1460 # incompatible versions:
1461 # SysV /etc/install, /usr/sbin/install
1462 # SunOS /usr/etc/install
1463 # IRIX /sbin/install
1464 # AIX /bin/install
1465 # AmigaOS /C/install, which installs bootblocks on floppy discs
1466 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1467 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1468 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1469 # OS/2's system install, which has a completely different semantic
1470 # ./install, which can be erroneously created by make from ./install.sh.
1471 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1472 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1473 if test -z "$INSTALL"; then
1474 if test "${ac_cv_path_install+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 # Account for people who put trailing slashes in PATH elements.
1483 case $as_dir/ in
1484 ./ | .// | /cC/* | \
1485 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1486 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1487 /usr/ucb/* ) ;;
1489 # OSF1 and SCO ODT 3.0 have their own names for install.
1490 # Don't use installbsd from OSF since it installs stuff as root
1491 # by default.
1492 for ac_prog in ginstall scoinst install; do
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1495 if test $ac_prog = install &&
1496 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497 # AIX install. It has an incompatible calling convention.
1499 elif test $ac_prog = install &&
1500 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1501 # program-specific install script used by HP pwplus--don't use.
1503 else
1504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1505 break 3
1508 done
1509 done
1511 esac
1512 done
1516 if test "${ac_cv_path_install+set}" = set; then
1517 INSTALL=$ac_cv_path_install
1518 else
1519 # As a last resort, use the slow shell script. We don't cache a
1520 # path for INSTALL within a source directory, because that will
1521 # break other packages using the cache if that directory is
1522 # removed, or if the path is relative.
1523 INSTALL=$ac_install_sh
1526 echo "$as_me:$LINENO: result: $INSTALL" >&5
1527 echo "${ECHO_T}$INSTALL" >&6
1529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1530 # It thinks the first close brace ends the variable substitution.
1531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1538 # Checks for programs.
1539 ac_ext=c
1540 ac_cpp='$CPP $CPPFLAGS'
1541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544 if test -n "$ac_tool_prefix"; then
1545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1547 echo "$as_me:$LINENO: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_CC+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 else
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 for as_dir in $PATH
1558 IFS=$as_save_IFS
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 break 2
1566 done
1567 done
1571 CC=$ac_cv_prog_CC
1572 if test -n "$CC"; then
1573 echo "$as_me:$LINENO: result: $CC" >&5
1574 echo "${ECHO_T}$CC" >&6
1575 else
1576 echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1581 if test -z "$ac_cv_prog_CC"; then
1582 ac_ct_CC=$CC
1583 # Extract the first word of "gcc", so it can be a program name with args.
1584 set dummy gcc; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 if test -n "$ac_ct_CC"; then
1591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 else
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_ac_ct_CC="gcc"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 break 2
1604 done
1605 done
1609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1610 if test -n "$ac_ct_CC"; then
1611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1612 echo "${ECHO_T}$ac_ct_CC" >&6
1613 else
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1618 CC=$ac_ct_CC
1619 else
1620 CC="$ac_cv_prog_CC"
1623 if test -z "$CC"; then
1624 if test -n "$ac_tool_prefix"; then
1625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1626 set dummy ${ac_tool_prefix}cc; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1634 else
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_CC="${ac_tool_prefix}cc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1646 done
1647 done
1651 CC=$ac_cv_prog_CC
1652 if test -n "$CC"; then
1653 echo "$as_me:$LINENO: result: $CC" >&5
1654 echo "${ECHO_T}$CC" >&6
1655 else
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1661 if test -z "$ac_cv_prog_CC"; then
1662 ac_ct_CC=$CC
1663 # Extract the first word of "cc", so it can be a program name with args.
1664 set dummy cc; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 if test -n "$ac_ct_CC"; then
1671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_ac_ct_CC="cc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1684 done
1685 done
1689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1690 if test -n "$ac_ct_CC"; then
1691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1692 echo "${ECHO_T}$ac_ct_CC" >&6
1693 else
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1698 CC=$ac_ct_CC
1699 else
1700 CC="$ac_cv_prog_CC"
1704 if test -z "$CC"; then
1705 # Extract the first word of "cc", so it can be a program name with args.
1706 set dummy cc; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1714 else
1715 ac_prog_rejected=no
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1724 ac_prog_rejected=yes
1725 continue
1727 ac_cv_prog_CC="cc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1731 done
1732 done
1734 if test $ac_prog_rejected = yes; then
1735 # We found a bogon in the path, so make sure we never use it.
1736 set dummy $ac_cv_prog_CC
1737 shift
1738 if test $# != 0; then
1739 # We chose a different compiler from the bogus one.
1740 # However, it has the same basename, so the bogon will be chosen
1741 # first if we set CC to just the basename; use the full file name.
1742 shift
1743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1748 CC=$ac_cv_prog_CC
1749 if test -n "$CC"; then
1750 echo "$as_me:$LINENO: result: $CC" >&5
1751 echo "${ECHO_T}$CC" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1758 if test -z "$CC"; then
1759 if test -n "$ac_tool_prefix"; then
1760 for ac_prog in cl
1762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_CC+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769 if test -n "$CC"; then
1770 ac_cv_prog_CC="$CC" # Let the user override the test.
1771 else
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1783 done
1784 done
1788 CC=$ac_cv_prog_CC
1789 if test -n "$CC"; then
1790 echo "$as_me:$LINENO: result: $CC" >&5
1791 echo "${ECHO_T}$CC" >&6
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1797 test -n "$CC" && break
1798 done
1800 if test -z "$CC"; then
1801 ac_ct_CC=$CC
1802 for ac_prog in cl
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC="$ac_prog"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1825 done
1826 done
1830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831 if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833 echo "${ECHO_T}$ac_ct_CC" >&6
1834 else
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1839 test -n "$ac_ct_CC" && break
1840 done
1842 CC=$ac_ct_CC
1848 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1849 See \`config.log' for more details." >&5
1850 echo "$as_me: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }
1854 # Provide some information about the compiler.
1855 echo "$as_me:$LINENO:" \
1856 "checking for C compiler version" >&5
1857 ac_compiler=`set X $ac_compile; echo $2`
1858 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1859 (eval $ac_compiler --version </dev/null >&5) 2>&5
1860 ac_status=$?
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }
1863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1864 (eval $ac_compiler -v </dev/null >&5) 2>&5
1865 ac_status=$?
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }
1868 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1869 (eval $ac_compiler -V </dev/null >&5) 2>&5
1870 ac_status=$?
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }
1874 cat >conftest.$ac_ext <<_ACEOF
1875 /* confdefs.h. */
1876 _ACEOF
1877 cat confdefs.h >>conftest.$ac_ext
1878 cat >>conftest.$ac_ext <<_ACEOF
1879 /* end confdefs.h. */
1882 main ()
1886 return 0;
1888 _ACEOF
1889 ac_clean_files_save=$ac_clean_files
1890 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1891 # Try to create an executable without -o first, disregard a.out.
1892 # It will help us diagnose broken compilers, and finding out an intuition
1893 # of exeext.
1894 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1895 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1896 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1897 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1898 (eval $ac_link_default) 2>&5
1899 ac_status=$?
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); }; then
1902 # Find the output, starting from the most likely. This scheme is
1903 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1904 # resort.
1906 # Be careful to initialize this variable, since it used to be cached.
1907 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1908 ac_cv_exeext=
1909 # b.out is created by i960 compilers.
1910 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1912 test -f "$ac_file" || continue
1913 case $ac_file in
1914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1916 conftest.$ac_ext )
1917 # This is the source file.
1919 [ab].out )
1920 # We found the default executable, but exeext='' is most
1921 # certainly right.
1922 break;;
1923 *.* )
1924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1925 # FIXME: I believe we export ac_cv_exeext for Libtool,
1926 # but it would be cool to find out if it's true. Does anybody
1927 # maintain Libtool? --akim.
1928 export ac_cv_exeext
1929 break;;
1931 break;;
1932 esac
1933 done
1934 else
1935 echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: C compiler cannot create executables
1941 See \`config.log' for more details." >&2;}
1942 { (exit 77); exit 77; }; }
1945 ac_exeext=$ac_cv_exeext
1946 echo "$as_me:$LINENO: result: $ac_file" >&5
1947 echo "${ECHO_T}$ac_file" >&6
1949 # Check the compiler produces executables we can run. If not, either
1950 # the compiler is broken, or we cross compile.
1951 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1952 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1953 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1954 # If not cross compiling, check that we can run a simple program.
1955 if test "$cross_compiling" != yes; then
1956 if { ac_try='./$ac_file'
1957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1958 (eval $ac_try) 2>&5
1959 ac_status=$?
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }; }; then
1962 cross_compiling=no
1963 else
1964 if test "$cross_compiling" = maybe; then
1965 cross_compiling=yes
1966 else
1967 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1968 If you meant to cross compile, use \`--host'.
1969 See \`config.log' for more details." >&5
1970 echo "$as_me: error: cannot run C compiled programs.
1971 If you meant to cross compile, use \`--host'.
1972 See \`config.log' for more details." >&2;}
1973 { (exit 1); exit 1; }; }
1977 echo "$as_me:$LINENO: result: yes" >&5
1978 echo "${ECHO_T}yes" >&6
1980 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1981 ac_clean_files=$ac_clean_files_save
1982 # Check the compiler produces executables we can run. If not, either
1983 # the compiler is broken, or we cross compile.
1984 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1985 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1986 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1987 echo "${ECHO_T}$cross_compiling" >&6
1989 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1990 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1992 (eval $ac_link) 2>&5
1993 ac_status=$?
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; then
1996 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1997 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1998 # work properly (i.e., refer to `conftest.exe'), while it won't with
1999 # `rm'.
2000 for ac_file in conftest.exe conftest conftest.*; do
2001 test -f "$ac_file" || continue
2002 case $ac_file in
2003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2004 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2005 export ac_cv_exeext
2006 break;;
2007 * ) break;;
2008 esac
2009 done
2010 else
2011 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2014 See \`config.log' for more details." >&2;}
2015 { (exit 1); exit 1; }; }
2018 rm -f conftest$ac_cv_exeext
2019 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2020 echo "${ECHO_T}$ac_cv_exeext" >&6
2022 rm -f conftest.$ac_ext
2023 EXEEXT=$ac_cv_exeext
2024 ac_exeext=$EXEEXT
2025 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2026 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2027 if test "${ac_cv_objext+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 cat >conftest.$ac_ext <<_ACEOF
2031 /* confdefs.h. */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2038 main ()
2042 return 0;
2044 _ACEOF
2045 rm -f conftest.o conftest.obj
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; then
2051 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2052 case $ac_file in
2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2054 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2055 break;;
2056 esac
2057 done
2058 else
2059 echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2065 See \`config.log' for more details." >&2;}
2066 { (exit 1); exit 1; }; }
2069 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2071 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2072 echo "${ECHO_T}$ac_cv_objext" >&6
2073 OBJEXT=$ac_cv_objext
2074 ac_objext=$OBJEXT
2075 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2076 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2077 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 cat >conftest.$ac_ext <<_ACEOF
2081 /* confdefs.h. */
2082 _ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2088 main ()
2090 #ifndef __GNUC__
2091 choke me
2092 #endif
2095 return 0;
2097 _ACEOF
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>conftest.er1
2101 ac_status=$?
2102 grep -v '^ *+' conftest.er1 >conftest.err
2103 rm -f conftest.er1
2104 cat conftest.err >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); } &&
2107 { ac_try='test -z "$ac_c_werror_flag"
2108 || test ! -s conftest.err'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 (eval $ac_try) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; } &&
2114 { ac_try='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2120 ac_compiler_gnu=yes
2121 else
2122 echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2125 ac_compiler_gnu=no
2127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2128 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2131 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2132 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2133 GCC=`test $ac_compiler_gnu = yes && echo yes`
2134 ac_test_CFLAGS=${CFLAGS+set}
2135 ac_save_CFLAGS=$CFLAGS
2136 CFLAGS="-g"
2137 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2138 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2139 if test "${ac_cv_prog_cc_g+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142 cat >conftest.$ac_ext <<_ACEOF
2143 /* confdefs.h. */
2144 _ACEOF
2145 cat confdefs.h >>conftest.$ac_ext
2146 cat >>conftest.$ac_ext <<_ACEOF
2147 /* end confdefs.h. */
2150 main ()
2154 return 0;
2156 _ACEOF
2157 rm -f conftest.$ac_objext
2158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>conftest.er1
2160 ac_status=$?
2161 grep -v '^ *+' conftest.er1 >conftest.err
2162 rm -f conftest.er1
2163 cat conftest.err >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try='test -z "$ac_c_werror_flag"
2167 || test ! -s conftest.err'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 ac_cv_prog_cc_g=yes
2180 else
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 ac_cv_prog_cc_g=no
2186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2188 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2189 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2190 if test "$ac_test_CFLAGS" = set; then
2191 CFLAGS=$ac_save_CFLAGS
2192 elif test $ac_cv_prog_cc_g = yes; then
2193 if test "$GCC" = yes; then
2194 CFLAGS="-g -O2"
2195 else
2196 CFLAGS="-g"
2198 else
2199 if test "$GCC" = yes; then
2200 CFLAGS="-O2"
2201 else
2202 CFLAGS=
2205 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2206 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2207 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 ac_cv_prog_cc_stdc=no
2211 ac_save_CC=$CC
2212 cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h. */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2218 #include <stdarg.h>
2219 #include <stdio.h>
2220 #include <sys/types.h>
2221 #include <sys/stat.h>
2222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2223 struct buf { int x; };
2224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2225 static char *e (p, i)
2226 char **p;
2227 int i;
2229 return p[i];
2231 static char *f (char * (*g) (char **, int), char **p, ...)
2233 char *s;
2234 va_list v;
2235 va_start (v,p);
2236 s = g (p, va_arg (v,int));
2237 va_end (v);
2238 return s;
2241 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2242 function prototypes and stuff, but not '\xHH' hex character constants.
2243 These don't provoke an error unfortunately, instead are silently treated
2244 as 'x'. The following induces an error, until -std1 is added to get
2245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2246 array size at least. It's necessary to write '\x00'==0 to get something
2247 that's true only with -std1. */
2248 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2250 int test (int i, double x);
2251 struct s1 {int (*f) (int a);};
2252 struct s2 {int (*f) (double a);};
2253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2254 int argc;
2255 char **argv;
2257 main ()
2259 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2261 return 0;
2263 _ACEOF
2264 # Don't try gcc -ansi; that turns off useful extensions and
2265 # breaks some systems' header files.
2266 # AIX -qlanglvl=ansi
2267 # Ultrix and OSF/1 -std1
2268 # HP-UX 10.20 and later -Ae
2269 # HP-UX older versions -Aa -D_HPUX_SOURCE
2270 # SVR4 -Xc -D__EXTENSIONS__
2271 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2273 CC="$ac_save_CC $ac_arg"
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>conftest.er1
2277 ac_status=$?
2278 grep -v '^ *+' conftest.er1 >conftest.err
2279 rm -f conftest.er1
2280 cat conftest.err >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
2283 { ac_try='test -z "$ac_c_werror_flag"
2284 || test ! -s conftest.err'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; } &&
2290 { ac_try='test -s conftest.$ac_objext'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 (eval $ac_try) 2>&5
2293 ac_status=$?
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2296 ac_cv_prog_cc_stdc=$ac_arg
2297 break
2298 else
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2303 rm -f conftest.err conftest.$ac_objext
2304 done
2305 rm -f conftest.$ac_ext conftest.$ac_objext
2306 CC=$ac_save_CC
2310 case "x$ac_cv_prog_cc_stdc" in
2311 x|xno)
2312 echo "$as_me:$LINENO: result: none needed" >&5
2313 echo "${ECHO_T}none needed" >&6 ;;
2315 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2316 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2317 CC="$CC $ac_cv_prog_cc_stdc" ;;
2318 esac
2320 # Some people use a C++ compiler to compile C. Since we use `exit',
2321 # in C++ we need to declare it. In case someone uses the same compiler
2322 # for both compiling C and C++ we need to have the C++ compiler decide
2323 # the declaration of exit, since it's the most demanding environment.
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #ifndef __cplusplus
2326 choke me
2327 #endif
2328 _ACEOF
2329 rm -f conftest.$ac_objext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331 (eval $ac_compile) 2>conftest.er1
2332 ac_status=$?
2333 grep -v '^ *+' conftest.er1 >conftest.err
2334 rm -f conftest.er1
2335 cat conftest.err >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); } &&
2338 { ac_try='test -z "$ac_c_werror_flag"
2339 || test ! -s conftest.err'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 for ac_declaration in \
2352 '' \
2353 'extern "C" void std::exit (int) throw (); using std::exit;' \
2354 'extern "C" void std::exit (int); using std::exit;' \
2355 'extern "C" void exit (int) throw ();' \
2356 'extern "C" void exit (int);' \
2357 'void exit (int);'
2359 cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h. */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2365 $ac_declaration
2366 #include <stdlib.h>
2368 main ()
2370 exit (42);
2372 return 0;
2374 _ACEOF
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>conftest.er1
2378 ac_status=$?
2379 grep -v '^ *+' conftest.er1 >conftest.err
2380 rm -f conftest.er1
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_c_werror_flag"
2385 || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 continue
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h. */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2411 $ac_declaration
2413 main ()
2415 exit (42);
2417 return 0;
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2423 ac_status=$?
2424 grep -v '^ *+' conftest.er1 >conftest.err
2425 rm -f conftest.er1
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag"
2430 || test ! -s conftest.err'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 break
2443 else
2444 echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 done
2450 rm -f conftest*
2451 if test -n "$ac_declaration"; then
2452 echo '#ifdef __cplusplus' >>confdefs.h
2453 echo $ac_declaration >>confdefs.h
2454 echo '#endif' >>confdefs.h
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 ac_ext=c
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_RANLIB+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$RANLIB"; then
2478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2491 done
2492 done
2496 RANLIB=$ac_cv_prog_RANLIB
2497 if test -n "$RANLIB"; then
2498 echo "$as_me:$LINENO: result: $RANLIB" >&5
2499 echo "${ECHO_T}$RANLIB" >&6
2500 else
2501 echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2506 if test -z "$ac_cv_prog_RANLIB"; then
2507 ac_ct_RANLIB=$RANLIB
2508 # Extract the first word of "ranlib", so it can be a program name with args.
2509 set dummy ranlib; ac_word=$2
2510 echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2512 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515 if test -n "$ac_ct_RANLIB"; then
2516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525 ac_cv_prog_ac_ct_RANLIB="ranlib"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2529 done
2530 done
2532 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2535 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2536 if test -n "$ac_ct_RANLIB"; then
2537 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2538 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2539 else
2540 echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6
2544 RANLIB=$ac_ct_RANLIB
2545 else
2546 RANLIB="$ac_cv_prog_RANLIB"
2550 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2551 for ac_prog in aclocal
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560 if test -n "$ACLOCAL"; then
2561 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570 ac_cv_prog_ACLOCAL="$ac_prog"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2574 done
2575 done
2579 ACLOCAL=$ac_cv_prog_ACLOCAL
2580 if test -n "$ACLOCAL"; then
2581 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2582 echo "${ECHO_T}$ACLOCAL" >&6
2583 else
2584 echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6
2588 test -n "$ACLOCAL" && break
2589 done
2590 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2592 for ac_prog in autoconf
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 if test -n "$AUTOCONF"; then
2602 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_AUTOCONF="$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2615 done
2616 done
2620 AUTOCONF=$ac_cv_prog_AUTOCONF
2621 if test -n "$AUTOCONF"; then
2622 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2623 echo "${ECHO_T}$AUTOCONF" >&6
2624 else
2625 echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6
2629 test -n "$AUTOCONF" && break
2630 done
2631 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2633 for ac_prog in autoheader
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642 if test -n "$AUTOHEADER"; then
2643 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_AUTOHEADER="$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2656 done
2657 done
2661 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2662 if test -n "$AUTOHEADER"; then
2663 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2664 echo "${ECHO_T}$AUTOHEADER" >&6
2665 else
2666 echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2670 test -n "$AUTOHEADER" && break
2671 done
2672 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2675 # Checks for header files.
2677 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2679 if test "${ac_cv_header_time+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2688 #include <sys/types.h>
2689 #include <sys/time.h>
2690 #include <time.h>
2693 main ()
2695 if ((struct tm *) 0)
2696 return 0;
2698 return 0;
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag"
2711 || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 ac_cv_header_time=yes
2724 else
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 ac_cv_header_time=no
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
2733 echo "${ECHO_T}$ac_cv_header_time" >&6
2734 if test $ac_cv_header_time = yes; then
2736 cat >>confdefs.h <<\_ACEOF
2737 #define TIME_WITH_SYS_TIME 1
2738 _ACEOF
2742 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
2743 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
2744 if test "${gcc_cv_header_string+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2753 #include <string.h>
2754 #include <strings.h>
2756 main ()
2760 return 0;
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 gcc_cv_header_string=yes
2786 else
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 gcc_cv_header_string=no
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
2795 echo "${ECHO_T}$gcc_cv_header_string" >&6
2796 if test $gcc_cv_header_string = yes; then
2798 cat >>confdefs.h <<\_ACEOF
2799 #define STRING_WITH_STRINGS 1
2800 _ACEOF
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2810 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2811 # On Suns, sometimes $CPP names a directory.
2812 if test -n "$CPP" && test -d "$CPP"; then
2813 CPP=
2815 if test -z "$CPP"; then
2816 if test "${ac_cv_prog_CPP+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 # Double quotes because CPP needs to be expanded
2820 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2822 ac_preproc_ok=false
2823 for ac_c_preproc_warn_flag in '' yes
2825 # Use a header file that comes with gcc, so configuring glibc
2826 # with a fresh cross-compiler works.
2827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2828 # <limits.h> exists even on freestanding compilers.
2829 # On the NeXT, cc -E runs the code through the compiler's parser,
2830 # not just through cpp. "Syntax error" is here to catch this case.
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #ifdef __STDC__
2838 # include <limits.h>
2839 #else
2840 # include <assert.h>
2841 #endif
2842 Syntax error
2843 _ACEOF
2844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2846 ac_status=$?
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } >/dev/null; then
2852 if test -s conftest.err; then
2853 ac_cpp_err=$ac_c_preproc_warn_flag
2854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2855 else
2856 ac_cpp_err=
2858 else
2859 ac_cpp_err=yes
2861 if test -z "$ac_cpp_err"; then
2863 else
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2867 # Broken: fails on valid input.
2868 continue
2870 rm -f conftest.err conftest.$ac_ext
2872 # OK, works on sane cases. Now check whether non-existent headers
2873 # can be detected and how.
2874 cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h. */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880 #include <ac_nonexistent.h>
2881 _ACEOF
2882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } >/dev/null; then
2890 if test -s conftest.err; then
2891 ac_cpp_err=$ac_c_preproc_warn_flag
2892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2893 else
2894 ac_cpp_err=
2896 else
2897 ac_cpp_err=yes
2899 if test -z "$ac_cpp_err"; then
2900 # Broken: success on invalid input.
2901 continue
2902 else
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2906 # Passes both tests.
2907 ac_preproc_ok=:
2908 break
2910 rm -f conftest.err conftest.$ac_ext
2912 done
2913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2914 rm -f conftest.err conftest.$ac_ext
2915 if $ac_preproc_ok; then
2916 break
2919 done
2920 ac_cv_prog_CPP=$CPP
2923 CPP=$ac_cv_prog_CPP
2924 else
2925 ac_cv_prog_CPP=$CPP
2927 echo "$as_me:$LINENO: result: $CPP" >&5
2928 echo "${ECHO_T}$CPP" >&6
2929 ac_preproc_ok=false
2930 for ac_c_preproc_warn_flag in '' yes
2932 # Use a header file that comes with gcc, so configuring glibc
2933 # with a fresh cross-compiler works.
2934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935 # <limits.h> exists even on freestanding compilers.
2936 # On the NeXT, cc -E runs the code through the compiler's parser,
2937 # not just through cpp. "Syntax error" is here to catch this case.
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2944 #ifdef __STDC__
2945 # include <limits.h>
2946 #else
2947 # include <assert.h>
2948 #endif
2949 Syntax error
2950 _ACEOF
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } >/dev/null; then
2959 if test -s conftest.err; then
2960 ac_cpp_err=$ac_c_preproc_warn_flag
2961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2962 else
2963 ac_cpp_err=
2965 else
2966 ac_cpp_err=yes
2968 if test -z "$ac_cpp_err"; then
2970 else
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 # Broken: fails on valid input.
2975 continue
2977 rm -f conftest.err conftest.$ac_ext
2979 # OK, works on sane cases. Now check whether non-existent headers
2980 # can be detected and how.
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #include <ac_nonexistent.h>
2988 _ACEOF
2989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } >/dev/null; then
2997 if test -s conftest.err; then
2998 ac_cpp_err=$ac_c_preproc_warn_flag
2999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3000 else
3001 ac_cpp_err=
3003 else
3004 ac_cpp_err=yes
3006 if test -z "$ac_cpp_err"; then
3007 # Broken: success on invalid input.
3008 continue
3009 else
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3013 # Passes both tests.
3014 ac_preproc_ok=:
3015 break
3017 rm -f conftest.err conftest.$ac_ext
3019 done
3020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3021 rm -f conftest.err conftest.$ac_ext
3022 if $ac_preproc_ok; then
3024 else
3025 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3026 See \`config.log' for more details." >&5
3027 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3028 See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 echo "$as_me:$LINENO: checking for egrep" >&5
3040 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3041 if test "${ac_cv_prog_egrep+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3045 then ac_cv_prog_egrep='grep -E'
3046 else ac_cv_prog_egrep='egrep'
3049 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3050 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3051 EGREP=$ac_cv_prog_egrep
3054 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3056 if test "${ac_cv_header_stdc+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3065 #include <stdlib.h>
3066 #include <stdarg.h>
3067 #include <string.h>
3068 #include <float.h>
3071 main ()
3075 return 0;
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080 (eval $ac_compile) 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -z "$ac_c_werror_flag"
3088 || test ! -s conftest.err'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 (eval $ac_try) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_cv_header_stdc=yes
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_cv_header_stdc=no
3107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3109 if test $ac_cv_header_stdc = yes; then
3110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3111 cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h. */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117 #include <string.h>
3119 _ACEOF
3120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3121 $EGREP "memchr" >/dev/null 2>&1; then
3123 else
3124 ac_cv_header_stdc=no
3126 rm -f conftest*
3130 if test $ac_cv_header_stdc = yes; then
3131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 #include <stdlib.h>
3140 _ACEOF
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142 $EGREP "free" >/dev/null 2>&1; then
3144 else
3145 ac_cv_header_stdc=no
3147 rm -f conftest*
3151 if test $ac_cv_header_stdc = yes; then
3152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3153 if test "$cross_compiling" = yes; then
3155 else
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 #include <ctype.h>
3163 #if ((' ' & 0x0FF) == 0x020)
3164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3166 #else
3167 # define ISLOWER(c) \
3168 (('a' <= (c) && (c) <= 'i') \
3169 || ('j' <= (c) && (c) <= 'r') \
3170 || ('s' <= (c) && (c) <= 'z'))
3171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3172 #endif
3174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3176 main ()
3178 int i;
3179 for (i = 0; i < 256; i++)
3180 if (XOR (islower (i), ISLOWER (i))
3181 || toupper (i) != TOUPPER (i))
3182 exit(2);
3183 exit (0);
3185 _ACEOF
3186 rm -f conftest$ac_exeext
3187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3188 (eval $ac_link) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3198 else
3199 echo "$as_me: program exited with status $ac_status" >&5
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 ( exit $ac_status )
3204 ac_cv_header_stdc=no
3206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3210 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3211 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3212 if test $ac_cv_header_stdc = yes; then
3214 cat >>confdefs.h <<\_ACEOF
3215 #define STDC_HEADERS 1
3216 _ACEOF
3220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3231 inttypes.h stdint.h unistd.h
3233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3234 echo "$as_me:$LINENO: checking for $ac_header" >&5
3235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h. */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3245 $ac_includes_default
3247 #include <$ac_header>
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251 (eval $ac_compile) 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try='test -z "$ac_c_werror_flag"
3259 || test ! -s conftest.err'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; } &&
3265 { ac_try='test -s conftest.$ac_objext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 eval "$as_ac_Header=yes"
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 eval "$as_ac_Header=no"
3278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3283 cat >>confdefs.h <<_ACEOF
3284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3285 _ACEOF
3289 done
3302 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3303 stdlib.h strings.h string.h sys/file.h unistd.h
3305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3307 echo "$as_me:$LINENO: checking for $ac_header" >&5
3308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3314 else
3315 # Is the header compilable?
3316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3324 $ac_includes_default
3325 #include <$ac_header>
3326 _ACEOF
3327 rm -f conftest.$ac_objext
3328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329 (eval $ac_compile) 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag"
3337 || test ! -s conftest.err'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 (eval $ac_try) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_header_compiler=yes
3350 else
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 ac_header_compiler=no
3356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3358 echo "${ECHO_T}$ac_header_compiler" >&6
3360 # Is the header present?
3361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 #include <$ac_header>
3370 _ACEOF
3371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382 else
3383 ac_cpp_err=
3385 else
3386 ac_cpp_err=yes
3388 if test -z "$ac_cpp_err"; then
3389 ac_header_preproc=yes
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 ac_header_preproc=no
3396 rm -f conftest.err conftest.$ac_ext
3397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3398 echo "${ECHO_T}$ac_header_preproc" >&6
3400 # So? What about this header?
3401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3402 yes:no: )
3403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3407 ac_header_preproc=yes
3409 no:yes:* )
3410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3423 cat <<\_ASBOX
3424 ## ----------------------------------- ##
3425 ## Report this to gcc-bugs@gcc.gnu.org ##
3426 ## ----------------------------------- ##
3427 _ASBOX
3429 sed "s/^/$as_me: WARNING: /" >&2
3431 esac
3432 echo "$as_me:$LINENO: checking for $ac_header" >&5
3433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 eval "$as_ac_Header=\$ac_header_preproc"
3439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3444 cat >>confdefs.h <<_ACEOF
3445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3446 _ACEOF
3450 done
3453 # Checks for typedefs, structures, and compiler characteristics.
3454 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3455 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3456 if test "${ac_cv_c_const+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3467 main ()
3469 /* FIXME: Include the comments suggested by Paul. */
3470 #ifndef __cplusplus
3471 /* Ultrix mips cc rejects this. */
3472 typedef int charset[2];
3473 const charset x;
3474 /* SunOS 4.1.1 cc rejects this. */
3475 char const *const *ccp;
3476 char **p;
3477 /* NEC SVR4.0.2 mips cc rejects this. */
3478 struct point {int x, y;};
3479 static struct point const zero = {0,0};
3480 /* AIX XL C 1.02.0.0 rejects this.
3481 It does not let you subtract one const X* pointer from another in
3482 an arm of an if-expression whose if-part is not a constant
3483 expression */
3484 const char *g = "string";
3485 ccp = &g + (g ? g-g : 0);
3486 /* HPUX 7.0 cc rejects these. */
3487 ++ccp;
3488 p = (char**) ccp;
3489 ccp = (char const *const *) p;
3490 { /* SCO 3.2v4 cc rejects this. */
3491 char *t;
3492 char const *s = 0 ? (char *) 0 : (char const *) 0;
3494 *t++ = 0;
3496 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3497 int x[] = {25, 17};
3498 const int *foo = &x[0];
3499 ++foo;
3501 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3502 typedef const int *iptr;
3503 iptr p = 0;
3504 ++p;
3506 { /* AIX XL C 1.02.0.0 rejects this saying
3507 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3508 struct s { int j; const int *ap[3]; };
3509 struct s *b; b->j = 5;
3511 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3512 const int foo = 10;
3514 #endif
3517 return 0;
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522 (eval $ac_compile) 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try='test -z "$ac_c_werror_flag"
3530 || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_c_const=yes
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 ac_cv_c_const=no
3549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3552 echo "${ECHO_T}$ac_cv_c_const" >&6
3553 if test $ac_cv_c_const = no; then
3555 cat >>confdefs.h <<\_ACEOF
3556 #define const
3557 _ACEOF
3561 echo "$as_me:$LINENO: checking for inline" >&5
3562 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3563 if test "${ac_cv_c_inline+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566 ac_cv_c_inline=no
3567 for ac_kw in inline __inline__ __inline; do
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #ifndef __cplusplus
3575 typedef int foo_t;
3576 static $ac_kw foo_t static_foo () {return 0; }
3577 $ac_kw foo_t foo () {return 0; }
3578 #endif
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 ac_cv_c_inline=$ac_kw; break
3604 else
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610 done
3613 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3614 echo "${ECHO_T}$ac_cv_c_inline" >&6
3617 case $ac_cv_c_inline in
3618 inline | yes) ;;
3620 case $ac_cv_c_inline in
3621 no) ac_val=;;
3622 *) ac_val=$ac_cv_c_inline;;
3623 esac
3624 cat >>confdefs.h <<_ACEOF
3625 #ifndef __cplusplus
3626 #define inline $ac_val
3627 #endif
3628 _ACEOF
3630 esac
3632 echo "$as_me:$LINENO: checking for obstacks" >&5
3633 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3634 if test "${ac_cv_func_obstack+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 #include "obstack.h"
3645 main ()
3647 struct obstack *mem; obstack_free(mem,(char *) 0)
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest$ac_exeext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_cv_func_obstack=yes
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 ac_cv_func_obstack=no
3681 rm -f conftest.err conftest.$ac_objext \
3682 conftest$ac_exeext conftest.$ac_ext
3684 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3685 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3686 if test $ac_cv_func_obstack = yes; then
3688 cat >>confdefs.h <<\_ACEOF
3689 #define HAVE_OBSTACK 1
3690 _ACEOF
3692 else
3693 case $LIBOBJS in
3694 "obstack.$ac_objext" | \
3695 *" obstack.$ac_objext" | \
3696 "obstack.$ac_objext "* | \
3697 *" obstack.$ac_objext "* ) ;;
3698 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
3699 esac
3703 echo "$as_me:$LINENO: checking for off_t" >&5
3704 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3705 if test "${ac_cv_type_off_t+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h. */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 $ac_includes_default
3716 main ()
3718 if ((off_t *) 0)
3719 return 0;
3720 if (sizeof (off_t))
3721 return 0;
3723 return 0;
3725 _ACEOF
3726 rm -f conftest.$ac_objext
3727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } &&
3735 { ac_try='test -z "$ac_c_werror_flag"
3736 || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_type_off_t=yes
3749 else
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 ac_cv_type_off_t=no
3755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3757 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3758 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3759 if test $ac_cv_type_off_t = yes; then
3761 else
3763 cat >>confdefs.h <<_ACEOF
3764 #define off_t long
3765 _ACEOF
3769 echo "$as_me:$LINENO: checking for size_t" >&5
3770 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3771 if test "${ac_cv_type_size_t+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3780 $ac_includes_default
3782 main ()
3784 if ((size_t *) 0)
3785 return 0;
3786 if (sizeof (size_t))
3787 return 0;
3789 return 0;
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest.$ac_objext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_cv_type_size_t=yes
3815 else
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 ac_cv_type_size_t=no
3821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3823 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3824 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3825 if test $ac_cv_type_size_t = yes; then
3827 else
3829 cat >>confdefs.h <<_ACEOF
3830 #define size_t unsigned
3831 _ACEOF
3835 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3836 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3837 if test "${ac_cv_struct_tm+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 #include <sys/types.h>
3847 #include <time.h>
3850 main ()
3852 struct tm *tp; tp->tm_sec;
3854 return 0;
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859 (eval $ac_compile) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_cv_struct_tm=time.h
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_cv_struct_tm=sys/time.h
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3889 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3890 if test $ac_cv_struct_tm = sys/time.h; then
3892 cat >>confdefs.h <<\_ACEOF
3893 #define TM_IN_SYS_TIME 1
3894 _ACEOF
3898 echo "$as_me:$LINENO: checking for int" >&5
3899 echo $ECHO_N "checking for int... $ECHO_C" >&6
3900 if test "${ac_cv_type_int+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 $ac_includes_default
3911 main ()
3913 if ((int *) 0)
3914 return 0;
3915 if (sizeof (int))
3916 return 0;
3918 return 0;
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest.$ac_objext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_type_int=yes
3944 else
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3948 ac_cv_type_int=no
3950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3953 echo "${ECHO_T}$ac_cv_type_int" >&6
3955 echo "$as_me:$LINENO: checking size of int" >&5
3956 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3957 if test "${ac_cv_sizeof_int+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 if test "$ac_cv_type_int" = yes; then
3961 # The cast to unsigned long works around a bug in the HP C Compiler
3962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3964 # This bug is HP SR number 8606223364.
3965 if test "$cross_compiling" = yes; then
3966 # Depending upon the size, compute the lo and hi bounds.
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 $ac_includes_default
3975 main ()
3977 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3978 test_array [0] = 0
3981 return 0;
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_lo=0 ac_mid=0
4007 while :; do
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 $ac_includes_default
4016 main ()
4018 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4019 test_array [0] = 0
4022 return 0;
4024 _ACEOF
4025 rm -f conftest.$ac_objext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_c_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 ac_hi=$ac_mid; break
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 ac_lo=`expr $ac_mid + 1`
4053 if test $ac_lo -le $ac_mid; then
4054 ac_lo= ac_hi=
4055 break
4057 ac_mid=`expr 2 '*' $ac_mid + 1`
4059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060 done
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h. */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 $ac_includes_default
4073 main ()
4075 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4076 test_array [0] = 0
4079 return 0;
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084 (eval $ac_compile) 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -z "$ac_c_werror_flag"
4092 || test ! -s conftest.err'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 ac_hi=-1 ac_mid=-1
4105 while :; do
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 $ac_includes_default
4114 main ()
4116 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4117 test_array [0] = 0
4120 return 0;
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -z "$ac_c_werror_flag"
4133 || test ! -s conftest.err'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; } &&
4139 { ac_try='test -s conftest.$ac_objext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 (eval $ac_try) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 ac_lo=$ac_mid; break
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 ac_hi=`expr '(' $ac_mid ')' - 1`
4151 if test $ac_mid -le $ac_hi; then
4152 ac_lo= ac_hi=
4153 break
4155 ac_mid=`expr 2 '*' $ac_mid`
4157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158 done
4159 else
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 ac_lo= ac_hi=
4165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 # Binary search between lo and hi bounds.
4169 while test "x$ac_lo" != "x$ac_hi"; do
4170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 $ac_includes_default
4179 main ()
4181 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4182 test_array [0] = 0
4185 return 0;
4187 _ACEOF
4188 rm -f conftest.$ac_objext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_hi=$ac_mid
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 ac_lo=`expr '(' $ac_mid ')' + 1`
4217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218 done
4219 case $ac_lo in
4220 ?*) ac_cv_sizeof_int=$ac_lo;;
4221 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4222 See \`config.log' for more details." >&5
4223 echo "$as_me: error: cannot compute sizeof (int), 77
4224 See \`config.log' for more details." >&2;}
4225 { (exit 1); exit 1; }; } ;;
4226 esac
4227 else
4228 if test "$cross_compiling" = yes; then
4229 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4230 See \`config.log' for more details." >&5
4231 echo "$as_me: error: cannot run test program while cross compiling
4232 See \`config.log' for more details." >&2;}
4233 { (exit 1); exit 1; }; }
4234 else
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 $ac_includes_default
4242 long longval () { return (long) (sizeof (int)); }
4243 unsigned long ulongval () { return (long) (sizeof (int)); }
4244 #include <stdio.h>
4245 #include <stdlib.h>
4247 main ()
4250 FILE *f = fopen ("conftest.val", "w");
4251 if (! f)
4252 exit (1);
4253 if (((long) (sizeof (int))) < 0)
4255 long i = longval ();
4256 if (i != ((long) (sizeof (int))))
4257 exit (1);
4258 fprintf (f, "%ld\n", i);
4260 else
4262 unsigned long i = ulongval ();
4263 if (i != ((long) (sizeof (int))))
4264 exit (1);
4265 fprintf (f, "%lu\n", i);
4267 exit (ferror (f) || fclose (f) != 0);
4270 return 0;
4272 _ACEOF
4273 rm -f conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_sizeof_int=`cat conftest.val`
4285 else
4286 echo "$as_me: program exited with status $ac_status" >&5
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 ( exit $ac_status )
4291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: cannot compute sizeof (int), 77
4294 See \`config.log' for more details." >&2;}
4295 { (exit 1); exit 1; }; }
4297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300 rm -f conftest.val
4301 else
4302 ac_cv_sizeof_int=0
4305 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4306 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4307 cat >>confdefs.h <<_ACEOF
4308 #define SIZEOF_INT $ac_cv_sizeof_int
4309 _ACEOF
4312 echo "$as_me:$LINENO: checking for long" >&5
4313 echo $ECHO_N "checking for long... $ECHO_C" >&6
4314 if test "${ac_cv_type_long+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h. */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323 $ac_includes_default
4325 main ()
4327 if ((long *) 0)
4328 return 0;
4329 if (sizeof (long))
4330 return 0;
4332 return 0;
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -z "$ac_c_werror_flag"
4345 || test ! -s conftest.err'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; } &&
4351 { ac_try='test -s conftest.$ac_objext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_cv_type_long=yes
4358 else
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 ac_cv_type_long=no
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4367 echo "${ECHO_T}$ac_cv_type_long" >&6
4369 echo "$as_me:$LINENO: checking size of long" >&5
4370 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4371 if test "${ac_cv_sizeof_long+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 if test "$ac_cv_type_long" = yes; then
4375 # The cast to unsigned long works around a bug in the HP C Compiler
4376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4378 # This bug is HP SR number 8606223364.
4379 if test "$cross_compiling" = yes; then
4380 # Depending upon the size, compute the lo and hi bounds.
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 $ac_includes_default
4389 main ()
4391 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4392 test_array [0] = 0
4395 return 0;
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag"
4408 || test ! -s conftest.err'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; } &&
4414 { ac_try='test -s conftest.$ac_objext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_lo=0 ac_mid=0
4421 while :; do
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 $ac_includes_default
4430 main ()
4432 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4433 test_array [0] = 0
4436 return 0;
4438 _ACEOF
4439 rm -f conftest.$ac_objext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441 (eval $ac_compile) 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -z "$ac_c_werror_flag"
4449 || test ! -s conftest.err'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_hi=$ac_mid; break
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_lo=`expr $ac_mid + 1`
4467 if test $ac_lo -le $ac_mid; then
4468 ac_lo= ac_hi=
4469 break
4471 ac_mid=`expr 2 '*' $ac_mid + 1`
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 done
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 $ac_includes_default
4487 main ()
4489 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4490 test_array [0] = 0
4493 return 0;
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest.$ac_objext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_hi=-1 ac_mid=-1
4519 while :; do
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 $ac_includes_default
4528 main ()
4530 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4531 test_array [0] = 0
4534 return 0;
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 ac_lo=$ac_mid; break
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 ac_hi=`expr '(' $ac_mid ')' - 1`
4565 if test $ac_mid -le $ac_hi; then
4566 ac_lo= ac_hi=
4567 break
4569 ac_mid=`expr 2 '*' $ac_mid`
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 done
4573 else
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4577 ac_lo= ac_hi=
4579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 # Binary search between lo and hi bounds.
4583 while test "x$ac_lo" != "x$ac_hi"; do
4584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4585 cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h. */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 $ac_includes_default
4593 main ()
4595 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4596 test_array [0] = 0
4599 return 0;
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4605 ac_status=$?
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_hi=$ac_mid
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_lo=`expr '(' $ac_mid ')' + 1`
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632 done
4633 case $ac_lo in
4634 ?*) ac_cv_sizeof_long=$ac_lo;;
4635 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: cannot compute sizeof (long), 77
4638 See \`config.log' for more details." >&2;}
4639 { (exit 1); exit 1; }; } ;;
4640 esac
4641 else
4642 if test "$cross_compiling" = yes; then
4643 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4644 See \`config.log' for more details." >&5
4645 echo "$as_me: error: cannot run test program while cross compiling
4646 See \`config.log' for more details." >&2;}
4647 { (exit 1); exit 1; }; }
4648 else
4649 cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h. */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 $ac_includes_default
4656 long longval () { return (long) (sizeof (long)); }
4657 unsigned long ulongval () { return (long) (sizeof (long)); }
4658 #include <stdio.h>
4659 #include <stdlib.h>
4661 main ()
4664 FILE *f = fopen ("conftest.val", "w");
4665 if (! f)
4666 exit (1);
4667 if (((long) (sizeof (long))) < 0)
4669 long i = longval ();
4670 if (i != ((long) (sizeof (long))))
4671 exit (1);
4672 fprintf (f, "%ld\n", i);
4674 else
4676 unsigned long i = ulongval ();
4677 if (i != ((long) (sizeof (long))))
4678 exit (1);
4679 fprintf (f, "%lu\n", i);
4681 exit (ferror (f) || fclose (f) != 0);
4684 return 0;
4686 _ACEOF
4687 rm -f conftest$ac_exeext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689 (eval $ac_link) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 ac_cv_sizeof_long=`cat conftest.val`
4699 else
4700 echo "$as_me: program exited with status $ac_status" >&5
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 ( exit $ac_status )
4705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4706 See \`config.log' for more details." >&5
4707 echo "$as_me: error: cannot compute sizeof (long), 77
4708 See \`config.log' for more details." >&2;}
4709 { (exit 1); exit 1; }; }
4711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4714 rm -f conftest.val
4715 else
4716 ac_cv_sizeof_long=0
4719 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4720 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4721 cat >>confdefs.h <<_ACEOF
4722 #define SIZEOF_LONG $ac_cv_sizeof_long
4723 _ACEOF
4731 for ac_func in putc_unlocked fputc_unlocked fputs_unlocked \
4732 fwrite_unlocked fprintf_unlocked
4734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4735 echo "$as_me:$LINENO: checking for $ac_func" >&5
4736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4737 if eval "test \"\${$as_ac_var+set}\" = set"; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4748 #define $ac_func innocuous_$ac_func
4750 /* System header to define __stub macros and hopefully few prototypes,
4751 which can conflict with char $ac_func (); below.
4752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4753 <limits.h> exists even on freestanding compilers. */
4755 #ifdef __STDC__
4756 # include <limits.h>
4757 #else
4758 # include <assert.h>
4759 #endif
4761 #undef $ac_func
4763 /* Override any gcc2 internal prototype to avoid an error. */
4764 #ifdef __cplusplus
4765 extern "C"
4767 #endif
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770 char $ac_func ();
4771 /* The GNU C library defines this for functions which it implements
4772 to always fail with ENOSYS. Some functions are actually named
4773 something starting with __ and the normal name is an alias. */
4774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4775 choke me
4776 #else
4777 char (*f) () = $ac_func;
4778 #endif
4779 #ifdef __cplusplus
4781 #endif
4784 main ()
4786 return f != $ac_func;
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext conftest$ac_exeext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4793 (eval $ac_link) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_c_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest$ac_exeext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 eval "$as_ac_var=yes"
4814 else
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 eval "$as_ac_var=no"
4820 rm -f conftest.err conftest.$ac_objext \
4821 conftest$ac_exeext conftest.$ac_ext
4823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4825 if test `eval echo '${'$as_ac_var'}'` = yes; then
4826 cat >>confdefs.h <<_ACEOF
4827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4828 _ACEOF
4831 done
4833 echo "$as_me:$LINENO: checking whether abort is declared" >&5
4834 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
4835 if test "${ac_cv_have_decl_abort+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h. */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844 $ac_includes_default
4846 main ()
4848 #ifndef abort
4849 char *p = (char *) abort;
4850 #endif
4853 return 0;
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 ac_cv_have_decl_abort=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 ac_cv_have_decl_abort=no
4885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4887 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
4888 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
4889 if test $ac_cv_have_decl_abort = yes; then
4891 cat >>confdefs.h <<_ACEOF
4892 #define HAVE_DECL_ABORT 1
4893 _ACEOF
4896 else
4897 cat >>confdefs.h <<_ACEOF
4898 #define HAVE_DECL_ABORT 0
4899 _ACEOF
4903 echo "$as_me:$LINENO: checking whether errno is declared" >&5
4904 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
4905 if test "${ac_cv_have_decl_errno+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 $ac_includes_default
4916 main ()
4918 #ifndef errno
4919 char *p = (char *) errno;
4920 #endif
4923 return 0;
4925 _ACEOF
4926 rm -f conftest.$ac_objext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_cv_have_decl_errno=yes
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 ac_cv_have_decl_errno=no
4955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4957 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
4958 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
4959 if test $ac_cv_have_decl_errno = yes; then
4961 cat >>confdefs.h <<_ACEOF
4962 #define HAVE_DECL_ERRNO 1
4963 _ACEOF
4966 else
4967 cat >>confdefs.h <<_ACEOF
4968 #define HAVE_DECL_ERRNO 0
4969 _ACEOF
4973 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
4974 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
4975 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 $ac_includes_default
4986 main ()
4988 #ifndef putc_unlocked
4989 char *p = (char *) putc_unlocked;
4990 #endif
4993 return 0;
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -z "$ac_c_werror_flag"
5006 || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest.$ac_objext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_cv_have_decl_putc_unlocked=yes
5019 else
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 ac_cv_have_decl_putc_unlocked=no
5025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
5028 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
5029 if test $ac_cv_have_decl_putc_unlocked = yes; then
5031 cat >>confdefs.h <<_ACEOF
5032 #define HAVE_DECL_PUTC_UNLOCKED 1
5033 _ACEOF
5036 else
5037 cat >>confdefs.h <<_ACEOF
5038 #define HAVE_DECL_PUTC_UNLOCKED 0
5039 _ACEOF
5043 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5044 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
5045 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 $ac_includes_default
5056 main ()
5058 #ifndef fputc_unlocked
5059 char *p = (char *) fputc_unlocked;
5060 #endif
5063 return 0;
5065 _ACEOF
5066 rm -f conftest.$ac_objext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag"
5076 || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 ac_cv_have_decl_fputc_unlocked=yes
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 ac_cv_have_decl_fputc_unlocked=no
5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5097 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5098 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5099 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 #define HAVE_DECL_FPUTC_UNLOCKED 1
5103 _ACEOF
5106 else
5107 cat >>confdefs.h <<_ACEOF
5108 #define HAVE_DECL_FPUTC_UNLOCKED 0
5109 _ACEOF
5113 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5114 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5115 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h. */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5124 $ac_includes_default
5126 main ()
5128 #ifndef fputs_unlocked
5129 char *p = (char *) fputs_unlocked;
5130 #endif
5133 return 0;
5135 _ACEOF
5136 rm -f conftest.$ac_objext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138 (eval $ac_compile) 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
5145 { ac_try='test -z "$ac_c_werror_flag"
5146 || test ! -s conftest.err'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 (eval $ac_try) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest.$ac_objext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_have_decl_fputs_unlocked=yes
5159 else
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 ac_cv_have_decl_fputs_unlocked=no
5165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5168 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
5169 if test $ac_cv_have_decl_fputs_unlocked = yes; then
5171 cat >>confdefs.h <<_ACEOF
5172 #define HAVE_DECL_FPUTS_UNLOCKED 1
5173 _ACEOF
5176 else
5177 cat >>confdefs.h <<_ACEOF
5178 #define HAVE_DECL_FPUTS_UNLOCKED 0
5179 _ACEOF
5183 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5184 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
5185 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h. */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 $ac_includes_default
5196 main ()
5198 #ifndef fwrite_unlocked
5199 char *p = (char *) fwrite_unlocked;
5200 #endif
5203 return 0;
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208 (eval $ac_compile) 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try='test -z "$ac_c_werror_flag"
5216 || test ! -s conftest.err'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; } &&
5222 { ac_try='test -s conftest.$ac_objext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 (eval $ac_try) 2>&5
5225 ac_status=$?
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_cv_have_decl_fwrite_unlocked=yes
5229 else
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5233 ac_cv_have_decl_fwrite_unlocked=no
5235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5237 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5238 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
5239 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5241 cat >>confdefs.h <<_ACEOF
5242 #define HAVE_DECL_FWRITE_UNLOCKED 1
5243 _ACEOF
5246 else
5247 cat >>confdefs.h <<_ACEOF
5248 #define HAVE_DECL_FWRITE_UNLOCKED 0
5249 _ACEOF
5253 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5254 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5255 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h. */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 $ac_includes_default
5266 main ()
5268 #ifndef fprintf_unlocked
5269 char *p = (char *) fprintf_unlocked;
5270 #endif
5273 return 0;
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278 (eval $ac_compile) 2>conftest.er1
5279 ac_status=$?
5280 grep -v '^ *+' conftest.er1 >conftest.err
5281 rm -f conftest.er1
5282 cat conftest.err >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try='test -z "$ac_c_werror_flag"
5286 || test ! -s conftest.err'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; } &&
5292 { ac_try='test -s conftest.$ac_objext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 ac_cv_have_decl_fprintf_unlocked=yes
5299 else
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 ac_cv_have_decl_fprintf_unlocked=no
5305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
5308 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
5309 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
5311 cat >>confdefs.h <<_ACEOF
5312 #define HAVE_DECL_FPRINTF_UNLOCKED 1
5313 _ACEOF
5316 else
5317 cat >>confdefs.h <<_ACEOF
5318 #define HAVE_DECL_FPRINTF_UNLOCKED 0
5319 _ACEOF
5326 # Checks for library functions.
5327 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5328 # for constant arguments. Useless!
5329 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5330 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5331 if test "${ac_cv_working_alloca_h+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334 cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h. */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <alloca.h>
5342 main ()
5344 char *p = (char *) alloca (2 * sizeof (int));
5346 return 0;
5348 _ACEOF
5349 rm -f conftest.$ac_objext conftest$ac_exeext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351 (eval $ac_link) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag"
5359 || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try='test -s conftest$ac_exeext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_cv_working_alloca_h=yes
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 ac_cv_working_alloca_h=no
5378 rm -f conftest.err conftest.$ac_objext \
5379 conftest$ac_exeext conftest.$ac_ext
5381 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5382 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5383 if test $ac_cv_working_alloca_h = yes; then
5385 cat >>confdefs.h <<\_ACEOF
5386 #define HAVE_ALLOCA_H 1
5387 _ACEOF
5391 echo "$as_me:$LINENO: checking for alloca" >&5
5392 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5393 if test "${ac_cv_func_alloca_works+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h. */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 #ifdef __GNUC__
5403 # define alloca __builtin_alloca
5404 #else
5405 # ifdef _MSC_VER
5406 # include <malloc.h>
5407 # define alloca _alloca
5408 # else
5409 # if HAVE_ALLOCA_H
5410 # include <alloca.h>
5411 # else
5412 # ifdef _AIX
5413 #pragma alloca
5414 # else
5415 # ifndef alloca /* predefined by HP cc +Olibcalls */
5416 char *alloca ();
5417 # endif
5418 # endif
5419 # endif
5420 # endif
5421 #endif
5424 main ()
5426 char *p = (char *) alloca (1);
5428 return 0;
5430 _ACEOF
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433 (eval $ac_link) 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest$ac_exeext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_cv_func_alloca_works=yes
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_cv_func_alloca_works=no
5460 rm -f conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5463 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5464 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5466 if test $ac_cv_func_alloca_works = yes; then
5468 cat >>confdefs.h <<\_ACEOF
5469 #define HAVE_ALLOCA 1
5470 _ACEOF
5472 else
5473 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5474 # that cause trouble. Some versions do not even contain alloca or
5475 # contain a buggy version. If you still want to use their alloca,
5476 # use ar to extract alloca.o from them instead of compiling alloca.c.
5478 ALLOCA=alloca.$ac_objext
5480 cat >>confdefs.h <<\_ACEOF
5481 #define C_ALLOCA 1
5482 _ACEOF
5485 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5486 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5487 if test "${ac_cv_os_cray+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 #if defined(CRAY) && ! defined(CRAY2)
5497 webecray
5498 #else
5499 wenotbecray
5500 #endif
5502 _ACEOF
5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504 $EGREP "webecray" >/dev/null 2>&1; then
5505 ac_cv_os_cray=yes
5506 else
5507 ac_cv_os_cray=no
5509 rm -f conftest*
5512 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5513 echo "${ECHO_T}$ac_cv_os_cray" >&6
5514 if test $ac_cv_os_cray = yes; then
5515 for ac_func in _getb67 GETB67 getb67; do
5516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5517 echo "$as_me:$LINENO: checking for $ac_func" >&5
5518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5519 if eval "test \"\${$as_ac_var+set}\" = set"; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5530 #define $ac_func innocuous_$ac_func
5532 /* System header to define __stub macros and hopefully few prototypes,
5533 which can conflict with char $ac_func (); below.
5534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535 <limits.h> exists even on freestanding compilers. */
5537 #ifdef __STDC__
5538 # include <limits.h>
5539 #else
5540 # include <assert.h>
5541 #endif
5543 #undef $ac_func
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 #ifdef __cplusplus
5547 extern "C"
5549 #endif
5550 /* We use char because int might match the return type of a gcc2
5551 builtin and then its argument prototype would still apply. */
5552 char $ac_func ();
5553 /* The GNU C library defines this for functions which it implements
5554 to always fail with ENOSYS. Some functions are actually named
5555 something starting with __ and the normal name is an alias. */
5556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5557 choke me
5558 #else
5559 char (*f) () = $ac_func;
5560 #endif
5561 #ifdef __cplusplus
5563 #endif
5566 main ()
5568 return f != $ac_func;
5570 return 0;
5572 _ACEOF
5573 rm -f conftest.$ac_objext conftest$ac_exeext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575 (eval $ac_link) 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try='test -z "$ac_c_werror_flag"
5583 || test ! -s conftest.err'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; } &&
5589 { ac_try='test -s conftest$ac_exeext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 eval "$as_ac_var=yes"
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 eval "$as_ac_var=no"
5602 rm -f conftest.err conftest.$ac_objext \
5603 conftest$ac_exeext conftest.$ac_ext
5605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5607 if test `eval echo '${'$as_ac_var'}'` = yes; then
5609 cat >>confdefs.h <<_ACEOF
5610 #define CRAY_STACKSEG_END $ac_func
5611 _ACEOF
5613 break
5616 done
5619 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5620 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5621 if test "${ac_cv_c_stack_direction+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 if test "$cross_compiling" = yes; then
5625 ac_cv_c_stack_direction=0
5626 else
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5634 find_stack_direction ()
5636 static char *addr = 0;
5637 auto char dummy;
5638 if (addr == 0)
5640 addr = &dummy;
5641 return find_stack_direction ();
5643 else
5644 return (&dummy > addr) ? 1 : -1;
5648 main ()
5650 exit (find_stack_direction () < 0);
5652 _ACEOF
5653 rm -f conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_cv_c_stack_direction=1
5665 else
5666 echo "$as_me: program exited with status $ac_status" >&5
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 ( exit $ac_status )
5671 ac_cv_c_stack_direction=-1
5673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5676 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5677 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5679 cat >>confdefs.h <<_ACEOF
5680 #define STACK_DIRECTION $ac_cv_c_stack_direction
5681 _ACEOF
5686 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5687 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5688 if test "${ac_cv_header_stdc+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <stdlib.h>
5698 #include <stdarg.h>
5699 #include <string.h>
5700 #include <float.h>
5703 main ()
5707 return 0;
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_header_stdc=yes
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_cv_header_stdc=no
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 if test $ac_cv_header_stdc = yes; then
5742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <string.h>
5751 _ACEOF
5752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5753 $EGREP "memchr" >/dev/null 2>&1; then
5755 else
5756 ac_cv_header_stdc=no
5758 rm -f conftest*
5762 if test $ac_cv_header_stdc = yes; then
5763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 #include <stdlib.h>
5772 _ACEOF
5773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5774 $EGREP "free" >/dev/null 2>&1; then
5776 else
5777 ac_cv_header_stdc=no
5779 rm -f conftest*
5783 if test $ac_cv_header_stdc = yes; then
5784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5785 if test "$cross_compiling" = yes; then
5787 else
5788 cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h. */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 #include <ctype.h>
5795 #if ((' ' & 0x0FF) == 0x020)
5796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5798 #else
5799 # define ISLOWER(c) \
5800 (('a' <= (c) && (c) <= 'i') \
5801 || ('j' <= (c) && (c) <= 'r') \
5802 || ('s' <= (c) && (c) <= 'z'))
5803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5804 #endif
5806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5808 main ()
5810 int i;
5811 for (i = 0; i < 256; i++)
5812 if (XOR (islower (i), ISLOWER (i))
5813 || toupper (i) != TOUPPER (i))
5814 exit(2);
5815 exit (0);
5817 _ACEOF
5818 rm -f conftest$ac_exeext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5820 (eval $ac_link) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5830 else
5831 echo "$as_me: program exited with status $ac_status" >&5
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 ( exit $ac_status )
5836 ac_cv_header_stdc=no
5838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5842 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5843 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5844 if test $ac_cv_header_stdc = yes; then
5846 cat >>confdefs.h <<\_ACEOF
5847 #define STDC_HEADERS 1
5848 _ACEOF
5853 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
5854 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5855 if test "${am_cv_langinfo_codeset+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <langinfo.h>
5866 main ()
5868 char* cs = nl_langinfo(CODESET);
5870 return 0;
5872 _ACEOF
5873 rm -f conftest.$ac_objext conftest$ac_exeext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875 (eval $ac_link) 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag"
5883 || test ! -s conftest.err'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest$ac_exeext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 am_cv_langinfo_codeset=yes
5896 else
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 am_cv_langinfo_codeset=no
5902 rm -f conftest.err conftest.$ac_objext \
5903 conftest$ac_exeext conftest.$ac_ext
5906 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
5907 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5908 if test $am_cv_langinfo_codeset = yes; then
5910 cat >>confdefs.h <<\_ACEOF
5911 #define HAVE_LANGINFO_CODESET 1
5912 _ACEOF
5916 # If we haven't got the data from the intl directory,
5917 # assume NLS is disabled.
5918 USE_NLS=no
5919 LIBINTL=
5920 LIBINTL_DEP=
5921 INCINTL=
5922 XGETTEXT=
5923 GMSGFMT=
5924 POSUB=
5925 if test -f ../intl/config.intl; then
5926 . ../intl/config.intl
5928 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5929 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5930 if test x"$USE_NLS" != xyes; then
5931 echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5933 else
5934 echo "$as_me:$LINENO: result: yes" >&5
5935 echo "${ECHO_T}yes" >&6
5937 cat >>confdefs.h <<\_ACEOF
5938 #define ENABLE_NLS 1
5939 _ACEOF
5942 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5943 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5944 # Look for .po and .gmo files in the source directory.
5945 CATALOGS=
5946 XLINGUAS=
5947 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5948 # If there aren't any .gmo files the shell will give us the
5949 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5950 # weeded out.
5951 case "$cat" in *\**)
5952 continue;;
5953 esac
5954 # The quadruple backslash is collapsed to a double backslash
5955 # by the backticks, then collapsed again by the double quotes,
5956 # leaving us with one backslash in the sed expression (right
5957 # before the dot that mustn't act as a wildcard).
5958 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5959 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5960 # The user is allowed to set LINGUAS to a list of languages to
5961 # install catalogs for. If it's empty that means "all of them."
5962 if test "x$LINGUAS" = x; then
5963 CATALOGS="$CATALOGS $cat"
5964 XLINGUAS="$XLINGUAS $lang"
5965 else
5966 case "$LINGUAS" in *$lang*)
5967 CATALOGS="$CATALOGS $cat"
5968 XLINGUAS="$XLINGUAS $lang"
5970 esac
5972 done
5973 LINGUAS="$XLINGUAS"
5974 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5975 echo "${ECHO_T}$LINGUAS" >&6
5978 echo "$as_me:$LINENO: checking for uchar" >&5
5979 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
5980 if test "${gcc_cv_type_uchar+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5990 #include "ansidecl.h"
5991 #include "system.h"
5994 main ()
5996 if ((uchar *)0) return 0;
5997 if (sizeof(uchar)) return 0;
5999 return 0;
6001 _ACEOF
6002 rm -f conftest.$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004 (eval $ac_compile) 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -z "$ac_c_werror_flag"
6012 || test ! -s conftest.err'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 (eval $ac_try) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; } &&
6018 { ac_try='test -s conftest.$ac_objext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_type_uchar=yes
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 ac_cv_type_uchar=no
6031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6033 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
6034 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
6035 if test $ac_cv_type_uchar = yes; then
6037 cat >>confdefs.h <<\_ACEOF
6038 #define HAVE_UCHAR 1
6039 _ACEOF
6044 if test "X$prefix" = "XNONE"; then
6045 acl_final_prefix="$ac_default_prefix"
6046 else
6047 acl_final_prefix="$prefix"
6049 if test "X$exec_prefix" = "XNONE"; then
6050 acl_final_exec_prefix='${prefix}'
6051 else
6052 acl_final_exec_prefix="$exec_prefix"
6054 acl_save_prefix="$prefix"
6055 prefix="$acl_final_prefix"
6056 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6057 prefix="$acl_save_prefix"
6060 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6061 if test "${with_gnu_ld+set}" = set; then
6062 withval="$with_gnu_ld"
6063 test "$withval" = no || with_gnu_ld=yes
6064 else
6065 with_gnu_ld=no
6067 # Prepare PATH_SEPARATOR.
6068 # The user is always right.
6069 if test "${PATH_SEPARATOR+set}" != set; then
6070 echo "#! /bin/sh" >conf$$.sh
6071 echo "exit 0" >>conf$$.sh
6072 chmod +x conf$$.sh
6073 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6074 PATH_SEPARATOR=';'
6075 else
6076 PATH_SEPARATOR=:
6078 rm -f conf$$.sh
6080 ac_prog=ld
6081 if test "$GCC" = yes; then
6082 # Check if gcc -print-prog-name=ld gives a path.
6083 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6084 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6085 case $host in
6086 *-*-mingw*)
6087 # gcc leaves a trailing carriage return which upsets mingw
6088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6091 esac
6092 case $ac_prog in
6093 # Accept absolute paths.
6094 [\\/]* | [A-Za-z]:[\\/]*)
6095 re_direlt='/[^/][^/]*/\.\./'
6096 # Canonicalize the path of ld
6097 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6098 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6099 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6100 done
6101 test -z "$LD" && LD="$ac_prog"
6104 # If it fails, then pretend we aren't using GCC.
6105 ac_prog=ld
6108 # If it is relative, then search for the first ld in PATH.
6109 with_gnu_ld=unknown
6111 esac
6112 elif test "$with_gnu_ld" = yes; then
6113 echo "$as_me:$LINENO: checking for GNU ld" >&5
6114 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6115 else
6116 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6117 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6119 if test "${acl_cv_path_LD+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 if test -z "$LD"; then
6123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6124 for ac_dir in $PATH; do
6125 test -z "$ac_dir" && ac_dir=.
6126 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6127 acl_cv_path_LD="$ac_dir/$ac_prog"
6128 # Check to see if the program is GNU ld. I'd rather use --version,
6129 # but apparently some GNU ld's only accept -v.
6130 # Break only if it was the GNU/non-GNU ld that we prefer.
6131 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6132 *GNU* | *'with BFD'*)
6133 test "$with_gnu_ld" != no && break ;;
6135 test "$with_gnu_ld" != yes && break ;;
6136 esac
6138 done
6139 IFS="$ac_save_ifs"
6140 else
6141 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6145 LD="$acl_cv_path_LD"
6146 if test -n "$LD"; then
6147 echo "$as_me:$LINENO: result: $LD" >&5
6148 echo "${ECHO_T}$LD" >&6
6149 else
6150 echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6
6153 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6154 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6155 { (exit 1); exit 1; }; }
6156 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6157 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6158 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6162 case `$LD -v 2>&1 </dev/null` in
6163 *GNU* | *'with BFD'*)
6164 acl_cv_prog_gnu_ld=yes ;;
6166 acl_cv_prog_gnu_ld=no ;;
6167 esac
6169 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6170 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6171 with_gnu_ld=$acl_cv_prog_gnu_ld
6175 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6176 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6177 if test "${acl_cv_rpath+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6181 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6182 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6183 . ./conftest.sh
6184 rm -f ./conftest.sh
6185 acl_cv_rpath=done
6188 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6189 echo "${ECHO_T}$acl_cv_rpath" >&6
6190 wl="$acl_cv_wl"
6191 libext="$acl_cv_libext"
6192 shlibext="$acl_cv_shlibext"
6193 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6194 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6195 hardcode_direct="$acl_cv_hardcode_direct"
6196 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6197 # Check whether --enable-rpath or --disable-rpath was given.
6198 if test "${enable_rpath+set}" = set; then
6199 enableval="$enable_rpath"
6201 else
6202 enable_rpath=yes
6211 use_additional=yes
6213 acl_save_prefix="$prefix"
6214 prefix="$acl_final_prefix"
6215 acl_save_exec_prefix="$exec_prefix"
6216 exec_prefix="$acl_final_exec_prefix"
6218 eval additional_includedir=\"$includedir\"
6219 eval additional_libdir=\"$libdir\"
6221 exec_prefix="$acl_save_exec_prefix"
6222 prefix="$acl_save_prefix"
6225 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6226 if test "${with_libiconv_prefix+set}" = set; then
6227 withval="$with_libiconv_prefix"
6229 if test "X$withval" = "Xno"; then
6230 use_additional=no
6231 else
6232 if test "X$withval" = "X"; then
6234 acl_save_prefix="$prefix"
6235 prefix="$acl_final_prefix"
6236 acl_save_exec_prefix="$exec_prefix"
6237 exec_prefix="$acl_final_exec_prefix"
6239 eval additional_includedir=\"$includedir\"
6240 eval additional_libdir=\"$libdir\"
6242 exec_prefix="$acl_save_exec_prefix"
6243 prefix="$acl_save_prefix"
6245 else
6246 additional_includedir="$withval/include"
6247 additional_libdir="$withval/lib"
6252 LIBICONV=
6253 LTLIBICONV=
6254 INCICONV=
6255 rpathdirs=
6256 ltrpathdirs=
6257 names_already_handled=
6258 names_next_round='iconv '
6259 while test -n "$names_next_round"; do
6260 names_this_round="$names_next_round"
6261 names_next_round=
6262 for name in $names_this_round; do
6263 already_handled=
6264 for n in $names_already_handled; do
6265 if test "$n" = "$name"; then
6266 already_handled=yes
6267 break
6269 done
6270 if test -z "$already_handled"; then
6271 names_already_handled="$names_already_handled $name"
6272 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6273 eval value=\"\$HAVE_LIB$uppername\"
6274 if test -n "$value"; then
6275 if test "$value" = yes; then
6276 eval value=\"\$LIB$uppername\"
6277 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6278 eval value=\"\$LTLIB$uppername\"
6279 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6280 else
6283 else
6284 found_dir=
6285 found_la=
6286 found_so=
6287 found_a=
6288 if test $use_additional = yes; then
6289 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6290 found_dir="$additional_libdir"
6291 found_so="$additional_libdir/lib$name.$shlibext"
6292 if test -f "$additional_libdir/lib$name.la"; then
6293 found_la="$additional_libdir/lib$name.la"
6295 else
6296 if test -f "$additional_libdir/lib$name.$libext"; then
6297 found_dir="$additional_libdir"
6298 found_a="$additional_libdir/lib$name.$libext"
6299 if test -f "$additional_libdir/lib$name.la"; then
6300 found_la="$additional_libdir/lib$name.la"
6305 if test "X$found_dir" = "X"; then
6306 for x in $LDFLAGS $LTLIBICONV; do
6308 acl_save_prefix="$prefix"
6309 prefix="$acl_final_prefix"
6310 acl_save_exec_prefix="$exec_prefix"
6311 exec_prefix="$acl_final_exec_prefix"
6312 eval x=\"$x\"
6313 exec_prefix="$acl_save_exec_prefix"
6314 prefix="$acl_save_prefix"
6316 case "$x" in
6317 -L*)
6318 dir=`echo "X$x" | sed -e 's/^X-L//'`
6319 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6320 found_dir="$dir"
6321 found_so="$dir/lib$name.$shlibext"
6322 if test -f "$dir/lib$name.la"; then
6323 found_la="$dir/lib$name.la"
6325 else
6326 if test -f "$dir/lib$name.$libext"; then
6327 found_dir="$dir"
6328 found_a="$dir/lib$name.$libext"
6329 if test -f "$dir/lib$name.la"; then
6330 found_la="$dir/lib$name.la"
6335 esac
6336 if test "X$found_dir" != "X"; then
6337 break
6339 done
6341 if test "X$found_dir" != "X"; then
6342 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6343 if test "X$found_so" != "X"; then
6344 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6345 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6346 else
6347 haveit=
6348 for x in $ltrpathdirs; do
6349 if test "X$x" = "X$found_dir"; then
6350 haveit=yes
6351 break
6353 done
6354 if test -z "$haveit"; then
6355 ltrpathdirs="$ltrpathdirs $found_dir"
6357 if test "$hardcode_direct" = yes; then
6358 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6359 else
6360 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6361 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6362 haveit=
6363 for x in $rpathdirs; do
6364 if test "X$x" = "X$found_dir"; then
6365 haveit=yes
6366 break
6368 done
6369 if test -z "$haveit"; then
6370 rpathdirs="$rpathdirs $found_dir"
6372 else
6373 haveit=
6374 for x in $LDFLAGS $LIBICONV; do
6376 acl_save_prefix="$prefix"
6377 prefix="$acl_final_prefix"
6378 acl_save_exec_prefix="$exec_prefix"
6379 exec_prefix="$acl_final_exec_prefix"
6380 eval x=\"$x\"
6381 exec_prefix="$acl_save_exec_prefix"
6382 prefix="$acl_save_prefix"
6384 if test "X$x" = "X-L$found_dir"; then
6385 haveit=yes
6386 break
6388 done
6389 if test -z "$haveit"; then
6390 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6392 if test "$hardcode_minus_L" != no; then
6393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6394 else
6395 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6400 else
6401 if test "X$found_a" != "X"; then
6402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6403 else
6404 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6407 additional_includedir=
6408 case "$found_dir" in
6409 */lib | */lib/)
6410 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6411 additional_includedir="$basedir/include"
6413 esac
6414 if test "X$additional_includedir" != "X"; then
6415 if test "X$additional_includedir" != "X/usr/include"; then
6416 haveit=
6417 if test "X$additional_includedir" = "X/usr/local/include"; then
6418 if test -n "$GCC"; then
6419 case $host_os in
6420 linux*) haveit=yes;;
6421 esac
6424 if test -z "$haveit"; then
6425 for x in $CPPFLAGS $INCICONV; do
6427 acl_save_prefix="$prefix"
6428 prefix="$acl_final_prefix"
6429 acl_save_exec_prefix="$exec_prefix"
6430 exec_prefix="$acl_final_exec_prefix"
6431 eval x=\"$x\"
6432 exec_prefix="$acl_save_exec_prefix"
6433 prefix="$acl_save_prefix"
6435 if test "X$x" = "X-I$additional_includedir"; then
6436 haveit=yes
6437 break
6439 done
6440 if test -z "$haveit"; then
6441 if test -d "$additional_includedir"; then
6442 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6448 if test -n "$found_la"; then
6449 save_libdir="$libdir"
6450 case "$found_la" in
6451 */* | *\\*) . "$found_la" ;;
6452 *) . "./$found_la" ;;
6453 esac
6454 libdir="$save_libdir"
6455 for dep in $dependency_libs; do
6456 case "$dep" in
6457 -L*)
6458 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6459 if test "X$additional_libdir" != "X/usr/lib"; then
6460 haveit=
6461 if test "X$additional_libdir" = "X/usr/local/lib"; then
6462 if test -n "$GCC"; then
6463 case $host_os in
6464 linux*) haveit=yes;;
6465 esac
6468 if test -z "$haveit"; then
6469 haveit=
6470 for x in $LDFLAGS $LIBICONV; do
6472 acl_save_prefix="$prefix"
6473 prefix="$acl_final_prefix"
6474 acl_save_exec_prefix="$exec_prefix"
6475 exec_prefix="$acl_final_exec_prefix"
6476 eval x=\"$x\"
6477 exec_prefix="$acl_save_exec_prefix"
6478 prefix="$acl_save_prefix"
6480 if test "X$x" = "X-L$additional_libdir"; then
6481 haveit=yes
6482 break
6484 done
6485 if test -z "$haveit"; then
6486 if test -d "$additional_libdir"; then
6487 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6490 haveit=
6491 for x in $LDFLAGS $LTLIBICONV; do
6493 acl_save_prefix="$prefix"
6494 prefix="$acl_final_prefix"
6495 acl_save_exec_prefix="$exec_prefix"
6496 exec_prefix="$acl_final_exec_prefix"
6497 eval x=\"$x\"
6498 exec_prefix="$acl_save_exec_prefix"
6499 prefix="$acl_save_prefix"
6501 if test "X$x" = "X-L$additional_libdir"; then
6502 haveit=yes
6503 break
6505 done
6506 if test -z "$haveit"; then
6507 if test -d "$additional_libdir"; then
6508 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6514 -R*)
6515 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6516 if test "$enable_rpath" != no; then
6517 haveit=
6518 for x in $rpathdirs; do
6519 if test "X$x" = "X$dir"; then
6520 haveit=yes
6521 break
6523 done
6524 if test -z "$haveit"; then
6525 rpathdirs="$rpathdirs $dir"
6527 haveit=
6528 for x in $ltrpathdirs; do
6529 if test "X$x" = "X$dir"; then
6530 haveit=yes
6531 break
6533 done
6534 if test -z "$haveit"; then
6535 ltrpathdirs="$ltrpathdirs $dir"
6539 -l*)
6540 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6542 *.la)
6543 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6546 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6547 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6549 esac
6550 done
6552 else
6553 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6558 done
6559 done
6560 if test "X$rpathdirs" != "X"; then
6561 if test -n "$hardcode_libdir_separator"; then
6562 alldirs=
6563 for found_dir in $rpathdirs; do
6564 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6565 done
6566 acl_save_libdir="$libdir"
6567 libdir="$alldirs"
6568 eval flag=\"$hardcode_libdir_flag_spec\"
6569 libdir="$acl_save_libdir"
6570 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6571 else
6572 for found_dir in $rpathdirs; do
6573 acl_save_libdir="$libdir"
6574 libdir="$found_dir"
6575 eval flag=\"$hardcode_libdir_flag_spec\"
6576 libdir="$acl_save_libdir"
6577 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6578 done
6581 if test "X$ltrpathdirs" != "X"; then
6582 for found_dir in $ltrpathdirs; do
6583 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6584 done
6593 am_save_CPPFLAGS="$CPPFLAGS"
6595 for element in $INCICONV; do
6596 haveit=
6597 for x in $CPPFLAGS; do
6599 acl_save_prefix="$prefix"
6600 prefix="$acl_final_prefix"
6601 acl_save_exec_prefix="$exec_prefix"
6602 exec_prefix="$acl_final_exec_prefix"
6603 eval x=\"$x\"
6604 exec_prefix="$acl_save_exec_prefix"
6605 prefix="$acl_save_prefix"
6607 if test "X$x" = "X$element"; then
6608 haveit=yes
6609 break
6611 done
6612 if test -z "$haveit"; then
6613 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6615 done
6618 echo "$as_me:$LINENO: checking for iconv" >&5
6619 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6620 if test "${am_cv_func_iconv+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6624 am_cv_func_iconv="no, consider installing GNU libiconv"
6625 am_cv_lib_iconv=no
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 #include <stdlib.h>
6633 #include <iconv.h>
6635 main ()
6637 iconv_t cd = iconv_open("","");
6638 iconv(cd,NULL,NULL,NULL,NULL);
6639 iconv_close(cd);
6641 return 0;
6643 _ACEOF
6644 rm -f conftest.$ac_objext conftest$ac_exeext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6646 (eval $ac_link) 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try='test -z "$ac_c_werror_flag"
6654 || test ! -s conftest.err'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; } &&
6660 { ac_try='test -s conftest$ac_exeext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 am_cv_func_iconv=yes
6667 else
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6672 rm -f conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6674 if test "$am_cv_func_iconv" != yes; then
6675 am_save_LIBS="$LIBS"
6676 LIBS="$LIBS $LIBICONV"
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 #include <stdlib.h>
6684 #include <iconv.h>
6686 main ()
6688 iconv_t cd = iconv_open("","");
6689 iconv(cd,NULL,NULL,NULL,NULL);
6690 iconv_close(cd);
6692 return 0;
6694 _ACEOF
6695 rm -f conftest.$ac_objext conftest$ac_exeext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6697 (eval $ac_link) 2>conftest.er1
6698 ac_status=$?
6699 grep -v '^ *+' conftest.er1 >conftest.err
6700 rm -f conftest.er1
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -z "$ac_c_werror_flag"
6705 || test ! -s conftest.err'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; } &&
6711 { ac_try='test -s conftest$ac_exeext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 am_cv_lib_iconv=yes
6718 am_cv_func_iconv=yes
6719 else
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6724 rm -f conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6726 LIBS="$am_save_LIBS"
6730 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6731 echo "${ECHO_T}$am_cv_func_iconv" >&6
6732 if test "$am_cv_func_iconv" = yes; then
6734 cat >>confdefs.h <<\_ACEOF
6735 #define HAVE_ICONV 1
6736 _ACEOF
6739 if test "$am_cv_lib_iconv" = yes; then
6740 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6741 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6742 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6743 echo "${ECHO_T}$LIBICONV" >&6
6744 else
6745 CPPFLAGS="$am_save_CPPFLAGS"
6746 LIBICONV=
6747 LTLIBICONV=
6752 if test "$am_cv_func_iconv" = yes; then
6753 echo "$as_me:$LINENO: checking for iconv declaration" >&5
6754 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6755 if test "${am_cv_proto_iconv+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6759 cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6766 #include <stdlib.h>
6767 #include <iconv.h>
6768 extern
6769 #ifdef __cplusplus
6771 #endif
6772 #if defined(__STDC__) || defined(__cplusplus)
6773 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6774 #else
6775 size_t iconv();
6776 #endif
6779 main ()
6783 return 0;
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -z "$ac_c_werror_flag"
6796 || test ! -s conftest.err'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 (eval $ac_try) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; } &&
6802 { ac_try='test -s conftest.$ac_objext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 am_cv_proto_iconv_arg1=""
6809 else
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6813 am_cv_proto_iconv_arg1="const"
6815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6816 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6819 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6820 echo "$as_me:$LINENO: result: ${ac_t:-
6821 }$am_cv_proto_iconv" >&5
6822 echo "${ECHO_T}${ac_t:-
6823 }$am_cv_proto_iconv" >&6
6825 cat >>confdefs.h <<_ACEOF
6826 #define ICONV_CONST $am_cv_proto_iconv_arg1
6827 _ACEOF
6832 # More defines and substitutions.
6833 PACKAGE="$PACKAGE_TARNAME"
6835 cat >>confdefs.h <<_ACEOF
6836 #define PACKAGE "$PACKAGE"
6837 _ACEOF
6841 if test "x$enable_nls" != xno; then
6842 USED_CATALOGS='$(CATALOGS)'
6843 else
6844 USED_CATALOGS=
6848 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6849 if test "${enable_maintainer_mode+set}" = set; then
6850 enableval="$enable_maintainer_mode"
6852 else
6853 enable_maintainer_mode=no
6856 if test "x$enable_maintainer_mode" = xno; then
6857 MAINT='#'
6858 else
6859 MAINT=
6863 # Check whether --enable-checking or --disable-checking was given.
6864 if test "${enable_checking+set}" = set; then
6865 enableval="$enable_checking"
6867 else
6868 enable_checking=no
6871 if test $enable_checking != no ; then
6873 cat >>confdefs.h <<\_ACEOF
6874 #define ENABLE_CHECKING 1
6875 _ACEOF
6880 case $target in
6881 alpha*-*-* | \
6882 arm*-*-eabi* | \
6883 arm*-*-symbianelf* | \
6884 x86_64-*-* | \
6885 ia64-*-* | \
6886 hppa*64*-*-* | parisc*64*-*-* | \
6887 mips*-*-* | \
6888 mmix-*-* | \
6889 powerpc*-*-* | \
6890 rs6000*-*-* | \
6891 s390*-*-* | \
6892 sparc64*-*-* | ultrasparc-*-freebsd* | \
6893 sparcv9-*-solaris2* | \
6894 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9] | \
6895 sh[123456789l]*-*-*)
6896 need_64bit_hwint=yes ;;
6898 need_64bit_hwint=no ;;
6899 esac
6901 case $need_64bit_hwint:$ac_cv_sizeof_long in
6902 *:8 | no:*) host_wide_int=long ;;
6903 *) host_wide_int='long long' ;;
6904 esac
6908 cat >>confdefs.h <<_ACEOF
6909 #define HOST_WIDE_INT $host_wide_int
6910 _ACEOF
6913 # Output.
6915 ac_config_headers="$ac_config_headers config.h:config.in"
6917 ac_config_files="$ac_config_files Makefile"
6919 cat >confcache <<\_ACEOF
6920 # This file is a shell script that caches the results of configure
6921 # tests run on this system so they can be shared between configure
6922 # scripts and configure runs, see configure's option --config-cache.
6923 # It is not useful on other systems. If it contains results you don't
6924 # want to keep, you may remove or edit it.
6926 # config.status only pays attention to the cache file if you give it
6927 # the --recheck option to rerun configure.
6929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6931 # following values.
6933 _ACEOF
6935 # The following way of writing the cache mishandles newlines in values,
6936 # but we know of no workaround that is simple, portable, and efficient.
6937 # So, don't put newlines in cache variables' values.
6938 # Ultrix sh set writes to stderr and can't be redirected directly,
6939 # and sets the high bit in the cache file unless we assign to the vars.
6941 (set) 2>&1 |
6942 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6943 *ac_space=\ *)
6944 # `set' does not quote correctly, so add quotes (double-quote
6945 # substitution turns \\\\ into \\, and sed turns \\ into \).
6946 sed -n \
6947 "s/'/'\\\\''/g;
6948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6951 # `set' quotes correctly as required by POSIX, so do not add quotes.
6952 sed -n \
6953 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6955 esac;
6957 sed '
6958 t clear
6959 : clear
6960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6961 t end
6962 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6963 : end' >>confcache
6964 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6965 if test -w $cache_file; then
6966 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6967 cat confcache >$cache_file
6968 else
6969 echo "not updating unwritable cache $cache_file"
6972 rm -f confcache
6974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6975 # Let make expand exec_prefix.
6976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6978 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6979 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6980 # trailing colons and then remove the whole line if VPATH becomes empty
6981 # (actually we leave an empty line to preserve line numbers).
6982 if test "x$srcdir" = x.; then
6983 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6984 s/:*\$(srcdir):*/:/;
6985 s/:*\${srcdir}:*/:/;
6986 s/:*@srcdir@:*/:/;
6987 s/^\([^=]*=[ ]*\):*/\1/;
6988 s/:*$//;
6989 s/^[^=]*=[ ]*$//;
6993 DEFS=-DHAVE_CONFIG_H
6995 ac_libobjs=
6996 ac_ltlibobjs=
6997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6998 # 1. Remove the extension, and $U if already installed.
6999 ac_i=`echo "$ac_i" |
7000 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7001 # 2. Add them.
7002 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7003 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7004 done
7005 LIBOBJS=$ac_libobjs
7007 LTLIBOBJS=$ac_ltlibobjs
7011 : ${CONFIG_STATUS=./config.status}
7012 ac_clean_files_save=$ac_clean_files
7013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7016 cat >$CONFIG_STATUS <<_ACEOF
7017 #! $SHELL
7018 # Generated by $as_me.
7019 # Run this file to recreate the current configuration.
7020 # Compiler output produced by configure, useful for debugging
7021 # configure, is in config.log if it exists.
7023 debug=false
7024 ac_cs_recheck=false
7025 ac_cs_silent=false
7026 SHELL=\${CONFIG_SHELL-$SHELL}
7027 _ACEOF
7029 cat >>$CONFIG_STATUS <<\_ACEOF
7030 ## --------------------- ##
7031 ## M4sh Initialization. ##
7032 ## --------------------- ##
7034 # Be Bourne compatible
7035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7036 emulate sh
7037 NULLCMD=:
7038 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7039 # is contrary to our usage. Disable this feature.
7040 alias -g '${1+"$@"}'='"$@"'
7041 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7042 set -o posix
7044 DUALCASE=1; export DUALCASE # for MKS sh
7046 # Support unset when possible.
7047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7048 as_unset=unset
7049 else
7050 as_unset=false
7054 # Work around bugs in pre-3.0 UWIN ksh.
7055 $as_unset ENV MAIL MAILPATH
7056 PS1='$ '
7057 PS2='> '
7058 PS4='+ '
7060 # NLS nuisances.
7061 for as_var in \
7062 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7063 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7064 LC_TELEPHONE LC_TIME
7066 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7067 eval $as_var=C; export $as_var
7068 else
7069 $as_unset $as_var
7071 done
7073 # Required to use basename.
7074 if expr a : '\(a\)' >/dev/null 2>&1; then
7075 as_expr=expr
7076 else
7077 as_expr=false
7080 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7081 as_basename=basename
7082 else
7083 as_basename=false
7087 # Name of the executable.
7088 as_me=`$as_basename "$0" ||
7089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7090 X"$0" : 'X\(//\)$' \| \
7091 X"$0" : 'X\(/\)$' \| \
7092 . : '\(.\)' 2>/dev/null ||
7093 echo X/"$0" |
7094 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7095 /^X\/\(\/\/\)$/{ s//\1/; q; }
7096 /^X\/\(\/\).*/{ s//\1/; q; }
7097 s/.*/./; q'`
7100 # PATH needs CR, and LINENO needs CR and PATH.
7101 # Avoid depending upon Character Ranges.
7102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7105 as_cr_digits='0123456789'
7106 as_cr_alnum=$as_cr_Letters$as_cr_digits
7108 # The user is always right.
7109 if test "${PATH_SEPARATOR+set}" != set; then
7110 echo "#! /bin/sh" >conf$$.sh
7111 echo "exit 0" >>conf$$.sh
7112 chmod +x conf$$.sh
7113 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7114 PATH_SEPARATOR=';'
7115 else
7116 PATH_SEPARATOR=:
7118 rm -f conf$$.sh
7122 as_lineno_1=$LINENO
7123 as_lineno_2=$LINENO
7124 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7125 test "x$as_lineno_1" != "x$as_lineno_2" &&
7126 test "x$as_lineno_3" = "x$as_lineno_2" || {
7127 # Find who we are. Look in the path if we contain no path at all
7128 # relative or not.
7129 case $0 in
7130 *[\\/]* ) as_myself=$0 ;;
7131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7137 done
7140 esac
7141 # We did not find ourselves, most probably we were run as `sh COMMAND'
7142 # in which case we are not to be found in the path.
7143 if test "x$as_myself" = x; then
7144 as_myself=$0
7146 if test ! -f "$as_myself"; then
7147 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7148 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7149 { (exit 1); exit 1; }; }
7151 case $CONFIG_SHELL in
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for as_base in sh bash ksh sh5; do
7159 case $as_dir in
7161 if ("$as_dir/$as_base" -c '
7162 as_lineno_1=$LINENO
7163 as_lineno_2=$LINENO
7164 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7165 test "x$as_lineno_1" != "x$as_lineno_2" &&
7166 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7167 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7168 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7169 CONFIG_SHELL=$as_dir/$as_base
7170 export CONFIG_SHELL
7171 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7172 fi;;
7173 esac
7174 done
7175 done
7177 esac
7179 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7180 # uniformly replaced by the line number. The first 'sed' inserts a
7181 # line-number line before each line; the second 'sed' does the real
7182 # work. The second script uses 'N' to pair each line-number line
7183 # with the numbered line, and appends trailing '-' during
7184 # substitution so that $LINENO is not a special case at line end.
7185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7186 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7187 sed '=' <$as_myself |
7188 sed '
7190 s,$,-,
7191 : loop
7192 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7193 t loop
7194 s,-$,,
7195 s,^['$as_cr_digits']*\n,,
7196 ' >$as_me.lineno &&
7197 chmod +x $as_me.lineno ||
7198 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7199 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7200 { (exit 1); exit 1; }; }
7202 # Don't try to exec as it changes $[0], causing all sort of problems
7203 # (the dirname of $[0] is not the place where we might find the
7204 # original and so on. Autoconf is especially sensible to this).
7205 . ./$as_me.lineno
7206 # Exit status is that of the last command.
7207 exit
7211 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7212 *c*,-n*) ECHO_N= ECHO_C='
7213 ' ECHO_T=' ' ;;
7214 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7215 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7216 esac
7218 if expr a : '\(a\)' >/dev/null 2>&1; then
7219 as_expr=expr
7220 else
7221 as_expr=false
7224 rm -f conf$$ conf$$.exe conf$$.file
7225 echo >conf$$.file
7226 if ln -s conf$$.file conf$$ 2>/dev/null; then
7227 # We could just check for DJGPP; but this test a) works b) is more generic
7228 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7229 if test -f conf$$.exe; then
7230 # Don't use ln at all; we don't have any links
7231 as_ln_s='cp -p'
7232 else
7233 as_ln_s='ln -s'
7235 elif ln conf$$.file conf$$ 2>/dev/null; then
7236 as_ln_s=ln
7237 else
7238 as_ln_s='cp -p'
7240 rm -f conf$$ conf$$.exe conf$$.file
7242 if mkdir -p . 2>/dev/null; then
7243 as_mkdir_p=:
7244 else
7245 test -d ./-p && rmdir ./-p
7246 as_mkdir_p=false
7249 as_executable_p="test -f"
7251 # Sed expression to map a string onto a valid CPP name.
7252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7254 # Sed expression to map a string onto a valid variable name.
7255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7258 # IFS
7259 # We need space, tab and new line, in precisely that order.
7260 as_nl='
7262 IFS=" $as_nl"
7264 # CDPATH.
7265 $as_unset CDPATH
7267 exec 6>&1
7269 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7270 # report actual input values of CONFIG_FILES etc. instead of their
7271 # values after options handling. Logging --version etc. is OK.
7272 exec 5>>config.log
7274 echo
7275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7276 ## Running $as_me. ##
7277 _ASBOX
7278 } >&5
7279 cat >&5 <<_CSEOF
7281 This file was extended by cpplib $as_me , which was
7282 generated by GNU Autoconf 2.59. Invocation command line was
7284 CONFIG_FILES = $CONFIG_FILES
7285 CONFIG_HEADERS = $CONFIG_HEADERS
7286 CONFIG_LINKS = $CONFIG_LINKS
7287 CONFIG_COMMANDS = $CONFIG_COMMANDS
7288 $ $0 $@
7290 _CSEOF
7291 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7292 echo >&5
7293 _ACEOF
7295 # Files that config.status was made for.
7296 if test -n "$ac_config_files"; then
7297 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7300 if test -n "$ac_config_headers"; then
7301 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7304 if test -n "$ac_config_links"; then
7305 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7308 if test -n "$ac_config_commands"; then
7309 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7312 cat >>$CONFIG_STATUS <<\_ACEOF
7314 ac_cs_usage="\
7315 \`$as_me' instantiates files from templates according to the
7316 current configuration.
7318 Usage: $0 [OPTIONS] [FILE]...
7320 -h, --help print this help, then exit
7321 -V, --version print version number, then exit
7322 -q, --quiet do not print progress messages
7323 -d, --debug don't remove temporary files
7324 --recheck update $as_me by reconfiguring in the same conditions
7325 --file=FILE[:TEMPLATE]
7326 instantiate the configuration file FILE
7327 --header=FILE[:TEMPLATE]
7328 instantiate the configuration header FILE
7330 Configuration files:
7331 $config_files
7333 Configuration headers:
7334 $config_headers
7336 Report bugs to <bug-autoconf@gnu.org>."
7337 _ACEOF
7339 cat >>$CONFIG_STATUS <<_ACEOF
7340 ac_cs_version="\\
7341 cpplib config.status
7342 configured by $0, generated by GNU Autoconf 2.59,
7343 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7345 Copyright (C) 2003 Free Software Foundation, Inc.
7346 This config.status script is free software; the Free Software Foundation
7347 gives unlimited permission to copy, distribute and modify it."
7348 srcdir=$srcdir
7349 INSTALL="$INSTALL"
7350 _ACEOF
7352 cat >>$CONFIG_STATUS <<\_ACEOF
7353 # If no file are specified by the user, then we need to provide default
7354 # value. By we need to know if files were specified by the user.
7355 ac_need_defaults=:
7356 while test $# != 0
7358 case $1 in
7359 --*=*)
7360 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7361 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7362 ac_shift=:
7365 ac_option=$1
7366 ac_optarg=$2
7367 ac_shift=shift
7369 *) # This is not an option, so the user has probably given explicit
7370 # arguments.
7371 ac_option=$1
7372 ac_need_defaults=false;;
7373 esac
7375 case $ac_option in
7376 # Handling of the options.
7377 _ACEOF
7378 cat >>$CONFIG_STATUS <<\_ACEOF
7379 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7380 ac_cs_recheck=: ;;
7381 --version | --vers* | -V )
7382 echo "$ac_cs_version"; exit 0 ;;
7383 --he | --h)
7384 # Conflict between --help and --header
7385 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7386 Try \`$0 --help' for more information." >&5
7387 echo "$as_me: error: ambiguous option: $1
7388 Try \`$0 --help' for more information." >&2;}
7389 { (exit 1); exit 1; }; };;
7390 --help | --hel | -h )
7391 echo "$ac_cs_usage"; exit 0 ;;
7392 --debug | --d* | -d )
7393 debug=: ;;
7394 --file | --fil | --fi | --f )
7395 $ac_shift
7396 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7397 ac_need_defaults=false;;
7398 --header | --heade | --head | --hea )
7399 $ac_shift
7400 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7401 ac_need_defaults=false;;
7402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7404 ac_cs_silent=: ;;
7406 # This is an error.
7407 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7408 Try \`$0 --help' for more information." >&5
7409 echo "$as_me: error: unrecognized option: $1
7410 Try \`$0 --help' for more information." >&2;}
7411 { (exit 1); exit 1; }; } ;;
7413 *) ac_config_targets="$ac_config_targets $1" ;;
7415 esac
7416 shift
7417 done
7419 ac_configure_extra_args=
7421 if $ac_cs_silent; then
7422 exec 6>/dev/null
7423 ac_configure_extra_args="$ac_configure_extra_args --silent"
7426 _ACEOF
7427 cat >>$CONFIG_STATUS <<_ACEOF
7428 if \$ac_cs_recheck; then
7429 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7430 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7433 _ACEOF
7439 cat >>$CONFIG_STATUS <<\_ACEOF
7440 for ac_config_target in $ac_config_targets
7442 case "$ac_config_target" in
7443 # Handling of arguments.
7444 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7445 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7446 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7447 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7448 { (exit 1); exit 1; }; };;
7449 esac
7450 done
7452 # If the user did not use the arguments to specify the items to instantiate,
7453 # then the envvar interface is used. Set only those that are not.
7454 # We use the long form for the default assignment because of an extremely
7455 # bizarre bug on SunOS 4.1.3.
7456 if $ac_need_defaults; then
7457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7458 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7461 # Have a temporary directory for convenience. Make it in the build tree
7462 # simply because there is no reason to put it here, and in addition,
7463 # creating and moving files from /tmp can sometimes cause problems.
7464 # Create a temporary directory, and hook for its removal unless debugging.
7465 $debug ||
7467 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7468 trap '{ (exit 1); exit 1; }' 1 2 13 15
7471 # Create a (secure) tmp directory for tmp files.
7474 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7475 test -n "$tmp" && test -d "$tmp"
7476 } ||
7478 tmp=./confstat$$-$RANDOM
7479 (umask 077 && mkdir $tmp)
7480 } ||
7482 echo "$me: cannot create a temporary directory in ." >&2
7483 { (exit 1); exit 1; }
7486 _ACEOF
7488 cat >>$CONFIG_STATUS <<_ACEOF
7491 # CONFIG_FILES section.
7494 # No need to generate the scripts if there are no CONFIG_FILES.
7495 # This happens for instance when ./config.status config.h
7496 if test -n "\$CONFIG_FILES"; then
7497 # Protect against being on the right side of a sed subst in config.status.
7498 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7499 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7500 s,@SHELL@,$SHELL,;t t
7501 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7502 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7503 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7504 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7505 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7506 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7507 s,@exec_prefix@,$exec_prefix,;t t
7508 s,@prefix@,$prefix,;t t
7509 s,@program_transform_name@,$program_transform_name,;t t
7510 s,@bindir@,$bindir,;t t
7511 s,@sbindir@,$sbindir,;t t
7512 s,@libexecdir@,$libexecdir,;t t
7513 s,@datadir@,$datadir,;t t
7514 s,@sysconfdir@,$sysconfdir,;t t
7515 s,@sharedstatedir@,$sharedstatedir,;t t
7516 s,@localstatedir@,$localstatedir,;t t
7517 s,@libdir@,$libdir,;t t
7518 s,@includedir@,$includedir,;t t
7519 s,@oldincludedir@,$oldincludedir,;t t
7520 s,@infodir@,$infodir,;t t
7521 s,@mandir@,$mandir,;t t
7522 s,@build_alias@,$build_alias,;t t
7523 s,@host_alias@,$host_alias,;t t
7524 s,@target_alias@,$target_alias,;t t
7525 s,@DEFS@,$DEFS,;t t
7526 s,@ECHO_C@,$ECHO_C,;t t
7527 s,@ECHO_N@,$ECHO_N,;t t
7528 s,@ECHO_T@,$ECHO_T,;t t
7529 s,@LIBS@,$LIBS,;t t
7530 s,@build@,$build,;t t
7531 s,@build_cpu@,$build_cpu,;t t
7532 s,@build_vendor@,$build_vendor,;t t
7533 s,@build_os@,$build_os,;t t
7534 s,@host@,$host,;t t
7535 s,@host_cpu@,$host_cpu,;t t
7536 s,@host_vendor@,$host_vendor,;t t
7537 s,@host_os@,$host_os,;t t
7538 s,@target@,$target,;t t
7539 s,@target_cpu@,$target_cpu,;t t
7540 s,@target_vendor@,$target_vendor,;t t
7541 s,@target_os@,$target_os,;t t
7542 s,@SET_MAKE@,$SET_MAKE,;t t
7543 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7544 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7545 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7546 s,@CC@,$CC,;t t
7547 s,@CFLAGS@,$CFLAGS,;t t
7548 s,@LDFLAGS@,$LDFLAGS,;t t
7549 s,@CPPFLAGS@,$CPPFLAGS,;t t
7550 s,@ac_ct_CC@,$ac_ct_CC,;t t
7551 s,@EXEEXT@,$EXEEXT,;t t
7552 s,@OBJEXT@,$OBJEXT,;t t
7553 s,@RANLIB@,$RANLIB,;t t
7554 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7555 s,@ACLOCAL@,$ACLOCAL,;t t
7556 s,@AUTOCONF@,$AUTOCONF,;t t
7557 s,@AUTOHEADER@,$AUTOHEADER,;t t
7558 s,@CPP@,$CPP,;t t
7559 s,@EGREP@,$EGREP,;t t
7560 s,@LIBOBJS@,$LIBOBJS,;t t
7561 s,@ALLOCA@,$ALLOCA,;t t
7562 s,@USE_NLS@,$USE_NLS,;t t
7563 s,@LIBINTL@,$LIBINTL,;t t
7564 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7565 s,@INCINTL@,$INCINTL,;t t
7566 s,@XGETTEXT@,$XGETTEXT,;t t
7567 s,@GMSGFMT@,$GMSGFMT,;t t
7568 s,@POSUB@,$POSUB,;t t
7569 s,@CATALOGS@,$CATALOGS,;t t
7570 s,@LIBICONV@,$LIBICONV,;t t
7571 s,@LTLIBICONV@,$LTLIBICONV,;t t
7572 s,@PACKAGE@,$PACKAGE,;t t
7573 s,@USED_CATALOGS@,$USED_CATALOGS,;t t
7574 s,@MAINT@,$MAINT,;t t
7575 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7576 CEOF
7578 _ACEOF
7580 cat >>$CONFIG_STATUS <<\_ACEOF
7581 # Split the substitutions into bite-sized pieces for seds with
7582 # small command number limits, like on Digital OSF/1 and HP-UX.
7583 ac_max_sed_lines=48
7584 ac_sed_frag=1 # Number of current file.
7585 ac_beg=1 # First line for current file.
7586 ac_end=$ac_max_sed_lines # Line after last line for current file.
7587 ac_more_lines=:
7588 ac_sed_cmds=
7589 while $ac_more_lines; do
7590 if test $ac_beg -gt 1; then
7591 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7592 else
7593 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7595 if test ! -s $tmp/subs.frag; then
7596 ac_more_lines=false
7597 else
7598 # The purpose of the label and of the branching condition is to
7599 # speed up the sed processing (if there are no `@' at all, there
7600 # is no need to browse any of the substitutions).
7601 # These are the two extra sed commands mentioned above.
7602 (echo ':t
7603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7604 if test -z "$ac_sed_cmds"; then
7605 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7606 else
7607 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7609 ac_sed_frag=`expr $ac_sed_frag + 1`
7610 ac_beg=$ac_end
7611 ac_end=`expr $ac_end + $ac_max_sed_lines`
7613 done
7614 if test -z "$ac_sed_cmds"; then
7615 ac_sed_cmds=cat
7617 fi # test -n "$CONFIG_FILES"
7619 _ACEOF
7620 cat >>$CONFIG_STATUS <<\_ACEOF
7621 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7622 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7623 case $ac_file in
7624 - | *:- | *:-:* ) # input from stdin
7625 cat >$tmp/stdin
7626 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7627 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7628 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7629 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7630 * ) ac_file_in=$ac_file.in ;;
7631 esac
7633 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7634 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7636 X"$ac_file" : 'X\(//\)[^/]' \| \
7637 X"$ac_file" : 'X\(//\)$' \| \
7638 X"$ac_file" : 'X\(/\)' \| \
7639 . : '\(.\)' 2>/dev/null ||
7640 echo X"$ac_file" |
7641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7643 /^X\(\/\/\)$/{ s//\1/; q; }
7644 /^X\(\/\).*/{ s//\1/; q; }
7645 s/.*/./; q'`
7646 { if $as_mkdir_p; then
7647 mkdir -p "$ac_dir"
7648 else
7649 as_dir="$ac_dir"
7650 as_dirs=
7651 while test ! -d "$as_dir"; do
7652 as_dirs="$as_dir $as_dirs"
7653 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7655 X"$as_dir" : 'X\(//\)[^/]' \| \
7656 X"$as_dir" : 'X\(//\)$' \| \
7657 X"$as_dir" : 'X\(/\)' \| \
7658 . : '\(.\)' 2>/dev/null ||
7659 echo X"$as_dir" |
7660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7662 /^X\(\/\/\)$/{ s//\1/; q; }
7663 /^X\(\/\).*/{ s//\1/; q; }
7664 s/.*/./; q'`
7665 done
7666 test ! -n "$as_dirs" || mkdir $as_dirs
7667 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7669 { (exit 1); exit 1; }; }; }
7671 ac_builddir=.
7673 if test "$ac_dir" != .; then
7674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7675 # A "../" for each directory in $ac_dir_suffix.
7676 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7677 else
7678 ac_dir_suffix= ac_top_builddir=
7681 case $srcdir in
7682 .) # No --srcdir option. We are building in place.
7683 ac_srcdir=.
7684 if test -z "$ac_top_builddir"; then
7685 ac_top_srcdir=.
7686 else
7687 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7688 fi ;;
7689 [\\/]* | ?:[\\/]* ) # Absolute path.
7690 ac_srcdir=$srcdir$ac_dir_suffix;
7691 ac_top_srcdir=$srcdir ;;
7692 *) # Relative path.
7693 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7694 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7695 esac
7697 # Do not use `cd foo && pwd` to compute absolute paths, because
7698 # the directories may not exist.
7699 case `pwd` in
7700 .) ac_abs_builddir="$ac_dir";;
7702 case "$ac_dir" in
7703 .) ac_abs_builddir=`pwd`;;
7704 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7705 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7706 esac;;
7707 esac
7708 case $ac_abs_builddir in
7709 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7711 case ${ac_top_builddir}. in
7712 .) ac_abs_top_builddir=$ac_abs_builddir;;
7713 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7714 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7715 esac;;
7716 esac
7717 case $ac_abs_builddir in
7718 .) ac_abs_srcdir=$ac_srcdir;;
7720 case $ac_srcdir in
7721 .) ac_abs_srcdir=$ac_abs_builddir;;
7722 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7723 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7724 esac;;
7725 esac
7726 case $ac_abs_builddir in
7727 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7729 case $ac_top_srcdir in
7730 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7731 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7732 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7733 esac;;
7734 esac
7737 case $INSTALL in
7738 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7739 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7740 esac
7742 if test x"$ac_file" != x-; then
7743 { echo "$as_me:$LINENO: creating $ac_file" >&5
7744 echo "$as_me: creating $ac_file" >&6;}
7745 rm -f "$ac_file"
7747 # Let's still pretend it is `configure' which instantiates (i.e., don't
7748 # use $as_me), people would be surprised to read:
7749 # /* config.h. Generated by config.status. */
7750 if test x"$ac_file" = x-; then
7751 configure_input=
7752 else
7753 configure_input="$ac_file. "
7755 configure_input=$configure_input"Generated from `echo $ac_file_in |
7756 sed 's,.*/,,'` by configure."
7758 # First look for the input files in the build tree, otherwise in the
7759 # src tree.
7760 ac_file_inputs=`IFS=:
7761 for f in $ac_file_in; do
7762 case $f in
7763 -) echo $tmp/stdin ;;
7764 [\\/$]*)
7765 # Absolute (can't be DOS-style, as IFS=:)
7766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7767 echo "$as_me: error: cannot find input file: $f" >&2;}
7768 { (exit 1); exit 1; }; }
7769 echo "$f";;
7770 *) # Relative
7771 if test -f "$f"; then
7772 # Build tree
7773 echo "$f"
7774 elif test -f "$srcdir/$f"; then
7775 # Source tree
7776 echo "$srcdir/$f"
7777 else
7778 # /dev/null tree
7779 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7780 echo "$as_me: error: cannot find input file: $f" >&2;}
7781 { (exit 1); exit 1; }; }
7782 fi;;
7783 esac
7784 done` || { (exit 1); exit 1; }
7785 _ACEOF
7786 cat >>$CONFIG_STATUS <<_ACEOF
7787 sed "$ac_vpsub
7788 $extrasub
7789 _ACEOF
7790 cat >>$CONFIG_STATUS <<\_ACEOF
7792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7793 s,@configure_input@,$configure_input,;t t
7794 s,@srcdir@,$ac_srcdir,;t t
7795 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7796 s,@top_srcdir@,$ac_top_srcdir,;t t
7797 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7798 s,@builddir@,$ac_builddir,;t t
7799 s,@abs_builddir@,$ac_abs_builddir,;t t
7800 s,@top_builddir@,$ac_top_builddir,;t t
7801 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7802 s,@INSTALL@,$ac_INSTALL,;t t
7803 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7804 rm -f $tmp/stdin
7805 if test x"$ac_file" != x-; then
7806 mv $tmp/out $ac_file
7807 else
7808 cat $tmp/out
7809 rm -f $tmp/out
7812 done
7813 _ACEOF
7814 cat >>$CONFIG_STATUS <<\_ACEOF
7817 # CONFIG_HEADER section.
7820 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7821 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7823 # ac_d sets the value in "#define NAME VALUE" lines.
7824 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7825 ac_dB='[ ].*$,\1#\2'
7826 ac_dC=' '
7827 ac_dD=',;t'
7828 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7829 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7830 ac_uB='$,\1#\2define\3'
7831 ac_uC=' '
7832 ac_uD=',;t'
7834 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7835 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7836 case $ac_file in
7837 - | *:- | *:-:* ) # input from stdin
7838 cat >$tmp/stdin
7839 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7841 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7843 * ) ac_file_in=$ac_file.in ;;
7844 esac
7846 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7847 echo "$as_me: creating $ac_file" >&6;}
7849 # First look for the input files in the build tree, otherwise in the
7850 # src tree.
7851 ac_file_inputs=`IFS=:
7852 for f in $ac_file_in; do
7853 case $f in
7854 -) echo $tmp/stdin ;;
7855 [\\/$]*)
7856 # Absolute (can't be DOS-style, as IFS=:)
7857 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7858 echo "$as_me: error: cannot find input file: $f" >&2;}
7859 { (exit 1); exit 1; }; }
7860 # Do quote $f, to prevent DOS paths from being IFS'd.
7861 echo "$f";;
7862 *) # Relative
7863 if test -f "$f"; then
7864 # Build tree
7865 echo "$f"
7866 elif test -f "$srcdir/$f"; then
7867 # Source tree
7868 echo "$srcdir/$f"
7869 else
7870 # /dev/null tree
7871 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7872 echo "$as_me: error: cannot find input file: $f" >&2;}
7873 { (exit 1); exit 1; }; }
7874 fi;;
7875 esac
7876 done` || { (exit 1); exit 1; }
7877 # Remove the trailing spaces.
7878 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7880 _ACEOF
7882 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7883 # `conftest.undefs', that substitutes the proper values into
7884 # config.h.in to produce config.h. The first handles `#define'
7885 # templates, and the second `#undef' templates.
7886 # And first: Protect against being on the right side of a sed subst in
7887 # config.status. Protect against being in an unquoted here document
7888 # in config.status.
7889 rm -f conftest.defines conftest.undefs
7890 # Using a here document instead of a string reduces the quoting nightmare.
7891 # Putting comments in sed scripts is not portable.
7893 # `end' is used to avoid that the second main sed command (meant for
7894 # 0-ary CPP macros) applies to n-ary macro definitions.
7895 # See the Autoconf documentation for `clear'.
7896 cat >confdef2sed.sed <<\_ACEOF
7897 s/[\\&,]/\\&/g
7898 s,[\\$`],\\&,g
7899 t clear
7900 : clear
7901 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7902 t end
7903 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7904 : end
7905 _ACEOF
7906 # If some macros were called several times there might be several times
7907 # the same #defines, which is useless. Nevertheless, we may not want to
7908 # sort them, since we want the *last* AC-DEFINE to be honored.
7909 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7910 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7911 rm -f confdef2sed.sed
7913 # This sed command replaces #undef with comments. This is necessary, for
7914 # example, in the case of _POSIX_SOURCE, which is predefined and required
7915 # on some systems where configure will not decide to define it.
7916 cat >>conftest.undefs <<\_ACEOF
7917 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7918 _ACEOF
7920 # Break up conftest.defines because some shells have a limit on the size
7921 # of here documents, and old seds have small limits too (100 cmds).
7922 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7923 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7924 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7925 echo ' :' >>$CONFIG_STATUS
7926 rm -f conftest.tail
7927 while grep . conftest.defines >/dev/null
7929 # Write a limited-size here document to $tmp/defines.sed.
7930 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7931 # Speed up: don't consider the non `#define' lines.
7932 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7933 # Work around the forget-to-reset-the-flag bug.
7934 echo 't clr' >>$CONFIG_STATUS
7935 echo ': clr' >>$CONFIG_STATUS
7936 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7937 echo 'CEOF
7938 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7939 rm -f $tmp/in
7940 mv $tmp/out $tmp/in
7941 ' >>$CONFIG_STATUS
7942 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7943 rm -f conftest.defines
7944 mv conftest.tail conftest.defines
7945 done
7946 rm -f conftest.defines
7947 echo ' fi # grep' >>$CONFIG_STATUS
7948 echo >>$CONFIG_STATUS
7950 # Break up conftest.undefs because some shells have a limit on the size
7951 # of here documents, and old seds have small limits too (100 cmds).
7952 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7953 rm -f conftest.tail
7954 while grep . conftest.undefs >/dev/null
7956 # Write a limited-size here document to $tmp/undefs.sed.
7957 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7958 # Speed up: don't consider the non `#undef'
7959 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7960 # Work around the forget-to-reset-the-flag bug.
7961 echo 't clr' >>$CONFIG_STATUS
7962 echo ': clr' >>$CONFIG_STATUS
7963 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7964 echo 'CEOF
7965 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7966 rm -f $tmp/in
7967 mv $tmp/out $tmp/in
7968 ' >>$CONFIG_STATUS
7969 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7970 rm -f conftest.undefs
7971 mv conftest.tail conftest.undefs
7972 done
7973 rm -f conftest.undefs
7975 cat >>$CONFIG_STATUS <<\_ACEOF
7976 # Let's still pretend it is `configure' which instantiates (i.e., don't
7977 # use $as_me), people would be surprised to read:
7978 # /* config.h. Generated by config.status. */
7979 if test x"$ac_file" = x-; then
7980 echo "/* Generated by configure. */" >$tmp/config.h
7981 else
7982 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7984 cat $tmp/in >>$tmp/config.h
7985 rm -f $tmp/in
7986 if test x"$ac_file" != x-; then
7987 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7988 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7989 echo "$as_me: $ac_file is unchanged" >&6;}
7990 else
7991 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7993 X"$ac_file" : 'X\(//\)[^/]' \| \
7994 X"$ac_file" : 'X\(//\)$' \| \
7995 X"$ac_file" : 'X\(/\)' \| \
7996 . : '\(.\)' 2>/dev/null ||
7997 echo X"$ac_file" |
7998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8000 /^X\(\/\/\)$/{ s//\1/; q; }
8001 /^X\(\/\).*/{ s//\1/; q; }
8002 s/.*/./; q'`
8003 { if $as_mkdir_p; then
8004 mkdir -p "$ac_dir"
8005 else
8006 as_dir="$ac_dir"
8007 as_dirs=
8008 while test ! -d "$as_dir"; do
8009 as_dirs="$as_dir $as_dirs"
8010 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8012 X"$as_dir" : 'X\(//\)[^/]' \| \
8013 X"$as_dir" : 'X\(//\)$' \| \
8014 X"$as_dir" : 'X\(/\)' \| \
8015 . : '\(.\)' 2>/dev/null ||
8016 echo X"$as_dir" |
8017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8019 /^X\(\/\/\)$/{ s//\1/; q; }
8020 /^X\(\/\).*/{ s//\1/; q; }
8021 s/.*/./; q'`
8022 done
8023 test ! -n "$as_dirs" || mkdir $as_dirs
8024 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8026 { (exit 1); exit 1; }; }; }
8028 rm -f $ac_file
8029 mv $tmp/config.h $ac_file
8031 else
8032 cat $tmp/config.h
8033 rm -f $tmp/config.h
8035 # Run the commands associated with the file.
8036 case $ac_file in
8037 config.h ) echo timestamp > stamp-h1 ;;
8038 esac
8039 done
8040 _ACEOF
8042 cat >>$CONFIG_STATUS <<\_ACEOF
8044 { (exit 0); exit 0; }
8045 _ACEOF
8046 chmod +x $CONFIG_STATUS
8047 ac_clean_files=$ac_clean_files_save
8050 # configure is writing to config.log, and then calls config.status.
8051 # config.status does its own redirection, appending to config.log.
8052 # Unfortunately, on DOS this fails, as config.log is still kept open
8053 # by configure, so config.status won't be able to write to it; its
8054 # output is simply discarded. So we exec the FD to /dev/null,
8055 # effectively closing config.log, so it can be properly (re)opened and
8056 # appended to by config.status. When coming back to configure, we
8057 # need to make the FD available again.
8058 if test "$no_create" != yes; then
8059 ac_cs_success=:
8060 ac_config_status_args=
8061 test "$silent" = yes &&
8062 ac_config_status_args="$ac_config_status_args --quiet"
8063 exec 5>/dev/null
8064 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8065 exec 5>>config.log
8066 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8067 # would make configure fail if this is the last instruction.
8068 $ac_cs_success || { (exit 1); exit 1; }