2005-01-20 Andrew John Hughes <gnu_andrew@member.fsf.org>
[official-gcc.git] / libcpp / configure
blob18ae61b0453260ed8dee11ee5c2f9e27ed5922b4
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS ALLOCA USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS LIBICONV LTLIBICONV ENABLE_NLS_TRUE ENABLE_NLS_FALSE 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 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 --target=TARGET configure for building compilers for TARGET [HOST]
845 _ACEOF
848 if test -n "$ac_init_help"; then
849 case $ac_init_help in
850 short | recursive ) echo "Configuration of cpplib :";;
851 esac
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-maintainer-mode enable make rules and dependencies not useful
858 (and sometimes confusing) to the casual installer
859 --disable-dependency-tracking speeds up one-time build
860 --enable-dependency-tracking do not reject slow dependency extractors
861 --disable-rpath do not hardcode runtime library paths
862 --enable-checking enable expensive run-time checks
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
869 --without-libiconv-prefix don't search for libiconv in includedir and libdir
871 Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 CPP C preprocessor
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
883 Report bugs to <gcc-bugs@gcc.gnu.org>.
884 _ACEOF
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
889 ac_popdir=`pwd`
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
892 ac_builddir=.
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 else
899 ac_dir_suffix= ac_top_builddir=
902 case $srcdir in
903 .) # No --srcdir option. We are building in place.
904 ac_srcdir=.
905 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=.
907 else
908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 fi ;;
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
913 *) # Relative path.
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 esac
918 # Do not use `cd foo && pwd` to compute absolute paths, because
919 # the directories may not exist.
920 case `pwd` in
921 .) ac_abs_builddir="$ac_dir";;
923 case "$ac_dir" in
924 .) ac_abs_builddir=`pwd`;;
925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926 *) ac_abs_builddir=`pwd`/"$ac_dir";;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 case ${ac_top_builddir}. in
933 .) ac_abs_top_builddir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_srcdir=$ac_srcdir;;
941 case $ac_srcdir in
942 .) ac_abs_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945 esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 case $ac_top_srcdir in
951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954 esac;;
955 esac
957 cd $ac_dir
958 # Check for guested configure; otherwise get Cygnus style configure.
959 if test -f $ac_srcdir/configure.gnu; then
960 echo
961 $SHELL $ac_srcdir/configure.gnu --help=recursive
962 elif test -f $ac_srcdir/configure; then
963 echo
964 $SHELL $ac_srcdir/configure --help=recursive
965 elif test -f $ac_srcdir/configure.ac ||
966 test -f $ac_srcdir/configure.in; then
967 echo
968 $ac_configure --help
969 else
970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 cd "$ac_popdir"
973 done
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
978 cat <<\_ACEOF
979 cpplib configure
980 generated by GNU Autoconf 2.59
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986 exit 0
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by cpplib $as_me , which was
994 generated by GNU Autoconf 2.59. Invocation command line was
996 $ $0 $@
998 _ACEOF
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022 _ASUNAME
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030 done
1032 } >&5
1034 cat >&5 <<_ACEOF
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1041 _ACEOF
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1056 for ac_arg
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1089 esac
1090 done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1103 echo
1105 cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 esac;
1126 echo
1128 cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1227 done
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1240 else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1288 done
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_aux_dir=
1331 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1332 if test -f $ac_dir/install-sh; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/install-sh -c"
1335 break
1336 elif test -f $ac_dir/install.sh; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/install.sh -c"
1339 break
1340 elif test -f $ac_dir/shtool; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/shtool install -c"
1343 break
1345 done
1346 if test -z "$ac_aux_dir"; then
1347 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1348 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1349 { (exit 1); exit 1; }; }
1351 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1352 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1353 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1355 # Make sure we can run config.sub.
1356 $ac_config_sub sun4 >/dev/null 2>&1 ||
1357 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1358 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1359 { (exit 1); exit 1; }; }
1361 echo "$as_me:$LINENO: checking build system type" >&5
1362 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1363 if test "${ac_cv_build+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 else
1366 ac_cv_build_alias=$build_alias
1367 test -z "$ac_cv_build_alias" &&
1368 ac_cv_build_alias=`$ac_config_guess`
1369 test -z "$ac_cv_build_alias" &&
1370 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1371 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1372 { (exit 1); exit 1; }; }
1373 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1374 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1375 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1376 { (exit 1); exit 1; }; }
1379 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1380 echo "${ECHO_T}$ac_cv_build" >&6
1381 build=$ac_cv_build
1382 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1383 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1384 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1387 echo "$as_me:$LINENO: checking host system type" >&5
1388 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1389 if test "${ac_cv_host+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392 ac_cv_host_alias=$host_alias
1393 test -z "$ac_cv_host_alias" &&
1394 ac_cv_host_alias=$ac_cv_build_alias
1395 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1397 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1398 { (exit 1); exit 1; }; }
1401 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1402 echo "${ECHO_T}$ac_cv_host" >&6
1403 host=$ac_cv_host
1404 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1409 echo "$as_me:$LINENO: checking target system type" >&5
1410 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1411 if test "${ac_cv_target+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 else
1414 ac_cv_target_alias=$target_alias
1415 test "x$ac_cv_target_alias" = "x" &&
1416 ac_cv_target_alias=$ac_cv_host_alias
1417 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1424 echo "${ECHO_T}$ac_cv_target" >&6
1425 target=$ac_cv_target
1426 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 # The aliases save the names the user supplied, while $host etc.
1432 # will get canonicalized.
1433 test -n "$target_alias" &&
1434 test "$program_prefix$program_suffix$program_transform_name" = \
1435 NONENONEs,x,x, &&
1436 program_prefix=${target_alias}-
1437 am__api_version="1.8"
1438 # Find a good install program. We prefer a C program (faster),
1439 # so one script is as good as another. But avoid the broken or
1440 # incompatible versions:
1441 # SysV /etc/install, /usr/sbin/install
1442 # SunOS /usr/etc/install
1443 # IRIX /sbin/install
1444 # AIX /bin/install
1445 # AmigaOS /C/install, which installs bootblocks on floppy discs
1446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1449 # OS/2's system install, which has a completely different semantic
1450 # ./install, which can be erroneously created by make from ./install.sh.
1451 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1452 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1453 if test -z "$INSTALL"; then
1454 if test "${ac_cv_path_install+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 else
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1460 IFS=$as_save_IFS
1461 test -z "$as_dir" && as_dir=.
1462 # Account for people who put trailing slashes in PATH elements.
1463 case $as_dir/ in
1464 ./ | .// | /cC/* | \
1465 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1466 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1467 /usr/ucb/* ) ;;
1469 # OSF1 and SCO ODT 3.0 have their own names for install.
1470 # Don't use installbsd from OSF since it installs stuff as root
1471 # by default.
1472 for ac_prog in ginstall scoinst install; do
1473 for ac_exec_ext in '' $ac_executable_extensions; do
1474 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1475 if test $ac_prog = install &&
1476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1477 # AIX install. It has an incompatible calling convention.
1479 elif test $ac_prog = install &&
1480 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1481 # program-specific install script used by HP pwplus--don't use.
1483 else
1484 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1485 break 3
1488 done
1489 done
1491 esac
1492 done
1496 if test "${ac_cv_path_install+set}" = set; then
1497 INSTALL=$ac_cv_path_install
1498 else
1499 # As a last resort, use the slow shell script. We don't cache a
1500 # path for INSTALL within a source directory, because that will
1501 # break other packages using the cache if that directory is
1502 # removed, or if the path is relative.
1503 INSTALL=$ac_install_sh
1506 echo "$as_me:$LINENO: result: $INSTALL" >&5
1507 echo "${ECHO_T}$INSTALL" >&6
1509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1510 # It thinks the first close brace ends the variable substitution.
1511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1517 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1518 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1519 # Just in case
1520 sleep 1
1521 echo timestamp > conftest.file
1522 # Do `set' in a subshell so we don't clobber the current shell's
1523 # arguments. Must try -L first in case configure is actually a
1524 # symlink; some systems play weird games with the mod time of symlinks
1525 # (eg FreeBSD returns the mod time of the symlink's containing
1526 # directory).
1527 if (
1528 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1529 if test "$*" = "X"; then
1530 # -L didn't work.
1531 set X `ls -t $srcdir/configure conftest.file`
1533 rm -f conftest.file
1534 if test "$*" != "X $srcdir/configure conftest.file" \
1535 && test "$*" != "X conftest.file $srcdir/configure"; then
1537 # If neither matched, then we have a broken ls. This can happen
1538 # if, for instance, CONFIG_SHELL is bash and it inherits a
1539 # broken ls alias from the environment. This has actually
1540 # happened. Such a system could not be considered "sane".
1541 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1542 alias in your environment" >&5
1543 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1544 alias in your environment" >&2;}
1545 { (exit 1); exit 1; }; }
1548 test "$2" = conftest.file
1550 then
1551 # Ok.
1553 else
1554 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1555 Check your system clock" >&5
1556 echo "$as_me: error: newly created file is older than distributed files!
1557 Check your system clock" >&2;}
1558 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: result: yes" >&5
1561 echo "${ECHO_T}yes" >&6
1562 test "$program_prefix" != NONE &&
1563 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1564 # Use a double $ so make ignores it.
1565 test "$program_suffix" != NONE &&
1566 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1567 # Double any \ or $. echo might interpret backslashes.
1568 # By default was `s,x,x', remove it if useless.
1569 cat <<\_ACEOF >conftest.sed
1570 s/[\\$]/&&/g;s/;s,x,x,$//
1571 _ACEOF
1572 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1573 rm conftest.sed
1575 # expand $ac_aux_dir to an absolute path
1576 am_aux_dir=`cd $ac_aux_dir && pwd`
1578 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1579 # Use eval to expand $SHELL
1580 if eval "$MISSING --run true"; then
1581 am_missing_run="$MISSING --run "
1582 else
1583 am_missing_run=
1584 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1585 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1588 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1589 # Keeping the `.' argument allows $(mkdir_p) to be used without
1590 # argument. Indeed, we sometimes output rules like
1591 # $(mkdir_p) $(somedir)
1592 # where $(somedir) is conditionally defined.
1593 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1594 # expensive solution, as it forces Make to start a sub-shell.)
1595 mkdir_p='mkdir -p -- .'
1596 else
1597 # On NextStep and OpenStep, the `mkdir' command does not
1598 # recognize any option. It will interpret all options as
1599 # directories to create, and then abort because `.' already
1600 # exists.
1601 for d in ./-p ./--version;
1603 test -d $d && rmdir $d
1604 done
1605 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1606 if test -f "$ac_aux_dir/mkinstalldirs"; then
1607 mkdir_p='$(mkinstalldirs)'
1608 else
1609 mkdir_p='$(install_sh) -d'
1613 for ac_prog in gawk mawk nawk awk
1615 # Extract the first word of "$ac_prog", so it can be a program name with args.
1616 set dummy $ac_prog; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_AWK+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622 if test -n "$AWK"; then
1623 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_AWK="$ac_prog"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1636 done
1637 done
1641 AWK=$ac_cv_prog_AWK
1642 if test -n "$AWK"; then
1643 echo "$as_me:$LINENO: result: $AWK" >&5
1644 echo "${ECHO_T}$AWK" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1650 test -n "$AWK" && break
1651 done
1653 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1654 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1655 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1656 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 cat >conftest.make <<\_ACEOF
1660 all:
1661 @echo 'ac_maketemp="$(MAKE)"'
1662 _ACEOF
1663 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1664 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1665 if test -n "$ac_maketemp"; then
1666 eval ac_cv_prog_make_${ac_make}_set=yes
1667 else
1668 eval ac_cv_prog_make_${ac_make}_set=no
1670 rm -f conftest.make
1672 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1673 echo "$as_me:$LINENO: result: yes" >&5
1674 echo "${ECHO_T}yes" >&6
1675 SET_MAKE=
1676 else
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 SET_MAKE="MAKE=${MAKE-make}"
1682 rm -rf .tst 2>/dev/null
1683 mkdir .tst 2>/dev/null
1684 if test -d .tst; then
1685 am__leading_dot=.
1686 else
1687 am__leading_dot=_
1689 rmdir .tst 2>/dev/null
1691 # test to see if srcdir already configured
1692 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1693 test -f $srcdir/config.status; then
1694 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1695 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1696 { (exit 1); exit 1; }; }
1699 # test whether we have cygpath
1700 if test -z "$CYGPATH_W"; then
1701 if (cygpath --version) >/dev/null 2>/dev/null; then
1702 CYGPATH_W='cygpath -w'
1703 else
1704 CYGPATH_W=echo
1709 # Define the identity of the package.
1710 PACKAGE='cpplib'
1711 VERSION=' '
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE "$PACKAGE"
1716 _ACEOF
1719 cat >>confdefs.h <<_ACEOF
1720 #define VERSION "$VERSION"
1721 _ACEOF
1723 # Some tools Automake needs.
1725 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1728 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1731 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1734 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1737 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1740 AMTAR=${AMTAR-"${am_missing_run}tar"}
1742 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1744 # Installed binaries are usually stripped using `strip' when the user
1745 # run `make install-strip'. However `strip' might not be the right
1746 # tool to use in cross-compilation environments, therefore Automake
1747 # will honor the `STRIP' environment variable to overrule this program.
1748 if test "$cross_compiling" != no; then
1749 if test -n "$ac_tool_prefix"; then
1750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1751 set dummy ${ac_tool_prefix}strip; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_STRIP+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757 if test -n "$STRIP"; then
1758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1759 else
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 break 2
1771 done
1772 done
1776 STRIP=$ac_cv_prog_STRIP
1777 if test -n "$STRIP"; then
1778 echo "$as_me:$LINENO: result: $STRIP" >&5
1779 echo "${ECHO_T}$STRIP" >&6
1780 else
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1786 if test -z "$ac_cv_prog_STRIP"; then
1787 ac_ct_STRIP=$STRIP
1788 # Extract the first word of "strip", so it can be a program name with args.
1789 set dummy strip; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 if test -n "$ac_ct_STRIP"; then
1796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_STRIP="strip"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1809 done
1810 done
1812 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1815 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1816 if test -n "$ac_ct_STRIP"; then
1817 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1818 echo "${ECHO_T}$ac_ct_STRIP" >&6
1819 else
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1824 STRIP=$ac_ct_STRIP
1825 else
1826 STRIP="$ac_cv_prog_STRIP"
1830 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1832 # We need awk for the "check" target. The system "awk" is bad on
1833 # some platforms.
1837 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1838 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1839 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1840 if test "${enable_maintainer_mode+set}" = set; then
1841 enableval="$enable_maintainer_mode"
1842 USE_MAINTAINER_MODE=$enableval
1843 else
1844 USE_MAINTAINER_MODE=no
1846 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1847 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1850 if test $USE_MAINTAINER_MODE = yes; then
1851 MAINTAINER_MODE_TRUE=
1852 MAINTAINER_MODE_FALSE='#'
1853 else
1854 MAINTAINER_MODE_TRUE='#'
1855 MAINTAINER_MODE_FALSE=
1858 MAINT=$MAINTAINER_MODE_TRUE
1862 # Checks for programs.
1863 ac_ext=c
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 if test -n "$ac_tool_prefix"; then
1869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC="$CC" # Let the user override the test.
1878 else
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1882 IFS=$as_save_IFS
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 break 2
1890 done
1891 done
1895 CC=$ac_cv_prog_CC
1896 if test -n "$CC"; then
1897 echo "$as_me:$LINENO: result: $CC" >&5
1898 echo "${ECHO_T}$CC" >&6
1899 else
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1905 if test -z "$ac_cv_prog_CC"; then
1906 ac_ct_CC=$CC
1907 # Extract the first word of "gcc", so it can be a program name with args.
1908 set dummy gcc; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914 if test -n "$ac_ct_CC"; then
1915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_ac_ct_CC="gcc"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 break 2
1928 done
1929 done
1933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1934 if test -n "$ac_ct_CC"; then
1935 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1936 echo "${ECHO_T}$ac_ct_CC" >&6
1937 else
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1942 CC=$ac_ct_CC
1943 else
1944 CC="$ac_cv_prog_CC"
1947 if test -z "$CC"; then
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1950 set dummy ${ac_tool_prefix}cc; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_CC="${ac_tool_prefix}cc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2
1970 done
1971 done
1975 CC=$ac_cv_prog_CC
1976 if test -n "$CC"; then
1977 echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1979 else
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1985 if test -z "$ac_cv_prog_CC"; then
1986 ac_ct_CC=$CC
1987 # Extract the first word of "cc", so it can be a program name with args.
1988 set dummy cc; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 if test -n "$ac_ct_CC"; then
1995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_ac_ct_CC="cc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2008 done
2009 done
2013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2014 if test -n "$ac_ct_CC"; then
2015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016 echo "${ECHO_T}$ac_ct_CC" >&6
2017 else
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2022 CC=$ac_ct_CC
2023 else
2024 CC="$ac_cv_prog_CC"
2028 if test -z "$CC"; then
2029 # Extract the first word of "cc", so it can be a program name with args.
2030 set dummy cc; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 ac_prog_rejected=no
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2048 ac_prog_rejected=yes
2049 continue
2051 ac_cv_prog_CC="cc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2055 done
2056 done
2058 if test $ac_prog_rejected = yes; then
2059 # We found a bogon in the path, so make sure we never use it.
2060 set dummy $ac_cv_prog_CC
2061 shift
2062 if test $# != 0; then
2063 # We chose a different compiler from the bogus one.
2064 # However, it has the same basename, so the bogon will be chosen
2065 # first if we set CC to just the basename; use the full file name.
2066 shift
2067 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2072 CC=$ac_cv_prog_CC
2073 if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2076 else
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2082 if test -z "$CC"; then
2083 if test -n "$ac_tool_prefix"; then
2084 for ac_prog in cl
2086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2107 done
2108 done
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114 echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2116 else
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2121 test -n "$CC" && break
2122 done
2124 if test -z "$CC"; then
2125 ac_ct_CC=$CC
2126 for ac_prog in cl
2128 # Extract the first word of "$ac_prog", so it can be a program name with args.
2129 set dummy $ac_prog; ac_word=$2
2130 echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135 if test -n "$ac_ct_CC"; then
2136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2137 else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145 ac_cv_prog_ac_ct_CC="$ac_prog"
2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 break 2
2149 done
2150 done
2154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2155 if test -n "$ac_ct_CC"; then
2156 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2157 echo "${ECHO_T}$ac_ct_CC" >&6
2158 else
2159 echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6
2163 test -n "$ac_ct_CC" && break
2164 done
2166 CC=$ac_ct_CC
2172 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2173 See \`config.log' for more details." >&5
2174 echo "$as_me: error: no acceptable C compiler found in \$PATH
2175 See \`config.log' for more details." >&2;}
2176 { (exit 1); exit 1; }; }
2178 # Provide some information about the compiler.
2179 echo "$as_me:$LINENO:" \
2180 "checking for C compiler version" >&5
2181 ac_compiler=`set X $ac_compile; echo $2`
2182 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2183 (eval $ac_compiler --version </dev/null >&5) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }
2187 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2188 (eval $ac_compiler -v </dev/null >&5) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }
2192 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2193 (eval $ac_compiler -V </dev/null >&5) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }
2198 cat >conftest.$ac_ext <<_ACEOF
2199 /* confdefs.h. */
2200 _ACEOF
2201 cat confdefs.h >>conftest.$ac_ext
2202 cat >>conftest.$ac_ext <<_ACEOF
2203 /* end confdefs.h. */
2206 main ()
2210 return 0;
2212 _ACEOF
2213 ac_clean_files_save=$ac_clean_files
2214 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2215 # Try to create an executable without -o first, disregard a.out.
2216 # It will help us diagnose broken compilers, and finding out an intuition
2217 # of exeext.
2218 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2219 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2220 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2221 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2222 (eval $ac_link_default) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; then
2226 # Find the output, starting from the most likely. This scheme is
2227 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2228 # resort.
2230 # Be careful to initialize this variable, since it used to be cached.
2231 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2232 ac_cv_exeext=
2233 # b.out is created by i960 compilers.
2234 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2236 test -f "$ac_file" || continue
2237 case $ac_file in
2238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2240 conftest.$ac_ext )
2241 # This is the source file.
2243 [ab].out )
2244 # We found the default executable, but exeext='' is most
2245 # certainly right.
2246 break;;
2247 *.* )
2248 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2249 # FIXME: I believe we export ac_cv_exeext for Libtool,
2250 # but it would be cool to find out if it's true. Does anybody
2251 # maintain Libtool? --akim.
2252 export ac_cv_exeext
2253 break;;
2255 break;;
2256 esac
2257 done
2258 else
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2262 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: C compiler cannot create executables
2265 See \`config.log' for more details." >&2;}
2266 { (exit 77); exit 77; }; }
2269 ac_exeext=$ac_cv_exeext
2270 echo "$as_me:$LINENO: result: $ac_file" >&5
2271 echo "${ECHO_T}$ac_file" >&6
2273 # Check the compiler produces executables we can run. If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2276 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2277 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2278 # If not cross compiling, check that we can run a simple program.
2279 if test "$cross_compiling" != yes; then
2280 if { ac_try='./$ac_file'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 cross_compiling=no
2287 else
2288 if test "$cross_compiling" = maybe; then
2289 cross_compiling=yes
2290 else
2291 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2292 If you meant to cross compile, use \`--host'.
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot run C compiled programs.
2295 If you meant to cross compile, use \`--host'.
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2301 echo "$as_me:$LINENO: result: yes" >&5
2302 echo "${ECHO_T}yes" >&6
2304 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2305 ac_clean_files=$ac_clean_files_save
2306 # Check the compiler produces executables we can run. If not, either
2307 # the compiler is broken, or we cross compile.
2308 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2309 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2310 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2311 echo "${ECHO_T}$cross_compiling" >&6
2313 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2314 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2316 (eval $ac_link) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322 # work properly (i.e., refer to `conftest.exe'), while it won't with
2323 # `rm'.
2324 for ac_file in conftest.exe conftest conftest.*; do
2325 test -f "$ac_file" || continue
2326 case $ac_file in
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 export ac_cv_exeext
2330 break;;
2331 * ) break;;
2332 esac
2333 done
2334 else
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest$ac_cv_exeext
2343 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2344 echo "${ECHO_T}$ac_cv_exeext" >&6
2346 rm -f conftest.$ac_ext
2347 EXEEXT=$ac_cv_exeext
2348 ac_exeext=$EXEEXT
2349 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2350 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2351 if test "${ac_cv_objext+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h. */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2362 main ()
2366 return 0;
2368 _ACEOF
2369 rm -f conftest.o conftest.obj
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2376 case $ac_file in
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2378 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2379 break;;
2380 esac
2381 done
2382 else
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2386 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2389 See \`config.log' for more details." >&2;}
2390 { (exit 1); exit 1; }; }
2393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2395 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2396 echo "${ECHO_T}$ac_cv_objext" >&6
2397 OBJEXT=$ac_cv_objext
2398 ac_objext=$OBJEXT
2399 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2412 main ()
2414 #ifndef __GNUC__
2415 choke me
2416 #endif
2419 return 0;
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2425 ac_status=$?
2426 grep -v '^ *+' conftest.er1 >conftest.err
2427 rm -f conftest.er1
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 ac_compiler_gnu=yes
2444 else
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2448 ac_compiler_gnu=no
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2455 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2456 GCC=`test $ac_compiler_gnu = yes && echo yes`
2457 ac_test_CFLAGS=${CFLAGS+set}
2458 ac_save_CFLAGS=$CFLAGS
2459 CFLAGS="-g"
2460 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2462 if test "${ac_cv_prog_cc_g+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h. */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2473 main ()
2477 return 0;
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482 (eval $ac_compile) 2>conftest.er1
2483 ac_status=$?
2484 grep -v '^ *+' conftest.er1 >conftest.err
2485 rm -f conftest.er1
2486 cat conftest.err >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } &&
2489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 (eval $ac_try) 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 ac_cv_prog_cc_g=yes
2502 else
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2506 ac_cv_prog_cc_g=no
2508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2511 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2512 if test "$ac_test_CFLAGS" = set; then
2513 CFLAGS=$ac_save_CFLAGS
2514 elif test $ac_cv_prog_cc_g = yes; then
2515 if test "$GCC" = yes; then
2516 CFLAGS="-g -O2"
2517 else
2518 CFLAGS="-g"
2520 else
2521 if test "$GCC" = yes; then
2522 CFLAGS="-O2"
2523 else
2524 CFLAGS=
2527 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2528 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2529 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 ac_cv_prog_cc_stdc=no
2533 ac_save_CC=$CC
2534 cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h. */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2540 #include <stdarg.h>
2541 #include <stdio.h>
2542 #include <sys/types.h>
2543 #include <sys/stat.h>
2544 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2545 struct buf { int x; };
2546 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2547 static char *e (p, i)
2548 char **p;
2549 int i;
2551 return p[i];
2553 static char *f (char * (*g) (char **, int), char **p, ...)
2555 char *s;
2556 va_list v;
2557 va_start (v,p);
2558 s = g (p, va_arg (v,int));
2559 va_end (v);
2560 return s;
2563 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2564 function prototypes and stuff, but not '\xHH' hex character constants.
2565 These don't provoke an error unfortunately, instead are silently treated
2566 as 'x'. The following induces an error, until -std1 is added to get
2567 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2568 array size at least. It's necessary to write '\x00'==0 to get something
2569 that's true only with -std1. */
2570 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2572 int test (int i, double x);
2573 struct s1 {int (*f) (int a);};
2574 struct s2 {int (*f) (double a);};
2575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2576 int argc;
2577 char **argv;
2579 main ()
2581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2583 return 0;
2585 _ACEOF
2586 # Don't try gcc -ansi; that turns off useful extensions and
2587 # breaks some systems' header files.
2588 # AIX -qlanglvl=ansi
2589 # Ultrix and OSF/1 -std1
2590 # HP-UX 10.20 and later -Ae
2591 # HP-UX older versions -Aa -D_HPUX_SOURCE
2592 # SVR4 -Xc -D__EXTENSIONS__
2593 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2595 CC="$ac_save_CC $ac_arg"
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2617 ac_cv_prog_cc_stdc=$ac_arg
2618 break
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2624 rm -f conftest.err conftest.$ac_objext
2625 done
2626 rm -f conftest.$ac_ext conftest.$ac_objext
2627 CC=$ac_save_CC
2631 case "x$ac_cv_prog_cc_stdc" in
2632 x|xno)
2633 echo "$as_me:$LINENO: result: none needed" >&5
2634 echo "${ECHO_T}none needed" >&6 ;;
2636 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2637 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2638 CC="$CC $ac_cv_prog_cc_stdc" ;;
2639 esac
2641 # Some people use a C++ compiler to compile C. Since we use `exit',
2642 # in C++ we need to declare it. In case someone uses the same compiler
2643 # for both compiling C and C++ we need to have the C++ compiler decide
2644 # the declaration of exit, since it's the most demanding environment.
2645 cat >conftest.$ac_ext <<_ACEOF
2646 #ifndef __cplusplus
2647 choke me
2648 #endif
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2653 ac_status=$?
2654 grep -v '^ *+' conftest.er1 >conftest.err
2655 rm -f conftest.er1
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; } &&
2665 { ac_try='test -s conftest.$ac_objext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 for ac_declaration in \
2672 '' \
2673 'extern "C" void std::exit (int) throw (); using std::exit;' \
2674 'extern "C" void std::exit (int); using std::exit;' \
2675 'extern "C" void exit (int) throw ();' \
2676 'extern "C" void exit (int);' \
2677 'void exit (int);'
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2685 $ac_declaration
2686 #include <stdlib.h>
2688 main ()
2690 exit (42);
2692 return 0;
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2717 else
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2721 continue
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h. */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730 $ac_declaration
2732 main ()
2734 exit (42);
2736 return 0;
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 break
2761 else
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767 done
2768 rm -f conftest*
2769 if test -n "$ac_declaration"; then
2770 echo '#ifdef __cplusplus' >>confdefs.h
2771 echo $ac_declaration >>confdefs.h
2772 echo '#endif' >>confdefs.h
2775 else
2776 echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 DEPDIR="${am__leading_dot}deps"
2788 ac_config_commands="$ac_config_commands depfiles"
2791 am_make=${MAKE-make}
2792 cat > confinc << 'END'
2793 am__doit:
2794 @echo done
2795 .PHONY: am__doit
2797 # If we don't find an include directive, just comment out the code.
2798 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2799 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2800 am__include="#"
2801 am__quote=
2802 _am_result=none
2803 # First try GNU make style include.
2804 echo "include confinc" > confmf
2805 # We grep out `Entering directory' and `Leaving directory'
2806 # messages which can occur if `w' ends up in MAKEFLAGS.
2807 # In particular we don't look at `^make:' because GNU make might
2808 # be invoked under some other name (usually "gmake"), in which
2809 # case it prints its new name instead of `make'.
2810 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2811 am__include=include
2812 am__quote=
2813 _am_result=GNU
2815 # Now try BSD make style include.
2816 if test "$am__include" = "#"; then
2817 echo '.include "confinc"' > confmf
2818 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2819 am__include=.include
2820 am__quote="\""
2821 _am_result=BSD
2826 echo "$as_me:$LINENO: result: $_am_result" >&5
2827 echo "${ECHO_T}$_am_result" >&6
2828 rm -f confinc confmf
2830 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2831 if test "${enable_dependency_tracking+set}" = set; then
2832 enableval="$enable_dependency_tracking"
2835 if test "x$enable_dependency_tracking" != xno; then
2836 am_depcomp="$ac_aux_dir/depcomp"
2837 AMDEPBACKSLASH='\'
2841 if test "x$enable_dependency_tracking" != xno; then
2842 AMDEP_TRUE=
2843 AMDEP_FALSE='#'
2844 else
2845 AMDEP_TRUE='#'
2846 AMDEP_FALSE=
2852 depcc="$CC" am_compiler_list=
2854 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2855 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2856 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2860 # We make a subdir and do the tests there. Otherwise we can end up
2861 # making bogus files that we don't know about and never remove. For
2862 # instance it was reported that on HP-UX the gcc test will end up
2863 # making a dummy file named `D' -- because `-MD' means `put the output
2864 # in D'.
2865 mkdir conftest.dir
2866 # Copy depcomp to subdir because otherwise we won't find it if we're
2867 # using a relative directory.
2868 cp "$am_depcomp" conftest.dir
2869 cd conftest.dir
2870 # We will build objects and dependencies in a subdirectory because
2871 # it helps to detect inapplicable dependency modes. For instance
2872 # both Tru64's cc and ICC support -MD to output dependencies as a
2873 # side effect of compilation, but ICC will put the dependencies in
2874 # the current directory while Tru64 will put them in the object
2875 # directory.
2876 mkdir sub
2878 am_cv_CC_dependencies_compiler_type=none
2879 if test "$am_compiler_list" = ""; then
2880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2882 for depmode in $am_compiler_list; do
2883 # Setup a source with many dependencies, because some compilers
2884 # like to wrap large dependency lists on column 80 (with \), and
2885 # we should not choose a depcomp mode which is confused by this.
2887 # We need to recreate these files for each test, as the compiler may
2888 # overwrite some of them when testing with obscure command lines.
2889 # This happens at least with the AIX C compiler.
2890 : > sub/conftest.c
2891 for i in 1 2 3 4 5 6; do
2892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2893 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2894 # Solaris 8's {/usr,}/bin/sh.
2895 touch sub/conftst$i.h
2896 done
2897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2899 case $depmode in
2900 nosideeffect)
2901 # after this tag, mechanisms are not by side-effect, so they'll
2902 # only be used when explicitly requested
2903 if test "x$enable_dependency_tracking" = xyes; then
2904 continue
2905 else
2906 break
2909 none) break ;;
2910 esac
2911 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2912 # mode. It turns out that the SunPro C++ compiler does not properly
2913 # handle `-M -o', and we need to detect this.
2914 if depmode=$depmode \
2915 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2916 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2917 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2918 >/dev/null 2>conftest.err &&
2919 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2920 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2921 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2922 # icc doesn't choke on unknown options, it will just issue warnings
2923 # or remarks (even with -Werror). So we grep stderr for any message
2924 # that says an option was ignored or not supported.
2925 # When given -MP, icc 7.0 and 7.1 complain thusly:
2926 # icc: Command line warning: ignoring option '-M'; no argument required
2927 # The diagnosis changed in icc 8.0:
2928 # icc: Command line remark: option '-MP' not supported
2929 if (grep 'ignoring option' conftest.err ||
2930 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2931 am_cv_CC_dependencies_compiler_type=$depmode
2932 break
2935 done
2937 cd ..
2938 rm -rf conftest.dir
2939 else
2940 am_cv_CC_dependencies_compiler_type=none
2944 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2945 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2946 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2951 test "x$enable_dependency_tracking" != xno \
2952 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2953 am__fastdepCC_TRUE=
2954 am__fastdepCC_FALSE='#'
2955 else
2956 am__fastdepCC_TRUE='#'
2957 am__fastdepCC_FALSE=
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2964 echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966 if test "${ac_cv_prog_RANLIB+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 if test -n "$RANLIB"; then
2970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2988 RANLIB=$ac_cv_prog_RANLIB
2989 if test -n "$RANLIB"; then
2990 echo "$as_me:$LINENO: result: $RANLIB" >&5
2991 echo "${ECHO_T}$RANLIB" >&6
2992 else
2993 echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2998 if test -z "$ac_cv_prog_RANLIB"; then
2999 ac_ct_RANLIB=$RANLIB
3000 # Extract the first word of "ranlib", so it can be a program name with args.
3001 set dummy ranlib; ac_word=$2
3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007 if test -n "$ac_ct_RANLIB"; then
3008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_RANLIB="ranlib"
3018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3021 done
3022 done
3024 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3028 if test -n "$ac_ct_RANLIB"; then
3029 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3030 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3031 else
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3036 RANLIB=$ac_ct_RANLIB
3037 else
3038 RANLIB="$ac_cv_prog_RANLIB"
3042 # Checks for header files.
3044 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3045 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3046 if test "${ac_cv_header_time+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3055 #include <sys/types.h>
3056 #include <sys/time.h>
3057 #include <time.h>
3060 main ()
3062 if ((struct tm *) 0)
3063 return 0;
3065 return 0;
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070 (eval $ac_compile) 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 ac_cv_header_time=yes
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 ac_cv_header_time=no
3096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3098 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3099 echo "${ECHO_T}$ac_cv_header_time" >&6
3100 if test $ac_cv_header_time = yes; then
3102 cat >>confdefs.h <<\_ACEOF
3103 #define TIME_WITH_SYS_TIME 1
3104 _ACEOF
3108 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
3109 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
3110 if test "${gcc_cv_header_string+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #include <string.h>
3120 #include <strings.h>
3122 main ()
3126 return 0;
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 (eval $ac_try) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 gcc_cv_header_string=yes
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 gcc_cv_header_string=no
3157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3159 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
3160 echo "${ECHO_T}$gcc_cv_header_string" >&6
3161 if test $gcc_cv_header_string = yes; then
3163 cat >>confdefs.h <<\_ACEOF
3164 #define STRING_WITH_STRINGS 1
3165 _ACEOF
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3175 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3176 # On Suns, sometimes $CPP names a directory.
3177 if test -n "$CPP" && test -d "$CPP"; then
3178 CPP=
3180 if test -z "$CPP"; then
3181 if test "${ac_cv_prog_CPP+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 # Double quotes because CPP needs to be expanded
3185 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3187 ac_preproc_ok=false
3188 for ac_c_preproc_warn_flag in '' yes
3190 # Use a header file that comes with gcc, so configuring glibc
3191 # with a fresh cross-compiler works.
3192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3193 # <limits.h> exists even on freestanding compilers.
3194 # On the NeXT, cc -E runs the code through the compiler's parser,
3195 # not just through cpp. "Syntax error" is here to catch this case.
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202 #ifdef __STDC__
3203 # include <limits.h>
3204 #else
3205 # include <assert.h>
3206 #endif
3207 Syntax error
3208 _ACEOF
3209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } >/dev/null; then
3217 if test -s conftest.err; then
3218 ac_cpp_err=$ac_c_preproc_warn_flag
3219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3220 else
3221 ac_cpp_err=
3223 else
3224 ac_cpp_err=yes
3226 if test -z "$ac_cpp_err"; then
3228 else
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3232 # Broken: fails on valid input.
3233 continue
3235 rm -f conftest.err conftest.$ac_ext
3237 # OK, works on sane cases. Now check whether non-existent headers
3238 # can be detected and how.
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 #include <ac_nonexistent.h>
3246 _ACEOF
3247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null; then
3255 if test -s conftest.err; then
3256 ac_cpp_err=$ac_c_preproc_warn_flag
3257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258 else
3259 ac_cpp_err=
3261 else
3262 ac_cpp_err=yes
3264 if test -z "$ac_cpp_err"; then
3265 # Broken: success on invalid input.
3266 continue
3267 else
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3271 # Passes both tests.
3272 ac_preproc_ok=:
3273 break
3275 rm -f conftest.err conftest.$ac_ext
3277 done
3278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3279 rm -f conftest.err conftest.$ac_ext
3280 if $ac_preproc_ok; then
3281 break
3284 done
3285 ac_cv_prog_CPP=$CPP
3288 CPP=$ac_cv_prog_CPP
3289 else
3290 ac_cv_prog_CPP=$CPP
3292 echo "$as_me:$LINENO: result: $CPP" >&5
3293 echo "${ECHO_T}$CPP" >&6
3294 ac_preproc_ok=false
3295 for ac_c_preproc_warn_flag in '' yes
3297 # Use a header file that comes with gcc, so configuring glibc
3298 # with a fresh cross-compiler works.
3299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3300 # <limits.h> exists even on freestanding compilers.
3301 # On the NeXT, cc -E runs the code through the compiler's parser,
3302 # not just through cpp. "Syntax error" is here to catch this case.
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #ifdef __STDC__
3310 # include <limits.h>
3311 #else
3312 # include <assert.h>
3313 #endif
3314 Syntax error
3315 _ACEOF
3316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null; then
3324 if test -s conftest.err; then
3325 ac_cpp_err=$ac_c_preproc_warn_flag
3326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3327 else
3328 ac_cpp_err=
3330 else
3331 ac_cpp_err=yes
3333 if test -z "$ac_cpp_err"; then
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 # Broken: fails on valid input.
3340 continue
3342 rm -f conftest.err conftest.$ac_ext
3344 # OK, works on sane cases. Now check whether non-existent headers
3345 # can be detected and how.
3346 cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h. */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352 #include <ac_nonexistent.h>
3353 _ACEOF
3354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365 else
3366 ac_cpp_err=
3368 else
3369 ac_cpp_err=yes
3371 if test -z "$ac_cpp_err"; then
3372 # Broken: success on invalid input.
3373 continue
3374 else
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 # Passes both tests.
3379 ac_preproc_ok=:
3380 break
3382 rm -f conftest.err conftest.$ac_ext
3384 done
3385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3386 rm -f conftest.err conftest.$ac_ext
3387 if $ac_preproc_ok; then
3389 else
3390 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3391 See \`config.log' for more details." >&5
3392 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3393 See \`config.log' for more details." >&2;}
3394 { (exit 1); exit 1; }; }
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 echo "$as_me:$LINENO: checking for egrep" >&5
3405 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3406 if test "${ac_cv_prog_egrep+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3410 then ac_cv_prog_egrep='grep -E'
3411 else ac_cv_prog_egrep='egrep'
3414 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3415 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3416 EGREP=$ac_cv_prog_egrep
3419 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3420 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3421 if test "${ac_cv_header_stdc+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <stdlib.h>
3431 #include <stdarg.h>
3432 #include <string.h>
3433 #include <float.h>
3436 main ()
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_header_stdc=yes
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 ac_cv_header_stdc=no
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 if test $ac_cv_header_stdc = yes; then
3474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <string.h>
3483 _ACEOF
3484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3485 $EGREP "memchr" >/dev/null 2>&1; then
3487 else
3488 ac_cv_header_stdc=no
3490 rm -f conftest*
3494 if test $ac_cv_header_stdc = yes; then
3495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include <stdlib.h>
3504 _ACEOF
3505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3506 $EGREP "free" >/dev/null 2>&1; then
3508 else
3509 ac_cv_header_stdc=no
3511 rm -f conftest*
3515 if test $ac_cv_header_stdc = yes; then
3516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3517 if test "$cross_compiling" = yes; then
3519 else
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include <ctype.h>
3527 #if ((' ' & 0x0FF) == 0x020)
3528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3530 #else
3531 # define ISLOWER(c) \
3532 (('a' <= (c) && (c) <= 'i') \
3533 || ('j' <= (c) && (c) <= 'r') \
3534 || ('s' <= (c) && (c) <= 'z'))
3535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3536 #endif
3538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3540 main ()
3542 int i;
3543 for (i = 0; i < 256; i++)
3544 if (XOR (islower (i), ISLOWER (i))
3545 || toupper (i) != TOUPPER (i))
3546 exit(2);
3547 exit (0);
3549 _ACEOF
3550 rm -f conftest$ac_exeext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3552 (eval $ac_link) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3562 else
3563 echo "$as_me: program exited with status $ac_status" >&5
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 ( exit $ac_status )
3568 ac_cv_header_stdc=no
3570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3576 if test $ac_cv_header_stdc = yes; then
3578 cat >>confdefs.h <<\_ACEOF
3579 #define STDC_HEADERS 1
3580 _ACEOF
3584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3595 inttypes.h stdint.h unistd.h
3597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3598 echo "$as_me:$LINENO: checking for $ac_header" >&5
3599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h. */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 $ac_includes_default
3611 #include <$ac_header>
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 eval "$as_ac_Header=yes"
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 eval "$as_ac_Header=no"
3641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3646 cat >>confdefs.h <<_ACEOF
3647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3648 _ACEOF
3652 done
3665 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3666 stdlib.h strings.h string.h sys/file.h unistd.h
3668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3670 echo "$as_me:$LINENO: checking for $ac_header" >&5
3671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3677 else
3678 # Is the header compilable?
3679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3681 cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h. */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3687 $ac_includes_default
3688 #include <$ac_header>
3689 _ACEOF
3690 rm -f conftest.$ac_objext
3691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692 (eval $ac_compile) 2>conftest.er1
3693 ac_status=$?
3694 grep -v '^ *+' conftest.er1 >conftest.err
3695 rm -f conftest.er1
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_header_compiler=yes
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_header_compiler=no
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3720 echo "${ECHO_T}$ac_header_compiler" >&6
3722 # Is the header present?
3723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731 #include <$ac_header>
3732 _ACEOF
3733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } >/dev/null; then
3741 if test -s conftest.err; then
3742 ac_cpp_err=$ac_c_preproc_warn_flag
3743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3744 else
3745 ac_cpp_err=
3747 else
3748 ac_cpp_err=yes
3750 if test -z "$ac_cpp_err"; then
3751 ac_header_preproc=yes
3752 else
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 ac_header_preproc=no
3758 rm -f conftest.err conftest.$ac_ext
3759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3760 echo "${ECHO_T}$ac_header_preproc" >&6
3762 # So? What about this header?
3763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3764 yes:no: )
3765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3769 ac_header_preproc=yes
3771 no:yes:* )
3772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3785 cat <<\_ASBOX
3786 ## ----------------------------------- ##
3787 ## Report this to gcc-bugs@gcc.gnu.org ##
3788 ## ----------------------------------- ##
3789 _ASBOX
3791 sed "s/^/$as_me: WARNING: /" >&2
3793 esac
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 eval "$as_ac_Header=\$ac_header_preproc"
3801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3806 cat >>confdefs.h <<_ACEOF
3807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3808 _ACEOF
3812 done
3815 # Checks for typedefs, structures, and compiler characteristics.
3816 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3817 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3818 if test "${ac_cv_c_const+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3829 main ()
3831 /* FIXME: Include the comments suggested by Paul. */
3832 #ifndef __cplusplus
3833 /* Ultrix mips cc rejects this. */
3834 typedef int charset[2];
3835 const charset x;
3836 /* SunOS 4.1.1 cc rejects this. */
3837 char const *const *ccp;
3838 char **p;
3839 /* NEC SVR4.0.2 mips cc rejects this. */
3840 struct point {int x, y;};
3841 static struct point const zero = {0,0};
3842 /* AIX XL C 1.02.0.0 rejects this.
3843 It does not let you subtract one const X* pointer from another in
3844 an arm of an if-expression whose if-part is not a constant
3845 expression */
3846 const char *g = "string";
3847 ccp = &g + (g ? g-g : 0);
3848 /* HPUX 7.0 cc rejects these. */
3849 ++ccp;
3850 p = (char**) ccp;
3851 ccp = (char const *const *) p;
3852 { /* SCO 3.2v4 cc rejects this. */
3853 char *t;
3854 char const *s = 0 ? (char *) 0 : (char const *) 0;
3856 *t++ = 0;
3858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3859 int x[] = {25, 17};
3860 const int *foo = &x[0];
3861 ++foo;
3863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3864 typedef const int *iptr;
3865 iptr p = 0;
3866 ++p;
3868 { /* AIX XL C 1.02.0.0 rejects this saying
3869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3870 struct s { int j; const int *ap[3]; };
3871 struct s *b; b->j = 5;
3873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3874 const int foo = 10;
3876 #endif
3879 return 0;
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; } &&
3897 { ac_try='test -s conftest.$ac_objext'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 ac_cv_c_const=yes
3904 else
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 ac_cv_c_const=no
3910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3912 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3913 echo "${ECHO_T}$ac_cv_c_const" >&6
3914 if test $ac_cv_c_const = no; then
3916 cat >>confdefs.h <<\_ACEOF
3917 #define const
3918 _ACEOF
3922 echo "$as_me:$LINENO: checking for inline" >&5
3923 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3924 if test "${ac_cv_c_inline+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 ac_cv_c_inline=no
3928 for ac_kw in inline __inline__ __inline; do
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 #ifndef __cplusplus
3936 typedef int foo_t;
3937 static $ac_kw foo_t static_foo () {return 0; }
3938 $ac_kw foo_t foo () {return 0; }
3939 #endif
3941 _ACEOF
3942 rm -f conftest.$ac_objext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944 (eval $ac_compile) 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; } &&
3957 { ac_try='test -s conftest.$ac_objext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 ac_cv_c_inline=$ac_kw; break
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3970 done
3973 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3974 echo "${ECHO_T}$ac_cv_c_inline" >&6
3977 case $ac_cv_c_inline in
3978 inline | yes) ;;
3980 case $ac_cv_c_inline in
3981 no) ac_val=;;
3982 *) ac_val=$ac_cv_c_inline;;
3983 esac
3984 cat >>confdefs.h <<_ACEOF
3985 #ifndef __cplusplus
3986 #define inline $ac_val
3987 #endif
3988 _ACEOF
3990 esac
3992 echo "$as_me:$LINENO: checking for obstacks" >&5
3993 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3994 if test "${ac_cv_func_obstack+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 #include "obstack.h"
4005 main ()
4007 struct obstack *mem; obstack_free(mem,(char *) 0)
4009 return 0;
4011 _ACEOF
4012 rm -f conftest.$ac_objext conftest$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest$ac_exeext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 ac_cv_func_obstack=yes
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 ac_cv_func_obstack=no
4040 rm -f conftest.err conftest.$ac_objext \
4041 conftest$ac_exeext conftest.$ac_ext
4043 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
4044 echo "${ECHO_T}$ac_cv_func_obstack" >&6
4045 if test $ac_cv_func_obstack = yes; then
4047 cat >>confdefs.h <<\_ACEOF
4048 #define HAVE_OBSTACK 1
4049 _ACEOF
4051 else
4052 case $LIBOBJS in
4053 "obstack.$ac_objext" | \
4054 *" obstack.$ac_objext" | \
4055 "obstack.$ac_objext "* | \
4056 *" obstack.$ac_objext "* ) ;;
4057 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
4058 esac
4062 echo "$as_me:$LINENO: checking for off_t" >&5
4063 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4064 if test "${ac_cv_type_off_t+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 $ac_includes_default
4075 main ()
4077 if ((off_t *) 0)
4078 return 0;
4079 if (sizeof (off_t))
4080 return 0;
4082 return 0;
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 ac_cv_type_off_t=yes
4107 else
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 ac_cv_type_off_t=no
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4116 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4117 if test $ac_cv_type_off_t = yes; then
4119 else
4121 cat >>confdefs.h <<_ACEOF
4122 #define off_t long
4123 _ACEOF
4127 echo "$as_me:$LINENO: checking for size_t" >&5
4128 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4129 if test "${ac_cv_type_size_t+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 $ac_includes_default
4140 main ()
4142 if ((size_t *) 0)
4143 return 0;
4144 if (sizeof (size_t))
4145 return 0;
4147 return 0;
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 ac_cv_type_size_t=yes
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 ac_cv_type_size_t=no
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4180 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4181 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4182 if test $ac_cv_type_size_t = yes; then
4184 else
4186 cat >>confdefs.h <<_ACEOF
4187 #define size_t unsigned
4188 _ACEOF
4192 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4193 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4194 if test "${ac_cv_struct_tm+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203 #include <sys/types.h>
4204 #include <time.h>
4207 main ()
4209 struct tm *tp; tp->tm_sec;
4211 return 0;
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_cv_struct_tm=time.h
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 ac_cv_struct_tm=sys/time.h
4242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4245 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4246 if test $ac_cv_struct_tm = sys/time.h; then
4248 cat >>confdefs.h <<\_ACEOF
4249 #define TM_IN_SYS_TIME 1
4250 _ACEOF
4254 echo "$as_me:$LINENO: checking for int" >&5
4255 echo $ECHO_N "checking for int... $ECHO_C" >&6
4256 if test "${ac_cv_type_int+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 $ac_includes_default
4267 main ()
4269 if ((int *) 0)
4270 return 0;
4271 if (sizeof (int))
4272 return 0;
4274 return 0;
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try='test -s conftest.$ac_objext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_type_int=yes
4299 else
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 ac_cv_type_int=no
4305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4307 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4308 echo "${ECHO_T}$ac_cv_type_int" >&6
4310 echo "$as_me:$LINENO: checking size of int" >&5
4311 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4312 if test "${ac_cv_sizeof_int+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 if test "$ac_cv_type_int" = yes; then
4316 # The cast to unsigned long works around a bug in the HP C Compiler
4317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4319 # This bug is HP SR number 8606223364.
4320 if test "$cross_compiling" = yes; then
4321 # Depending upon the size, compute the lo and hi bounds.
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h. */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 $ac_includes_default
4330 main ()
4332 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4333 test_array [0] = 0
4336 return 0;
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341 (eval $ac_compile) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_lo=0 ac_mid=0
4361 while :; do
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 $ac_includes_default
4370 main ()
4372 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4373 test_array [0] = 0
4376 return 0;
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_hi=$ac_mid; break
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 ac_lo=`expr $ac_mid + 1`
4406 if test $ac_lo -le $ac_mid; then
4407 ac_lo= ac_hi=
4408 break
4410 ac_mid=`expr 2 '*' $ac_mid + 1`
4412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4413 done
4414 else
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4426 main ()
4428 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4429 test_array [0] = 0
4432 return 0;
4434 _ACEOF
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 (eval $ac_try) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 ac_hi=-1 ac_mid=-1
4457 while :; do
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 $ac_includes_default
4466 main ()
4468 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4469 test_array [0] = 0
4472 return 0;
4474 _ACEOF
4475 rm -f conftest.$ac_objext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4477 (eval $ac_compile) 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 ac_lo=$ac_mid; break
4497 else
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 ac_hi=`expr '(' $ac_mid ')' - 1`
4502 if test $ac_mid -le $ac_hi; then
4503 ac_lo= ac_hi=
4504 break
4506 ac_mid=`expr 2 '*' $ac_mid`
4508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4509 done
4510 else
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 ac_lo= ac_hi=
4516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4519 # Binary search between lo and hi bounds.
4520 while test "x$ac_lo" != "x$ac_hi"; do
4521 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h. */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4530 main ()
4532 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4533 test_array [0] = 0
4536 return 0;
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_hi=$ac_mid
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_lo=`expr '(' $ac_mid ')' + 1`
4567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 done
4569 case $ac_lo in
4570 ?*) ac_cv_sizeof_int=$ac_lo;;
4571 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4572 See \`config.log' for more details." >&5
4573 echo "$as_me: error: cannot compute sizeof (int), 77
4574 See \`config.log' for more details." >&2;}
4575 { (exit 1); exit 1; }; } ;;
4576 esac
4577 else
4578 if test "$cross_compiling" = yes; then
4579 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4580 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4581 { (exit 1); exit 1; }; }
4582 else
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h. */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4590 long longval () { return (long) (sizeof (int)); }
4591 unsigned long ulongval () { return (long) (sizeof (int)); }
4592 #include <stdio.h>
4593 #include <stdlib.h>
4595 main ()
4598 FILE *f = fopen ("conftest.val", "w");
4599 if (! f)
4600 exit (1);
4601 if (((long) (sizeof (int))) < 0)
4603 long i = longval ();
4604 if (i != ((long) (sizeof (int))))
4605 exit (1);
4606 fprintf (f, "%ld\n", i);
4608 else
4610 unsigned long i = ulongval ();
4611 if (i != ((long) (sizeof (int))))
4612 exit (1);
4613 fprintf (f, "%lu\n", i);
4615 exit (ferror (f) || fclose (f) != 0);
4618 return 0;
4620 _ACEOF
4621 rm -f conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4632 ac_cv_sizeof_int=`cat conftest.val`
4633 else
4634 echo "$as_me: program exited with status $ac_status" >&5
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ( exit $ac_status )
4639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4640 See \`config.log' for more details." >&5
4641 echo "$as_me: error: cannot compute sizeof (int), 77
4642 See \`config.log' for more details." >&2;}
4643 { (exit 1); exit 1; }; }
4645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4648 rm -f conftest.val
4649 else
4650 ac_cv_sizeof_int=0
4653 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4654 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4655 cat >>confdefs.h <<_ACEOF
4656 #define SIZEOF_INT $ac_cv_sizeof_int
4657 _ACEOF
4660 echo "$as_me:$LINENO: checking for long" >&5
4661 echo $ECHO_N "checking for long... $ECHO_C" >&6
4662 if test "${ac_cv_type_long+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665 cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h. */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 $ac_includes_default
4673 main ()
4675 if ((long *) 0)
4676 return 0;
4677 if (sizeof (long))
4678 return 0;
4680 return 0;
4682 _ACEOF
4683 rm -f conftest.$ac_objext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_type_long=yes
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 ac_cv_type_long=no
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4714 echo "${ECHO_T}$ac_cv_type_long" >&6
4716 echo "$as_me:$LINENO: checking size of long" >&5
4717 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4718 if test "${ac_cv_sizeof_long+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721 if test "$ac_cv_type_long" = yes; then
4722 # The cast to unsigned long works around a bug in the HP C Compiler
4723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4725 # This bug is HP SR number 8606223364.
4726 if test "$cross_compiling" = yes; then
4727 # Depending upon the size, compute the lo and hi bounds.
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 $ac_includes_default
4736 main ()
4738 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4739 test_array [0] = 0
4742 return 0;
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; } &&
4760 { ac_try='test -s conftest.$ac_objext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_lo=0 ac_mid=0
4767 while :; do
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h. */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 $ac_includes_default
4776 main ()
4778 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4779 test_array [0] = 0
4782 return 0;
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>conftest.er1
4788 ac_status=$?
4789 grep -v '^ *+' conftest.er1 >conftest.err
4790 rm -f conftest.er1
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 (eval $ac_try) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_hi=$ac_mid; break
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4811 ac_lo=`expr $ac_mid + 1`
4812 if test $ac_lo -le $ac_mid; then
4813 ac_lo= ac_hi=
4814 break
4816 ac_mid=`expr 2 '*' $ac_mid + 1`
4818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4819 done
4820 else
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 $ac_includes_default
4832 main ()
4834 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4835 test_array [0] = 0
4838 return 0;
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 (eval $ac_try) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; } &&
4856 { ac_try='test -s conftest.$ac_objext'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 (eval $ac_try) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 ac_hi=-1 ac_mid=-1
4863 while :; do
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 $ac_includes_default
4872 main ()
4874 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4875 test_array [0] = 0
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_lo=$ac_mid; break
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 ac_hi=`expr '(' $ac_mid ')' - 1`
4908 if test $ac_mid -le $ac_hi; then
4909 ac_lo= ac_hi=
4910 break
4912 ac_mid=`expr 2 '*' $ac_mid`
4914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915 done
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 ac_lo= ac_hi=
4922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925 # Binary search between lo and hi bounds.
4926 while test "x$ac_lo" != "x$ac_hi"; do
4927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4928 cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 $ac_includes_default
4936 main ()
4938 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4939 test_array [0] = 0
4942 return 0;
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try='test -s conftest.$ac_objext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 ac_hi=$ac_mid
4967 else
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 ac_lo=`expr '(' $ac_mid ')' + 1`
4973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974 done
4975 case $ac_lo in
4976 ?*) ac_cv_sizeof_long=$ac_lo;;
4977 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4978 See \`config.log' for more details." >&5
4979 echo "$as_me: error: cannot compute sizeof (long), 77
4980 See \`config.log' for more details." >&2;}
4981 { (exit 1); exit 1; }; } ;;
4982 esac
4983 else
4984 if test "$cross_compiling" = yes; then
4985 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4986 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4987 { (exit 1); exit 1; }; }
4988 else
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4996 long longval () { return (long) (sizeof (long)); }
4997 unsigned long ulongval () { return (long) (sizeof (long)); }
4998 #include <stdio.h>
4999 #include <stdlib.h>
5001 main ()
5004 FILE *f = fopen ("conftest.val", "w");
5005 if (! f)
5006 exit (1);
5007 if (((long) (sizeof (long))) < 0)
5009 long i = longval ();
5010 if (i != ((long) (sizeof (long))))
5011 exit (1);
5012 fprintf (f, "%ld\n", i);
5014 else
5016 unsigned long i = ulongval ();
5017 if (i != ((long) (sizeof (long))))
5018 exit (1);
5019 fprintf (f, "%lu\n", i);
5021 exit (ferror (f) || fclose (f) != 0);
5024 return 0;
5026 _ACEOF
5027 rm -f conftest$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_cv_sizeof_long=`cat conftest.val`
5039 else
5040 echo "$as_me: program exited with status $ac_status" >&5
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 ( exit $ac_status )
5045 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5046 See \`config.log' for more details." >&5
5047 echo "$as_me: error: cannot compute sizeof (long), 77
5048 See \`config.log' for more details." >&2;}
5049 { (exit 1); exit 1; }; }
5051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5054 rm -f conftest.val
5055 else
5056 ac_cv_sizeof_long=0
5059 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5060 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5061 cat >>confdefs.h <<_ACEOF
5062 #define SIZEOF_LONG $ac_cv_sizeof_long
5063 _ACEOF
5071 for ac_func in putc_unlocked fputc_unlocked fputs_unlocked \
5072 fwrite_unlocked fprintf_unlocked
5074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5075 echo "$as_me:$LINENO: checking for $ac_func" >&5
5076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5077 if eval "test \"\${$as_ac_var+set}\" = set"; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080 cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5088 #define $ac_func innocuous_$ac_func
5090 /* System header to define __stub macros and hopefully few prototypes,
5091 which can conflict with char $ac_func (); below.
5092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093 <limits.h> exists even on freestanding compilers. */
5095 #ifdef __STDC__
5096 # include <limits.h>
5097 #else
5098 # include <assert.h>
5099 #endif
5101 #undef $ac_func
5103 /* Override any gcc2 internal prototype to avoid an error. */
5104 #ifdef __cplusplus
5105 extern "C"
5107 #endif
5108 /* We use char because int might match the return type of a gcc2
5109 builtin and then its argument prototype would still apply. */
5110 char $ac_func ();
5111 /* The GNU C library defines this for functions which it implements
5112 to always fail with ENOSYS. Some functions are actually named
5113 something starting with __ and the normal name is an alias. */
5114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5115 choke me
5116 #else
5117 char (*f) () = $ac_func;
5118 #endif
5119 #ifdef __cplusplus
5121 #endif
5124 main ()
5126 return f != $ac_func;
5128 return 0;
5130 _ACEOF
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; } &&
5146 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5152 eval "$as_ac_var=yes"
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5157 eval "$as_ac_var=no"
5159 rm -f conftest.err conftest.$ac_objext \
5160 conftest$ac_exeext conftest.$ac_ext
5162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5164 if test `eval echo '${'$as_ac_var'}'` = yes; then
5165 cat >>confdefs.h <<_ACEOF
5166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5167 _ACEOF
5170 done
5172 echo "$as_me:$LINENO: checking whether abort is declared" >&5
5173 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
5174 if test "${ac_cv_have_decl_abort+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 $ac_includes_default
5185 main ()
5187 #ifndef abort
5188 char *p = (char *) abort;
5189 #endif
5192 return 0;
5194 _ACEOF
5195 rm -f conftest.$ac_objext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5197 (eval $ac_compile) 2>conftest.er1
5198 ac_status=$?
5199 grep -v '^ *+' conftest.er1 >conftest.err
5200 rm -f conftest.er1
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } &&
5204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 (eval $ac_try) 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest.$ac_objext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 (eval $ac_try) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_have_decl_abort=yes
5217 else
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_cv_have_decl_abort=no
5223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5225 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5226 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5227 if test $ac_cv_have_decl_abort = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define HAVE_DECL_ABORT 1
5231 _ACEOF
5234 else
5235 cat >>confdefs.h <<_ACEOF
5236 #define HAVE_DECL_ABORT 0
5237 _ACEOF
5241 echo "$as_me:$LINENO: checking whether errno is declared" >&5
5242 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5243 if test "${ac_cv_have_decl_errno+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h. */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 $ac_includes_default
5254 main ()
5256 #ifndef errno
5257 char *p = (char *) errno;
5258 #endif
5261 return 0;
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 (eval $ac_compile) 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; } &&
5279 { ac_try='test -s conftest.$ac_objext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 (eval $ac_try) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_have_decl_errno=yes
5286 else
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290 ac_cv_have_decl_errno=no
5292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5295 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5296 if test $ac_cv_have_decl_errno = yes; then
5298 cat >>confdefs.h <<_ACEOF
5299 #define HAVE_DECL_ERRNO 1
5300 _ACEOF
5303 else
5304 cat >>confdefs.h <<_ACEOF
5305 #define HAVE_DECL_ERRNO 0
5306 _ACEOF
5310 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
5311 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
5312 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5323 main ()
5325 #ifndef putc_unlocked
5326 char *p = (char *) putc_unlocked;
5327 #endif
5330 return 0;
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_have_decl_putc_unlocked=yes
5355 else
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_cv_have_decl_putc_unlocked=no
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
5364 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
5365 if test $ac_cv_have_decl_putc_unlocked = yes; then
5367 cat >>confdefs.h <<_ACEOF
5368 #define HAVE_DECL_PUTC_UNLOCKED 1
5369 _ACEOF
5372 else
5373 cat >>confdefs.h <<_ACEOF
5374 #define HAVE_DECL_PUTC_UNLOCKED 0
5375 _ACEOF
5379 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5380 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
5381 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 $ac_includes_default
5392 main ()
5394 #ifndef fputc_unlocked
5395 char *p = (char *) fputc_unlocked;
5396 #endif
5399 return 0;
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_have_decl_fputc_unlocked=yes
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_cv_have_decl_fputc_unlocked=no
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5433 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5434 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define HAVE_DECL_FPUTC_UNLOCKED 1
5438 _ACEOF
5441 else
5442 cat >>confdefs.h <<_ACEOF
5443 #define HAVE_DECL_FPUTC_UNLOCKED 0
5444 _ACEOF
5448 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5449 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5450 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 $ac_includes_default
5461 main ()
5463 #ifndef fputs_unlocked
5464 char *p = (char *) fputs_unlocked;
5465 #endif
5468 return 0;
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; } &&
5486 { ac_try='test -s conftest.$ac_objext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 (eval $ac_try) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_have_decl_fputs_unlocked=yes
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 ac_cv_have_decl_fputs_unlocked=no
5499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5502 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
5503 if test $ac_cv_have_decl_fputs_unlocked = yes; then
5505 cat >>confdefs.h <<_ACEOF
5506 #define HAVE_DECL_FPUTS_UNLOCKED 1
5507 _ACEOF
5510 else
5511 cat >>confdefs.h <<_ACEOF
5512 #define HAVE_DECL_FPUTS_UNLOCKED 0
5513 _ACEOF
5517 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5518 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
5519 if test "${ac_cv_have_decl_fwrite_unlocked+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 $ac_includes_default
5530 main ()
5532 #ifndef fwrite_unlocked
5533 char *p = (char *) fwrite_unlocked;
5534 #endif
5537 return 0;
5539 _ACEOF
5540 rm -f conftest.$ac_objext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest.$ac_objext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_cv_have_decl_fwrite_unlocked=yes
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 ac_cv_have_decl_fwrite_unlocked=no
5568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5570 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5571 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
5572 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5574 cat >>confdefs.h <<_ACEOF
5575 #define HAVE_DECL_FWRITE_UNLOCKED 1
5576 _ACEOF
5579 else
5580 cat >>confdefs.h <<_ACEOF
5581 #define HAVE_DECL_FWRITE_UNLOCKED 0
5582 _ACEOF
5586 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5587 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5588 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h. */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 $ac_includes_default
5599 main ()
5601 #ifndef fprintf_unlocked
5602 char *p = (char *) fprintf_unlocked;
5603 #endif
5606 return 0;
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 (eval $ac_try) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; } &&
5624 { ac_try='test -s conftest.$ac_objext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 (eval $ac_try) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_cv_have_decl_fprintf_unlocked=yes
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 ac_cv_have_decl_fprintf_unlocked=no
5637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5639 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
5640 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
5641 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
5643 cat >>confdefs.h <<_ACEOF
5644 #define HAVE_DECL_FPRINTF_UNLOCKED 1
5645 _ACEOF
5648 else
5649 cat >>confdefs.h <<_ACEOF
5650 #define HAVE_DECL_FPRINTF_UNLOCKED 0
5651 _ACEOF
5658 # Checks for library functions.
5659 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5660 # for constant arguments. Useless!
5661 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5662 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5663 if test "${ac_cv_working_alloca_h+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h. */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 #include <alloca.h>
5674 main ()
5676 char *p = (char *) alloca (2 * sizeof (int));
5678 return 0;
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 (eval $ac_try) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; } &&
5696 { ac_try='test -s conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5702 ac_cv_working_alloca_h=yes
5703 else
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 ac_cv_working_alloca_h=no
5709 rm -f conftest.err conftest.$ac_objext \
5710 conftest$ac_exeext conftest.$ac_ext
5712 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5713 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5714 if test $ac_cv_working_alloca_h = yes; then
5716 cat >>confdefs.h <<\_ACEOF
5717 #define HAVE_ALLOCA_H 1
5718 _ACEOF
5722 echo "$as_me:$LINENO: checking for alloca" >&5
5723 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5724 if test "${ac_cv_func_alloca_works+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #ifdef __GNUC__
5734 # define alloca __builtin_alloca
5735 #else
5736 # ifdef _MSC_VER
5737 # include <malloc.h>
5738 # define alloca _alloca
5739 # else
5740 # if HAVE_ALLOCA_H
5741 # include <alloca.h>
5742 # else
5743 # ifdef _AIX
5744 #pragma alloca
5745 # else
5746 # ifndef alloca /* predefined by HP cc +Olibcalls */
5747 char *alloca ();
5748 # endif
5749 # endif
5750 # endif
5751 # endif
5752 #endif
5755 main ()
5757 char *p = (char *) alloca (1);
5759 return 0;
5761 _ACEOF
5762 rm -f conftest.$ac_objext conftest$ac_exeext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5764 (eval $ac_link) 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest$ac_exeext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 ac_cv_func_alloca_works=yes
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 ac_cv_func_alloca_works=no
5790 rm -f conftest.err conftest.$ac_objext \
5791 conftest$ac_exeext conftest.$ac_ext
5793 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5794 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5796 if test $ac_cv_func_alloca_works = yes; then
5798 cat >>confdefs.h <<\_ACEOF
5799 #define HAVE_ALLOCA 1
5800 _ACEOF
5802 else
5803 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5804 # that cause trouble. Some versions do not even contain alloca or
5805 # contain a buggy version. If you still want to use their alloca,
5806 # use ar to extract alloca.o from them instead of compiling alloca.c.
5808 ALLOCA=alloca.$ac_objext
5810 cat >>confdefs.h <<\_ACEOF
5811 #define C_ALLOCA 1
5812 _ACEOF
5815 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5816 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5817 if test "${ac_cv_os_cray+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #if defined(CRAY) && ! defined(CRAY2)
5827 webecray
5828 #else
5829 wenotbecray
5830 #endif
5832 _ACEOF
5833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5834 $EGREP "webecray" >/dev/null 2>&1; then
5835 ac_cv_os_cray=yes
5836 else
5837 ac_cv_os_cray=no
5839 rm -f conftest*
5842 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5843 echo "${ECHO_T}$ac_cv_os_cray" >&6
5844 if test $ac_cv_os_cray = yes; then
5845 for ac_func in _getb67 GETB67 getb67; do
5846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5847 echo "$as_me:$LINENO: checking for $ac_func" >&5
5848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5849 if eval "test \"\${$as_ac_var+set}\" = set"; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5860 #define $ac_func innocuous_$ac_func
5862 /* System header to define __stub macros and hopefully few prototypes,
5863 which can conflict with char $ac_func (); below.
5864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5865 <limits.h> exists even on freestanding compilers. */
5867 #ifdef __STDC__
5868 # include <limits.h>
5869 #else
5870 # include <assert.h>
5871 #endif
5873 #undef $ac_func
5875 /* Override any gcc2 internal prototype to avoid an error. */
5876 #ifdef __cplusplus
5877 extern "C"
5879 #endif
5880 /* We use char because int might match the return type of a gcc2
5881 builtin and then its argument prototype would still apply. */
5882 char $ac_func ();
5883 /* The GNU C library defines this for functions which it implements
5884 to always fail with ENOSYS. Some functions are actually named
5885 something starting with __ and the normal name is an alias. */
5886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5887 choke me
5888 #else
5889 char (*f) () = $ac_func;
5890 #endif
5891 #ifdef __cplusplus
5893 #endif
5896 main ()
5898 return f != $ac_func;
5900 return 0;
5902 _ACEOF
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest$ac_exeext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 eval "$as_ac_var=yes"
5925 else
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5929 eval "$as_ac_var=no"
5931 rm -f conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5936 if test `eval echo '${'$as_ac_var'}'` = yes; then
5938 cat >>confdefs.h <<_ACEOF
5939 #define CRAY_STACKSEG_END $ac_func
5940 _ACEOF
5942 break
5945 done
5948 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5949 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5950 if test "${ac_cv_c_stack_direction+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 if test "$cross_compiling" = yes; then
5954 ac_cv_c_stack_direction=0
5955 else
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5963 find_stack_direction ()
5965 static char *addr = 0;
5966 auto char dummy;
5967 if (addr == 0)
5969 addr = &dummy;
5970 return find_stack_direction ();
5972 else
5973 return (&dummy > addr) ? 1 : -1;
5977 main ()
5979 exit (find_stack_direction () < 0);
5981 _ACEOF
5982 rm -f conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_c_stack_direction=1
5994 else
5995 echo "$as_me: program exited with status $ac_status" >&5
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ( exit $ac_status )
6000 ac_cv_c_stack_direction=-1
6002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6005 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6006 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6008 cat >>confdefs.h <<_ACEOF
6009 #define STACK_DIRECTION $ac_cv_c_stack_direction
6010 _ACEOF
6015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6017 if test "${ac_cv_header_stdc+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #include <stdlib.h>
6027 #include <stdarg.h>
6028 #include <string.h>
6029 #include <float.h>
6032 main ()
6036 return 0;
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041 (eval $ac_compile) 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest.$ac_objext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 ac_cv_header_stdc=yes
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_cv_header_stdc=no
6067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6069 if test $ac_cv_header_stdc = yes; then
6070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <string.h>
6079 _ACEOF
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "memchr" >/dev/null 2>&1; then
6083 else
6084 ac_cv_header_stdc=no
6086 rm -f conftest*
6090 if test $ac_cv_header_stdc = yes; then
6091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h. */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 #include <stdlib.h>
6100 _ACEOF
6101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6102 $EGREP "free" >/dev/null 2>&1; then
6104 else
6105 ac_cv_header_stdc=no
6107 rm -f conftest*
6111 if test $ac_cv_header_stdc = yes; then
6112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6113 if test "$cross_compiling" = yes; then
6115 else
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 #include <ctype.h>
6123 #if ((' ' & 0x0FF) == 0x020)
6124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6126 #else
6127 # define ISLOWER(c) \
6128 (('a' <= (c) && (c) <= 'i') \
6129 || ('j' <= (c) && (c) <= 'r') \
6130 || ('s' <= (c) && (c) <= 'z'))
6131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6132 #endif
6134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6136 main ()
6138 int i;
6139 for (i = 0; i < 256; i++)
6140 if (XOR (islower (i), ISLOWER (i))
6141 || toupper (i) != TOUPPER (i))
6142 exit(2);
6143 exit (0);
6145 _ACEOF
6146 rm -f conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148 (eval $ac_link) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6158 else
6159 echo "$as_me: program exited with status $ac_status" >&5
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 ( exit $ac_status )
6164 ac_cv_header_stdc=no
6166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6170 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6171 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6172 if test $ac_cv_header_stdc = yes; then
6174 cat >>confdefs.h <<\_ACEOF
6175 #define STDC_HEADERS 1
6176 _ACEOF
6181 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6182 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6183 if test "${am_cv_langinfo_codeset+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <langinfo.h>
6194 main ()
6196 char* cs = nl_langinfo(CODESET);
6198 return 0;
6200 _ACEOF
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203 (eval $ac_link) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try='test -s conftest$ac_exeext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 am_cv_langinfo_codeset=yes
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 am_cv_langinfo_codeset=no
6229 rm -f conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6233 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6234 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6235 if test $am_cv_langinfo_codeset = yes; then
6237 cat >>confdefs.h <<\_ACEOF
6238 #define HAVE_LANGINFO_CODESET 1
6239 _ACEOF
6243 # If we haven't got the data from the intl directory,
6244 # assume NLS is disabled.
6245 USE_NLS=no
6246 LIBINTL=
6247 LIBINTL_DEP=
6248 INCINTL=
6249 XGETTEXT=
6250 GMSGFMT=
6251 POSUB=
6252 if test -f ../intl/config.intl; then
6253 . ../intl/config.intl
6255 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6256 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6257 if test x"$USE_NLS" != xyes; then
6258 echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6
6260 else
6261 echo "$as_me:$LINENO: result: yes" >&5
6262 echo "${ECHO_T}yes" >&6
6264 cat >>confdefs.h <<\_ACEOF
6265 #define ENABLE_NLS 1
6266 _ACEOF
6269 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6270 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6271 # Look for .po and .gmo files in the source directory.
6272 CATALOGS=
6273 XLINGUAS=
6274 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6275 # If there aren't any .gmo files the shell will give us the
6276 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6277 # weeded out.
6278 case "$cat" in *\**)
6279 continue;;
6280 esac
6281 # The quadruple backslash is collapsed to a double backslash
6282 # by the backticks, then collapsed again by the double quotes,
6283 # leaving us with one backslash in the sed expression (right
6284 # before the dot that mustn't act as a wildcard).
6285 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
6286 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
6287 # The user is allowed to set LINGUAS to a list of languages to
6288 # install catalogs for. If it's empty that means "all of them."
6289 if test "x$LINGUAS" = x; then
6290 CATALOGS="$CATALOGS $cat"
6291 XLINGUAS="$XLINGUAS $lang"
6292 else
6293 case "$LINGUAS" in *$lang*)
6294 CATALOGS="$CATALOGS $cat"
6295 XLINGUAS="$XLINGUAS $lang"
6297 esac
6299 done
6300 LINGUAS="$XLINGUAS"
6301 echo "$as_me:$LINENO: result: $LINGUAS" >&5
6302 echo "${ECHO_T}$LINGUAS" >&6
6305 echo "$as_me:$LINENO: checking for uchar" >&5
6306 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
6307 if test "${gcc_cv_type_uchar+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h. */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6317 #include "ansidecl.h"
6318 #include "system.h"
6321 main ()
6323 if ((uchar *)0) return 0;
6324 if (sizeof(uchar)) return 0;
6326 return 0;
6328 _ACEOF
6329 rm -f conftest.$ac_objext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; } &&
6344 { ac_try='test -s conftest.$ac_objext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_type_uchar=yes
6351 else
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 ac_cv_type_uchar=no
6357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6359 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
6360 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
6361 if test $ac_cv_type_uchar = yes; then
6363 cat >>confdefs.h <<\_ACEOF
6364 #define HAVE_UCHAR 1
6365 _ACEOF
6370 if test "X$prefix" = "XNONE"; then
6371 acl_final_prefix="$ac_default_prefix"
6372 else
6373 acl_final_prefix="$prefix"
6375 if test "X$exec_prefix" = "XNONE"; then
6376 acl_final_exec_prefix='${prefix}'
6377 else
6378 acl_final_exec_prefix="$exec_prefix"
6380 acl_save_prefix="$prefix"
6381 prefix="$acl_final_prefix"
6382 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6383 prefix="$acl_save_prefix"
6386 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6387 if test "${with_gnu_ld+set}" = set; then
6388 withval="$with_gnu_ld"
6389 test "$withval" = no || with_gnu_ld=yes
6390 else
6391 with_gnu_ld=no
6393 # Prepare PATH_SEPARATOR.
6394 # The user is always right.
6395 if test "${PATH_SEPARATOR+set}" != set; then
6396 echo "#! /bin/sh" >conf$$.sh
6397 echo "exit 0" >>conf$$.sh
6398 chmod +x conf$$.sh
6399 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6400 PATH_SEPARATOR=';'
6401 else
6402 PATH_SEPARATOR=:
6404 rm -f conf$$.sh
6406 ac_prog=ld
6407 if test "$GCC" = yes; then
6408 # Check if gcc -print-prog-name=ld gives a path.
6409 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6410 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6411 case $host in
6412 *-*-mingw*)
6413 # gcc leaves a trailing carriage return which upsets mingw
6414 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6416 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6417 esac
6418 case $ac_prog in
6419 # Accept absolute paths.
6420 [\\/]* | [A-Za-z]:[\\/]*)
6421 re_direlt='/[^/][^/]*/\.\./'
6422 # Canonicalize the path of ld
6423 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6424 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6425 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6426 done
6427 test -z "$LD" && LD="$ac_prog"
6430 # If it fails, then pretend we aren't using GCC.
6431 ac_prog=ld
6434 # If it is relative, then search for the first ld in PATH.
6435 with_gnu_ld=unknown
6437 esac
6438 elif test "$with_gnu_ld" = yes; then
6439 echo "$as_me:$LINENO: checking for GNU ld" >&5
6440 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6441 else
6442 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6443 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6445 if test "${acl_cv_path_LD+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 if test -z "$LD"; then
6449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6450 for ac_dir in $PATH; do
6451 test -z "$ac_dir" && ac_dir=.
6452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6453 acl_cv_path_LD="$ac_dir/$ac_prog"
6454 # Check to see if the program is GNU ld. I'd rather use --version,
6455 # but apparently some GNU ld's only accept -v.
6456 # Break only if it was the GNU/non-GNU ld that we prefer.
6457 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6458 *GNU* | *'with BFD'*)
6459 test "$with_gnu_ld" != no && break ;;
6461 test "$with_gnu_ld" != yes && break ;;
6462 esac
6464 done
6465 IFS="$ac_save_ifs"
6466 else
6467 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6471 LD="$acl_cv_path_LD"
6472 if test -n "$LD"; then
6473 echo "$as_me:$LINENO: result: $LD" >&5
6474 echo "${ECHO_T}$LD" >&6
6475 else
6476 echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6
6479 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6480 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6481 { (exit 1); exit 1; }; }
6482 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6483 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6484 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6488 case `$LD -v 2>&1 </dev/null` in
6489 *GNU* | *'with BFD'*)
6490 acl_cv_prog_gnu_ld=yes ;;
6492 acl_cv_prog_gnu_ld=no ;;
6493 esac
6495 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6496 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6497 with_gnu_ld=$acl_cv_prog_gnu_ld
6501 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6502 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6503 if test "${acl_cv_rpath+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6507 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6508 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6509 . ./conftest.sh
6510 rm -f ./conftest.sh
6511 acl_cv_rpath=done
6514 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6515 echo "${ECHO_T}$acl_cv_rpath" >&6
6516 wl="$acl_cv_wl"
6517 libext="$acl_cv_libext"
6518 shlibext="$acl_cv_shlibext"
6519 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6520 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6521 hardcode_direct="$acl_cv_hardcode_direct"
6522 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6523 # Check whether --enable-rpath or --disable-rpath was given.
6524 if test "${enable_rpath+set}" = set; then
6525 enableval="$enable_rpath"
6527 else
6528 enable_rpath=yes
6537 use_additional=yes
6539 acl_save_prefix="$prefix"
6540 prefix="$acl_final_prefix"
6541 acl_save_exec_prefix="$exec_prefix"
6542 exec_prefix="$acl_final_exec_prefix"
6544 eval additional_includedir=\"$includedir\"
6545 eval additional_libdir=\"$libdir\"
6547 exec_prefix="$acl_save_exec_prefix"
6548 prefix="$acl_save_prefix"
6551 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6552 if test "${with_libiconv_prefix+set}" = set; then
6553 withval="$with_libiconv_prefix"
6555 if test "X$withval" = "Xno"; then
6556 use_additional=no
6557 else
6558 if test "X$withval" = "X"; then
6560 acl_save_prefix="$prefix"
6561 prefix="$acl_final_prefix"
6562 acl_save_exec_prefix="$exec_prefix"
6563 exec_prefix="$acl_final_exec_prefix"
6565 eval additional_includedir=\"$includedir\"
6566 eval additional_libdir=\"$libdir\"
6568 exec_prefix="$acl_save_exec_prefix"
6569 prefix="$acl_save_prefix"
6571 else
6572 additional_includedir="$withval/include"
6573 additional_libdir="$withval/lib"
6578 LIBICONV=
6579 LTLIBICONV=
6580 INCICONV=
6581 rpathdirs=
6582 ltrpathdirs=
6583 names_already_handled=
6584 names_next_round='iconv '
6585 while test -n "$names_next_round"; do
6586 names_this_round="$names_next_round"
6587 names_next_round=
6588 for name in $names_this_round; do
6589 already_handled=
6590 for n in $names_already_handled; do
6591 if test "$n" = "$name"; then
6592 already_handled=yes
6593 break
6595 done
6596 if test -z "$already_handled"; then
6597 names_already_handled="$names_already_handled $name"
6598 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6599 eval value=\"\$HAVE_LIB$uppername\"
6600 if test -n "$value"; then
6601 if test "$value" = yes; then
6602 eval value=\"\$LIB$uppername\"
6603 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6604 eval value=\"\$LTLIB$uppername\"
6605 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6606 else
6609 else
6610 found_dir=
6611 found_la=
6612 found_so=
6613 found_a=
6614 if test $use_additional = yes; then
6615 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6616 found_dir="$additional_libdir"
6617 found_so="$additional_libdir/lib$name.$shlibext"
6618 if test -f "$additional_libdir/lib$name.la"; then
6619 found_la="$additional_libdir/lib$name.la"
6621 else
6622 if test -f "$additional_libdir/lib$name.$libext"; then
6623 found_dir="$additional_libdir"
6624 found_a="$additional_libdir/lib$name.$libext"
6625 if test -f "$additional_libdir/lib$name.la"; then
6626 found_la="$additional_libdir/lib$name.la"
6631 if test "X$found_dir" = "X"; then
6632 for x in $LDFLAGS $LTLIBICONV; do
6634 acl_save_prefix="$prefix"
6635 prefix="$acl_final_prefix"
6636 acl_save_exec_prefix="$exec_prefix"
6637 exec_prefix="$acl_final_exec_prefix"
6638 eval x=\"$x\"
6639 exec_prefix="$acl_save_exec_prefix"
6640 prefix="$acl_save_prefix"
6642 case "$x" in
6643 -L*)
6644 dir=`echo "X$x" | sed -e 's/^X-L//'`
6645 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6646 found_dir="$dir"
6647 found_so="$dir/lib$name.$shlibext"
6648 if test -f "$dir/lib$name.la"; then
6649 found_la="$dir/lib$name.la"
6651 else
6652 if test -f "$dir/lib$name.$libext"; then
6653 found_dir="$dir"
6654 found_a="$dir/lib$name.$libext"
6655 if test -f "$dir/lib$name.la"; then
6656 found_la="$dir/lib$name.la"
6661 esac
6662 if test "X$found_dir" != "X"; then
6663 break
6665 done
6667 if test "X$found_dir" != "X"; then
6668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6669 if test "X$found_so" != "X"; then
6670 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6671 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6672 else
6673 haveit=
6674 for x in $ltrpathdirs; do
6675 if test "X$x" = "X$found_dir"; then
6676 haveit=yes
6677 break
6679 done
6680 if test -z "$haveit"; then
6681 ltrpathdirs="$ltrpathdirs $found_dir"
6683 if test "$hardcode_direct" = yes; then
6684 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6685 else
6686 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6687 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6688 haveit=
6689 for x in $rpathdirs; do
6690 if test "X$x" = "X$found_dir"; then
6691 haveit=yes
6692 break
6694 done
6695 if test -z "$haveit"; then
6696 rpathdirs="$rpathdirs $found_dir"
6698 else
6699 haveit=
6700 for x in $LDFLAGS $LIBICONV; do
6702 acl_save_prefix="$prefix"
6703 prefix="$acl_final_prefix"
6704 acl_save_exec_prefix="$exec_prefix"
6705 exec_prefix="$acl_final_exec_prefix"
6706 eval x=\"$x\"
6707 exec_prefix="$acl_save_exec_prefix"
6708 prefix="$acl_save_prefix"
6710 if test "X$x" = "X-L$found_dir"; then
6711 haveit=yes
6712 break
6714 done
6715 if test -z "$haveit"; then
6716 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6718 if test "$hardcode_minus_L" != no; then
6719 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6720 else
6721 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6726 else
6727 if test "X$found_a" != "X"; then
6728 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6729 else
6730 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6733 additional_includedir=
6734 case "$found_dir" in
6735 */lib | */lib/)
6736 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6737 additional_includedir="$basedir/include"
6739 esac
6740 if test "X$additional_includedir" != "X"; then
6741 if test "X$additional_includedir" != "X/usr/include"; then
6742 haveit=
6743 if test "X$additional_includedir" = "X/usr/local/include"; then
6744 if test -n "$GCC"; then
6745 case $host_os in
6746 linux*) haveit=yes;;
6747 esac
6750 if test -z "$haveit"; then
6751 for x in $CPPFLAGS $INCICONV; do
6753 acl_save_prefix="$prefix"
6754 prefix="$acl_final_prefix"
6755 acl_save_exec_prefix="$exec_prefix"
6756 exec_prefix="$acl_final_exec_prefix"
6757 eval x=\"$x\"
6758 exec_prefix="$acl_save_exec_prefix"
6759 prefix="$acl_save_prefix"
6761 if test "X$x" = "X-I$additional_includedir"; then
6762 haveit=yes
6763 break
6765 done
6766 if test -z "$haveit"; then
6767 if test -d "$additional_includedir"; then
6768 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6774 if test -n "$found_la"; then
6775 save_libdir="$libdir"
6776 case "$found_la" in
6777 */* | *\\*) . "$found_la" ;;
6778 *) . "./$found_la" ;;
6779 esac
6780 libdir="$save_libdir"
6781 for dep in $dependency_libs; do
6782 case "$dep" in
6783 -L*)
6784 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6785 if test "X$additional_libdir" != "X/usr/lib"; then
6786 haveit=
6787 if test "X$additional_libdir" = "X/usr/local/lib"; then
6788 if test -n "$GCC"; then
6789 case $host_os in
6790 linux*) haveit=yes;;
6791 esac
6794 if test -z "$haveit"; then
6795 haveit=
6796 for x in $LDFLAGS $LIBICONV; do
6798 acl_save_prefix="$prefix"
6799 prefix="$acl_final_prefix"
6800 acl_save_exec_prefix="$exec_prefix"
6801 exec_prefix="$acl_final_exec_prefix"
6802 eval x=\"$x\"
6803 exec_prefix="$acl_save_exec_prefix"
6804 prefix="$acl_save_prefix"
6806 if test "X$x" = "X-L$additional_libdir"; then
6807 haveit=yes
6808 break
6810 done
6811 if test -z "$haveit"; then
6812 if test -d "$additional_libdir"; then
6813 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6816 haveit=
6817 for x in $LDFLAGS $LTLIBICONV; do
6819 acl_save_prefix="$prefix"
6820 prefix="$acl_final_prefix"
6821 acl_save_exec_prefix="$exec_prefix"
6822 exec_prefix="$acl_final_exec_prefix"
6823 eval x=\"$x\"
6824 exec_prefix="$acl_save_exec_prefix"
6825 prefix="$acl_save_prefix"
6827 if test "X$x" = "X-L$additional_libdir"; then
6828 haveit=yes
6829 break
6831 done
6832 if test -z "$haveit"; then
6833 if test -d "$additional_libdir"; then
6834 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6840 -R*)
6841 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6842 if test "$enable_rpath" != no; then
6843 haveit=
6844 for x in $rpathdirs; do
6845 if test "X$x" = "X$dir"; then
6846 haveit=yes
6847 break
6849 done
6850 if test -z "$haveit"; then
6851 rpathdirs="$rpathdirs $dir"
6853 haveit=
6854 for x in $ltrpathdirs; do
6855 if test "X$x" = "X$dir"; then
6856 haveit=yes
6857 break
6859 done
6860 if test -z "$haveit"; then
6861 ltrpathdirs="$ltrpathdirs $dir"
6865 -l*)
6866 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6868 *.la)
6869 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6872 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6873 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6875 esac
6876 done
6878 else
6879 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6880 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6884 done
6885 done
6886 if test "X$rpathdirs" != "X"; then
6887 if test -n "$hardcode_libdir_separator"; then
6888 alldirs=
6889 for found_dir in $rpathdirs; do
6890 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6891 done
6892 acl_save_libdir="$libdir"
6893 libdir="$alldirs"
6894 eval flag=\"$hardcode_libdir_flag_spec\"
6895 libdir="$acl_save_libdir"
6896 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6897 else
6898 for found_dir in $rpathdirs; do
6899 acl_save_libdir="$libdir"
6900 libdir="$found_dir"
6901 eval flag=\"$hardcode_libdir_flag_spec\"
6902 libdir="$acl_save_libdir"
6903 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6904 done
6907 if test "X$ltrpathdirs" != "X"; then
6908 for found_dir in $ltrpathdirs; do
6909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6910 done
6919 am_save_CPPFLAGS="$CPPFLAGS"
6921 for element in $INCICONV; do
6922 haveit=
6923 for x in $CPPFLAGS; do
6925 acl_save_prefix="$prefix"
6926 prefix="$acl_final_prefix"
6927 acl_save_exec_prefix="$exec_prefix"
6928 exec_prefix="$acl_final_exec_prefix"
6929 eval x=\"$x\"
6930 exec_prefix="$acl_save_exec_prefix"
6931 prefix="$acl_save_prefix"
6933 if test "X$x" = "X$element"; then
6934 haveit=yes
6935 break
6937 done
6938 if test -z "$haveit"; then
6939 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6941 done
6944 echo "$as_me:$LINENO: checking for iconv" >&5
6945 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6946 if test "${am_cv_func_iconv+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6950 am_cv_func_iconv="no, consider installing GNU libiconv"
6951 am_cv_lib_iconv=no
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 #include <stdlib.h>
6959 #include <iconv.h>
6961 main ()
6963 iconv_t cd = iconv_open("","");
6964 iconv(cd,NULL,NULL,NULL,NULL);
6965 iconv_close(cd);
6967 return 0;
6969 _ACEOF
6970 rm -f conftest.$ac_objext conftest$ac_exeext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>conftest.er1
6973 ac_status=$?
6974 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 am_cv_func_iconv=yes
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6997 rm -f conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
6999 if test "$am_cv_func_iconv" != yes; then
7000 am_save_LIBS="$LIBS"
7001 LIBS="$LIBS $LIBICONV"
7002 cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h. */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 #include <stdlib.h>
7009 #include <iconv.h>
7011 main ()
7013 iconv_t cd = iconv_open("","");
7014 iconv(cd,NULL,NULL,NULL,NULL);
7015 iconv_close(cd);
7017 return 0;
7019 _ACEOF
7020 rm -f conftest.$ac_objext conftest$ac_exeext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; } &&
7035 { ac_try='test -s conftest$ac_exeext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 am_cv_lib_iconv=yes
7042 am_cv_func_iconv=yes
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7048 rm -f conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 LIBS="$am_save_LIBS"
7054 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7055 echo "${ECHO_T}$am_cv_func_iconv" >&6
7056 if test "$am_cv_func_iconv" = yes; then
7058 cat >>confdefs.h <<\_ACEOF
7059 #define HAVE_ICONV 1
7060 _ACEOF
7063 if test "$am_cv_lib_iconv" = yes; then
7064 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7065 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7066 echo "$as_me:$LINENO: result: $LIBICONV" >&5
7067 echo "${ECHO_T}$LIBICONV" >&6
7068 else
7069 CPPFLAGS="$am_save_CPPFLAGS"
7070 LIBICONV=
7071 LTLIBICONV=
7076 if test "$am_cv_func_iconv" = yes; then
7077 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7078 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7079 if test "${am_cv_proto_iconv+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7090 #include <stdlib.h>
7091 #include <iconv.h>
7092 extern
7093 #ifdef __cplusplus
7095 #endif
7096 #if defined(__STDC__) || defined(__cplusplus)
7097 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7098 #else
7099 size_t iconv();
7100 #endif
7103 main ()
7107 return 0;
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112 (eval $ac_compile) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest.$ac_objext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 am_cv_proto_iconv_arg1=""
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 am_cv_proto_iconv_arg1="const"
7138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7139 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);"
7142 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7143 echo "$as_me:$LINENO: result: ${ac_t:-
7144 }$am_cv_proto_iconv" >&5
7145 echo "${ECHO_T}${ac_t:-
7146 }$am_cv_proto_iconv" >&6
7148 cat >>confdefs.h <<_ACEOF
7149 #define ICONV_CONST $am_cv_proto_iconv_arg1
7150 _ACEOF
7156 if test "x$enable_nls" != xno; then
7157 ENABLE_NLS_TRUE=
7158 ENABLE_NLS_FALSE='#'
7159 else
7160 ENABLE_NLS_TRUE='#'
7161 ENABLE_NLS_FALSE=
7164 # Check whether --enable-checking or --disable-checking was given.
7165 if test "${enable_checking+set}" = set; then
7166 enableval="$enable_checking"
7168 else
7169 enable_checking=no
7172 if test $enable_checking != no ; then
7174 cat >>confdefs.h <<\_ACEOF
7175 #define ENABLE_CHECKING 1
7176 _ACEOF
7181 case $target in
7182 alpha*-*-* | \
7183 x86_64-*-* | \
7184 ia64-*-* | \
7185 hppa*64*-*-* | parisc*64*-*-* | \
7186 mips*-*-* | \
7187 mmix-*-* | \
7188 powerpc*-*-* | \
7189 rs6000*-*-* | \
7190 s390*-*-* | \
7191 sparc64*-*-* | ultrasparc-*-freebsd* | \
7192 sparcv9-*-solaris2* | \
7193 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9] | \
7194 sh[123456789l]*-*-*)
7195 need_64bit_hwint=yes ;;
7197 need_64bit_hwint=no ;;
7198 esac
7200 case $need_64bit_hwint:$ac_cv_sizeof_long in
7201 *:8 | no:*) host_wide_int=long ;;
7202 *) host_wide_int='long long' ;;
7203 esac
7207 cat >>confdefs.h <<_ACEOF
7208 #define HOST_WIDE_INT $host_wide_int
7209 _ACEOF
7212 ac_config_headers="$ac_config_headers config.h:config.in"
7214 ac_config_files="$ac_config_files Makefile"
7216 cat >confcache <<\_ACEOF
7217 # This file is a shell script that caches the results of configure
7218 # tests run on this system so they can be shared between configure
7219 # scripts and configure runs, see configure's option --config-cache.
7220 # It is not useful on other systems. If it contains results you don't
7221 # want to keep, you may remove or edit it.
7223 # config.status only pays attention to the cache file if you give it
7224 # the --recheck option to rerun configure.
7226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7228 # following values.
7230 _ACEOF
7232 # The following way of writing the cache mishandles newlines in values,
7233 # but we know of no workaround that is simple, portable, and efficient.
7234 # So, don't put newlines in cache variables' values.
7235 # Ultrix sh set writes to stderr and can't be redirected directly,
7236 # and sets the high bit in the cache file unless we assign to the vars.
7238 (set) 2>&1 |
7239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7240 *ac_space=\ *)
7241 # `set' does not quote correctly, so add quotes (double-quote
7242 # substitution turns \\\\ into \\, and sed turns \\ into \).
7243 sed -n \
7244 "s/'/'\\\\''/g;
7245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7248 # `set' quotes correctly as required by POSIX, so do not add quotes.
7249 sed -n \
7250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7252 esac;
7254 sed '
7255 t clear
7256 : clear
7257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7258 t end
7259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7260 : end' >>confcache
7261 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7262 if test -w $cache_file; then
7263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7264 cat confcache >$cache_file
7265 else
7266 echo "not updating unwritable cache $cache_file"
7269 rm -f confcache
7271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7272 # Let make expand exec_prefix.
7273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7275 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7276 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7277 # trailing colons and then remove the whole line if VPATH becomes empty
7278 # (actually we leave an empty line to preserve line numbers).
7279 if test "x$srcdir" = x.; then
7280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7281 s/:*\$(srcdir):*/:/;
7282 s/:*\${srcdir}:*/:/;
7283 s/:*@srcdir@:*/:/;
7284 s/^\([^=]*=[ ]*\):*/\1/;
7285 s/:*$//;
7286 s/^[^=]*=[ ]*$//;
7290 DEFS=-DHAVE_CONFIG_H
7292 ac_libobjs=
7293 ac_ltlibobjs=
7294 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7295 # 1. Remove the extension, and $U if already installed.
7296 ac_i=`echo "$ac_i" |
7297 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7298 # 2. Add them.
7299 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7300 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7301 done
7302 LIBOBJS=$ac_libobjs
7304 LTLIBOBJS=$ac_ltlibobjs
7307 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7308 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7309 Usually this means the macro was only invoked conditionally." >&5
7310 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7311 Usually this means the macro was only invoked conditionally." >&2;}
7312 { (exit 1); exit 1; }; }
7314 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7315 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7316 Usually this means the macro was only invoked conditionally." >&5
7317 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7318 Usually this means the macro was only invoked conditionally." >&2;}
7319 { (exit 1); exit 1; }; }
7321 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7322 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7323 Usually this means the macro was only invoked conditionally." >&5
7324 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7325 Usually this means the macro was only invoked conditionally." >&2;}
7326 { (exit 1); exit 1; }; }
7328 if test -z "${ENABLE_NLS_TRUE}" && test -z "${ENABLE_NLS_FALSE}"; then
7329 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NLS\" was never defined.
7330 Usually this means the macro was only invoked conditionally." >&5
7331 echo "$as_me: error: conditional \"ENABLE_NLS\" was never defined.
7332 Usually this means the macro was only invoked conditionally." >&2;}
7333 { (exit 1); exit 1; }; }
7336 : ${CONFIG_STATUS=./config.status}
7337 ac_clean_files_save=$ac_clean_files
7338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7339 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7340 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7341 cat >$CONFIG_STATUS <<_ACEOF
7342 #! $SHELL
7343 # Generated by $as_me.
7344 # Run this file to recreate the current configuration.
7345 # Compiler output produced by configure, useful for debugging
7346 # configure, is in config.log if it exists.
7348 debug=false
7349 ac_cs_recheck=false
7350 ac_cs_silent=false
7351 SHELL=\${CONFIG_SHELL-$SHELL}
7352 _ACEOF
7354 cat >>$CONFIG_STATUS <<\_ACEOF
7355 ## --------------------- ##
7356 ## M4sh Initialization. ##
7357 ## --------------------- ##
7359 # Be Bourne compatible
7360 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7361 emulate sh
7362 NULLCMD=:
7363 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7364 # is contrary to our usage. Disable this feature.
7365 alias -g '${1+"$@"}'='"$@"'
7366 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7367 set -o posix
7369 DUALCASE=1; export DUALCASE # for MKS sh
7371 # Support unset when possible.
7372 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7373 as_unset=unset
7374 else
7375 as_unset=false
7379 # Work around bugs in pre-3.0 UWIN ksh.
7380 $as_unset ENV MAIL MAILPATH
7381 PS1='$ '
7382 PS2='> '
7383 PS4='+ '
7385 # NLS nuisances.
7386 for as_var in \
7387 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7388 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7389 LC_TELEPHONE LC_TIME
7391 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7392 eval $as_var=C; export $as_var
7393 else
7394 $as_unset $as_var
7396 done
7398 # Required to use basename.
7399 if expr a : '\(a\)' >/dev/null 2>&1; then
7400 as_expr=expr
7401 else
7402 as_expr=false
7405 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7406 as_basename=basename
7407 else
7408 as_basename=false
7412 # Name of the executable.
7413 as_me=`$as_basename "$0" ||
7414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7415 X"$0" : 'X\(//\)$' \| \
7416 X"$0" : 'X\(/\)$' \| \
7417 . : '\(.\)' 2>/dev/null ||
7418 echo X/"$0" |
7419 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7420 /^X\/\(\/\/\)$/{ s//\1/; q; }
7421 /^X\/\(\/\).*/{ s//\1/; q; }
7422 s/.*/./; q'`
7425 # PATH needs CR, and LINENO needs CR and PATH.
7426 # Avoid depending upon Character Ranges.
7427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7430 as_cr_digits='0123456789'
7431 as_cr_alnum=$as_cr_Letters$as_cr_digits
7433 # The user is always right.
7434 if test "${PATH_SEPARATOR+set}" != set; then
7435 echo "#! /bin/sh" >conf$$.sh
7436 echo "exit 0" >>conf$$.sh
7437 chmod +x conf$$.sh
7438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7439 PATH_SEPARATOR=';'
7440 else
7441 PATH_SEPARATOR=:
7443 rm -f conf$$.sh
7447 as_lineno_1=$LINENO
7448 as_lineno_2=$LINENO
7449 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7450 test "x$as_lineno_1" != "x$as_lineno_2" &&
7451 test "x$as_lineno_3" = "x$as_lineno_2" || {
7452 # Find who we are. Look in the path if we contain no path at all
7453 # relative or not.
7454 case $0 in
7455 *[\\/]* ) as_myself=$0 ;;
7456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7462 done
7465 esac
7466 # We did not find ourselves, most probably we were run as `sh COMMAND'
7467 # in which case we are not to be found in the path.
7468 if test "x$as_myself" = x; then
7469 as_myself=$0
7471 if test ! -f "$as_myself"; then
7472 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7473 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7474 { (exit 1); exit 1; }; }
7476 case $CONFIG_SHELL in
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for as_base in sh bash ksh sh5; do
7484 case $as_dir in
7486 if ("$as_dir/$as_base" -c '
7487 as_lineno_1=$LINENO
7488 as_lineno_2=$LINENO
7489 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7490 test "x$as_lineno_1" != "x$as_lineno_2" &&
7491 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7492 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7493 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7494 CONFIG_SHELL=$as_dir/$as_base
7495 export CONFIG_SHELL
7496 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7497 fi;;
7498 esac
7499 done
7500 done
7502 esac
7504 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7505 # uniformly replaced by the line number. The first 'sed' inserts a
7506 # line-number line before each line; the second 'sed' does the real
7507 # work. The second script uses 'N' to pair each line-number line
7508 # with the numbered line, and appends trailing '-' during
7509 # substitution so that $LINENO is not a special case at line end.
7510 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7511 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7512 sed '=' <$as_myself |
7513 sed '
7515 s,$,-,
7516 : loop
7517 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7518 t loop
7519 s,-$,,
7520 s,^['$as_cr_digits']*\n,,
7521 ' >$as_me.lineno &&
7522 chmod +x $as_me.lineno ||
7523 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7524 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7525 { (exit 1); exit 1; }; }
7527 # Don't try to exec as it changes $[0], causing all sort of problems
7528 # (the dirname of $[0] is not the place where we might find the
7529 # original and so on. Autoconf is especially sensible to this).
7530 . ./$as_me.lineno
7531 # Exit status is that of the last command.
7532 exit
7536 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7537 *c*,-n*) ECHO_N= ECHO_C='
7538 ' ECHO_T=' ' ;;
7539 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7540 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7541 esac
7543 if expr a : '\(a\)' >/dev/null 2>&1; then
7544 as_expr=expr
7545 else
7546 as_expr=false
7549 rm -f conf$$ conf$$.exe conf$$.file
7550 echo >conf$$.file
7551 if ln -s conf$$.file conf$$ 2>/dev/null; then
7552 # We could just check for DJGPP; but this test a) works b) is more generic
7553 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7554 if test -f conf$$.exe; then
7555 # Don't use ln at all; we don't have any links
7556 as_ln_s='cp -p'
7557 else
7558 as_ln_s='ln -s'
7560 elif ln conf$$.file conf$$ 2>/dev/null; then
7561 as_ln_s=ln
7562 else
7563 as_ln_s='cp -p'
7565 rm -f conf$$ conf$$.exe conf$$.file
7567 if mkdir -p . 2>/dev/null; then
7568 as_mkdir_p=:
7569 else
7570 test -d ./-p && rmdir ./-p
7571 as_mkdir_p=false
7574 as_executable_p="test -f"
7576 # Sed expression to map a string onto a valid CPP name.
7577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7579 # Sed expression to map a string onto a valid variable name.
7580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7583 # IFS
7584 # We need space, tab and new line, in precisely that order.
7585 as_nl='
7587 IFS=" $as_nl"
7589 # CDPATH.
7590 $as_unset CDPATH
7592 exec 6>&1
7594 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7595 # report actual input values of CONFIG_FILES etc. instead of their
7596 # values after options handling. Logging --version etc. is OK.
7597 exec 5>>config.log
7599 echo
7600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7601 ## Running $as_me. ##
7602 _ASBOX
7603 } >&5
7604 cat >&5 <<_CSEOF
7606 This file was extended by cpplib $as_me , which was
7607 generated by GNU Autoconf 2.59. Invocation command line was
7609 CONFIG_FILES = $CONFIG_FILES
7610 CONFIG_HEADERS = $CONFIG_HEADERS
7611 CONFIG_LINKS = $CONFIG_LINKS
7612 CONFIG_COMMANDS = $CONFIG_COMMANDS
7613 $ $0 $@
7615 _CSEOF
7616 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7617 echo >&5
7618 _ACEOF
7620 # Files that config.status was made for.
7621 if test -n "$ac_config_files"; then
7622 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7625 if test -n "$ac_config_headers"; then
7626 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7629 if test -n "$ac_config_links"; then
7630 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7633 if test -n "$ac_config_commands"; then
7634 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7637 cat >>$CONFIG_STATUS <<\_ACEOF
7639 ac_cs_usage="\
7640 \`$as_me' instantiates files from templates according to the
7641 current configuration.
7643 Usage: $0 [OPTIONS] [FILE]...
7645 -h, --help print this help, then exit
7646 -V, --version print version number, then exit
7647 -q, --quiet do not print progress messages
7648 -d, --debug don't remove temporary files
7649 --recheck update $as_me by reconfiguring in the same conditions
7650 --file=FILE[:TEMPLATE]
7651 instantiate the configuration file FILE
7652 --header=FILE[:TEMPLATE]
7653 instantiate the configuration header FILE
7655 Configuration files:
7656 $config_files
7658 Configuration headers:
7659 $config_headers
7661 Configuration commands:
7662 $config_commands
7664 Report bugs to <bug-autoconf@gnu.org>."
7665 _ACEOF
7667 cat >>$CONFIG_STATUS <<_ACEOF
7668 ac_cs_version="\\
7669 cpplib config.status
7670 configured by $0, generated by GNU Autoconf 2.59,
7671 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7673 Copyright (C) 2003 Free Software Foundation, Inc.
7674 This config.status script is free software; the Free Software Foundation
7675 gives unlimited permission to copy, distribute and modify it."
7676 srcdir=$srcdir
7677 INSTALL="$INSTALL"
7678 _ACEOF
7680 cat >>$CONFIG_STATUS <<\_ACEOF
7681 # If no file are specified by the user, then we need to provide default
7682 # value. By we need to know if files were specified by the user.
7683 ac_need_defaults=:
7684 while test $# != 0
7686 case $1 in
7687 --*=*)
7688 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7689 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7690 ac_shift=:
7693 ac_option=$1
7694 ac_optarg=$2
7695 ac_shift=shift
7697 *) # This is not an option, so the user has probably given explicit
7698 # arguments.
7699 ac_option=$1
7700 ac_need_defaults=false;;
7701 esac
7703 case $ac_option in
7704 # Handling of the options.
7705 _ACEOF
7706 cat >>$CONFIG_STATUS <<\_ACEOF
7707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7708 ac_cs_recheck=: ;;
7709 --version | --vers* | -V )
7710 echo "$ac_cs_version"; exit 0 ;;
7711 --he | --h)
7712 # Conflict between --help and --header
7713 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7714 Try \`$0 --help' for more information." >&5
7715 echo "$as_me: error: ambiguous option: $1
7716 Try \`$0 --help' for more information." >&2;}
7717 { (exit 1); exit 1; }; };;
7718 --help | --hel | -h )
7719 echo "$ac_cs_usage"; exit 0 ;;
7720 --debug | --d* | -d )
7721 debug=: ;;
7722 --file | --fil | --fi | --f )
7723 $ac_shift
7724 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7725 ac_need_defaults=false;;
7726 --header | --heade | --head | --hea )
7727 $ac_shift
7728 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7729 ac_need_defaults=false;;
7730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7731 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7732 ac_cs_silent=: ;;
7734 # This is an error.
7735 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7736 Try \`$0 --help' for more information." >&5
7737 echo "$as_me: error: unrecognized option: $1
7738 Try \`$0 --help' for more information." >&2;}
7739 { (exit 1); exit 1; }; } ;;
7741 *) ac_config_targets="$ac_config_targets $1" ;;
7743 esac
7744 shift
7745 done
7747 ac_configure_extra_args=
7749 if $ac_cs_silent; then
7750 exec 6>/dev/null
7751 ac_configure_extra_args="$ac_configure_extra_args --silent"
7754 _ACEOF
7755 cat >>$CONFIG_STATUS <<_ACEOF
7756 if \$ac_cs_recheck; then
7757 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7758 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7761 _ACEOF
7763 cat >>$CONFIG_STATUS <<_ACEOF
7765 # INIT-COMMANDS section.
7768 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7770 _ACEOF
7774 cat >>$CONFIG_STATUS <<\_ACEOF
7775 for ac_config_target in $ac_config_targets
7777 case "$ac_config_target" in
7778 # Handling of arguments.
7779 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7780 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7781 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7782 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7783 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7784 { (exit 1); exit 1; }; };;
7785 esac
7786 done
7788 # If the user did not use the arguments to specify the items to instantiate,
7789 # then the envvar interface is used. Set only those that are not.
7790 # We use the long form for the default assignment because of an extremely
7791 # bizarre bug on SunOS 4.1.3.
7792 if $ac_need_defaults; then
7793 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7794 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7795 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7798 # Have a temporary directory for convenience. Make it in the build tree
7799 # simply because there is no reason to put it here, and in addition,
7800 # creating and moving files from /tmp can sometimes cause problems.
7801 # Create a temporary directory, and hook for its removal unless debugging.
7802 $debug ||
7804 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7805 trap '{ (exit 1); exit 1; }' 1 2 13 15
7808 # Create a (secure) tmp directory for tmp files.
7811 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7812 test -n "$tmp" && test -d "$tmp"
7813 } ||
7815 tmp=./confstat$$-$RANDOM
7816 (umask 077 && mkdir $tmp)
7817 } ||
7819 echo "$me: cannot create a temporary directory in ." >&2
7820 { (exit 1); exit 1; }
7823 _ACEOF
7825 cat >>$CONFIG_STATUS <<_ACEOF
7828 # CONFIG_FILES section.
7831 # No need to generate the scripts if there are no CONFIG_FILES.
7832 # This happens for instance when ./config.status config.h
7833 if test -n "\$CONFIG_FILES"; then
7834 # Protect against being on the right side of a sed subst in config.status.
7835 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7836 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7837 s,@SHELL@,$SHELL,;t t
7838 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7839 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7840 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7841 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7842 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7843 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7844 s,@exec_prefix@,$exec_prefix,;t t
7845 s,@prefix@,$prefix,;t t
7846 s,@program_transform_name@,$program_transform_name,;t t
7847 s,@bindir@,$bindir,;t t
7848 s,@sbindir@,$sbindir,;t t
7849 s,@libexecdir@,$libexecdir,;t t
7850 s,@datadir@,$datadir,;t t
7851 s,@sysconfdir@,$sysconfdir,;t t
7852 s,@sharedstatedir@,$sharedstatedir,;t t
7853 s,@localstatedir@,$localstatedir,;t t
7854 s,@libdir@,$libdir,;t t
7855 s,@includedir@,$includedir,;t t
7856 s,@oldincludedir@,$oldincludedir,;t t
7857 s,@infodir@,$infodir,;t t
7858 s,@mandir@,$mandir,;t t
7859 s,@build_alias@,$build_alias,;t t
7860 s,@host_alias@,$host_alias,;t t
7861 s,@target_alias@,$target_alias,;t t
7862 s,@DEFS@,$DEFS,;t t
7863 s,@ECHO_C@,$ECHO_C,;t t
7864 s,@ECHO_N@,$ECHO_N,;t t
7865 s,@ECHO_T@,$ECHO_T,;t t
7866 s,@LIBS@,$LIBS,;t t
7867 s,@build@,$build,;t t
7868 s,@build_cpu@,$build_cpu,;t t
7869 s,@build_vendor@,$build_vendor,;t t
7870 s,@build_os@,$build_os,;t t
7871 s,@host@,$host,;t t
7872 s,@host_cpu@,$host_cpu,;t t
7873 s,@host_vendor@,$host_vendor,;t t
7874 s,@host_os@,$host_os,;t t
7875 s,@target@,$target,;t t
7876 s,@target_cpu@,$target_cpu,;t t
7877 s,@target_vendor@,$target_vendor,;t t
7878 s,@target_os@,$target_os,;t t
7879 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7880 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7881 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7882 s,@CYGPATH_W@,$CYGPATH_W,;t t
7883 s,@PACKAGE@,$PACKAGE,;t t
7884 s,@VERSION@,$VERSION,;t t
7885 s,@ACLOCAL@,$ACLOCAL,;t t
7886 s,@AUTOCONF@,$AUTOCONF,;t t
7887 s,@AUTOMAKE@,$AUTOMAKE,;t t
7888 s,@AUTOHEADER@,$AUTOHEADER,;t t
7889 s,@MAKEINFO@,$MAKEINFO,;t t
7890 s,@AMTAR@,$AMTAR,;t t
7891 s,@install_sh@,$install_sh,;t t
7892 s,@STRIP@,$STRIP,;t t
7893 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7894 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7895 s,@mkdir_p@,$mkdir_p,;t t
7896 s,@AWK@,$AWK,;t t
7897 s,@SET_MAKE@,$SET_MAKE,;t t
7898 s,@am__leading_dot@,$am__leading_dot,;t t
7899 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7900 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7901 s,@MAINT@,$MAINT,;t t
7902 s,@CC@,$CC,;t t
7903 s,@CFLAGS@,$CFLAGS,;t t
7904 s,@LDFLAGS@,$LDFLAGS,;t t
7905 s,@CPPFLAGS@,$CPPFLAGS,;t t
7906 s,@ac_ct_CC@,$ac_ct_CC,;t t
7907 s,@EXEEXT@,$EXEEXT,;t t
7908 s,@OBJEXT@,$OBJEXT,;t t
7909 s,@DEPDIR@,$DEPDIR,;t t
7910 s,@am__include@,$am__include,;t t
7911 s,@am__quote@,$am__quote,;t t
7912 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7913 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7914 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7915 s,@CCDEPMODE@,$CCDEPMODE,;t t
7916 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7917 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7918 s,@RANLIB@,$RANLIB,;t t
7919 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7920 s,@CPP@,$CPP,;t t
7921 s,@EGREP@,$EGREP,;t t
7922 s,@LIBOBJS@,$LIBOBJS,;t t
7923 s,@ALLOCA@,$ALLOCA,;t t
7924 s,@USE_NLS@,$USE_NLS,;t t
7925 s,@LIBINTL@,$LIBINTL,;t t
7926 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7927 s,@INCINTL@,$INCINTL,;t t
7928 s,@XGETTEXT@,$XGETTEXT,;t t
7929 s,@GMSGFMT@,$GMSGFMT,;t t
7930 s,@POSUB@,$POSUB,;t t
7931 s,@CATALOGS@,$CATALOGS,;t t
7932 s,@LIBICONV@,$LIBICONV,;t t
7933 s,@LTLIBICONV@,$LTLIBICONV,;t t
7934 s,@ENABLE_NLS_TRUE@,$ENABLE_NLS_TRUE,;t t
7935 s,@ENABLE_NLS_FALSE@,$ENABLE_NLS_FALSE,;t t
7936 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7937 CEOF
7939 _ACEOF
7941 cat >>$CONFIG_STATUS <<\_ACEOF
7942 # Split the substitutions into bite-sized pieces for seds with
7943 # small command number limits, like on Digital OSF/1 and HP-UX.
7944 ac_max_sed_lines=48
7945 ac_sed_frag=1 # Number of current file.
7946 ac_beg=1 # First line for current file.
7947 ac_end=$ac_max_sed_lines # Line after last line for current file.
7948 ac_more_lines=:
7949 ac_sed_cmds=
7950 while $ac_more_lines; do
7951 if test $ac_beg -gt 1; then
7952 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7953 else
7954 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7956 if test ! -s $tmp/subs.frag; then
7957 ac_more_lines=false
7958 else
7959 # The purpose of the label and of the branching condition is to
7960 # speed up the sed processing (if there are no `@' at all, there
7961 # is no need to browse any of the substitutions).
7962 # These are the two extra sed commands mentioned above.
7963 (echo ':t
7964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7965 if test -z "$ac_sed_cmds"; then
7966 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7967 else
7968 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7970 ac_sed_frag=`expr $ac_sed_frag + 1`
7971 ac_beg=$ac_end
7972 ac_end=`expr $ac_end + $ac_max_sed_lines`
7974 done
7975 if test -z "$ac_sed_cmds"; then
7976 ac_sed_cmds=cat
7978 fi # test -n "$CONFIG_FILES"
7980 _ACEOF
7981 cat >>$CONFIG_STATUS <<\_ACEOF
7982 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7984 case $ac_file in
7985 - | *:- | *:-:* ) # input from stdin
7986 cat >$tmp/stdin
7987 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7989 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7991 * ) ac_file_in=$ac_file.in ;;
7992 esac
7994 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7995 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7997 X"$ac_file" : 'X\(//\)[^/]' \| \
7998 X"$ac_file" : 'X\(//\)$' \| \
7999 X"$ac_file" : 'X\(/\)' \| \
8000 . : '\(.\)' 2>/dev/null ||
8001 echo X"$ac_file" |
8002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8004 /^X\(\/\/\)$/{ s//\1/; q; }
8005 /^X\(\/\).*/{ s//\1/; q; }
8006 s/.*/./; q'`
8007 { if $as_mkdir_p; then
8008 mkdir -p "$ac_dir"
8009 else
8010 as_dir="$ac_dir"
8011 as_dirs=
8012 while test ! -d "$as_dir"; do
8013 as_dirs="$as_dir $as_dirs"
8014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8016 X"$as_dir" : 'X\(//\)[^/]' \| \
8017 X"$as_dir" : 'X\(//\)$' \| \
8018 X"$as_dir" : 'X\(/\)' \| \
8019 . : '\(.\)' 2>/dev/null ||
8020 echo X"$as_dir" |
8021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8023 /^X\(\/\/\)$/{ s//\1/; q; }
8024 /^X\(\/\).*/{ s//\1/; q; }
8025 s/.*/./; q'`
8026 done
8027 test ! -n "$as_dirs" || mkdir $as_dirs
8028 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8029 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8030 { (exit 1); exit 1; }; }; }
8032 ac_builddir=.
8034 if test "$ac_dir" != .; then
8035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8036 # A "../" for each directory in $ac_dir_suffix.
8037 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8038 else
8039 ac_dir_suffix= ac_top_builddir=
8042 case $srcdir in
8043 .) # No --srcdir option. We are building in place.
8044 ac_srcdir=.
8045 if test -z "$ac_top_builddir"; then
8046 ac_top_srcdir=.
8047 else
8048 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8049 fi ;;
8050 [\\/]* | ?:[\\/]* ) # Absolute path.
8051 ac_srcdir=$srcdir$ac_dir_suffix;
8052 ac_top_srcdir=$srcdir ;;
8053 *) # Relative path.
8054 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8055 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8056 esac
8058 # Do not use `cd foo && pwd` to compute absolute paths, because
8059 # the directories may not exist.
8060 case `pwd` in
8061 .) ac_abs_builddir="$ac_dir";;
8063 case "$ac_dir" in
8064 .) ac_abs_builddir=`pwd`;;
8065 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8066 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8067 esac;;
8068 esac
8069 case $ac_abs_builddir in
8070 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8072 case ${ac_top_builddir}. in
8073 .) ac_abs_top_builddir=$ac_abs_builddir;;
8074 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8075 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8076 esac;;
8077 esac
8078 case $ac_abs_builddir in
8079 .) ac_abs_srcdir=$ac_srcdir;;
8081 case $ac_srcdir in
8082 .) ac_abs_srcdir=$ac_abs_builddir;;
8083 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8084 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8085 esac;;
8086 esac
8087 case $ac_abs_builddir in
8088 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8090 case $ac_top_srcdir in
8091 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8092 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8093 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8094 esac;;
8095 esac
8098 case $INSTALL in
8099 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8100 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8101 esac
8103 # Let's still pretend it is `configure' which instantiates (i.e., don't
8104 # use $as_me), people would be surprised to read:
8105 # /* config.h. Generated by config.status. */
8106 if test x"$ac_file" = x-; then
8107 configure_input=
8108 else
8109 configure_input="$ac_file. "
8111 configure_input=$configure_input"Generated from `echo $ac_file_in |
8112 sed 's,.*/,,'` by configure."
8114 # First look for the input files in the build tree, otherwise in the
8115 # src tree.
8116 ac_file_inputs=`IFS=:
8117 for f in $ac_file_in; do
8118 case $f in
8119 -) echo $tmp/stdin ;;
8120 [\\/$]*)
8121 # Absolute (can't be DOS-style, as IFS=:)
8122 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8123 echo "$as_me: error: cannot find input file: $f" >&2;}
8124 { (exit 1); exit 1; }; }
8125 echo "$f";;
8126 *) # Relative
8127 if test -f "$f"; then
8128 # Build tree
8129 echo "$f"
8130 elif test -f "$srcdir/$f"; then
8131 # Source tree
8132 echo "$srcdir/$f"
8133 else
8134 # /dev/null tree
8135 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8136 echo "$as_me: error: cannot find input file: $f" >&2;}
8137 { (exit 1); exit 1; }; }
8138 fi;;
8139 esac
8140 done` || { (exit 1); exit 1; }
8142 if test x"$ac_file" != x-; then
8143 { echo "$as_me:$LINENO: creating $ac_file" >&5
8144 echo "$as_me: creating $ac_file" >&6;}
8145 rm -f "$ac_file"
8147 _ACEOF
8148 cat >>$CONFIG_STATUS <<_ACEOF
8149 sed "$ac_vpsub
8150 $extrasub
8151 _ACEOF
8152 cat >>$CONFIG_STATUS <<\_ACEOF
8154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8155 s,@configure_input@,$configure_input,;t t
8156 s,@srcdir@,$ac_srcdir,;t t
8157 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8158 s,@top_srcdir@,$ac_top_srcdir,;t t
8159 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8160 s,@builddir@,$ac_builddir,;t t
8161 s,@abs_builddir@,$ac_abs_builddir,;t t
8162 s,@top_builddir@,$ac_top_builddir,;t t
8163 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8164 s,@INSTALL@,$ac_INSTALL,;t t
8165 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8166 rm -f $tmp/stdin
8167 if test x"$ac_file" != x-; then
8168 mv $tmp/out $ac_file
8169 else
8170 cat $tmp/out
8171 rm -f $tmp/out
8174 done
8175 _ACEOF
8176 cat >>$CONFIG_STATUS <<\_ACEOF
8179 # CONFIG_HEADER section.
8182 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8183 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8185 # ac_d sets the value in "#define NAME VALUE" lines.
8186 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8187 ac_dB='[ ].*$,\1#\2'
8188 ac_dC=' '
8189 ac_dD=',;t'
8190 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8191 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8192 ac_uB='$,\1#\2define\3'
8193 ac_uC=' '
8194 ac_uD=',;t'
8196 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8197 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8198 case $ac_file in
8199 - | *:- | *:-:* ) # input from stdin
8200 cat >$tmp/stdin
8201 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8202 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8203 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8204 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8205 * ) ac_file_in=$ac_file.in ;;
8206 esac
8208 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8209 echo "$as_me: creating $ac_file" >&6;}
8211 # First look for the input files in the build tree, otherwise in the
8212 # src tree.
8213 ac_file_inputs=`IFS=:
8214 for f in $ac_file_in; do
8215 case $f in
8216 -) echo $tmp/stdin ;;
8217 [\\/$]*)
8218 # Absolute (can't be DOS-style, as IFS=:)
8219 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8220 echo "$as_me: error: cannot find input file: $f" >&2;}
8221 { (exit 1); exit 1; }; }
8222 # Do quote $f, to prevent DOS paths from being IFS'd.
8223 echo "$f";;
8224 *) # Relative
8225 if test -f "$f"; then
8226 # Build tree
8227 echo "$f"
8228 elif test -f "$srcdir/$f"; then
8229 # Source tree
8230 echo "$srcdir/$f"
8231 else
8232 # /dev/null tree
8233 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8234 echo "$as_me: error: cannot find input file: $f" >&2;}
8235 { (exit 1); exit 1; }; }
8236 fi;;
8237 esac
8238 done` || { (exit 1); exit 1; }
8239 # Remove the trailing spaces.
8240 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8242 _ACEOF
8244 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8245 # `conftest.undefs', that substitutes the proper values into
8246 # config.h.in to produce config.h. The first handles `#define'
8247 # templates, and the second `#undef' templates.
8248 # And first: Protect against being on the right side of a sed subst in
8249 # config.status. Protect against being in an unquoted here document
8250 # in config.status.
8251 rm -f conftest.defines conftest.undefs
8252 # Using a here document instead of a string reduces the quoting nightmare.
8253 # Putting comments in sed scripts is not portable.
8255 # `end' is used to avoid that the second main sed command (meant for
8256 # 0-ary CPP macros) applies to n-ary macro definitions.
8257 # See the Autoconf documentation for `clear'.
8258 cat >confdef2sed.sed <<\_ACEOF
8259 s/[\\&,]/\\&/g
8260 s,[\\$`],\\&,g
8261 t clear
8262 : clear
8263 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8264 t end
8265 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8266 : end
8267 _ACEOF
8268 # If some macros were called several times there might be several times
8269 # the same #defines, which is useless. Nevertheless, we may not want to
8270 # sort them, since we want the *last* AC-DEFINE to be honored.
8271 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8272 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8273 rm -f confdef2sed.sed
8275 # This sed command replaces #undef with comments. This is necessary, for
8276 # example, in the case of _POSIX_SOURCE, which is predefined and required
8277 # on some systems where configure will not decide to define it.
8278 cat >>conftest.undefs <<\_ACEOF
8279 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8280 _ACEOF
8282 # Break up conftest.defines because some shells have a limit on the size
8283 # of here documents, and old seds have small limits too (100 cmds).
8284 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8285 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8286 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8287 echo ' :' >>$CONFIG_STATUS
8288 rm -f conftest.tail
8289 while grep . conftest.defines >/dev/null
8291 # Write a limited-size here document to $tmp/defines.sed.
8292 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8293 # Speed up: don't consider the non `#define' lines.
8294 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8295 # Work around the forget-to-reset-the-flag bug.
8296 echo 't clr' >>$CONFIG_STATUS
8297 echo ': clr' >>$CONFIG_STATUS
8298 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8299 echo 'CEOF
8300 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8301 rm -f $tmp/in
8302 mv $tmp/out $tmp/in
8303 ' >>$CONFIG_STATUS
8304 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8305 rm -f conftest.defines
8306 mv conftest.tail conftest.defines
8307 done
8308 rm -f conftest.defines
8309 echo ' fi # grep' >>$CONFIG_STATUS
8310 echo >>$CONFIG_STATUS
8312 # Break up conftest.undefs because some shells have a limit on the size
8313 # of here documents, and old seds have small limits too (100 cmds).
8314 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8315 rm -f conftest.tail
8316 while grep . conftest.undefs >/dev/null
8318 # Write a limited-size here document to $tmp/undefs.sed.
8319 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8320 # Speed up: don't consider the non `#undef'
8321 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8322 # Work around the forget-to-reset-the-flag bug.
8323 echo 't clr' >>$CONFIG_STATUS
8324 echo ': clr' >>$CONFIG_STATUS
8325 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8326 echo 'CEOF
8327 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8328 rm -f $tmp/in
8329 mv $tmp/out $tmp/in
8330 ' >>$CONFIG_STATUS
8331 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8332 rm -f conftest.undefs
8333 mv conftest.tail conftest.undefs
8334 done
8335 rm -f conftest.undefs
8337 cat >>$CONFIG_STATUS <<\_ACEOF
8338 # Let's still pretend it is `configure' which instantiates (i.e., don't
8339 # use $as_me), people would be surprised to read:
8340 # /* config.h. Generated by config.status. */
8341 if test x"$ac_file" = x-; then
8342 echo "/* Generated by configure. */" >$tmp/config.h
8343 else
8344 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8346 cat $tmp/in >>$tmp/config.h
8347 rm -f $tmp/in
8348 if test x"$ac_file" != x-; then
8349 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8350 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8351 echo "$as_me: $ac_file is unchanged" >&6;}
8352 else
8353 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8355 X"$ac_file" : 'X\(//\)[^/]' \| \
8356 X"$ac_file" : 'X\(//\)$' \| \
8357 X"$ac_file" : 'X\(/\)' \| \
8358 . : '\(.\)' 2>/dev/null ||
8359 echo X"$ac_file" |
8360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8362 /^X\(\/\/\)$/{ s//\1/; q; }
8363 /^X\(\/\).*/{ s//\1/; q; }
8364 s/.*/./; q'`
8365 { if $as_mkdir_p; then
8366 mkdir -p "$ac_dir"
8367 else
8368 as_dir="$ac_dir"
8369 as_dirs=
8370 while test ! -d "$as_dir"; do
8371 as_dirs="$as_dir $as_dirs"
8372 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8374 X"$as_dir" : 'X\(//\)[^/]' \| \
8375 X"$as_dir" : 'X\(//\)$' \| \
8376 X"$as_dir" : 'X\(/\)' \| \
8377 . : '\(.\)' 2>/dev/null ||
8378 echo X"$as_dir" |
8379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8381 /^X\(\/\/\)$/{ s//\1/; q; }
8382 /^X\(\/\).*/{ s//\1/; q; }
8383 s/.*/./; q'`
8384 done
8385 test ! -n "$as_dirs" || mkdir $as_dirs
8386 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8387 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8388 { (exit 1); exit 1; }; }; }
8390 rm -f $ac_file
8391 mv $tmp/config.h $ac_file
8393 else
8394 cat $tmp/config.h
8395 rm -f $tmp/config.h
8397 # Compute $ac_file's index in $config_headers.
8398 _am_stamp_count=1
8399 for _am_header in $config_headers :; do
8400 case $_am_header in
8401 $ac_file | $ac_file:* )
8402 break ;;
8404 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8405 esac
8406 done
8407 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8408 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8409 X$ac_file : 'X\(//\)[^/]' \| \
8410 X$ac_file : 'X\(//\)$' \| \
8411 X$ac_file : 'X\(/\)' \| \
8412 . : '\(.\)' 2>/dev/null ||
8413 echo X$ac_file |
8414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8416 /^X\(\/\/\)$/{ s//\1/; q; }
8417 /^X\(\/\).*/{ s//\1/; q; }
8418 s/.*/./; q'`/stamp-h$_am_stamp_count
8419 done
8420 _ACEOF
8421 cat >>$CONFIG_STATUS <<\_ACEOF
8424 # CONFIG_COMMANDS section.
8426 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8427 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8428 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8429 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8430 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8431 X"$ac_dest" : 'X\(//\)[^/]' \| \
8432 X"$ac_dest" : 'X\(//\)$' \| \
8433 X"$ac_dest" : 'X\(/\)' \| \
8434 . : '\(.\)' 2>/dev/null ||
8435 echo X"$ac_dest" |
8436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8438 /^X\(\/\/\)$/{ s//\1/; q; }
8439 /^X\(\/\).*/{ s//\1/; q; }
8440 s/.*/./; q'`
8441 { if $as_mkdir_p; then
8442 mkdir -p "$ac_dir"
8443 else
8444 as_dir="$ac_dir"
8445 as_dirs=
8446 while test ! -d "$as_dir"; do
8447 as_dirs="$as_dir $as_dirs"
8448 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8450 X"$as_dir" : 'X\(//\)[^/]' \| \
8451 X"$as_dir" : 'X\(//\)$' \| \
8452 X"$as_dir" : 'X\(/\)' \| \
8453 . : '\(.\)' 2>/dev/null ||
8454 echo X"$as_dir" |
8455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8457 /^X\(\/\/\)$/{ s//\1/; q; }
8458 /^X\(\/\).*/{ s//\1/; q; }
8459 s/.*/./; q'`
8460 done
8461 test ! -n "$as_dirs" || mkdir $as_dirs
8462 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8463 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8464 { (exit 1); exit 1; }; }; }
8466 ac_builddir=.
8468 if test "$ac_dir" != .; then
8469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8470 # A "../" for each directory in $ac_dir_suffix.
8471 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8472 else
8473 ac_dir_suffix= ac_top_builddir=
8476 case $srcdir in
8477 .) # No --srcdir option. We are building in place.
8478 ac_srcdir=.
8479 if test -z "$ac_top_builddir"; then
8480 ac_top_srcdir=.
8481 else
8482 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8483 fi ;;
8484 [\\/]* | ?:[\\/]* ) # Absolute path.
8485 ac_srcdir=$srcdir$ac_dir_suffix;
8486 ac_top_srcdir=$srcdir ;;
8487 *) # Relative path.
8488 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8489 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8490 esac
8492 # Do not use `cd foo && pwd` to compute absolute paths, because
8493 # the directories may not exist.
8494 case `pwd` in
8495 .) ac_abs_builddir="$ac_dir";;
8497 case "$ac_dir" in
8498 .) ac_abs_builddir=`pwd`;;
8499 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8500 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8501 esac;;
8502 esac
8503 case $ac_abs_builddir in
8504 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8506 case ${ac_top_builddir}. in
8507 .) ac_abs_top_builddir=$ac_abs_builddir;;
8508 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8509 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8510 esac;;
8511 esac
8512 case $ac_abs_builddir in
8513 .) ac_abs_srcdir=$ac_srcdir;;
8515 case $ac_srcdir in
8516 .) ac_abs_srcdir=$ac_abs_builddir;;
8517 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8518 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8519 esac;;
8520 esac
8521 case $ac_abs_builddir in
8522 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8524 case $ac_top_srcdir in
8525 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8526 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8527 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8528 esac;;
8529 esac
8532 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8533 echo "$as_me: executing $ac_dest commands" >&6;}
8534 case $ac_dest in
8535 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8536 # Strip MF so we end up with the name of the file.
8537 mf=`echo "$mf" | sed -e 's/:.*$//'`
8538 # Check whether this is an Automake generated Makefile or not.
8539 # We used to match only the files named `Makefile.in', but
8540 # some people rename them; so instead we look at the file content.
8541 # Grep'ing the first line is not enough: some people post-process
8542 # each Makefile.in and add a new line on top of each file to say so.
8543 # So let's grep whole file.
8544 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8545 dirpart=`(dirname "$mf") 2>/dev/null ||
8546 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8547 X"$mf" : 'X\(//\)[^/]' \| \
8548 X"$mf" : 'X\(//\)$' \| \
8549 X"$mf" : 'X\(/\)' \| \
8550 . : '\(.\)' 2>/dev/null ||
8551 echo X"$mf" |
8552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8554 /^X\(\/\/\)$/{ s//\1/; q; }
8555 /^X\(\/\).*/{ s//\1/; q; }
8556 s/.*/./; q'`
8557 else
8558 continue
8560 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8561 # Extract the definition of DEP_FILES from the Makefile without
8562 # running `make'.
8563 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8564 test -z "$DEPDIR" && continue
8565 # When using ansi2knr, U may be empty or an underscore; expand it
8566 U=`sed -n 's/^U = //p' < "$mf"`
8567 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8568 # We invoke sed twice because it is the simplest approach to
8569 # changing $(DEPDIR) to its actual value in the expansion.
8570 for file in `sed -n '
8571 /^DEP_FILES = .*\\\\$/ {
8572 s/^DEP_FILES = //
8573 :loop
8574 s/\\\\$//
8577 /\\\\$/ b loop
8580 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8581 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8582 # Make sure the directory exists.
8583 test -f "$dirpart/$file" && continue
8584 fdir=`(dirname "$file") 2>/dev/null ||
8585 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8586 X"$file" : 'X\(//\)[^/]' \| \
8587 X"$file" : 'X\(//\)$' \| \
8588 X"$file" : 'X\(/\)' \| \
8589 . : '\(.\)' 2>/dev/null ||
8590 echo X"$file" |
8591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8593 /^X\(\/\/\)$/{ s//\1/; q; }
8594 /^X\(\/\).*/{ s//\1/; q; }
8595 s/.*/./; q'`
8596 { if $as_mkdir_p; then
8597 mkdir -p $dirpart/$fdir
8598 else
8599 as_dir=$dirpart/$fdir
8600 as_dirs=
8601 while test ! -d "$as_dir"; do
8602 as_dirs="$as_dir $as_dirs"
8603 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8605 X"$as_dir" : 'X\(//\)[^/]' \| \
8606 X"$as_dir" : 'X\(//\)$' \| \
8607 X"$as_dir" : 'X\(/\)' \| \
8608 . : '\(.\)' 2>/dev/null ||
8609 echo X"$as_dir" |
8610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8612 /^X\(\/\/\)$/{ s//\1/; q; }
8613 /^X\(\/\).*/{ s//\1/; q; }
8614 s/.*/./; q'`
8615 done
8616 test ! -n "$as_dirs" || mkdir $as_dirs
8617 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8618 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8619 { (exit 1); exit 1; }; }; }
8621 # echo "creating $dirpart/$file"
8622 echo '# dummy' > "$dirpart/$file"
8623 done
8624 done
8626 esac
8627 done
8628 _ACEOF
8630 cat >>$CONFIG_STATUS <<\_ACEOF
8632 { (exit 0); exit 0; }
8633 _ACEOF
8634 chmod +x $CONFIG_STATUS
8635 ac_clean_files=$ac_clean_files_save
8638 # configure is writing to config.log, and then calls config.status.
8639 # config.status does its own redirection, appending to config.log.
8640 # Unfortunately, on DOS this fails, as config.log is still kept open
8641 # by configure, so config.status won't be able to write to it; its
8642 # output is simply discarded. So we exec the FD to /dev/null,
8643 # effectively closing config.log, so it can be properly (re)opened and
8644 # appended to by config.status. When coming back to configure, we
8645 # need to make the FD available again.
8646 if test "$no_create" != yes; then
8647 ac_cs_success=:
8648 ac_config_status_args=
8649 test "$silent" = yes &&
8650 ac_config_status_args="$ac_config_status_args --quiet"
8651 exec 5>/dev/null
8652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8653 exec 5>>config.log
8654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8655 # would make configure fail if this is the last instruction.
8656 $ac_cs_success || { (exit 1); exit 1; }